org.jpox.store.rdbms.typeinfo
Class MSSQLTypeInfo

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

public class MSSQLTypeInfo
extends TypeInfo

Represents the metadata of a MSSQL data type.

Version:
$Revision: 1.3 $

Field Summary
static int NTEXT
          sql type NTEXT
static int NVARCHAR
          sql type NVARCHAR
static int UNIQUEIDENTIFIER
          sql type UNIQUEIDENTIFIER
 
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
MSSQLTypeInfo(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 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
 

Field Detail

NVARCHAR

public static final int NVARCHAR
sql type NVARCHAR

See Also:
Constant Field Values

NTEXT

public static final int NTEXT
sql type NTEXT

See Also:
Constant Field Values

UNIQUEIDENTIFIER

public static final int UNIQUEIDENTIFIER
sql type UNIQUEIDENTIFIER

See Also:
Constant Field Values
Constructor Detail

MSSQLTypeInfo

public MSSQLTypeInfo(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
Parameters:
colInfo - The ColumnInfo
Returns:
Whether they are compatible


Copyright © -2007 . All Rights Reserved.