Diff of /incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/types/NumberDataType.java
Parent Directory
| Revision Log
| Patch
--- incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/types/NumberDataType.java 2005/05/05 18:12:45 168364
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/iapi/types/NumberDataType.java 2005/05/05 18:19:40 168365
@@ -362,7 +362,30 @@ public abstract class NumberDataType ext
* For positive values or null, return false.
*/
protected abstract boolean isNegative();
-
+
+ /**
+ * Common code to handle converting a short to this value
+ * by using the int to this value conversion.
+ * Simply calls setValue(int).
+ *
+ */
+ public void setValue(short theValue)
+ throws StandardException
+ {
+ setValue((int) theValue);
+ }
+
+ /**
+ * Common code to handle converting a byte to this value
+ * by using the int to this value conversion.
+ * Simply calls setValue(int).
+ *
+ */
+ public void setValue(byte theValue)
+ throws StandardException
+ {
+ setValue((int) theValue);
+ }
/**
Common code to handle java.lang.Integer as a Number,
used for TINYINT, SMALLINT, INTEGER