|
|||||||||
| 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(javax.sql.DataSource ds)
Initialize the new instance with the given data source. |
|
ObjectIdentifierDB(javax.sql.DataSource ds,
java.lang.String categoryName)
Initialize the new instance with the data source. |
|
ObjectIdentifierDB(java.lang.String tableQualifier,
javax.sql.DataSource ds)
Initialize the new instance with the given data source. |
|
ObjectIdentifierDB(java.lang.String tableQualifier,
javax.sql.DataSource ds,
java.lang.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 |
|---|
getLength, getPadChar, getPrefix, 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(javax.sql.DataSource ds)
ds - A valid data source that allows connection to a database
public ObjectIdentifierDB(java.lang.String tableQualifier,
javax.sql.DataSource ds)
tableQualifier - A qualifier that is put in front of the table nameds - A valid data source that allows connection to a database
public ObjectIdentifierDB(javax.sql.DataSource ds,
java.lang.String categoryName)
ds - A valid data source that allows connection to a databasecategoryName - The name of the OID's category
public ObjectIdentifierDB(java.lang.String tableQualifier,
javax.sql.DataSource ds,
java.lang.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 category| Method 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 | ||||||||