pt.jcodeutil.core.ejb.numbering.ent
Class NumericSequencerBean

java.lang.Object
  |
  +--pt.jcodeutil.core.ejb.numbering.ent.NumericSequencerBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public abstract class NumericSequencerBean
extends java.lang.Object
implements javax.ejb.EntityBean

Title: Description:

Version:
1.0
Author:
Marco Samuel (samuelbb@sapo.pt)
See Also:
Serialized Form

Constructor Summary
NumericSequencerBean()
           
 
Method Summary
 void ejbActivate()
           
 java.lang.String ejbCreate(java.lang.String pk, long value)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(java.lang.String pk, long value)
           
 void ejbRemove()
           
 void ejbStore()
           
abstract  java.lang.String getKey()
           
abstract  long getValue()
           
 long nextValue()
           
 void setEntityContext(javax.ejb.EntityContext ctx)
           
abstract  void setKey(java.lang.String key)
           
abstract  void setValue(long value)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericSequencerBean

public NumericSequencerBean()
Method Detail

setKey

public abstract void setKey(java.lang.String key)

getKey

public abstract java.lang.String getKey()

setValue

public abstract void setValue(long value)

getValue

public abstract long getValue()

nextValue

public long nextValue()

ejbCreate

public java.lang.String ejbCreate(java.lang.String pk,
                                  long value)
                           throws javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.String pk,
                          long value)

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
Specified by:
setEntityContext in interface javax.ejb.EntityBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.EntityBean