|
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.bea.p13n.util.jdbc.Sequencer
and com.bea.p13n.util.jdbc.SequencerFactory
This file contains an interface for a unique number sequencer. A sequencer can be used to generate a sequence of unique long numbers.
Sequencer,
SequencerFactory| Method Summary | |
long |
getCacheSize()
Deprecated. Returns the cache size. |
long |
getCurrent(Connection databaseConnection)
Deprecated. Gets the current sequence number associated with this sequencer. |
long |
getIncrementAmount()
Deprecated. Replaced by getCacheSize |
long |
getNext(Connection databaseConnection)
Deprecated. Gets the next sequence number using the supplied database connection. |
String |
getSequenceName()
Deprecated. Returns the name of the sequence that is managed by this sequencer. |
String |
getSequencerName()
Deprecated. Returns the name of this sequencer. |
long |
getStepSize()
Deprecated. Returns the step size. |
void |
setCacheSize(long cacheSize)
Deprecated. Sets the cache size. |
void |
setIncrementAmount(long incrementAmount)
Deprecated. Replaced by setCacheSize |
void |
setSequenceName(String sequenceName)
Deprecated. Sets the name of the sequence that is managed by this sequencer. |
void |
setSequencerName(String sequencerName)
Deprecated. Sets the name of this sequencer. |
void |
setStepSize(long stepSize)
Deprecated. Sets the step size. |
| Method Detail |
public long getCacheSize()
public long getCurrent(Connection databaseConnection)
throws SQLException
databaseConnection - The database connection used to
generate the next sequence number.
SQLException - on error.
SQLExceptionpublic long getIncrementAmount()
getCacheSize()
public long getNext(Connection databaseConnection)
throws SQLException
databaseConnection - The database connection used to
generate the next sequence number.
SQLException - on error.
SQLExceptionpublic String getSequenceName()
public String getSequencerName()
public long getStepSize()
getNext().
public void setCacheSize(long cacheSize)
cacheSize - The cache size.public void setIncrementAmount(long incrementAmount)
incrementAmount - The increment amount.setCacheSize(long)public void setSequenceName(String sequenceName)
sequenceName - The new sequence name.public void setSequencerName(String sequencerName)
sequencerName - The new sequencer name.public void setStepSize(long stepSize)
getNext().
stepSize - The step size.
|
© 2004 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||