org.datanucleus.store.rdbms.schema
Class H2TypeInfo
java.lang.Object
org.datanucleus.store.rdbms.schema.SQLTypeInfo
org.datanucleus.store.rdbms.schema.H2TypeInfo
- All Implemented Interfaces:
- org.datanucleus.store.schema.StoreSchemaData
public class H2TypeInfo
- extends SQLTypeInfo
SQL Type info for H2 datastores.
| Fields inherited from class org.datanucleus.store.rdbms.schema.SQLTypeInfo |
allowsPrecisionSpec, autoIncrement, caseSensitive, createParams, dataType, fixedPrecScale, literalPrefix, literalSuffix, localTypeName, maximumScale, minimumScale, nullable, numPrecRadix, precision, searchable, typeName, unsignedAttribute |
|
Constructor Summary |
H2TypeInfo(ResultSet rs)
Constructs a type information object from the current row of the given result set. |
| 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 |
H2TypeInfo
public H2TypeInfo(ResultSet rs)
- Constructs a type information object from the current row of the given result set.
- Parameters:
rs - The result set returned from DatabaseMetaData.getTypeInfo().
isCompatibleWith
public boolean isCompatibleWith(RDBMSColumnInfo colInfo)
- Utility to check the compatibility of this type with the supplied Column
type.
- Overrides:
isCompatibleWith in class SQLTypeInfo
- Parameters:
colInfo - The Column type
- Returns:
- Whether they are compatible
Copyright © 2012. All Rights Reserved.