org.jpox.store.rdbms.typeinfo
Class MySQLTypeInfo

java.lang.Object
  extended byorg.jpox.store.rdbms.typeinfo.TypeInfo
      extended byorg.jpox.store.rdbms.typeinfo.MySQLTypeInfo

public class MySQLTypeInfo
extends TypeInfo

Represents the metadata of a MySQL data type.

Version:
$Revision: 1.4 $

Field Summary
 
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.
 
Method Summary
 boolean isCompatibleWith(ColumnInfo colInfo)
          Utility to check the compatibility of this type with the supplied Column type.
 
Methods inherited from class org.jpox.store.rdbms.typeinfo.TypeInfo
areCompatibleTypes, equals, getJDBCTypeName, hashCode, isToValidate, 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)
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().
Method Detail

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 © -2007 . All Rights Reserved.