|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.schema.SQLTypes
Symbolic constants used to represent the various possible SQL types for a value.
| Field Summary | |
static int |
BIGDECIMAL
The BigDecimal type, corresponds
to Types.DECIMAL. |
static int |
BIGINTEGER
The BigInteger type, corresponds
to Types.BIGINT. |
static int |
BLOB
The Blob type, corresponds to Types.BLOB. |
static int |
BOOLEAN
The boolean type, corresponds to Types.BIT. |
static int |
BYTE
The byte type, corresponds to Types.TINYINT. |
static int |
CHARACTER
The char type, corresponds to Types.CHAR. |
static int |
CLOB
The Clob type, corresponds to Types.CLOB. |
static int |
DATE
The Date type, corresponds to Types.DATE. |
static int |
DOUBLE
The double type, corresponds to Types.DOUBLE. |
static int |
FLOAT
The float type, corresponds to Types.FLOAT. |
static int |
INTEGER
The int type, corresponds to Types.INTEGER. |
static int |
LENSTRING
The variable length String type, corresponds
to Types.VARCHAR. |
static int |
LOCALE
The Locale type, corresponds
to Types.VARCHAR. |
static int |
LONG
The long type, corresponds to Types.NUMERIC. |
static int |
SHORT
The short type, corresponds to Types.SMALLINT. |
static int |
STRING
The String type, corresponds to Types.VARCHAR. |
static int |
UNKNOWN
|
| Constructor Summary | |
SQLTypes()
|
|
| Method Summary | |
(package private) static void |
|
static int |
getJDBCType(int type)
Returning a mapping from Kodo defined types to Types
types, for use in translating unknown PreparedStatement parameters
into SQL types. |
static int |
getTypeConstant(Class javaClass,
int length)
Provides a standard mapping from java classes, including primitives and their wrapper types, to the proper SQLTypes constant. |
static int |
getTypeConstant(int fmdType,
int length)
Provides a standard mapping from FieldMetaData type codes
to the correct SQL type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int BOOLEAN
boolean type, corresponds to Types.BIT.public static final int BYTE
byte type, corresponds to Types.TINYINT.public static final int CHARACTER
char type, corresponds to Types.CHAR.public static final int DOUBLE
double type, corresponds to Types.DOUBLE.public static final int FLOAT
float type, corresponds to Types.FLOAT.public static final int INTEGER
int type, corresponds to Types.INTEGER.public static final int LONG
long type, corresponds to Types.NUMERIC.public static final int SHORT
short type, corresponds to Types.SMALLINT.public static final int STRING
String type, corresponds to Types.VARCHAR.public static final int LENSTRING
String type, corresponds
to Types.VARCHAR.public static final int DATE
Date type, corresponds to Types.DATE.public static final int BLOB
Blob type, corresponds to Types.BLOB.public static final int CLOB
Clob type, corresponds to Types.CLOB.public static final int BIGDECIMAL
BigDecimal type, corresponds
to Types.DECIMAL.public static final int BIGINTEGER
BigInteger type, corresponds
to Types.BIGINT.public static final int LOCALE
Locale type, corresponds
to Types.VARCHAR.public static final int UNKNOWN
| Constructor Detail |
public SQLTypes()
| Method Detail |
static void()
public static int getTypeConstant(Class javaClass,
int length)
public static int getTypeConstant(int fmdType,
int length)
FieldMetaData type codes
to the correct SQL type. Any unknown object type is mapped to a BLOB.
Any string of length -1 is mapped to a CLOB; strings of other specified
lengths (non-0) are mapped to LENSTRING.public static int getJDBCType(int type)
Types
types, for use in translating unknown PreparedStatement parameters
into SQL types.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||