com.triactive.jdo.store
Class MySQLTypeInfo

java.lang.Object
  extended by com.triactive.jdo.store.TypeInfo
      extended by com.triactive.jdo.store.MySQLTypeInfo

 class MySQLTypeInfo
extends TypeInfo

Represents the metadata of a MySQL data type.

Author:
Mike Martin

Field Summary
 
Fields inherited from class com.triactive.jdo.store.TypeInfo
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)
          Indicates whether the type of a given database column is "compatible" with this type.
 
Methods inherited from class com.triactive.jdo.store.TypeInfo
areCompatibleTypes, equals, getJDBCTypeName, hashCode, 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)
Description copied from class: TypeInfo
Indicates whether the type of a given database column is "compatible" with this type.

Overrides:
isCompatibleWith in class TypeInfo


Copyright ? 2001 TriActive, Inc. All Rights Reserved.