org.jboss.test.idgen.ejb
Class IdCounterBean

java.lang.Object
  extended byorg.jboss.test.util.ejb.EnterpriseSupport (src) 
      extended byorg.jboss.test.util.ejb.EntitySupport (src) 
          extended byorg.jboss.test.idgen.ejb.IdCounterBean
All Implemented Interfaces:
EnterpriseBean (src) , EntityBean (src) , java.io.Serializable
Direct Known Subclasses:
IdCounterBeanCMP (src)

public abstract class IdCounterBean
extends EntitySupport (src)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.util.ejb.EntitySupport (src)
entityCtx
 
Constructor Summary
IdCounterBean()
           
 
Method Summary
 void ejbLoad()
          A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
abstract  long getCurrentValue()
           
abstract  java.lang.String getName()
           
 long getNextValue()
           
abstract  void setCurrentValue(long current)
           
 void setEntityContext(EntityContext (src)  ctx)
          Set the associated entity context.
abstract  void setName(java.lang.String beanName)
           
 
Methods inherited from class org.jboss.test.util.ejb.EntitySupport (src)
ejbActivate, ejbPassivate, ejbRemove, ejbStore, unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdCounterBean

public IdCounterBean()
Method Detail

getNextValue

public long getNextValue()

getCurrentValue

public abstract long getCurrentValue()

setCurrentValue

public abstract void setCurrentValue(long current)

getName

public abstract java.lang.String getName()

setName

public abstract void setName(java.lang.String beanName)

ejbLoad

public void ejbLoad()
             throws java.rmi.RemoteException
Description copied from interface: EntityBean (src)

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 transaction context determined by the value of the transaction attribute in the deployment descriptor.

Specified by:
ejbLoad in interface EntityBean (src)
Overrides:
ejbLoad in class EntitySupport (src)
Throws:
java.rmi.RemoteException

setEntityContext

public void setEntityContext(EntityContext (src)  ctx)
                      throws java.rmi.RemoteException
Description copied from interface: EntityBean (src)

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.

Specified by:
setEntityContext in interface EntityBean (src)
Overrides:
setEntityContext in class EntitySupport (src)
Throws:
java.rmi.RemoteException