org.hsqldb.types
Class ClobType
- java.lang.Object
-
- org.hsqldb.types.Type
-
- org.hsqldb.types.CharacterType
-
- org.hsqldb.types.ClobType
-
- All Implemented Interfaces:
- java.lang.Cloneable, SchemaObject
public final class ClobType extends CharacterType
Type object for CLOB.- Since:
- 1.9.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hsqldb.types.Type
Type.TypedComparator
-
Nested classes/interfaces inherited from interface org.hsqldb.SchemaObject
SchemaObject.ConstraintTypes, SchemaObject.Deferable, SchemaObject.Nullability, SchemaObject.ParameterModes, SchemaObject.ReferentialAction, SchemaObject.ViewCheckModes
-
-
Field Summary
Fields Modifier and Type Field and Description static intdefaultClobSizestatic intdefaultShortClobSizestatic longmaxClobPrecision-
Fields inherited from class org.hsqldb.types.CharacterType
maxCharPrecision
-
Fields inherited from class org.hsqldb.types.Type
emptyArray, jdbcConvertTypes, OTHER, precision, scale, SQL_ALL_TYPES, SQL_ARRAY_ALL_TYPES, SQL_BIGINT, SQL_BINARY, SQL_BINARY_16, SQL_BINARY_DEFAULT, SQL_BIT, SQL_BIT_VARYING, SQL_BIT_VARYING_MAX_LENGTH, SQL_BLOB, SQL_BOOLEAN, SQL_CHAR, SQL_CHAR_16, SQL_CHAR_DEFAULT, SQL_CLOB, SQL_DATE, SQL_DECIMAL, SQL_DECIMAL_BIGINT_SQR, SQL_DECIMAL_DEFAULT, SQL_DOUBLE, SQL_INTEGER, SQL_INTERVAL_DAY, SQL_INTERVAL_DAY_MAX_PRECISION, SQL_INTERVAL_DAY_TO_HOUR, SQL_INTERVAL_DAY_TO_MINUTE, SQL_INTERVAL_DAY_TO_SECOND, SQL_INTERVAL_DAY_TO_SECOND_MAX_PRECISION, SQL_INTERVAL_HOUR, SQL_INTERVAL_HOUR_MAX_PRECISION, SQL_INTERVAL_HOUR_TO_MINUTE, SQL_INTERVAL_HOUR_TO_SECOND, SQL_INTERVAL_MINUTE, SQL_INTERVAL_MINUTE_MAX_PRECISION, SQL_INTERVAL_MINUTE_TO_SECOND, SQL_INTERVAL_MONTH, SQL_INTERVAL_MONTH_MAX_PRECISION, SQL_INTERVAL_SECOND, SQL_INTERVAL_SECOND_MAX_FRACTION, SQL_INTERVAL_SECOND_MAX_FRACTION_MAX_PRECISION, SQL_INTERVAL_SECOND_MAX_PRECISION, SQL_INTERVAL_YEAR, SQL_INTERVAL_YEAR_MAX_PRECISION, SQL_INTERVAL_YEAR_TO_MONTH, SQL_INTERVAL_YEAR_TO_MONTH_MAX_PRECISION, SQL_NUMERIC, SQL_SMALLINT, SQL_TIME, SQL_TIME_WITH_TIME_ZONE, SQL_TIMESTAMP, SQL_TIMESTAMP_NO_FRACTION, SQL_TIMESTAMP_WITH_TIME_ZONE, SQL_VARBINARY, SQL_VARBINARY_DEFAULT, SQL_VARCHAR, SQL_VARCHAR_DEFAULT, TINYINT, typeAliases, typeCode, typeComparisonGroup, typeDataGroup, typeNames, userTypeModifier
-
Fields inherited from interface org.hsqldb.SchemaObject
ASSERTION, CATALOG, CHARSET, COLLATION, COLUMN, CONSTRAINT, CURSOR, DOMAIN, FUNCTION, GRANTEE, INDEX, LABEL, PARAMETER, PROCEDURE, ROUTINE, SCHEMA, SEARCH, SEQUENCE, SERVER, SPECIFIC_ROUTINE, SUBQUERY, TABLE, TRANSITION, TRIGGER, TYPE, VARIABLE, VIEW, WRAPPER
-
-
Constructor Summary
Constructors Constructor and Description ClobType(long precision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompare(Session session, java.lang.Object a, java.lang.Object b)intcompare(Session session, java.lang.Object a, java.lang.Object b, int opType)java.lang.ObjectconvertJavaToSQL(SessionInterface session, java.lang.Object a)java.lang.ObjectconvertSQLToJava(SessionInterface session, java.lang.Object a)java.lang.ObjectconvertToDefaultType(SessionInterface session, java.lang.Object a)Relaxes SQL parameter type enforcement, allowing long strings.java.lang.StringconvertToSQLString(java.lang.Object a)java.lang.StringconvertToString(java.lang.Object a)intdisplaySize()java.lang.StringgetDefinition()Returns the full definition of the type, including parametersjava.lang.ClassgetJDBCClass()java.lang.StringgetJDBCClassName()Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name.intgetJDBCTypeCode()Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type.longgetMaxPrecision()intgetSQLGenericTypeCode()Returns the generic SQL CLI type number of type, if it exists, otherwise the HSQLDB type.booleanisLobType()longposition(SessionInterface session, java.lang.Object data, java.lang.Object otherData, Type otherType, long start)-
Methods inherited from class org.hsqldb.types.CharacterType
acceptsPrecision, canConvertFrom, canMoveFrom, castOrConvertToType, castToType, concat, convertToType, convertToTypeJDBC, convertToTypeLimits, getAggregateType, getCharacterSet, getCharacterType, getCharacterType, getCharacterType, getCollation, getCombinedType, getFullNameString, getNameString, getRightTrimSise, isCharacterType, lower, match, overlay, precedenceDegree, requiresPrecision, size, substring, trim, upper
-
Methods inherited from class org.hsqldb.types.Type
absolute, acceptsFractionalPrecision, acceptsScale, add, arrayLimitCardinality, canBeAssignedFrom, cardinality, collectionBaseType, compare, compareToTypeRange, compile, divide, duplicate, equals, getAggregateType, getCatalogName, getChangeTimestamp, getComponents, getDefaultArrayType, getDefaultType, getDefaultTypeWithSize, getHSQLDBTypeCode, getJDBCPrecision, getJDBCScale, getJDBCTypeCode, getMaxScale, getName, getOwner, getPrecisionRadix, getReferences, getSchemaName, getSQL, getType, getType, getType, getTypeDefinition, getTypeForJDBCConvertToken, getTypeNr, hashCode, isArrayType, isBinaryType, isBitType, isBooleanType, isDateOrTimestampType, isDateTimeType, isDateTimeTypeWithZone, isDecimalType, isDistinctType, isDomainType, isExactNumberType, isIntegralType, isIntervalType, isMultisetType, isNumberType, isObjectType, isRowType, isStructuredType, isSupportedSQLType, matches, multiply, negate, newComparator, subtract
-
-
-
-
Field Detail
-
maxClobPrecision
public static final long maxClobPrecision
- See Also:
- Constant Field Values
-
defaultClobSize
public static final int defaultClobSize
- See Also:
- Constant Field Values
-
defaultShortClobSize
public static final int defaultShortClobSize
- See Also:
- Constant Field Values
-
-
Method Detail
-
displaySize
public int displaySize()
- Overrides:
displaySizein classCharacterType
-
getJDBCTypeCode
public int getJDBCTypeCode()
Description copied from class:TypeReturns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type.- Overrides:
getJDBCTypeCodein classCharacterType
-
getJDBCClass
public java.lang.Class getJDBCClass()
- Overrides:
getJDBCClassin classCharacterType
-
getJDBCClassName
public java.lang.String getJDBCClassName()
Description copied from class:TypeReturns the JDBC class name of type, if it exists, otherwise the HSQLDB class name.- Overrides:
getJDBCClassNamein classCharacterType
-
getSQLGenericTypeCode
public int getSQLGenericTypeCode()
Description copied from class:TypeReturns the generic SQL CLI type number of type, if it exists, otherwise the HSQLDB type. The generic type is returned for DATETIME and INTERVAL types.- Overrides:
getSQLGenericTypeCodein classCharacterType
-
getDefinition
public java.lang.String getDefinition()
Description copied from class:TypeReturns the full definition of the type, including parameters- Overrides:
getDefinitionin classCharacterType
-
getMaxPrecision
public long getMaxPrecision()
- Overrides:
getMaxPrecisionin classCharacterType
-
compare
public int compare(Session session, java.lang.Object a, java.lang.Object b)
- Overrides:
comparein classCharacterType
-
compare
public int compare(Session session, java.lang.Object a, java.lang.Object b, int opType)
- Overrides:
comparein classCharacterType
-
convertToDefaultType
public java.lang.Object convertToDefaultType(SessionInterface session, java.lang.Object a)
Description copied from class:CharacterTypeRelaxes SQL parameter type enforcement, allowing long strings.- Overrides:
convertToDefaultTypein classCharacterType
-
convertToString
public java.lang.String convertToString(java.lang.Object a)
- Overrides:
convertToStringin classCharacterType
-
convertToSQLString
public java.lang.String convertToSQLString(java.lang.Object a)
- Overrides:
convertToSQLStringin classCharacterType
-
convertJavaToSQL
public java.lang.Object convertJavaToSQL(SessionInterface session, java.lang.Object a)
- Overrides:
convertJavaToSQLin classCharacterType
-
convertSQLToJava
public java.lang.Object convertSQLToJava(SessionInterface session, java.lang.Object a)
- Overrides:
convertSQLToJavain classType
-
position
public long position(SessionInterface session, java.lang.Object data, java.lang.Object otherData, Type otherType, long start)
- Overrides:
positionin classCharacterType
-
-
DataMelt 3.0 © DataMelt by jWork.ORG