summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-10-10 16:04:43 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-10-10 16:04:43 +0000
commit05c90ed8236a4c4b3263f57855a764344aee6dca (patch)
treea642b89f20bbea0654a5ffb66886663a66da6399 /src/main
parent9ea72459615845171ca1734e5fed14651d99eb99 (diff)
Allow unsigned integer types to be represented by next larger Java primitive type.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java9
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";