diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-10-10 16:04:43 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-10-10 16:04:43 +0000 |
commit | 05c90ed8236a4c4b3263f57855a764344aee6dca (patch) | |
tree | a642b89f20bbea0654a5ffb66886663a66da6399 /src/main/java/com/amazon/carbonado/repo/jdbc | |
parent | 9ea72459615845171ca1734e5fed14651d99eb99 (diff) |
Allow unsigned integer types to be represented by next larger Java primitive type.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 9 |
1 files changed, 9 insertions, 0 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 9809e69..0403fbf 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java @@ -645,6 +645,9 @@ public class JDBCStorableIntrospector extends StorableIntrospector { if (desiredClass == byte.class) {
actualClass = byte.class;
suffix = "Byte";
+ } else if (desiredClass == short.class) {
+ actualClass = short.class;
+ suffix = "Short";
} else if (desiredClass == String.class) {
actualClass = String.class;
suffix = "String";
@@ -657,6 +660,9 @@ public class JDBCStorableIntrospector extends StorableIntrospector { if (desiredClass == short.class) {
actualClass = short.class;
suffix = "Short";
+ } else if (desiredClass == int.class) {
+ actualClass = int.class;
+ suffix = "Int";
} else if (desiredClass == String.class) {
actualClass = String.class;
suffix = "String";
@@ -669,6 +675,9 @@ public class JDBCStorableIntrospector extends StorableIntrospector { if (desiredClass == int.class) {
actualClass = int.class;
suffix = "Int";
+ } else if (desiredClass == long.class) {
+ actualClass = long.class;
+ suffix = "Long";
} else if (desiredClass == String.class) {
actualClass = String.class;
suffix = "String";
|