diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2010-02-17 18:14:17 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2010-02-17 18:14:17 +0000 |
commit | 718eb5e99395f3c9f216fb7421d33a6a58cca4c6 (patch) | |
tree | 3c864d1e131058047bed09f8a2fdc61ed614ec9e /src/main/java/com/amazon/carbonado/repo/jdbc | |
parent | 2660d432679914d58c466d2e6cb5d824d5cb24ac (diff) |
Add PartitionKey annotation.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java index cecd7a9..336f111 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -1,5 +1,5 @@ /*
- * Copyright 2006 Amazon Technologies, Inc. or its affiliates.
+ * Copyright 2006-2010 Amazon Technologies, Inc. or its affiliates.
* Amazon, Amazon.com and Carbonado are trademarks or registered trademarks
* of Amazon Technologies, Inc. or its affiliates. All rights reserved.
*
@@ -74,6 +74,7 @@ import com.amazon.carbonado.info.StorablePropertyConstraint; * @author Brian S O'Neill
* @author Adam D Bradley
* @author Tobias Holgers
+ * @author Archit Shivaprakash
*/
public class JDBCStorableIntrospector extends StorableIntrospector {
// Maps compound keys to softly referenced JDBCStorableInfo objects.
@@ -1061,6 +1062,10 @@ public class JDBCStorableIntrospector extends StorableIntrospector { return mMainInfo.getAlternateKeys();
}
+ public StorableKey<S> getPartitionKey() {
+ return mMainInfo.getPartitionKey();
+ }
+
public int getAliasCount() {
return mMainInfo.getAliasCount();
}
@@ -1302,6 +1307,10 @@ public class JDBCStorableIntrospector extends StorableIntrospector { return mMainProperty.isAlternateKeyMember();
}
+ public boolean isPartitionKeyMember() {
+ return mMainProperty.isPartitionKeyMember();
+ }
+
public int getAliasCount() {
return mMainProperty.getAliasCount();
}
|