DEPRECATED Use 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.
Related Topics
com.beasys.commerce.util.JDBCSequencer
Method Summary |
public long |
|
public long |
|
public long |
|
public long |
|
public |
|
public |
|
public long |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
Method Detail |
public long getCacheSize()Returns the cache size. The cache size defines how often the sequencer will allocate a block of unique sequence numbers from the database. When the sequencer exhausts its supplied of allocated numbers, it will allocate a new sequence of numbers from the database.
public long getCurrent(Gets the current sequence number associated with this sequencer.Connection
databaseConnection)
throwsSQLException
SQLException
DEPRECATED Replaced by getCacheSize
public long getIncrementAmount()Returns the increment amount. The increment amount defines how often the sequencer will allocate a block of unique sequence numbers from the database. When the sequencer exhausts its supplied of allocated numbers, it will allocate a new sequence of numbers from the database.
Related Topics
public long getNext(Gets the next sequence number using the supplied database connection.Connection
databaseConnection)
throwsSQLException
SQLException
public String
getSequenceName()
Returns the name of the sequence that is managed by this sequencer.
public String
getSequencerName()
Returns the name of this sequencer.
public long getStepSize()Returns the step size. The step size determines the difference between the values returned from successive calls to
getNext()
.
public void setCacheSize(long cacheSize)Sets the cache size. The cache size defines how often the sequencer will allocate a block of unique sequence numbers from the database. When the sequencer exhausts its supplied of allocated numbers, it will allocate a new sequence of numbers from the database.
DEPRECATED Replaced by setCacheSize
public void setIncrementAmount(long incrementAmount)Sets the increment amount. The increment amount defines how often the sequencer will allocate a block of unique sequence numbers from the database. When the sequencer exhausts its supplied of allocated numbers, it will allocate a new sequence of numbers from the database.
Related Topics
public void setSequenceName(String
sequenceName)
Sets the name of the sequence that is managed by this sequencer.
public void setSequencerName(String
sequencerName)
Sets the name of this sequencer.
public void setStepSize(long stepSize)Sets the step size. The step size determines the difference between the values returned from successive calls to
getNext()
.