|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.SequenceConfig
public class SequenceConfig
Specifies the attributes of a sequence.
Field Summary | |
---|---|
static SequenceConfig |
DEFAULT
Default configuration used if null is passed to methods that create a cursor. |
Constructor Summary | |
---|---|
SequenceConfig()
An instance created using the default constructor is initialized with the system's default settings. |
Method Summary | |
---|---|
boolean |
getAllowCreate()
Returns true if the Database.openSequence method is configured to create the sequence if it
does not already exist. |
boolean |
getAutoCommitNoSync()
Returns true if the auto-commit operations on the sequence are configure to not flush the transaction log.. |
int |
getCacheSize()
Returns the number of elements cached by a sequence handle.. |
boolean |
getDecrement()
Returns true if the sequence is configured to decrement. |
boolean |
getExclusiveCreate()
Returns true if the Database.openSequence method is configured to fail if the database
already exists. |
long |
getInitialValue()
Returns the initial value for a sequence.. |
long |
getRangeMax()
Returns the maximum value for the sequence. |
long |
getRangeMin()
Returns the minimum value for the sequence. |
boolean |
getWrap()
Returns true if the sequence will wrap around when it is incremented (decremented) past the specified maximum (minimum) value. |
void |
setAllowCreate(boolean allowCreate)
Configures the Database.openSequence method to create the sequence if it does not
already exist. |
void |
setAutoCommitNoSync(boolean autoCommitNoSync)
Configures auto-commit operations on the sequence to not flush the transaction log. |
void |
setCacheSize(int cacheSize)
Set the Configure the number of elements cached by a sequence handle. |
void |
setDecrement(boolean decrement)
Specifies that the sequence should be decremented. |
void |
setExclusiveCreate(boolean exclusiveCreate)
Configures the Database.openSequence method to fail if the database already exists. |
void |
setInitialValue(long initialValue)
Sets the initial value for a sequence. |
void |
setRange(long min,
long max)
Configures a sequence range. |
void |
setWrap(boolean wrap)
Specifies that the sequence should wrap around when it is incremented (decremented) past the specified maximum (minimum) value. |
java.lang.String |
toString()
Returns the values for each configuration attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final SequenceConfig DEFAULT
Constructor Detail |
---|
public SequenceConfig()
Method Detail |
---|
public void setAllowCreate(boolean allowCreate)
Database.openSequence
method to create the sequence if it does not
already exist.
This method may be called at any time during the life of the application.
allowCreate
- If true, configure the Database.openSequence
method to
create the sequence if it does not already exist.public boolean getAllowCreate()
Database.openSequence
method is configured to create the sequence if it
does not already exist.
This method may be called at any time during the life of the application.
Database.openSequence
method is configured to create the sequence if it
does not already exist.public void setCacheSize(int cacheSize)
This method may be called at any time during the life of the application.
cacheSize
- The Configure the number of elements cached by a
sequence handle.public int getCacheSize()
This method may be called at any time during the life of the application.
public void setDecrement(boolean decrement)
This method may be called at any time during the life of the application.
decrement
- If true, specify that the sequence should be
decremented.public boolean getDecrement()
This method may be called at any time during the life of the application.
public void setExclusiveCreate(boolean exclusiveCreate)
Database.openSequence
method to fail if the database already exists.
This method may be called at any time during the life of the application.
exclusiveCreate
- If true, configure the Database.openSequence
method to
fail if the database already exists.public boolean getExclusiveCreate()
Database.openSequence
method is configured to fail if the database
already exists.
This method may be called at any time during the life of the application.
Database.openSequence
method is configured to fail if the database
already exists.public void setInitialValue(long initialValue)
This call is only effective when the sequence is being created.
This method may be called at any time during the life of the application.
initialValue
- The Set the initial value for a sequence.public long getInitialValue()
This method may be called at any time during the life of the application.
public void setAutoCommitNoSync(boolean autoCommitNoSync)
This method may be called at any time during the life of the application.
autoCommitNoSync
- If true, configure auto-commit operations on
the sequence to not flush the transaction log.public boolean getAutoCommitNoSync()
This method may be called at any time during the life of the application.
public void setRange(long min, long max)
min
- The minimum value for the sequence.max
- The maximum value for the sequence.public long getRangeMin()
This method may be called at any time during the life of the application.
public long getRangeMax()
This method may be called at any time during the life of the application.
public void setWrap(boolean wrap)
This method may be called at any time during the life of the application.
wrap
- If true, specify that the sequence should wrap around when
it is incremented (decremented) past the specified maximum (minimum)
value.public boolean getWrap()
This method may be called at any time during the life of the application.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |