Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/beans
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15634/testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/beans
Modified Files:
AccountBean.java TransferReceiverBean.java
CompanyClientBean.java BaseClientBean.java
Log Message:
* Various refactorings
* Completed ValueObjectPlugin
Index: CompanyClientBean.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/beans/CompanyClientBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CompanyClientBean.java 6 Oct 2005 13:49:09 -0000 1.1
--- CompanyClientBean.java 13 Dec 2005 03:55:38 -0000 1.2
***************
*** 1,43 ****
! /*
! * Copyright (c) 2005
! * XDoclet Team
! * All rights reserved.
! */
! package org.xdoclet.testapp.ejb.beans;
!
! //import java.util.Collection;
!
! import java.util.Collection;
!
! import javax.ejb.EntityBean;
!
! import org.xdoclet.testapp.ejb.interfaces.NoNumberException;
!
! /**
! * This is part of the common test application for all ejb-related
! * XDoclet plugin. Vendor-specific tags should be added herein.
! *
! * @ejb.bean name="CompanyClient" generate="false"
! * @ejb.pk-xxx implements="org.xdoclet.testapp.ejb.interfaces.Dummy"
! *
! * @author Diogo Quintela
! * @version $Revision$
! */
! public abstract class CompanyClientBean extends BaseClientBean implements
EntityBean {
! /**
! * TODO: Pull up. Relationships should need to be fixed (because of
relation name in more than one bean)
! * @ejb.interface-method view-type="local"
! * @ejb.relation name="user-accounts" role-name="user"
! *
! * @return Collection of [EMAIL PROTECTED] AccountLocal}
! */
! public abstract Collection getAccounts();
!
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.persistence
! * @ejb.pk-field
! * @return the account number
! */
! public abstract String getCompanyNumber() throws NoNumberException;
}
\ No newline at end of file
--- 1,73 ----
! /*
! * Copyright (c) 2005
! * XDoclet Team
! * All rights reserved.
! */
! package org.xdoclet.testapp.ejb.beans;
!
! import javax.ejb.EntityBean;
!
! import org.xdoclet.testapp.ejb.interfaces.AccountLocal;
! import org.xdoclet.testapp.ejb.interfaces.NoNumberException;
!
! /**
! * This is part of the common test application for all ejb-related
! * XDoclet plugin. Vendor-specific tags should be added herein.
! *
! * @ejb.bean name="CompanyClient" generate="true" use-soft-locking="true"
! * @ejb.value-object name="Normal"
! * @ejb.value-object name="Medium" match="medium"
! * @ejb.value-object name="MediumStrict" match="mediumStrict"
ordering="strict"
! * @ejb.value-object name="MediumFullClone" match="mediumFullClone"
full-clone="true" synchronization="full"
! * @ejb.value-object name="Light" match="light" synchronization="none"
! *
! * @author Diogo Quintela
! * @version $Revision$
! */
! public abstract class CompanyClientBean extends BaseClientBean implements
EntityBean {
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.persistence-field
! * @ejb.pk-field
! * @ejb.value-object-field match="medium"
! * @ejb.value-object-field match="mediumStrict"
! * @ejb.value-object-field match="mediumFullClone"
! *
! * @return the account number
! */
! public abstract String getCompanyNumber() throws NoNumberException;
!
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.relation name="company-main-account" target-ejb="Account"
role-name="anyrole1" target-role-name="anyrole2"
! * @ejb.value-object-field match="medium"
aggregate="org.xdoclet.testapp.ejb.util.AccountValueObject"
aggregate-name="myAggrName"
! * @ejb.value-object-field match="mediumStrict"
aggregate="org.xdoclet.testapp.ejb.util.AccountValueObject"
aggregate-name="myAggrName"
! * @ejb.value-object-field match="mediumFullClone"
aggregate="org.xdoclet.testapp.ejb.util.AccountValueObject"
aggregate-name="myAggrName"
! *
! * @return Collection of [EMAIL PROTECTED] AccountLocal}
! */
! public abstract AccountLocal getPrimaryAccount();
!
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.persistence-field
! * @ejb.value-object-field match="medium"
! * @ejb.value-object-field match="mediumStrict"
! * @ejb.value-object-field match="mediumFullClone"
! * @ejb.value-object-field match="light"
! */
! public abstract String getCompanyName();
!
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.persistence-field
! */
! public abstract String getCompanyFiscalNumber();
!
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.persistence-field
! * @ejb.value-object-field match="*"
! */
! public abstract String getCompanyOwnerName();
}
\ No newline at end of file
Index: AccountBean.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/beans/AccountBean.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** AccountBean.java 11 Oct 2005 09:22:26 -0000 1.11
--- AccountBean.java 13 Dec 2005 03:55:38 -0000 1.12
***************
*** 34,37 ****
--- 34,39 ----
*
* @ejb.interface extends="org.xdoclet.testapp.ejb.interfaces.Dummy"
+ *
+ * @ejb.value-object name="Account"
*/
public abstract class AccountBean implements EntityBean {
***************
*** 43,51 ****
* @return Collection of [EMAIL PROTECTED] ClientLocal}
*/
! public abstract Collection getOwners(int ownershipType);
/**
* @ejb.interface-method view-type="both"
! * @ejb.persistence
* @ejb.permission role-names="user-role" method-intf="Remote"
*
--- 45,53 ----
* @return Collection of [EMAIL PROTECTED] ClientLocal}
*/
! public abstract Collection getOwners();
/**
* @ejb.interface-method view-type="both"
! * @ejb.persistence-field
* @ejb.permission role-names="user-role" method-intf="Remote"
*
***************
*** 59,63 ****
*
* @ejb.interface-method view-type="both"
! * @ejb.persistence
*
* @return the account type
--- 61,65 ----
*
* @ejb.interface-method view-type="both"
! * @ejb.persistence-field
*
* @return the account type
Index: BaseClientBean.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/beans/BaseClientBean.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** BaseClientBean.java 6 Oct 2005 13:49:09 -0000 1.1
--- BaseClientBean.java 13 Dec 2005 03:55:38 -0000 1.2
***************
*** 1,36 ****
! /*
! * Copyright (c) 2005
! * XDoclet Team
! * All rights reserved.
! */
! package org.xdoclet.testapp.ejb.beans;
!
! import org.xdoclet.testapp.ejb.interfaces.NoNumberException;
!
! /**
! * This is part of the common test application for all ejb-related
! * XDoclet plugin. Vendor-specific tags should be added herein.
! *
! * @ejb.bean name="xxx" generate="false"
! * @ejb.pk-xxx implements="org.xdoclet.testapp.ejb.interfaces.Dummy"
! *
! * @author Diogo Quintela
! * @version $Revision$
! */
! public abstract class BaseClientBean {
! // /**
! // * @ejb.interface-method view-type="local"
! // * @ejb.relation name="user-accounts" role-name="user"
! // *
! // * @return Collection of [EMAIL PROTECTED] AccountLocal}
! // */
! // public abstract Collection getAccounts();
!
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.persistence
! * @ejb.pk-field
! * @return the account number
! */
! public abstract String getIdentityNumber() throws NoNumberException;
}
\ No newline at end of file
--- 1,38 ----
! /*
! * Copyright (c) 2005
! * XDoclet Team
! * All rights reserved.
! */
! package org.xdoclet.testapp.ejb.beans;
!
! import java.util.Collection;
!
! import org.xdoclet.testapp.ejb.interfaces.NoNumberException;
!
! /**
! * This is part of the common test application for all ejb-related
! * XDoclet plugin. Vendor-specific tags should be added herein.
! *
! * @ejb.bean name="xxx" generate="false"
! * @ejb.pk-xxx implements="org.xdoclet.testapp.ejb.interfaces.Dummy"
! *
! * @author Diogo Quintela
! * @version $Revision$
! */
! public abstract class BaseClientBean {
! /**
! * @ejb.interface-method view-type="local"
! * @ejb.relation name="all-accounts" role-name="admin"
target-ejb="Account"
! *
! * @return Collection of [EMAIL PROTECTED] AccountLocal}
! */
! public abstract Collection getAllAccounts();
!
! /**
! * @ejb.interface-method view-type="both"
! * @ejb.persistence-field
! * @ejb.pk-field
! * @return the account number
! */
! public abstract String getIdentityNumber() throws NoNumberException;
}
\ No newline at end of file
Index: TransferReceiverBean.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/testapp-ejb/src/main/java/org/xdoclet/testapp/ejb/beans/TransferReceiverBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TransferReceiverBean.java 11 Oct 2005 09:22:26 -0000 1.3
--- TransferReceiverBean.java 13 Dec 2005 03:55:38 -0000 1.4
***************
*** 54,63 ****
public class TransferReceiverBean implements MessageDrivenBean {
/**
! * @ejb.ejb-external-ref
business="org.xdoclet.testapp.ejb.interfaces.OtherRemote"
home="org.xdoclet.testapp.ejb.interfaces.OtherRemoteHome" type="Entity"
! *
! * @ejb.ejb-service-ref description="ServiceRefDesc"
interface="ServiceRefClass" jaxrpc-mapping-file="jaxrp-file"
qname="ServiceRefQName"
! *
* @ejb.resource-ref res-type="ResRefType2" res-auth="Application"
description="ResRefDescription2"
- *
* @ejb.resource-env-ref
*/
--- 54,63 ----
public class TransferReceiverBean implements MessageDrivenBean {
/**
! * @ejb.ejb-external-ref
business="org.xdoclet.testapp.ejb.interfaces.OtherRemote"
! *
home="org.xdoclet.testapp.ejb.interfaces.OtherRemoteHome"
! * type="Entity"
! * @ejb.ejb-service-ref description="ServiceRefDesc"
interface="ServiceRefClass"
! * jaxrpc-mapping-file="jaxrp-file"
qname="ServiceRefQName"
* @ejb.resource-ref res-type="ResRefType2" res-auth="Application"
description="ResRefDescription2"
* @ejb.resource-env-ref
*/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits