|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.model.TypeMap
public abstract class TypeMap
A class that maps SQL type names to their JDBC type ID found in
Types
and vice versa.
Field Summary | |
---|---|
static java.lang.String |
ARRAY
The string representation of the Types.ARRAY constant. |
static java.lang.String |
BIGINT
The string representation of the Types.BIGINT constant. |
static java.lang.String |
BINARY
The string representation of the Types.BINARY constant. |
static java.lang.String |
BIT
The string representation of the Types.BIT constant. |
static java.lang.String |
BLOB
The string representation of the Types.BLOB constant. |
static java.lang.String |
BOOLEAN
The string representation of the Types.BOOLEAN constant. |
static java.lang.String |
CHAR
The string representation of the Types.CHAR constant. |
static java.lang.String |
CLOB
The string representation of the Types.CLOB constant. |
static java.lang.String |
DATALINK
The string representation of the Types.DATALINK constant. |
static java.lang.String |
DATE
The string representation of the Types.DATE constant. |
static java.lang.String |
DECIMAL
The string representation of the Types.DECIMAL constant. |
static java.lang.String |
DISTINCT
The string representation of the Types.DISTINCT constant. |
static java.lang.String |
DOUBLE
The string representation of the Types.DOUBLE constant. |
static java.lang.String |
FLOAT
The string representation of the Types.FLOAT constant. |
static java.lang.String |
INTEGER
The string representation of the Types.INTEGER constant. |
static java.lang.String |
JAVA_OBJECT
The string representation of the Types.JAVA_OBJECT constant. |
static java.lang.String |
LONGVARBINARY
The string representation of the Types.LONGVARBINARY constant. |
static java.lang.String |
LONGVARCHAR
The string representation of the Types.LONGVARCHAR constant. |
static java.lang.String |
NULL
The string representation of the Types.NULL constant. |
static java.lang.String |
NUMERIC
The string representation of the Types.NUMERIC constant. |
static java.lang.String |
OTHER
The string representation of the Types.OTHER constant. |
static java.lang.String |
REAL
The string representation of the Types.REAL constant. |
static java.lang.String |
REF
The string representation of the Types.REF constant. |
static java.lang.String |
SMALLINT
The string representation of the Types.SMALLINT constant. |
static java.lang.String |
STRUCT
The string representation of the Types.STRUCT constant. |
static java.lang.String |
TIME
The string representation of the Types.TIME constant. |
static java.lang.String |
TIMESTAMP
The string representation of the Types.TIMESTAMP constant. |
static java.lang.String |
TINYINT
The string representation of the Types.TINYINT constant. |
static java.lang.String |
VARBINARY
The string representation of the Types.VARBINARY constant. |
static java.lang.String |
VARCHAR
The string representation of the Types.VARCHAR constant. |
Constructor Summary | |
---|---|
TypeMap()
|
Method Summary | |
---|---|
static java.lang.Integer |
getJdbcTypeCode(java.lang.String typeName)
Returns the JDBC type code (one of the Types constants) that
corresponds to the given JDBC type name. |
static java.lang.String |
getJdbcTypeName(int typeCode)
Returns the JDBC type name that corresponds to the given type code (one of the Types constants). |
static boolean |
isBinaryType(int jdbcTypeCode)
Determines whether the given jdbc type (one of the Types constants)
is a binary type. |
static boolean |
isDateTimeType(int jdbcTypeCode)
Determines whether the given jdbc type (one of the Types constants)
is a date/time type. |
static boolean |
isNumericType(int jdbcTypeCode)
Determines whether the given jdbc type (one of the Types constants)
is a numeric type. |
static boolean |
isSpecialType(int jdbcTypeCode)
Determines whether the given sql type (one of the Types constants)
is a special type. |
static boolean |
isTextType(int jdbcTypeCode)
Determines whether the given jdbc type (one of the Types constants)
is a text type. |
protected static void |
registerJdbcType(int typeCode,
java.lang.String typeName,
JdbcTypeCategoryEnum category)
Registers a jdbc type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ARRAY
Types.ARRAY
constant.
public static final java.lang.String BIGINT
Types.BIGINT
constant.
public static final java.lang.String BINARY
Types.BINARY
constant.
public static final java.lang.String BIT
Types.BIT
constant.
public static final java.lang.String BLOB
Types.BLOB
constant.
public static final java.lang.String BOOLEAN
Types.BOOLEAN
constant.
public static final java.lang.String CHAR
Types.CHAR
constant.
public static final java.lang.String CLOB
Types.CLOB
constant.
public static final java.lang.String DATALINK
Types.DATALINK
constant.
public static final java.lang.String DATE
Types.DATE
constant.
public static final java.lang.String DECIMAL
Types.DECIMAL
constant.
public static final java.lang.String DISTINCT
Types.DISTINCT
constant.
public static final java.lang.String DOUBLE
Types.DOUBLE
constant.
public static final java.lang.String FLOAT
Types.FLOAT
constant.
public static final java.lang.String INTEGER
Types.INTEGER
constant.
public static final java.lang.String JAVA_OBJECT
Types.JAVA_OBJECT
constant.
public static final java.lang.String LONGVARBINARY
Types.LONGVARBINARY
constant.
public static final java.lang.String LONGVARCHAR
Types.LONGVARCHAR
constant.
public static final java.lang.String NULL
Types.NULL
constant.
public static final java.lang.String NUMERIC
Types.NUMERIC
constant.
public static final java.lang.String OTHER
Types.OTHER
constant.
public static final java.lang.String REAL
Types.REAL
constant.
public static final java.lang.String REF
Types.REF
constant.
public static final java.lang.String SMALLINT
Types.SMALLINT
constant.
public static final java.lang.String STRUCT
Types.STRUCT
constant.
public static final java.lang.String TIME
Types.TIME
constant.
public static final java.lang.String TIMESTAMP
Types.TIMESTAMP
constant.
public static final java.lang.String TINYINT
Types.TINYINT
constant.
public static final java.lang.String VARBINARY
Types.VARBINARY
constant.
public static final java.lang.String VARCHAR
Types.VARCHAR
constant.
Constructor Detail |
---|
public TypeMap()
Method Detail |
---|
public static java.lang.Integer getJdbcTypeCode(java.lang.String typeName)
Types
constants) that
corresponds to the given JDBC type name.
typeName
- The JDBC type name (case is ignored)
null
if the type is unknownpublic static java.lang.String getJdbcTypeName(int typeCode)
Types
constants).
typeCode
- The type code
null
if the type is unknownprotected static void registerJdbcType(int typeCode, java.lang.String typeName, JdbcTypeCategoryEnum category)
typeCode
- The type code (one of the Types
constants)typeName
- The type name (case is ignored)category
- The type categorypublic static boolean isNumericType(int jdbcTypeCode)
Types
constants)
is a numeric type.
jdbcTypeCode
- The type code
true
if the type is a numeric onepublic static boolean isDateTimeType(int jdbcTypeCode)
Types
constants)
is a date/time type.
jdbcTypeCode
- The type code
true
if the type is a numeric onepublic static boolean isTextType(int jdbcTypeCode)
Types
constants)
is a text type.
jdbcTypeCode
- The type code
true
if the type is a text onepublic static boolean isBinaryType(int jdbcTypeCode)
Types
constants)
is a binary type.
jdbcTypeCode
- The type code
true
if the type is a binary onepublic static boolean isSpecialType(int jdbcTypeCode)
Types
constants)
is a special type.
jdbcTypeCode
- The type code
true
if the type is a special one
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |