|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axiondb.types.BaseDataType
org.axiondb.types.LOBType
public class LOBType
A DataTyperepresenting a Large Object (LOB), for example a Clobor
Blob.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.axiondb.DataType |
|---|
DataType.BinaryRepresentation, DataType.ExactNumeric, DataType.NonFixedPrecision |
| Constructor Summary | |
|---|---|
LOBType()
|
|
| Method Summary | |
|---|---|
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)
Convert the given non- null value to a Blob, or
throw a AxionException. |
java.sql.Clob |
toClob(java.lang.Object value)
Convert the given non- null value to a Clob, or
throw a AxionException. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.Object value)
Convert the given non- null value to a String, or
throw a AxionException. |
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)
|
| Methods inherited from class org.axiondb.types.BaseDataType |
|---|
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, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public LOBType()
| Method Detail |
|---|
public int getJdbcType()
DataTypetype codemost closely matching this type.
getJdbcType in interface DataTypegetJdbcType in class BaseDataTypepublic boolean isCaseSensitive()
DataType
isCaseSensitive 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.IllegalArgumentException
public java.sql.Blob toBlob(java.lang.Object value)
throws AxionException
DataTypenull value to a Blob, or
throw a AxionException.
toBlob in interface DataTypetoBlob in class BaseDataTypeAxionExceptionResultSet.getBlob(int)
public java.sql.Clob toClob(java.lang.Object value)
throws AxionException
DataTypenull value to a Clob, or
throw a AxionException.
toClob in interface DataTypetoClob in class BaseDataTypeAxionExceptionResultSet.getClob(int)
public java.lang.String toString(java.lang.Object value)
throws AxionException
DataTypenull value to a String, or
throw a AxionException.
toString in interface DataTypetoString in class BaseDataTypeAxionExceptionResultSet.getString(int)public java.lang.String toString()
toString in class java.lang.Objectpublic DataType makeNewInstance()
DataType
makeNewInstance in interface DataTypemakeNewInstance in interface DataTypeFactorymakeNewInstance in class BaseDataType
public 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.IOException
public 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
DataType
java.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 type
getSearchableCode in interface DataTypegetSearchableCode in class BaseDataTypeDatabaseMetaData.getTypeInfo()protected BufferedDataInputStream getLobFile()
protected LobLocator writeStringClob(StringClob value)
throws java.io.IOException
java.io.IOException
protected LobLocator writeByteArrayBlob(ByteArrayBlob value)
throws java.io.IOException
java.io.IOException
protected BlobSource makeBlobSource(LobLocator loc)
throws AxionException
AxionException
protected ClobSource makeClobSource(LobLocator loc)
throws AxionException
AxionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||