Class PostgreSQLTypeInfo

java.lang.Object
org.datanucleus.store.rdbms.schema.SQLTypeInfo
org.datanucleus.store.rdbms.adapter.PostgreSQLTypeInfo
All Implemented Interfaces:
org.datanucleus.store.schema.StoreSchemaData

public class PostgreSQLTypeInfo extends SQLTypeInfo
SQL Type info for PostgreSQL datastores.
  • Field Details

    • MAX_PRECISION

      public static final int MAX_PRECISION
      The maximum precision we allow to be reported.
      See Also:
  • Constructor Details

    • PostgreSQLTypeInfo

      public PostgreSQLTypeInfo(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().
    • PostgreSQLTypeInfo

      public PostgreSQLTypeInfo(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

      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