Class SQLServerTypeInfo

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

public class SQLServerTypeInfo extends SQLTypeInfo
SQL Type info for SQLServer datastores.
  • Field Details

  • Constructor Details

    • SQLServerTypeInfo

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

      public SQLServerTypeInfo(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)
      Description copied from class: SQLTypeInfo
      Convenience method for returning if this type is compatible with the provided column. Compares the data type of each record, and returns true if the types are equivalent. For example one could be VARCHAR, and the other LONGVARCHAR so they both store string data, and hence they are compatible.
      Overrides:
      isCompatibleWith in class SQLTypeInfo
      Parameters:
      colInfo - The column
      Returns:
      Whether they are considered compatible