39 |
package java.sql; |
package java.sql; |
40 |
|
|
41 |
/** |
/** |
42 |
* This class contains constants that are used to identify SQL data types. |
* This class contains constants that are used to identify SQL data types. |
43 |
* |
* |
44 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @author Aaron M. Renn (arenn@urbanophile.com) |
45 |
*/ |
*/ |
46 |
public class Types |
public class Types |
47 |
{ |
{ |
48 |
|
// These should be self explanatory. People need a SQL book, not |
49 |
// These should be self explanatory. People need a SQL book, not |
// Javadoc comments for these. |
|
// Javadoc comments for these. |
|
|
|
|
50 |
public static final int BIT = -7; |
public static final int BIT = -7; |
51 |
public static final int TINYINT = -6; |
public static final int TINYINT = -6; |
52 |
public static final int SMALLINT = 5; |
public static final int SMALLINT = 5; |
68 |
public static final int LONGVARBINARY = -4; |
public static final int LONGVARBINARY = -4; |
69 |
public static final int NULL = 0; |
public static final int NULL = 0; |
70 |
public static final int OTHER = 1111; |
public static final int OTHER = 1111; |
|
|
|
|
/** @since 1.2 |
|
|
*/ |
|
71 |
public static final int JAVA_OBJECT = 2000; |
public static final int JAVA_OBJECT = 2000; |
|
|
|
|
/** @since 1.2 |
|
|
*/ |
|
72 |
public static final int DISTINCT = 2001; |
public static final int DISTINCT = 2001; |
|
|
|
|
/** @since 1.2 |
|
|
*/ |
|
73 |
public static final int STRUCT = 2002; |
public static final int STRUCT = 2002; |
|
|
|
|
/** @since 1.2 |
|
|
*/ |
|
74 |
public static final int ARRAY = 2003; |
public static final int ARRAY = 2003; |
|
|
|
|
/** @since 1.2 |
|
|
*/ |
|
75 |
public static final int BLOB = 2004; |
public static final int BLOB = 2004; |
|
|
|
|
/** @since 1.2 |
|
|
*/ |
|
76 |
public static final int CLOB = 2005; |
public static final int CLOB = 2005; |
|
|
|
|
/** @since 1.2 |
|
|
*/ |
|
77 |
public static final int REF = 2006; |
public static final int REF = 2006; |
|
|
|
|
/** @since 1.4 |
|
|
*/ |
|
78 |
public static final int DATALINK = 70; |
public static final int DATALINK = 70; |
|
|
|
|
/** @since 1.4 |
|
|
*/ |
|
79 |
public static final int BOOLEAN = 16; |
public static final int BOOLEAN = 16; |
80 |
|
|
|
|
|
81 |
// This class can't be instantiated. |
// This class can't be instantiated. |
82 |
private Types () |
private Types() |
83 |
{ |
{ |
84 |
} |
} |
85 |
|
} |
|
} // class Types |
|
|
|
|