public class ValueJavaObject extends ValueBytes
Value.ValueBlob, Value.ValueClobhash, valueARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, GEOMETRY, INT, JAVA_OBJECT, LONG, NULL, RESULT_SET, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TIMESTAMP_TZ, TYPE_COUNT, UNKNOWN, UUID| 限定符 | 构造器和说明 |
|---|---|
protected |
ValueJavaObject(byte[] v,
DataHandler dataHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, hashCodeadd, checkPrecision, clearCache, compareTo, compareTypeSafe, convertScale, convertTo, copy, copyToResult, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInt, getLong, 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(Object javaObject, byte[] b, DataHandler dataHandler)
javaObject - the objectb - the byte arraydataHandler - provides the object serializerpublic int getType()
ValuegetType 在类中 ValueBytespublic void set(PreparedStatement prep, int parameterIndex) throws SQLException
Valueset 在类中 ValueBytesprep - the prepared statementparameterIndex - the parameter indexSQLExceptionprotected DataHandler getDataHandler()
ValuegetDataHandler 在类中 ValueCopyright © 2017. All rights reserved.