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