Class HSQLTypeInfo
java.lang.Object
org.datanucleus.store.rdbms.schema.SQLTypeInfo
org.datanucleus.store.rdbms.adapter.HSQLTypeInfo
- All Implemented Interfaces:
org.datanucleus.store.schema.StoreSchemaData
SQL Type info for HSQLDB datastores.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The maximum precision we allow to be reported.Fields inherited from class org.datanucleus.store.rdbms.schema.SQLTypeInfo
allowsPrecisionSpec, autoIncrement, caseSensitive, createParams, dataType, fixedPrecScale, fromJdbcDriver, literalPrefix, literalSuffix, localTypeName, maximumScale, minimumScale, nullable, numPrecRadix, precision, searchable, typeName, unsignedAttribute
-
Constructor Summary
ConstructorsConstructorDescriptionHSQLTypeInfo
(String typeName, short dataType, int precision, String literalPrefix, String literalSuffix, String createParams, int nullable, boolean caseSensitive, short searchable, boolean unsignedAttribute, boolean fixedPrecScale, boolean autoIncrement, String localTypeName, short minimumScale, short maximumScale, int numPrecRadix) Constructs a type information object from the current row of the given result set. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isCompatibleWith
(RDBMSColumnInfo colInfo) Utility to check the compatibility of this type with the supplied Column type.Methods inherited from class org.datanucleus.store.rdbms.schema.SQLTypeInfo
addProperty, equals, getCreateParams, getDataType, getLiteralPrefix, getLiteralSuffix, getLocalTypeName, getMaximumScale, getMinimumScale, getNullable, getNumPrecRadix, getPrecision, getProperty, getSearchable, getTypeName, hashCode, isAllowsPrecisionSpec, isAutoIncrement, isCaseSensitive, isFixedPrecScale, isUnsignedAttribute, setAllowsPrecisionSpec, setLocalTypeName, setTypeName, toString, toString
-
Field Details
-
MAX_PRECISION
public static final int MAX_PRECISIONThe maximum precision we allow to be reported.- See Also:
-
-
Constructor Details
-
HSQLTypeInfo
Constructs a type information object from the current row of the given result set.- Parameters:
rs
- The result set returned from DatabaseMetaData.getTypeInfo().
-
HSQLTypeInfo
public HSQLTypeInfo(String typeName, short dataType, int precision, String literalPrefix, String literalSuffix, String createParams, int nullable, boolean caseSensitive, short searchable, boolean unsignedAttribute, boolean fixedPrecScale, boolean autoIncrement, String localTypeName, short minimumScale, short maximumScale, int numPrecRadix)
-
-
Method Details
-
isCompatibleWith
Utility to check the compatibility of this type with the supplied Column type.- Overrides:
isCompatibleWith
in classSQLTypeInfo
- Parameters:
colInfo
- The Column type- Returns:
- Whether they are compatible
-