org.objectweb.jonas.jtests.beans.annuaire
Class PersonneEC2

org.objectweb.jonas.jtests.beans.annuaire.PersonneEC2

public abstract class PersonneEC2

This is an entity bean with "container managed persistence version 2.x".

Author:
Philippe Durieux, Helene Joanin (jonas team)

Field Summary
protected static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
PersonneEC2()
           
 
Method Summary
 void ejbActivate()
          This method is called when the instance is activated from its "passive" state.
 java.lang.String ejbCreate(java.lang.String nom, java.lang.String numero)
           
 java.lang.String ejbCreate(java.lang.String nom, java.lang.String numero, boolean t)
           
 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()
          This method is called before the instance enters the "passive" state.
 void ejbPostCreate(java.lang.String nom, java.lang.String numero)
          There must be an ejbPostCreate par ejbCreate method
 void ejbPostCreate(java.lang.String nom, java.lang.String numero, boolean t)
           
 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.
 boolean ejbStoreCalled()
           
abstract  java.lang.String getNom()
           
abstract  java.lang.String getNumero()
           
 java.lang.String getNumeroNTX()
          getNumeroNTX / Tx Attribute = Supports
 boolean isDirty()
           
 boolean isModified()
           
 boolean isModifiedCalled()
           
 void reset()
           
 void setEntityContext(javax.ejb.EntityContext ctx)
          Set the associated entity context.
abstract  void setNom(java.lang.String n)
           
abstract  void setNumero(java.lang.String n)
           
 void setNumeroNTX(java.lang.String s)
          setNumeroNTX / Tx Attribute = Supports
 void unsetEntityContext()
          Unset the associated entity context.
 

Field Detail

logger

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

PersonneEC2

public PersonneEC2()
Method Detail

getNom

public abstract java.lang.String getNom()

setNom

public abstract void setNom(java.lang.String n)

getNumero

public abstract java.lang.String getNumero()

setNumero

public abstract void setNumero(java.lang.String n)

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 nom,
                          java.lang.String numero)
                   throws javax.ejb.CreateException
There must be an ejbPostCreate par ejbCreate method
Throws:
CreateException - Failure to create an entity EJB object.

ejbPostCreate

public void ejbPostCreate(java.lang.String nom,
                          java.lang.String numero,
                          boolean t)
                   throws javax.ejb.CreateException

ejbCreate

public java.lang.String ejbCreate(java.lang.String nom,
                                  java.lang.String numero)
                           throws javax.ejb.CreateException,
                                  javax.ejb.DuplicateKeyException

ejbCreate

public java.lang.String ejbCreate(java.lang.String nom,
                                  java.lang.String numero,
                                  boolean t)
                           throws javax.ejb.CreateException,
                                  javax.ejb.DuplicateKeyException

ejbPassivate

public void ejbPassivate()
This method is called before the instance enters the "passive" state. The instance should release any resources that it can re-acquire later in the ejbActivate() method. After the passivate method completes, the instance must be in a state that allows the container to use the Java Serialization protocol to externalize and store away the instance's state. This method is called with no transaction context.
Throws:
EJBException - - Thrown if the instance could not perform the function requested by the container

ejbActivate

public void ejbActivate()
This method is called when the instance is activated from its "passive" state. The instance should acquire any resource that it has released earlier in the ejbPassivate() method. This method is called with no transaction context.
Throws:
EJBException - - Thrown if the instance could not perform the function requested by the container

getNumeroNTX

public java.lang.String getNumeroNTX()
getNumeroNTX / Tx Attribute = Supports

setNumeroNTX

public void setNumeroNTX(java.lang.String s)
setNumeroNTX / Tx Attribute = Supports

isModified

public boolean isModified()

reset

public void reset()

isModifiedCalled

public boolean isModifiedCalled()

ejbStoreCalled

public boolean ejbStoreCalled()

isDirty

public boolean isDirty()