|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PrimaryKey(value="name")
@Authoritative
@Independent
@Alias(value={"CARBONADO_SEQUENCE","Carbonado_Sequence","carbonado_sequence","CarbonadoSequence","carbonadoSequence"})
public interface StoredSequence
Stores data for SequenceValueGenerator. To use with JDBC repository,
create a table like so:
CREATE TABLE CARBONADO_SEQUENCE (
NAME VARCHAR(100) PRIMARY KEY,
INITIAL_VALUE BIGINT NOT NULL,
NEXT_VALUE BIGINT NOT NULL,
VERSION INT NOT NULL
)
| Method Summary | |
|---|---|
long |
getInitialValue()
Returns the initial value for the sequence. |
String |
getName()
|
long |
getNextValue()
Returns the pre-adjusted next value of the sequence. |
int |
getVersion()
|
void |
setInitialValue(long value)
|
void |
setName(String name)
|
void |
setNextValue(long value)
|
void |
setVersion(int version)
|
| Methods inherited from interface com.amazon.carbonado.Storable |
|---|
copy, copyAllProperties, copyDirtyProperties, copyPrimaryKeyProperties, copyUnequalProperties, copyVersionProperty, delete, equalPrimaryKeys, equalProperties, equals, getPropertyValue, hasDirtyProperties, hashCode, insert, isPropertyClean, isPropertyDirty, isPropertySupported, isPropertyUninitialized, load, markAllPropertiesClean, markAllPropertiesDirty, markPropertiesClean, markPropertiesDirty, prepare, propertyMap, readFrom, setPropertyValue, storableType, toString, toStringKeyOnly, tryDelete, tryInsert, tryLoad, tryUpdate, update, writeTo |
| Method Detail |
|---|
@Alias(value={"NAME","Name","name"})
String getName()
void setName(String name)
@Alias(value={"INITIAL_VALUE","Initial_Value","initial_value","InitialValue","initialValue"})
long getInitialValue()
void setInitialValue(long value)
@Alias(value={"NEXT_VALUE","Next_Value","next_value","NextValue","nextValue"})
long getNextValue()
void setNextValue(long value)
@Alias(value={"VERSION","Version","version"})
@Version
int getVersion()
void setVersion(int version)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||