Top Description Fields Constructors Methods
org.hsqldb.types

public final Class BlobType

extends BinaryType
Class Inheritance
Imports
org.hsqldb.Session, .SessionInterface, .Tokens, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.jdbc.JDBCBlobClient

Type object for BLOB.
Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.5.0

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final long
Inherited from org.hsqldb.types.BinaryType:
maxBinaryPrecision

Constructor Summary

AccessConstructor and Description
public
BlobType(long precision)

Method Summary

Modifier and TypeMethod and Description
public boolean
public Object
castToType(SessionInterface session, Object a, Type otherType)

Overrides org.hsqldb.types.BinaryType.castToType.

Explicit casts are handled by this method.

public int
public Object
public Object
public Object
convertToDefaultType(SessionInterface session, Object a)

Overrides org.hsqldb.types.BinaryType.convertToDefaultType.

Converts the object to the given type without limit checks.

public String
public String
public Object
convertToType(SessionInterface session, Object a, Type otherType)

Overrides org.hsqldb.types.BinaryType.convertToType.

Same as castToType except for CHARACTER values.

public Object
public int
public String
getDefinition()

Overrides org.hsqldb.types.BinaryType.getDefinition.

Returns the full definition of the type, including parameters

public String
getFullNameString()

Overrides org.hsqldb.types.Type.getFullNameString.

Returns the name of the type

public Class<T>
public String
getJDBCClassName()

Overrides org.hsqldb.types.BinaryType.getJDBCClassName.

Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name.

public int
getJDBCTypeCode()

Overrides org.hsqldb.types.BinaryType.getJDBCTypeCode.

Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type.

public long
public String
getNameString()

Overrides org.hsqldb.types.BinaryType.getNameString.

Returns the name of the type

public boolean
public boolean
public boolean
Inherited from org.hsqldb.types.BinaryType:
canConvertFromcanMoveFromcastOrConvertToTypeconcatconvertToJSONgetAggregateTypegetBinaryTypegetCombinedTypegetNameFullStringgetRightTrimSizeoverlaypositionprecedenceDegreesubstringtrim

Field Detail

defaultBlobSizeback to summary
public static final int defaultBlobSize
defaultShortBlobSizeback to summary
public static final int defaultShortBlobSize
maxBlobPrecisionback to summary
public static final long maxBlobPrecision

Constructor Detail

BlobTypeback to summary
public BlobType(long precision)

Method Detail

acceptsPrecisionback to summary
public boolean acceptsPrecision()

Overrides org.hsqldb.types.BinaryType.acceptsPrecision.

castToTypeback to summary
public Object castToType(SessionInterface session, Object a, Type otherType)

Overrides org.hsqldb.types.BinaryType.castToType.

Doc from org.hsqldb.types.Type.castToType.

Explicit casts are handled by this method. SQL standard 6.12 rules for enforcement of size, precision and scale are implemented. For CHARACTER values, it performs truncation in all cases of long strings.

compareback to summary
public int compare(Session session, Object a, Object b)

Overrides org.hsqldb.types.BinaryType.compare.

convertJavaToSQLback to summary
public Object convertJavaToSQL(SessionInterface session, Object a)

Overrides org.hsqldb.types.BinaryType.convertJavaToSQL.

convertSQLToJavaback to summary
public Object convertSQLToJava(SessionInterface session, Object a)

Overrides org.hsqldb.types.BinaryType.convertSQLToJava.

convertToDefaultTypeback to summary
public Object convertToDefaultType(SessionInterface session, Object a)

Overrides org.hsqldb.types.BinaryType.convertToDefaultType.

Doc from org.hsqldb.types.Type.convertToDefaultType.

Converts the object to the given type without limit checks. Used for JDBC writes.

convertToSQLStringback to summary
public String convertToSQLString(Object a)

Overrides org.hsqldb.types.BinaryType.convertToSQLString.

convertToStringback to summary
public String convertToString(Object a)

Overrides org.hsqldb.types.BinaryType.convertToString.

convertToTypeback to summary
public Object convertToType(SessionInterface session, Object a, Type otherType)

Overrides org.hsqldb.types.BinaryType.convertToType.

Doc from org.hsqldb.types.Type.convertToType.

Same as castToType except for CHARACTER values. Perform string truncation of trailing spaces only. For other long strings, it raises an exception.

convertToTypeLimitsback to summary
public Object convertToTypeLimits(SessionInterface session, Object a)

Overrides org.hsqldb.types.BinaryType.convertToTypeLimits.

displaySizeback to summary
public int displaySize()

Overrides org.hsqldb.types.BinaryType.displaySize.

getDefinitionback to summary
public String getDefinition()

Overrides org.hsqldb.types.BinaryType.getDefinition.

Doc from org.hsqldb.types.Type.getDefinition.

Returns the full definition of the type, including parameters

getFullNameStringback to summary
public String getFullNameString()

Overrides org.hsqldb.types.Type.getFullNameString.

Doc from org.hsqldb.types.Type.getFullNameString.

Returns the name of the type

getJDBCClassback to summary
public Class<T> getJDBCClass()

Overrides org.hsqldb.types.BinaryType.getJDBCClass.

getJDBCClassNameback to summary
public String getJDBCClassName()

Overrides org.hsqldb.types.BinaryType.getJDBCClassName.

Doc from org.hsqldb.types.Type.getJDBCClassName.

Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name.

getJDBCTypeCodeback to summary
public int getJDBCTypeCode()

Overrides org.hsqldb.types.BinaryType.getJDBCTypeCode.

Doc from org.hsqldb.types.Type.getJDBCTypeCode.

Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type.

getMaxPrecisionback to summary
public long getMaxPrecision()

Overrides org.hsqldb.types.BinaryType.getMaxPrecision.

getNameStringback to summary
public String getNameString()

Overrides org.hsqldb.types.BinaryType.getNameString.

Doc from org.hsqldb.types.Type.getNameString.

Returns the name of the type

isBinaryTypeback to summary
public boolean isBinaryType()

Overrides org.hsqldb.types.BinaryType.isBinaryType.

isLobTypeback to summary
public boolean isLobType()

Overrides org.hsqldb.types.Type.isLobType.

requiresPrecisionback to summary
public boolean requiresPrecision()

Overrides org.hsqldb.types.BinaryType.requiresPrecision.