BEA Systems, Inc.

com.beasys.commerce.axiom.util
Class AlphaNumericSequencerValue

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SmartValue
        |
        +--com.beasys.commerce.axiom.util.AlphaNumericSequencerValue
All Implemented Interfaces:
java.io.Serializable

public class AlphaNumericSequencerValue
extends SmartValue

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.

See Also:
AlphaNumericSequencer, AlphaNumericSequencerHome, AlphaNumericSequencer.getAlphaNumericSequencerByValue(), AlphaNumericSequencer.setAlphaNumericSequencerByValue(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
 
Constructor Summary
protected AlphaNumericSequencerValue()
          Only get/setAlphaNumericSequencerByValue methods are allowed to call this constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

public java.lang.String identifier

prefix

public java.lang.String prefix

counter

public int counter

step

public int step

numDigits

public int numDigits

suffix

public java.lang.String suffix
Constructor Detail

AlphaNumericSequencerValue

protected AlphaNumericSequencerValue()
Only get/setAlphaNumericSequencerByValue methods are allowed to call this constructor.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved