From 4b8aa7687090d79a9eb2123ed48bf26c3d9aed1f Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 5 Dec 2006 02:50:38 +0000 Subject: Added record version number to internal sequence generating Storable. --- RELEASE-NOTES.txt | 4 ++++ src/main/java/com/amazon/carbonado/spi/StoredSequence.java | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index 3ef6f98..7e389f3 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,6 +1,10 @@ Carbonado change history ------------------------ +1.1-BETA5 to 1.1-BETA7 +------------------------------- +- Added record version number to internal sequence generating Storable. + 1.1-BETA5 to 1.1-BETA6 ------------------------------- - Added automatic repair for broken layout metadata. diff --git a/src/main/java/com/amazon/carbonado/spi/StoredSequence.java b/src/main/java/com/amazon/carbonado/spi/StoredSequence.java index 0a5a19e..0685f61 100644 --- a/src/main/java/com/amazon/carbonado/spi/StoredSequence.java +++ b/src/main/java/com/amazon/carbonado/spi/StoredSequence.java @@ -22,6 +22,7 @@ import com.amazon.carbonado.Alias; import com.amazon.carbonado.Independent; import com.amazon.carbonado.PrimaryKey; import com.amazon.carbonado.Storable; +import com.amazon.carbonado.Version; /** * Stores data for {@link SequenceValueGenerator}. @@ -48,4 +49,12 @@ public interface StoredSequence extends Storable { */ long getNextValue(); void setNextValue(long value); + + /** + * Record version number for this StoredSequence instance. Some encoding + * strategies require a version number. + */ + @Version + int getVersionNumber(); + void setVersionNumber(int version); } -- cgit v1.2.3