public class ValueJavaObject extends ValueBytes
hash, type, valueARRAY, 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, JSON, LONG, MIN_LONG_DECIMAL, NULL, RESULT_SET, ROW, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIME_TZ, TIMESTAMP, TIMESTAMP_TZ, TYPE_COUNT, UNKNOWN, UUIDDUMMY| Modifier | Constructor and Description |
|---|---|
protected |
ValueJavaObject(byte[] v,
DataHandler dataHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected DataHandler |
getDataHandler()
Return the data handler for the values that support it
(actually only Java objects).
|
static ValueJavaObject |
getNoCopy(java.lang.Object javaObject,
byte[] b,
DataHandler dataHandler)
Get or create a java object value for the given byte array.
|
TypeInfo |
getType()
Returns the data type.
|
int |
getValueType()
Get the value type.
|
void |
set(java.sql.PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement.
|
compareTypeSafe, convertPrecision, equals, get, getBytes, getBytesNoCopy, getMemory, getNoCopy, getObject, getSQL, getString, hashCodeadd, checkPrecision, clearCache, compareTo, compareWithNull, containsNull, convertScale, convertTo, convertTo, convertTo, convertTo, convertToInt, copy, copyToResult, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getDate, getDouble, getFloat, getHigherOrder, getHigherType, getInputStream, getInputStream, getInt, getLong, getReader, getReader, getResult, getShort, getSignum, getSmall, getSQL, getTableId, getTime, getTimestamp, getTraceSQL, getUnsupportedExceptionForOperation, isLinkedToTable, modulus, multiply, negate, remove, subtract, toStringgetCommittedValue, getCurrentValue, getOperationId, isCommittedprotected ValueJavaObject(byte[] v,
DataHandler dataHandler)
public static ValueJavaObject getNoCopy(java.lang.Object javaObject, byte[] b, DataHandler dataHandler)
javaObject - the objectb - the byte arraydataHandler - provides the object serializerpublic TypeInfo getType()
ValuegetType in class ValueBytespublic int getValueType()
ValuegetValueType in class ValueBytespublic void set(java.sql.PreparedStatement prep,
int parameterIndex)
throws java.sql.SQLException
Valueset in class ValueBytesprep - the prepared statementparameterIndex - the parameter indexjava.sql.SQLExceptionprotected DataHandler getDataHandler()
ValuegetDataHandler in class Value