summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-07-11 19:15:06 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-07-11 19:15:06 +0000
commitaebf83af8e02c9ff49a4d1ec64632e7137c71963 (patch)
treef9dd145e4de75b2fc056bbc434592073a9b5b231 /src/main
parentbda542ef059c3e73eaca5bb112fe740616682d0a (diff)
Added more aliases.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/amazon/carbonado/sequence/StoredSequence.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/com/amazon/carbonado/sequence/StoredSequence.java b/src/main/java/com/amazon/carbonado/sequence/StoredSequence.java
index d09a702..ff20fc8 100644
--- a/src/main/java/com/amazon/carbonado/sequence/StoredSequence.java
+++ b/src/main/java/com/amazon/carbonado/sequence/StoredSequence.java
@@ -44,16 +44,19 @@ import com.amazon.carbonado.Version;
@PrimaryKey("name")
@Authoritative
@Independent
-@Alias("CARBONADO_SEQUENCE")
+@Alias({
+ "CARBONADO_SEQUENCE", "Carbonado_Sequence", "carbonado_sequence",
+ "CarbonadoSequence", "carbonadoSequence"
+})
public interface StoredSequence extends Storable<StoredSequence> {
- @Alias("NAME")
+ @Alias({"NAME", "Name", "name"})
String getName();
void setName(String name);
/**
* Returns the initial value for the sequence.
*/
- @Alias("INITIAL_VALUE")
+ @Alias({"INITIAL_VALUE", "Initial_Value", "initial_value", "InitialValue", "initialValue"})
long getInitialValue();
void setInitialValue(long value);
@@ -62,10 +65,11 @@ public interface StoredSequence extends Storable<StoredSequence> {
* initially Long.MIN_VALUE, and it increments up to Long.MAX_VALUE. The actual
* next value for the sequence is: (getNextValue() + Long.MIN_VALUE + getInitialValue()).
*/
- @Alias("NEXT_VALUE")
+ @Alias({"NEXT_VALUE", "Next_Value", "next_value", "NextValue", "nextValue"})
long getNextValue();
void setNextValue(long value);
+ @Alias({"VERSION", "Version", "version"})
@Version
int getVersion();
void setVersion(int version);