ValueShort

Implementation of the SMALLINT data type.

Methods
static ValueShort get(short i)
Get or create a short value for the given short.
static ValueShort get(short i)
Get or create a short value for the given short.
Parameters:
i - the short
Returns:
the value
Value add(Value v)
Value add(Value v)
int compareSecure(Value o, CompareMode mode)
int compareSecure(Value o, CompareMode mode)
Value divide(Value v)
Value divide(Value v)
boolean equals(Object other)
boolean equals(Object other)
int getDisplaySize()
int getDisplaySize()
int getInt()
int getInt()
Object getObject()
Object getObject()
long getPrecision()
long getPrecision()
String getSQL()
String getSQL()
short getShort()
short getShort()
int getSignum()
int getSignum()
String getString()
String getString()
int getType()
int getType()
int hashCode()
int hashCode()
Value modulus(Value v)
Value modulus(Value v)
Value multiply(Value v)
Value multiply(Value v)
Value negate()
Value negate()
void set(PreparedStatement prep, int parameterIndex)
void set(PreparedStatement prep, int parameterIndex) throws SQLException
Value subtract(Value v)
Value subtract(Value v)

Fields
static int DISPLAY_SIZE = 6
static int PRECISION = 5

PRECISION = 5

The precision in digits.

DISPLAY_SIZE = 6

The maximum display size of a short. Example: -32768