Package org.apache.openjpa.jdbc.meta
Class JavaSQLTypes
java.lang.Object
org.apache.openjpa.meta.JavaTypes
org.apache.openjpa.jdbc.meta.JavaSQLTypes
Java SQL type constants.
- Author:
- Abe White
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class org.apache.openjpa.meta.JavaTypes
ARRAY, BIGDECIMAL, BIGINTEGER, BOOLEAN, BOOLEAN_OBJ, BYTE, BYTE_OBJ, CALENDAR, CHAR, CHAR_OBJ, COLLECTION, DATE, DOUBLE, DOUBLE_OBJ, ENUM, FLOAT, FLOAT_OBJ, INPUT_READER, INPUT_STREAM, INT, INT_OBJ, LOCAL_DATE, LOCAL_DATETIME, LOCAL_TIME, LOCALE, LONG, LONG_OBJ, MAP, NUMBER, OBJECT, OFFSET_DATETIME, OFFSET_TIME, OID, PC, PC_UNTYPED, SHORT, SHORT_OBJ, STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getDateTypeCode
(Class<?> dtype) Return the proper date typecode.static Object
getEmptyValue
(int type) Return an empty value object for the given type code.static Object
getNonEmptyValue
(int type) Return a non-empty value object for the given type code.Methods inherited from class org.apache.openjpa.meta.JavaTypes
classForName, classForName, classForName, classForName, classForName, classForName, convert, getTypeCode, isPrimitiveDefault, maybePC, maybePC, toArray, toList
-
Field Details
-
SQL_ARRAY
public static final int SQL_ARRAY- See Also:
-
ASCII_STREAM
public static final int ASCII_STREAM- See Also:
-
BINARY_STREAM
public static final int BINARY_STREAM- See Also:
-
BLOB
public static final int BLOB- See Also:
-
BYTES
public static final int BYTES- See Also:
-
CHAR_STREAM
public static final int CHAR_STREAM- See Also:
-
CLOB
public static final int CLOB- See Also:
-
SQL_DATE
public static final int SQL_DATE- See Also:
-
SQL_OBJECT
public static final int SQL_OBJECT- See Also:
-
REF
public static final int REF- See Also:
-
TIME
public static final int TIME- See Also:
-
TIMESTAMP
public static final int TIMESTAMP- See Also:
-
JDBC_DEFAULT
public static final int JDBC_DEFAULT- See Also:
-
-
Constructor Details
-
JavaSQLTypes
public JavaSQLTypes()
-
-
Method Details
-
getDateTypeCode
Return the proper date typecode. -
getEmptyValue
Return an empty value object for the given type code. -
getNonEmptyValue
Return a non-empty value object for the given type code.
-