public class ValueJavaObject extends ValueBytes
Value.ValueBlob, Value.ValueClob
hash, value
ARRAY, 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(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(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, hashCode
add, 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, toString
protected ValueJavaObject(byte[] v, DataHandler dataHandler)
public static ValueJavaObject getNoCopy(Object javaObject, byte[] b, DataHandler dataHandler)
javaObject
- the objectb
- the byte arraydataHandler
- provides the object serializerpublic int getType()
Value
getType
in class ValueBytes
public void set(PreparedStatement prep, int parameterIndex) throws SQLException
Value
set
in class ValueBytes
prep
- the prepared statementparameterIndex
- the parameter indexSQLException
protected DataHandler getDataHandler()
Value
getDataHandler
in class Value
Copyright © 2020 JBoss by Red Hat. All rights reserved.