Class MySQLTypeInfo

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

    public class MySQLTypeInfo
    extends SQLTypeInfo
    SQL Type info for MySQL datastores.
    • Constructor Detail

      • MySQLTypeInfo

        public MySQLTypeInfo​(ResultSet rs)
        Constructor
        Parameters:
        rs - Result set from the database metadata
      • MySQLTypeInfo

        public MySQLTypeInfo​(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 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