public class LOBType extends BaseDataType
DataType.BinaryRepresentation, DataType.ExactNumeric, DataType.NonFixedPrecision| Constructor and Description |
|---|
LOBType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(java.lang.Object value)
Return
true if a field of my type can be assigned the given non-
null value , false otherwise. |
java.lang.Object |
convert(java.lang.Object value)
Converts an
acceptablevalue to one of the appropriate type. |
int |
getColumnDisplaySize()
Value returned by
ResultSetMetaData#getColumnDisplaySizefor this data
type. |
int |
getJdbcType()
Returns the JDBC
type codemost closely matching this type. |
java.io.File |
getLobDir() |
protected BufferedDataInputStream |
getLobFile() |
short |
getSearchableCode()
Code indicating how much
WHERE ... |
boolean |
isCaseSensitive()
For character and string-related types, indicates whether type acknowledges case
when storing and retrieving values
|
protected BlobSource |
makeBlobSource(LobLocator loc) |
protected ClobSource |
makeClobSource(LobLocator loc) |
DataType |
makeNewInstance()
Creates a new instance of this DataType implementation.
|
java.lang.Object |
read(java.io.DataInput in)
Instantiate an object of my type from the given
DataInput. |
void |
setLobDir(java.io.File lobDir) |
java.sql.Blob |
toBlob(java.lang.Object value)
|
java.sql.Clob |
toClob(java.lang.Object value)
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.Object value)
|
void |
write(java.lang.Object value,
java.io.DataOutput out)
Write an object of my type to the given
DataOutput. |
protected LobLocator |
writeByteArrayBlob(ByteArrayBlob value) |
protected LobLocator |
writeStringClob(StringClob value) |
compare, getComparator, getLiteralPrefix, getLiteralSuffix, getNullableCode, getPrecision, getPrecisionRadix, getPreferredValueClassName, getScale, isCurrency, isUnsigned, successor, supportsSuccessor, toBigDecimal, toBigInteger, toBoolean, toByte, toByteArray, toDate, toDouble, toFloat, toInt, toLong, toNumber, toShort, toTime, toTimestamp, toURLpublic int getJdbcType()
DataTypetype codemost closely matching this type.getJdbcType in interface DataTypegetJdbcType in class BaseDataTypepublic boolean isCaseSensitive()
DataTypeisCaseSensitive in interface DataTypeisCaseSensitive in class BaseDataTypeDatabaseMetaData.getTypeInfo(),
ResultSetMetaData.isCaseSensitive(int)public boolean accepts(java.lang.Object value)
DataTypetrue if a field of my type can be assigned the given non-
null value , false otherwise.accepts in interface DataTypeaccepts in class BaseDataTypevalue - non- null valuepublic int getColumnDisplaySize()
DataTypeResultSetMetaData#getColumnDisplaySizefor this data
type.getColumnDisplaySize in interface DataTypegetColumnDisplaySize in class BaseDataTypeResultSetMetaData.getColumnDisplaySize(int)public java.lang.Object convert(java.lang.Object value)
throws java.lang.IllegalArgumentException
DataTypeacceptablevalue to one of the appropriate type.convert in interface DataTypeconvert in class BaseDataTypejava.lang.IllegalArgumentExceptionpublic java.sql.Blob toBlob(java.lang.Object value)
throws AxionException
DataTypetoBlob in interface DataTypetoBlob in class BaseDataTypeAxionExceptionResultSet.getBlob(int)public java.sql.Clob toClob(java.lang.Object value)
throws AxionException
DataTypetoClob in interface DataTypetoClob in class BaseDataTypeAxionExceptionResultSet.getClob(int)public java.lang.String toString(java.lang.Object value)
throws AxionException
DataTypetoString in interface DataTypetoString in class BaseDataTypeAxionExceptionResultSet.getString(int)public java.lang.String toString()
toString in class java.lang.Objectpublic DataType makeNewInstance()
DataTypemakeNewInstance in interface DataTypemakeNewInstance in interface DataTypeFactorymakeNewInstance in class BaseDataTypepublic java.lang.Object read(java.io.DataInput in)
throws java.io.IOException
DataTypeDataInput. The next
sequence of bytes to be read from the DataInput will have been
written by DataType.write(java.lang.Object, java.io.DataOutput).read in interface DataTyperead in class BaseDataTypejava.io.IOExceptionpublic void write(java.lang.Object value,
java.io.DataOutput out)
throws java.io.IOException
DataTypeDataOutput.write in interface DataTypewrite in class BaseDataTypevalue - the value to write, which must be acceptableto this
DataTypejava.io.IOExceptionpublic java.io.File getLobDir()
public void setLobDir(java.io.File lobDir)
throws AxionException
AxionExceptionpublic short getSearchableCode()
DataTypeWHERE ... LIKE support is available across
a column of this typegetSearchableCode in interface DataTypegetSearchableCode in class BaseDataTypeDatabaseMetaData.getTypeInfo()protected BufferedDataInputStream getLobFile()
protected LobLocator writeStringClob(StringClob value) throws java.io.IOException
java.io.IOExceptionprotected LobLocator writeByteArrayBlob(ByteArrayBlob value) throws java.io.IOException
java.io.IOExceptionprotected BlobSource makeBlobSource(LobLocator loc) throws AxionException
AxionExceptionprotected ClobSource makeClobSource(LobLocator loc) throws AxionException
AxionException