|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| 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
@Deprecated public interface Sequencer
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 |
|---|
long getNext(Connection databaseConnection)
throws SQLException
databaseConnection - The database connection used to
generate the next sequence number.
SQLException - on error.
SQLException
long getCurrent(Connection databaseConnection)
throws SQLException
databaseConnection - The database connection used to
generate the next sequence number.
SQLException - on error.
SQLExceptionlong getIncrementAmount()
getCacheSize()void setIncrementAmount(long incrementAmount)
incrementAmount - The increment amount.setCacheSize(long)long getCacheSize()
void setCacheSize(long cacheSize)
cacheSize - The cache size.long getStepSize()
getNext().
void setStepSize(long stepSize)
getNext().
stepSize - The step size.String getSequencerName()
void setSequencerName(String sequencerName)
sequencerName - The new sequencer name.String getSequenceName()
void setSequenceName(String sequenceName)
sequenceName - The new sequence name.
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||