@PrimaryKey(value="name") @Authoritative @Independent @Alias(value={"CARBONADO_SEQUENCE","Carbonado_Sequence","carbonado_sequence","CarbonadoSequence","carbonadoSequence"}) public interface StoredSequence extends Storable<StoredSequence>
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
)
| Modifier and Type | Method and Description |
|---|---|
long |
getInitialValue()
Returns the initial value for the sequence.
|
java.lang.String |
getName() |
long |
getNextValue()
Returns the pre-adjusted next value of the sequence.
|
int |
getVersion() |
void |
setInitialValue(long value) |
void |
setName(java.lang.String name) |
void |
setNextValue(long value) |
void |
setVersion(int version) |
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, writeTovoid setName(java.lang.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)
void setVersion(int version)
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.