org.datanucleus.store.rdbms.schema
Class MySQLTypeInfo

java.lang.Object
  extended by org.datanucleus.store.rdbms.schema.SQLTypeInfo
      extended by org.datanucleus.store.rdbms.schema.MySQLTypeInfo
All Implemented Interfaces:
org.datanucleus.store.schema.StoreSchemaData

public class MySQLTypeInfo
extends SQLTypeInfo

SQL Type info for MySQL datastores.


Field Summary
 
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
MySQLTypeInfo(java.sql.ResultSet rs)
           
MySQLTypeInfo(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 Summary
 boolean isCompatibleWith(RDBMSColumnInfo colInfo)
          Utility to check the compatibility of this type with the supplied Column type.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MySQLTypeInfo

public MySQLTypeInfo(java.sql.ResultSet rs)
Parameters:
rs -

MySQLTypeInfo

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


Copyright © 2009. All Rights Reserved.