org.jboss.test.idgen.ejb
Class IdCounterBean
java.lang.Object
org.jboss.test.util.ejb.EnterpriseSupport (src)
org.jboss.test.util.ejb.EntitySupport (src)
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdCounterBean
public IdCounterBean()
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