|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jtds.jdbc.TdsData.TypeInfo
This class implements a descriptor for TDS data types;
| Field Summary | |
int |
displaySize
The display size of the type. |
boolean |
isCollation
true if type requires TDS80 collation. |
boolean |
isSigned
true if type is a signed numeric. |
int |
jdbcType
The java.sql.Types constant for this data type. |
int |
precision
The precision of the type. |
int |
size
The size of this type or < 0 for variable sizes. |
java.lang.String |
sqlType
The SQL type name. |
| Constructor Summary | |
(package private) |
TdsData.TypeInfo(java.lang.String sqlType,
int size,
int precision,
int displaySize,
boolean isSigned,
boolean isCollation,
int jdbcType)
Construct a new TDS data type descriptor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final java.lang.String sqlType
public final int size
Special values as follows:
public final int precision
If this is -1 precision must be calculated from buffer size eg for varchar fields.
public final int displaySize
-1 If the display size must be calculated from the buffer size.
public final boolean isSigned
public final boolean isCollation
public final int jdbcType
| Constructor Detail |
TdsData.TypeInfo(java.lang.String sqlType,
int size,
int precision,
int displaySize,
boolean isSigned,
boolean isCollation,
int jdbcType)
sqlType - SQL type name.size - Byte size for this type or < 0 for variable length types.precision - Decimal precision or -1displaySize - Printout size for this type or special values -1,-2.isSigned - True if signed numeric type.isCollation - True if type has TDS 8 collation information.jdbcType - The java.sql.Type constant for this type.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||