|
||||||||||
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
org.pf.db.util.ObjectIdentifierDB
public class ObjectIdentifierDB
Instances of this class provide generation of unique identifiers backed by a specific database table. That means the next available id will be always updated in the database.
Constructor Summary | |
---|---|
ObjectIdentifierDB(DataSource ds)
Initialize the new instance with the given data source. |
|
ObjectIdentifierDB(DataSource ds,
String categoryName)
Initialize the new instance with the data source. |
|
ObjectIdentifierDB(String tableQualifier,
DataSource ds)
Initialize the new instance with the given data source. |
|
ObjectIdentifierDB(String tableQualifier,
DataSource ds,
String categoryName)
Initialize the new instance with the data source. |
Method Summary | |
---|---|
int |
getBlockSize()
Returns the block size this generator is using. |
void |
setBlockSize(int newValue)
Set the block size this generator is using. |
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 ObjectIdentifierDB(DataSource ds)
ds
- A valid data source that allows connection to a databasepublic ObjectIdentifierDB(String tableQualifier, DataSource ds)
tableQualifier
- A qualifier that is put in front of the table nameds
- A valid data source that allows connection to a databasepublic ObjectIdentifierDB(DataSource ds, String categoryName)
ds
- A valid data source that allows connection to a databasecategoryName
- The name of the OID's categorypublic ObjectIdentifierDB(String tableQualifier, DataSource ds, String categoryName)
tableQualifier
- A qualifier that is put in front of the table nameds
- A valid data source that allows connection to a databasecategoryName
- The name of the OID's categoryMethod Detail |
---|
public int getBlockSize()
public void setBlockSize(int newValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |