public class ValueJavaObject extends ValueBytes
Value.ValueBlob, Value.ValueClob
ARRAY, BLOB, BOOLEAN, BYTE, BYTES, CLOB, DATE, DECIMAL, DOUBLE, FLOAT, INT, JAVA_OBJECT, LONG, NULL, RESULT_SET, SHORT, STRING, STRING_FIXED, STRING_IGNORECASE, TIME, TIMESTAMP, TYPE_COUNT, UNKNOWN, UUID
Modifier | Constructor and Description |
---|---|
protected |
ValueJavaObject(byte[] v) |
Modifier and Type | Method and Description |
---|---|
static ValueJavaObject |
getNoCopy(byte[] b)
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, getObject, getPrecision, getSQL, getString, hashCode
add, checkPrecision, clearCache, close, compareTo, compareTypeSave, convertScale, convertTo, copyToTemp, divide, getBigDecimal, getBoolean, getByte, getDate, getDouble, getFloat, getHigherOrder, getInputStream, getInt, getLong, getReader, getResultSet, getScale, getShort, getSignum, getSmall, getTableId, getTime, getTimestamp, getTraceSQL, isFileBased, isLinked, link, modulus, multiply, negate, subtract, throwUnsupportedExceptionForType, toString, unlink
public static ValueJavaObject getNoCopy(byte[] b)
b
- the byte arraypublic 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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.