org.objectweb.jonas.jtests.beans.transacted
Class SimpleEC2

org.objectweb.jonas.jtests.beans.transacted.SimpleEC2

public abstract class SimpleEC2

Entity bean with container managed persistence version 2.

Author:
Helene Joanin

Field Summary
protected  javax.ejb.EntityContext entityContext
           
 
Constructor Summary
SimpleEC2()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.String ejbCreate()
          Create without arg transaction attribute = supports (by default in xml file)
 java.lang.String ejbCreate(int i)
          transaction attribute = notsupported
 java.lang.String ejbCreateForMandatory(char i)
          transaction attribute = mandatory
 java.lang.String ejbCreateForNever(short i)
          transaction attribute = never
 java.lang.String ejbCreateForRequired(long i)
          transaction attribute = required
 java.lang.String ejbCreateForRequiresNew(java.lang.String i)
          transaction attribute = requiresnew
 java.lang.String ejbCreateForSupports(boolean intx)
          transaction attribute = supports
 boolean ejbHomeOpwith_mandatory()
          This method return true if there is an association of a transaction with this thread
 boolean ejbHomeOpwith_never()
          This method return true if there is an association of a transaction with this thread
 boolean ejbHomeOpwith_notsupported()
          This method return true if there is an association of a transaction with this thread
 boolean ejbHomeOpwith_required()
          This method return true if there is an association of a transaction with this thread
 boolean ejbHomeOpwith_requires_new()
          This method return true if there is an association of a transaction with this thread
 boolean ejbHomeOpwith_supports()
          This method return true if there is an association of a transaction with this thread
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate()
          transaction attribute = default (= supports)
 void ejbPostCreate(int i)
          transaction attribute = notsupported
 void ejbPostCreateForMandatory(char i)
          transaction attribute = mandatory
 void ejbPostCreateForNever(short i)
          transaction attribute = never
 void ejbPostCreateForRequired(long i)
          transaction attribute = required
 void ejbPostCreateForRequiresNew(java.lang.String i)
          transaction attribute = requiresnew
 void ejbPostCreateForSupports(boolean intx)
          transaction attribute = supports
 void ejbRemove()
           
 void ejbStore()
           
abstract  java.lang.String getAccno()
           
abstract  long getBalance()
           
abstract  java.lang.String getCustomer()
           
abstract  void setAccno(java.lang.String accno)
           
abstract  void setBalance(long balance)
           
abstract  void setCustomer(java.lang.String customer)
           
 void setEntityContext(javax.ejb.EntityContext ctx)
           
 void unsetEntityContext()
           
 

Field Detail

entityContext

protected javax.ejb.EntityContext entityContext
Constructor Detail

SimpleEC2

public SimpleEC2()
Method Detail

getAccno

public abstract java.lang.String getAccno()

setAccno

public abstract void setAccno(java.lang.String accno)

getCustomer

public abstract java.lang.String getCustomer()

setCustomer

public abstract void setCustomer(java.lang.String customer)

getBalance

public abstract long getBalance()

setBalance

public abstract void setBalance(long balance)

ejbCreate

public java.lang.String ejbCreate()
                           throws javax.ejb.CreateException
Create without arg transaction attribute = supports (by default in xml file)

ejbCreate

public java.lang.String ejbCreate(int i)
                           throws javax.ejb.CreateException
transaction attribute = notsupported

ejbCreateForRequired

public java.lang.String ejbCreateForRequired(long i)
                                      throws javax.ejb.CreateException
transaction attribute = required

ejbCreateForNever

public java.lang.String ejbCreateForNever(short i)
                                   throws javax.ejb.CreateException
transaction attribute = never

ejbCreateForRequiresNew

public java.lang.String ejbCreateForRequiresNew(java.lang.String i)
                                         throws javax.ejb.CreateException
transaction attribute = requiresnew

ejbCreateForMandatory

public java.lang.String ejbCreateForMandatory(char i)
                                       throws javax.ejb.CreateException
transaction attribute = mandatory

ejbCreateForSupports

public java.lang.String ejbCreateForSupports(boolean intx)
                                      throws javax.ejb.CreateException
transaction attribute = supports

ejbPostCreate

public void ejbPostCreate()
transaction attribute = default (= supports)

ejbPostCreate

public void ejbPostCreate(int i)
transaction attribute = notsupported

ejbPostCreateForRequired

public void ejbPostCreateForRequired(long i)
transaction attribute = required

ejbPostCreateForNever

public void ejbPostCreateForNever(short i)
transaction attribute = never

ejbPostCreateForRequiresNew

public void ejbPostCreateForRequiresNew(java.lang.String i)
transaction attribute = requiresnew

ejbPostCreateForMandatory

public void ejbPostCreateForMandatory(char i)
transaction attribute = mandatory

ejbPostCreateForSupports

public void ejbPostCreateForSupports(boolean intx)
transaction attribute = supports

ejbHomeOpwith_notsupported

public boolean ejbHomeOpwith_notsupported()
This method return true if there is an association of a transaction with this thread

ejbHomeOpwith_supports

public boolean ejbHomeOpwith_supports()
This method return true if there is an association of a transaction with this thread

ejbHomeOpwith_required

public boolean ejbHomeOpwith_required()
This method return true if there is an association of a transaction with this thread

ejbHomeOpwith_requires_new

public boolean ejbHomeOpwith_requires_new()
This method return true if there is an association of a transaction with this thread

ejbHomeOpwith_mandatory

public boolean ejbHomeOpwith_mandatory()
This method return true if there is an association of a transaction with this thread

ejbHomeOpwith_never

public boolean ejbHomeOpwith_never()
This method return true if there is an association of a transaction with this thread

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException

ejbPassivate

public void ejbPassivate()

ejbActivate

public void ejbActivate()

ejbLoad

public void ejbLoad()

ejbStore

public void ejbStore()

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)

unsetEntityContext

public void unsetEntityContext()