org.objectweb.jonas.jtests.beans.relation.s1pkcomp
Class BEC2

org.objectweb.jonas.jtests.beans.relation.s1pkcomp.BEC2

public abstract class BEC2

Author:
J.Camilleri

Field Summary
protected static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
BEC2()
           
 
Method Summary
 void addAllInA(java.util.Collection pkbs)
           
 void addAllInAInNewTx(java.util.Collection pkbs)
           
 void addInA(PK pkb)
           
 void addInAInNewTx(PK pkb)
           
 void assignA(java.util.Collection c)
           
 void assignAInNewTx(java.util.Collection c)
           
 void clearA()
           
 void clearAInNewTx()
           
 boolean containAllInA(java.util.Collection pkbs)
           
 boolean containInA(PK pkb)
          It returns true the multivalued relation contains the bean A defined by the primary key specified by the parameter.
 void ejbActivate()
          A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object.
 java.lang.String ejbCreate(java.lang.String idb1, int idb2)
          The Entity bean can define 0 or more ejbCreate methods.
 void ejbLoad()
          A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
 void ejbPassivate()
          A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object.
 void ejbPostCreate(java.lang.String idb1, int idb2)
          There must be an ejbPostCreate par ejbCreate method
 void ejbRemove()
          A container invokes this method before it removes the EJB object that is currently associated with the instance.
 void ejbStore()
          A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.
abstract  java.util.Collection getA()
           
 PK getId()
           
abstract  java.lang.String getId1()
           
abstract  int getId2()
           
 void m1()
           
 void removeFromA(PK pkb)
           
 void removeFromAInNewTx(PK pkb)
           
 java.util.Collection retrieveA()
           
 java.util.Collection retrieveAInNewTx()
           
abstract  void setA(java.util.Collection bl)
           
 void setEntityContext(javax.ejb.EntityContext ctx)
          Set the associated entity context.
abstract  void setId1(java.lang.String id)
           
abstract  void setId2(int id)
           
 void unsetEntityContext()
          Unset the associated entity context.
 

Field Detail

logger

protected static org.objectweb.util.monolog.api.Logger logger
Constructor Detail

BEC2

public BEC2()
Method Detail

m1

public void m1()

getId

public PK getId()

assignA

public void assignA(java.util.Collection c)
             throws javax.ejb.FinderException

assignAInNewTx

public void assignAInNewTx(java.util.Collection c)
                    throws javax.ejb.FinderException

retrieveA

public java.util.Collection retrieveA()

retrieveAInNewTx

public java.util.Collection retrieveAInNewTx()

addInA

public void addInA(PK pkb)
            throws javax.ejb.FinderException

addInAInNewTx

public void addInAInNewTx(PK pkb)
                   throws javax.ejb.FinderException

addAllInA

public void addAllInA(java.util.Collection pkbs)
               throws javax.ejb.FinderException

addAllInAInNewTx

public void addAllInAInNewTx(java.util.Collection pkbs)
                      throws javax.ejb.FinderException

removeFromA

public void removeFromA(PK pkb)
                 throws javax.ejb.FinderException

removeFromAInNewTx

public void removeFromAInNewTx(PK pkb)
                        throws javax.ejb.FinderException

clearA

public void clearA()

clearAInNewTx

public void clearAInNewTx()

containAllInA

public boolean containAllInA(java.util.Collection pkbs)
                      throws javax.ejb.FinderException

containInA

public boolean containInA(PK pkb)
                   throws javax.ejb.FinderException
It returns true the multivalued relation contains the bean A defined by the primary key specified by the parameter. This method has the transactional attribut TX_SUPPORTS.

getId1

public abstract java.lang.String getId1()

getId2

public abstract int getId2()

setId1

public abstract void setId1(java.lang.String id)

setId2

public abstract void setId2(int id)

getA

public abstract java.util.Collection getA()

setA

public abstract void setA(java.util.Collection bl)

ejbCreate

public java.lang.String ejbCreate(java.lang.String idb1,
                                  int idb2)
                           throws javax.ejb.CreateException,
                                  javax.ejb.DuplicateKeyException
The Entity bean can define 0 or more ejbCreate methods.
Throws:
CreateException - Failure to create an entity EJB object.
DuplicateKeyException - An object with the same key already exists.

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
Set the associated entity context. The container invokes this method on an instance after the instance has been created. This method is called in an unspecified transaction context.
Parameters:
ctx - - An EntityContext interface for the instance. The instance should store the reference to the context in an instance variable.
Throws:
EJBException - Thrown by the method to indicate a failure caused by a system-level error.

unsetEntityContext

public void unsetEntityContext()
Unset the associated entity context. The container calls this method before removing the instance. This is the last method that the container invokes on the instance. The Java garbage collector will eventually invoke the finalize() method on the instance. This method is called in an unspecified transaction context.
Throws:
EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
A container invokes this method before it removes the EJB object that is currently associated with the instance. This method is invoked when a client invokes a remove operation on the enterprise Bean's home interface or the EJB object's remote interface. This method transitions the instance from the ready state to the pool of available instances. This method is called in the transaction context of the remove operation.
Throws:
RemoveException - The enterprise Bean does not allow destruction of the object.
EJBException - - Thrown by the method to indicate a failure caused by a system-level error.

ejbLoad

public void ejbLoad()
A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database. This method always executes in the proper transaction context.
Throws:
EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbStore

public void ejbStore()
A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database. This method always executes in the proper transaction context.
Throws:
EJBException - Thrown by the method to indicate a failure caused by a system-level error.

ejbPostCreate

public void ejbPostCreate(java.lang.String idb1,
                          int idb2)
                   throws javax.ejb.CreateException
There must be an ejbPostCreate par ejbCreate method
Throws:
CreateException - Failure to create an entity EJB object.

ejbPassivate

public void ejbPassivate()
A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object.

ejbActivate

public void ejbActivate()
A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object.