public class ValueLob extends Value
Value.ValueBlob, Value.ValueClobARRAY, 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 int |
compareSecure(Value v,
CompareMode mode)
Compare the value with another value of the same type.
|
Value |
convertPrecision(long precision,
boolean force)
Convert the precision to the requested value.
|
Value |
convertTo(int t)
Convert a lob to another data type.
|
void |
convertToFileIfRequired(DataHandler h)
Store the lob data to a file if the size of the buffer is larger than the
maximum size for an in-place lob.
|
Value |
copy(DataHandler h,
int tabId)
Copy a large value, to be used in the given table.
|
ValueLob |
copyToTemp()
Create an independent copy of this temporary value.
|
boolean |
equals(Object other)
Check if the two values have the same hash code.
|
byte[] |
getBytes() |
byte[] |
getBytesNoCopy() |
int |
getDisplaySize()
Get the display size in characters.
|
String |
getFileName()
Get the current file name where the lob is saved.
|
InputStream |
getInputStream() |
int |
getMemory()
Get the memory used by this object.
|
Object |
getObject()
Get the value as an object.
|
int |
getObjectId()
Get the current object id of this lob.
|
long |
getPrecision()
Get the precision.
|
Reader |
getReader() |
byte[] |
getSmall()
Get the data if this a small lob value.
|
String |
getSQL()
Get the SQL expression for this value.
|
String |
getString()
Get the value as a string.
|
int |
getTableId()
Get the current table id of this lob.
|
String |
getTraceSQL()
Get a medium size SQL expression for debugging or tracing.
|
int |
getType()
Get the value type.
|
int |
hashCode() |
boolean |
isCompressed()
Check if this lob value is compressed.
|
boolean |
isLinkedToTable()
Check if this value is linked to a specific table.
|
static ValueLob |
openLinked(int type,
DataHandler handler,
int tableId,
int objectId,
long precision,
boolean compression)
Create a LOB value with the given parameters.
|
static ValueLob |
openUnlinked(int type,
DataHandler handler,
int tableId,
int objectId,
long precision,
boolean compression,
String fileName)
Create a LOB value with the given parameters.
|
void |
remove()
Remove the underlying resource, if any.
|
void |
set(PreparedStatement prep,
int parameterIndex)
Set the value as a parameter in a prepared statement.
|
add, checkPrecision, clearCache, compareTo, compareTypeSafe, convertScale, copyToResult, divide, getBigDecimal, getBoolean, getByte, getDataHandler, getDate, getDouble, getFloat, getHigherOrder, getInt, getLong, getResultSet, getScale, getShort, getSignum, getTime, getTimestamp, modulus, multiply, negate, subtract, throwUnsupportedExceptionForType, toStringpublic static ValueLob openLinked(int type, DataHandler handler, int tableId, int objectId, long precision, boolean compression)
type - the data typehandler - the file handlertableId - the table object idobjectId - the object idprecision - the precision (length in elements)compression - if compression is usedpublic static ValueLob openUnlinked(int type, DataHandler handler, int tableId, int objectId, long precision, boolean compression, String fileName)
type - the data typehandler - the file handlertableId - the table object idobjectId - the object idprecision - the precision (length in elements)compression - if compression is usedfileName - the file namepublic Value convertTo(int t)
public boolean isLinkedToTable()
ValueisLinkedToTable 在类中 Valuepublic String getFileName()
public void remove()
Valuepublic Value copy(DataHandler h, int tabId)
Valuepublic int getTableId()
getTableId 在类中 Valuepublic int getObjectId()
public long getPrecision()
ValuegetPrecision 在类中 Valuepublic byte[] getBytesNoCopy()
getBytesNoCopy 在类中 Valueprotected int compareSecure(Value v, CompareMode mode)
ValuecompareSecure 在类中 Valuev - the other valuemode - the compare modepublic InputStream getInputStream()
getInputStream 在类中 Valuepublic void set(PreparedStatement prep, int parameterIndex) throws SQLException
Valueset 在类中 Valueprep - the prepared statementparameterIndex - the parameter indexSQLExceptionpublic String getTraceSQL()
ValuegetTraceSQL 在类中 Valuepublic byte[] getSmall()
public int getDisplaySize()
ValuegetDisplaySize 在类中 Valuepublic boolean equals(Object other)
Valuepublic void convertToFileIfRequired(DataHandler h)
h - the data handlerpublic boolean isCompressed()
public int getMemory()
Valuepublic ValueLob copyToTemp()
copyToTemp 在类中 Valuepublic Value convertPrecision(long precision, boolean force)
ValueconvertPrecision 在类中 Valueprecision - the new precisionforce - true if losing numeric precision is allowedCopyright © 2017. All rights reserved.