From 05c90ed8236a4c4b3263f57855a764344aee6dca Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Fri, 10 Oct 2008 16:04:43 +0000 Subject: Allow unsigned integer types to be represented by next larger Java primitive type. --- .../com/amazon/carbonado/repo/jdbc/JDBCStorableIntrospector.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java') 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"; -- cgit v1.2.3