|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pf.text.ObjectIdGenerator
org.pf.db.util.ObjectIdentifierGenerator
public class ObjectIdentifierGenerator
This class provides identifiers by incrementing an internal counter, starting at 1.
Constructor Summary | |
---|---|
ObjectIdentifierGenerator()
Initialize the new instance with default values. |
|
ObjectIdentifierGenerator(int idLength)
Initialize the new instance with the length for the generated identifiers. |
|
ObjectIdentifierGenerator(long startId,
int idLength)
Initialize the new instance with the length for the generated identifiers and the id to start with. |
Method Summary |
---|
Methods inherited from class org.pf.text.ObjectIdGenerator |
---|
generateString, generateString, getFullLength, getLength, getPadChar, getPrefix, hasPrefix, newIdentifier, nextIdentifier, setLength, setPadChar, setPrefix |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pf.db.util.ObjectIdentifierProducer |
---|
nextIdentifier |
Methods inherited from interface org.pf.bif.identifier.IObjectIdGenerator |
---|
newIdentifier |
Constructor Detail |
---|
public ObjectIdentifierGenerator()
public ObjectIdentifierGenerator(int idLength)
idLength
- The length to which Ids are filled up with leading zeros (must be > 0)public ObjectIdentifierGenerator(long startId, int idLength)
startId
- The first id to be generatedidLength
- The length to which Ids are filled up with leading zeros
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |