|
BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.beasys.commerce.foundation.EntityImpl
|
+--com.beasys.commerce.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 = com.beasys.commerce.axiom.util.AlphaNumericSequencerPk
AlphaNumericSequencer,
AlphaNumericSequencerHome,
AlphaNumericSequencerValue, Serialized Form| Field Summary | |
int |
counter
Containment: By Value Multiplicity: 1:1 |
java.lang.String |
identifier
Containment: By Value Multiplicity: 1:1 PRIMARY KEY FIELD |
int |
numDigits
Containment: By Value Multiplicity: 1:1 |
java.lang.String |
prefix
Containment: By Value Multiplicity: 1:1 |
int |
step
Containment: By Value Multiplicity: 1:1 |
java.lang.String |
suffix
Containment: By Value Multiplicity: 1:1 |
| Fields inherited from class com.beasys.commerce.foundation.EntityImpl |
__classIdentifier, __containingEntity, __mapKey, __sequenceNumber, _ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty, _smartBMP |
| Constructor Summary | |
AlphaNumericSequencerImpl()
|
|
| Method Summary | |
protected void |
bscInitializeAttributes(AlphaNumericSequencerPk alphaNumericSequencerPk)
|
void |
ejbActivate()
ejbActivate method. |
AlphaNumericSequencerPk |
ejbCreate(AlphaNumericSequencerPk alphaNumericSequencerPk)
|
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(javax.ejb.EntityContext ctx)
setEntityContext method. |
void |
setIdentifier(java.lang.String value)
|
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 com.beasys.commerce.foundation.EntityImpl | |||||||||||||||||||
bscInitializeAttributes, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, ejbCreate, ejbFindAll, ejbFindByPrimaryKey, ejbPostCreate, enumerateRelationalBinding, enumerateRelationalBinding, get__classIdentifier, get__containingBelonging,
| |||||||||||||||||||