Class H2TypeInfo

  • All Implemented Interfaces:
    org.datanucleus.store.schema.StoreSchemaData

    public class H2TypeInfo
    extends SQLTypeInfo
    SQL Type info for H2 datastores.
    • Constructor Detail

      • H2TypeInfo

        public H2TypeInfo​(java.sql.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().
      • H2TypeInfo

        public H2TypeInfo​(java.lang.String typeName,
                          short dataType,
                          int precision,
                          java.lang.String literalPrefix,
                          java.lang.String literalSuffix,
                          java.lang.String createParams,
                          int nullable,
                          boolean caseSensitive,
                          short searchable,
                          boolean unsignedAttribute,
                          boolean fixedPrecScale,
                          boolean autoIncrement,
                          java.lang.String localTypeName,
                          short minimumScale,
                          short maximumScale,
                          int numPrecRadix)
    • Method Detail

      • 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