public static class TestCustomDataTypesHandler.ValueComplex extends Value
Value.ValueBlob, Value.ValueClobARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, ENUM, FLOAT, GEOMETRY, INT, JAVA_OBJECT, LONG, NULL, RESULT_SET, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TIMESTAMP_TZ, TYPE_COUNT, UNKNOWN, UUID| Constructor and Description |
|---|
ValueComplex(TestCustomDataTypesHandler.ComplexNumber val) |
| Modifier and Type | Method and Description |
|---|---|
Value |
add(Value value)
Add a value and return the result.
|
protected int |
compareSecure(Value v,
CompareMode mode)
Compare the value with another value of the same type.
|
Value |
convertTo(int targetType)
Compare a value to the specified type.
|
boolean |
equals(java.lang.Object other)
Check if the two values have the same hash code.
|
static TestCustomDataTypesHandler.ValueComplex |
get(TestCustomDataTypesHandler.ComplexNumber val)
Get ValueComplex instance for given ComplexNumber.
|
int |
getDisplaySize()
Get the display size in characters.
|
java.lang.Object |
getObject()
Get the value as an object.
|
long |
getPrecision()
Get the precision.
|
java.lang.String |
getSQL()
Get the SQL expression for this value.
|
java.lang.String |
getString()
Get the value as a string.
|
int |
getType()
Get the value type.
|
int |
hashCode() |
void |
set(java.sql.PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement.
|
checkPrecision, clearCache, compareTo, compareTypeSafe, convertPrecision, convertScale, convertTo, convertTo, convertToEnum, copy, copyToResult, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getBytes, getBytesNoCopy, getDataHandler, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInputStream, getInt, getLong, getMemory, getReader, getReader, getResultSet, getScale, getShort, getSignum, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isLinkedToTable, modulus, multiply, negate, remove, subtract, throwUnsupportedExceptionForType, toStringpublic ValueComplex(TestCustomDataTypesHandler.ComplexNumber val)
val - complex numberpublic static TestCustomDataTypesHandler.ValueComplex get(TestCustomDataTypesHandler.ComplexNumber val)
val - complex numberpublic java.lang.String getSQL()
Valuepublic int getType()
Valuepublic long getPrecision()
ValuegetPrecision in class Valuepublic int getDisplaySize()
ValuegetDisplaySize in class Valuepublic java.lang.String getString()
Valuepublic java.lang.Object getObject()
Valuepublic void set(java.sql.PreparedStatement prep,
int parameterIndex)
throws java.sql.SQLException
Valueprotected int compareSecure(Value v, CompareMode mode)
ValuecompareSecure in class Valuev - the other valuemode - the compare modepublic boolean equals(java.lang.Object other)
Valuepublic Value convertTo(int targetType)
Value