ARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, ENUM, FLOAT, GEOMETRY, INT, INTERVAL_DAY, INTERVAL_DAY_TO_HOUR, INTERVAL_DAY_TO_MINUTE, INTERVAL_DAY_TO_SECOND, INTERVAL_HOUR, INTERVAL_HOUR_TO_MINUTE, INTERVAL_HOUR_TO_SECOND, INTERVAL_MINUTE, INTERVAL_MINUTE_TO_SECOND, INTERVAL_MONTH, INTERVAL_SECOND, INTERVAL_YEAR, INTERVAL_YEAR_TO_MONTH, JAVA_OBJECT, LONG, MIN_LONG_DECIMAL, NULL, RESULT_SET, ROW, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TIMESTAMP_TZ, TYPE_COUNT, UNKNOWN, UUIDDUMMY| Modifier | Constructor and Description |
|---|---|
protected |
ValueEnumBase(java.lang.String label,
int ordinal) |
| Modifier and Type | Method and Description |
|---|---|
Value |
add(Value v)
Add a value and return the result.
|
int |
compareTypeSafe(Value v,
CompareMode mode)
Compare this value against another value given that the values are of the
same data type.
|
protected Value |
convertTo(int targetType,
Mode mode,
java.lang.Object column,
ExtTypeInfo extTypeInfo)
Convert a value to the specified type.
|
Value |
divide(Value v)
Divide by a value and return the result.
|
boolean |
equals(java.lang.Object other)
Check if the two values have the same hash code.
|
static ValueEnumBase |
get(java.lang.String label,
int ordinal)
Get or create an enum value with the given label and ordinal.
|
int |
getInt() |
long |
getLong() |
int |
getMemory()
Get the memory used by this object.
|
java.lang.Object |
getObject()
Get the value as an object.
|
int |
getSignum() |
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder)
Appends the SQL expression for this value to the specified builder.
|
java.lang.String |
getString()
Get the value as a string.
|
TypeInfo |
getType()
Returns the data type.
|
int |
getValueType()
Get the value type.
|
int |
hashCode() |
Value |
modulus(Value v)
Take the modulus with a value and return the result.
|
Value |
multiply(Value v)
Multiply with a value and return the result.
|
void |
set(java.sql.PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement.
|
Value |
subtract(Value v)
Subtract a value and return the result.
|
checkPrecision, clearCache, compareTo, compareWithNull, containsNull, convertPrecision, convertScale, convertTo, convertTo, convertTo, convertToInt, copy, copyToResult, copyToTemp, getBigDecimal, getBoolean, getByte, getBytes, getBytesNoCopy, getDataHandler, getDate, getDouble, getFloat, getHigherOrder, getHigherType, getInputStream, getInputStream, getReader, getReader, getResult, getShort, getSmall, getSQL, getTableId, getTime, getTimestamp, getTraceSQL, getUnsupportedExceptionForOperation, isLinkedToTable, negate, remove, toStringgetCommittedValue, getCurrentValue, getOperationId, isCommittedpublic Value add(Value v)
Valuepublic int compareTypeSafe(Value v, CompareMode mode)
ValuecompareTypeSafe in class Valuev - the other valuemode - the compare modepublic Value divide(Value v)
Valuepublic boolean equals(java.lang.Object other)
Valuepublic static ValueEnumBase get(java.lang.String label, int ordinal)
label - the labelordinal - the ordinalpublic java.lang.Object getObject()
Valuepublic java.lang.StringBuilder getSQL(java.lang.StringBuilder builder)
Valuepublic java.lang.String getString()
Valuepublic int getValueType()
ValuegetValueType in class Valuepublic int getMemory()
Valuepublic Value modulus(Value v)
Valuepublic Value multiply(Value v)
Valuepublic void set(java.sql.PreparedStatement prep,
int parameterIndex)
throws java.sql.SQLException
Valuepublic Value subtract(Value v)
Valueprotected Value convertTo(int targetType, Mode mode, java.lang.Object column, ExtTypeInfo extTypeInfo)
Value