public class ValueJavaObject extends ValueBytes
Value.ValueBlob, Value.ValueClobhash, valueARRAY, 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| 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.
|
int |
getType()
Get the value type.
|
void |
set(java.sql.PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement.
|
compareSecure, convertPrecision, equals, get, getBytes, getBytesNoCopy, getDisplaySize, getMemory, getNoCopy, getObject, getPrecision, getSQL, getString, hashCodeadd, checkPrecision, clearCache, compareTo, compareTypeSafe, convertScale, convertTo, convertTo, convertTo, convertToEnum, copy, copyToResult, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInputStream, getInt, getLong, getReader, getReader, getResultSet, getScale, getShort, getSignum, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isLinkedToTable, modulus, multiply, negate, remove, subtract, throwUnsupportedExceptionForType, toStringprotected 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 int getType()
ValuegetType 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