|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.foundation.EntityImpl | +--theory.smart.axiom.util.AlphaNumericSequencerImpl
This class generates sequential identifiers in a prescribed format.. The user of the classs can configure the starting number, prefix, suffix, and step. It is also possible to specify the width of the numeric component. The current sequence number is persisted and access to the counter is controlled so that uniqueness can be guaranteed across all users of a given sequencer. It is used to generate unique keys for entities such as accounts, users, and sessions.
Primary Key = theory.smart.axiom.util.AlphaNumericSequencerPk
AlphaNumericSequencer
,
AlphaNumericSequencerHome
,
AlphaNumericSequencerValue
, Serialized FormField Summary | |
int |
counter
counter [AlphaNumericSequencer] <*>------> [ int ]
|
java.lang.String |
identifier
identifier [AlphaNumericSequencer] <*>------> [ String ] (Primary Key)
|
int |
numDigits
numDigits [AlphaNumericSequencer] <*>------> [ int ]
|
java.lang.String |
prefix
prefix [AlphaNumericSequencer] <*>------> [ String ]
|
int |
step
step [AlphaNumericSequencer] <*>------> [ int ]
|
java.lang.String |
suffix
suffix [AlphaNumericSequencer] <*>------> [ String ]
|
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
AlphaNumericSequencerImpl()
|
Method Summary | |
void |
ejbActivate()
ejbActivate method. |
AlphaNumericSequencerPk |
ejbCreate(AlphaNumericSequencerPk alphaNumericSequencerPk)
|
protected void |
ejbCreateInitVars(AlphaNumericSequencerPk alphaNumericSequencerPk)
|
java.util.Enumeration |
ejbFindAll()
|
AlphaNumericSequencerPk |
ejbFindByPrimaryKey(AlphaNumericSequencerPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(AlphaNumericSequencerPk alphaNumericSequencerPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
AlphaNumericSequencerValue |
getAlphaNumericSequencerByValue()
Get all of AlphaNumericSequencer's attributes. |
int |
getCounter()
Get the value of counter |
java.lang.String |
getIdentifier()
|
java.lang.String |
getNextValue()
This method returns the next value of the AlphaNumericSequencer. |
int |
getNumDigits()
Get the value of numDigits |
java.lang.String |
getPrefix()
Get the value of prefix |
int |
getStep()
Get the value of step |
java.lang.String |
getSuffix()
Get the value of suffix |
java.lang.String |
getValue()
This method returns the CURRENT value of the AlphaNumericSequencer. |
void |
initialize(java.lang.String prefix,
int numDigits,
java.lang.String suffix,
int start,
int step)
This is a short cut to initialize the sequencer |
void |
setAlphaNumericSequencerByValue(AlphaNumericSequencerValue value)
Set all of AlphaNumericSequencer's attributes to the passed in value. |
void |
setCounter(int counter)
Set the value of counter |
void |
setEntityContext(EntityContext ctx)
setEntityContext method. |
void |
setNumDigits(int numDigits)
Set the value of numDigits |
void |
setPrefix(java.lang.String prefix)
Set the value of prefix |
void |
setStep(int step)
Set the value of step |
void |
setSuffix(java.lang.String suffix)
Set the value of suffix |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.foundation.EntityImpl |
ejbCreate,
ejbCreateInitVars,
ejbPostCreate,
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String identifier
identifier
[AlphaNumericSequencer] <*>------> [String
] (Primary Key)
public java.lang.String prefix
prefix
[AlphaNumericSequencer] <*>------> [String
]
public int numDigits
numDigits
[AlphaNumericSequencer] <*>------> [int
]
public java.lang.String suffix
suffix
[AlphaNumericSequencer] <*>------> [String
]
public int step
step
[AlphaNumericSequencer] <*>------> [int
]
public int counter
counter
[AlphaNumericSequencer] <*>------> [int
]
Constructor Detail |
public AlphaNumericSequencerImpl() throws CreateException
Method Detail |
public AlphaNumericSequencerValue getAlphaNumericSequencerByValue() throws java.rmi.RemoteException
public void setAlphaNumericSequencerByValue(AlphaNumericSequencerValue value) throws java.rmi.RemoteException
AlphaNumericSequencerValue
- the AlphaNumericSequencer value objectpublic AlphaNumericSequencerPk ejbCreate(AlphaNumericSequencerPk alphaNumericSequencerPk) throws CreateException, java.rmi.RemoteException
protected void ejbCreateInitVars(AlphaNumericSequencerPk alphaNumericSequencerPk) throws CreateException, java.rmi.RemoteException
public void ejbPostCreate(AlphaNumericSequencerPk alphaNumericSequencerPk) throws CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
public void ejbStore() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException, RemoveException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void setEntityContext(EntityContext ctx) throws java.rmi.RemoteException
public void unsetEntityContext() throws java.rmi.RemoteException
public AlphaNumericSequencerPk ejbFindByPrimaryKey(AlphaNumericSequencerPk pk) throws FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws FinderException, java.rmi.RemoteException
public java.lang.String getIdentifier() throws java.rmi.RemoteException
public java.lang.String getPrefix() throws java.rmi.RemoteException
public void setPrefix(java.lang.String prefix) throws java.rmi.RemoteException
prefix
- prefix to be addedpublic int getNumDigits() throws java.rmi.RemoteException
public void setNumDigits(int numDigits) throws java.rmi.RemoteException
numDigits
- numDigits to be addedpublic java.lang.String getSuffix() throws java.rmi.RemoteException
public void setSuffix(java.lang.String suffix) throws java.rmi.RemoteException
suffix
- suffix to be addedpublic int getStep() throws java.rmi.RemoteException
public void setStep(int step) throws java.rmi.RemoteException
step
- step to be addedpublic int getCounter() throws java.rmi.RemoteException
public void setCounter(int counter) throws java.rmi.RemoteException
counter
- counter to be addedpublic void initialize(java.lang.String prefix, int numDigits, java.lang.String suffix, int start, int step) throws java.rmi.RemoteException
public java.lang.String getNextValue() throws java.rmi.RemoteException
getValue()
public java.lang.String getValue() throws java.rmi.RemoteException
getNextValue()
|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |