| java.lang.Object net.sourceforge.jtds.jdbc.TypeInfo
TypeInfo | public class TypeInfo implements Comparable(Code) | | Represents an SQL data type as required by getTypeInfo() .
Provides a suitable natural ordering.
This class probably shouldn't be public, but is required to be so by the
tests.
author: David Eaves version: $Id: TypeInfo.java,v 1.5 2005/07/27 11:02:34 alin_sinpalean Exp $ |
NUM_COLS | final static int NUM_COLS(Code) | | |
TypeInfo | public TypeInfo(String typeName, int dataType, boolean autoIncrement)(Code) | | For testing only. Create an instance with just the properties utilised
in the compareTo() method (set name, type, and auto
increment).
|
compareTo | public int compareTo(Object o)(Code) | | Comparable implementation that orders by dataType, then by how closely
the data type maps to the corresponding JDBC SQL type.
The data type values for the non-standard SQL Server types tend to have
negative numbers while the corresponding standard types have positive
numbers so utilise that in the sorting.
|
hashCode | public int hashCode()(Code) | | |
normalizeDataType | public static int normalizeDataType(int serverDataType, boolean useLOBs)(Code) | | Return a
java.sql.Types -defined type for an SQL Server specific data type.
Parameters: serverDataType - the data type, as returned by the server Parameters: useLOBs - whether LOB data types are used for large types the equivalent data type defined by java.sql.Types |
|
|