org.jpox.store.rdbms.typeinfo
Class MySQLTypeInfo
java.lang.Object
org.jpox.store.rdbms.typeinfo.TypeInfo
org.jpox.store.rdbms.typeinfo.MySQLTypeInfo
public class MySQLTypeInfo
- extends TypeInfo
Represents the metadata of a MySQL data type.
- Version:
- $Revision: 1.5 $
| Fields inherited from class org.jpox.store.rdbms.typeinfo.TypeInfo |
allowsPrecisionSpec, autoIncrement, caseSensitive, createParams, dataType, fixedPrecScale, literalPrefix, literalSuffix, localTypeName, maximumScale, minimumScale, nullable, numPrecRadix, precision, searchable, typeName, unsignedAttribute |
|
Constructor Summary |
MySQLTypeInfo(java.sql.ResultSet rs)
Constructs a type information object from the current row of the given
result set. |
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(ColumnInfo colInfo)
Utility to check the compatibility of this type with the supplied Column
type. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MySQLTypeInfo
public MySQLTypeInfo(java.sql.ResultSet rs)
- Constructs a type information object from the current row of the given
result set. The
ResultSet object passed must have been obtained
from a call to DatabaseMetaData.getTypeInfo().
This method only retrieves the values from the current row; the caller
is required to advance to the next row with ResultSet.next().
- Parameters:
rs - The result set returned from DatabaseMetaData.getTypeInfo().
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)
isCompatibleWith
public boolean isCompatibleWith(ColumnInfo colInfo)
- Utility to check the compatibility of this type with the supplied Column
type.
- Overrides:
isCompatibleWith in class TypeInfo
- Parameters:
colInfo - The Column type
- Returns:
- Whether they are compatible
Copyright © -2008 . All Rights Reserved.