From aebf83af8e02c9ff49a4d1ec64632e7137c71963 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 11 Jul 2008 19:15:06 +0000 Subject: Added more aliases. --- .../java/com/amazon/carbonado/sequence/StoredSequence.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/sequence') 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 { - @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 { * 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); -- cgit v1.2.3