|
Berkeley DB version 5.2.36 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.SequenceConfig
public class SequenceConfig
Specify 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()
Return true if the Database.openSequence method is configured
to create the sequence if it does not already exist. |
boolean |
getAutoCommitNoSync()
Return true if the auto-commit operations on the sequence are configure to not flush the transaction log.. |
int |
getCacheSize()
Return the number of elements cached by a sequence handle.. |
boolean |
getDecrement()
Return true if the sequence is configured to decrement. |
boolean |
getExclusiveCreate()
Return true if the Database.openSequence method is configured to
fail if the database already exists. |
long |
getInitialValue()
Return the initial value for a sequence.. |
long |
getRangeMax()
Return the maximum value for the sequence. |
long |
getRangeMin()
Return the minimum value for the sequence. |
boolean |
getWrap()
Return true if the sequence will wrap around when it is incremented (decremented) past the specified maximum (minimum) value. |
void |
setAllowCreate(boolean allowCreate)
Configure the Database.openSequence method to
create the sequence if it does not already exist. |
void |
setAutoCommitNoSync(boolean autoCommitNoSync)
Configure 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)
Specify that the sequence should be decremented. |
void |
setExclusiveCreate(boolean exclusiveCreate)
Configure the Database.openSequence method to
fail if the database already exists. |
void |
setInitialValue(long initialValue)
Set the Set the initial value for a sequence. |
void |
setRange(long min,
long max)
Configure a sequence range. |
void |
setWrap(boolean wrap)
Specify that the sequence should wrap around when it is incremented (decremented) past the specified maximum (minimum) value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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.
|
Berkeley DB version 5.2.36 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |