Package org.apache.ibatis.type
Enum JdbcType
- java.lang.Object
-
- java.lang.Enum<JdbcType>
-
- org.apache.ibatis.type.JdbcType
-
- All Implemented Interfaces:
Serializable
,Comparable<JdbcType>
public enum JdbcType extends Enum<JdbcType>
- Author:
- Clinton Begin
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
BIGINT
BINARY
BIT
BLOB
BOOLEAN
CHAR
CLOB
CURSOR
DATALINK
DATE
DATETIMEOFFSET
DECIMAL
DISTINCT
DOUBLE
FLOAT
INTEGER
JAVA_OBJECT
LONGNVARCHAR
LONGVARBINARY
LONGVARCHAR
NCHAR
NCLOB
NULL
NUMERIC
NVARCHAR
OTHER
REAL
REF
ROWID
SMALLINT
SQLXML
STRUCT
TIME
TIME_WITH_TIMEZONE
TIMESTAMP
TIMESTAMP_WITH_TIMEZONE
TINYINT
UNDEFINED
VARBINARY
VARCHAR
-
Field Summary
Fields Modifier and Type Field Description int
TYPE_CODE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JdbcType
forCode(int code)
static JdbcType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JdbcType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARRAY
public static final JdbcType ARRAY
-
BIT
public static final JdbcType BIT
-
TINYINT
public static final JdbcType TINYINT
-
SMALLINT
public static final JdbcType SMALLINT
-
INTEGER
public static final JdbcType INTEGER
-
BIGINT
public static final JdbcType BIGINT
-
FLOAT
public static final JdbcType FLOAT
-
REAL
public static final JdbcType REAL
-
DOUBLE
public static final JdbcType DOUBLE
-
NUMERIC
public static final JdbcType NUMERIC
-
DECIMAL
public static final JdbcType DECIMAL
-
CHAR
public static final JdbcType CHAR
-
VARCHAR
public static final JdbcType VARCHAR
-
LONGVARCHAR
public static final JdbcType LONGVARCHAR
-
DATE
public static final JdbcType DATE
-
TIME
public static final JdbcType TIME
-
TIMESTAMP
public static final JdbcType TIMESTAMP
-
BINARY
public static final JdbcType BINARY
-
VARBINARY
public static final JdbcType VARBINARY
-
LONGVARBINARY
public static final JdbcType LONGVARBINARY
-
NULL
public static final JdbcType NULL
-
OTHER
public static final JdbcType OTHER
-
BLOB
public static final JdbcType BLOB
-
CLOB
public static final JdbcType CLOB
-
BOOLEAN
public static final JdbcType BOOLEAN
-
CURSOR
public static final JdbcType CURSOR
-
UNDEFINED
public static final JdbcType UNDEFINED
-
NVARCHAR
public static final JdbcType NVARCHAR
-
NCHAR
public static final JdbcType NCHAR
-
NCLOB
public static final JdbcType NCLOB
-
STRUCT
public static final JdbcType STRUCT
-
JAVA_OBJECT
public static final JdbcType JAVA_OBJECT
-
DISTINCT
public static final JdbcType DISTINCT
-
REF
public static final JdbcType REF
-
DATALINK
public static final JdbcType DATALINK
-
ROWID
public static final JdbcType ROWID
-
LONGNVARCHAR
public static final JdbcType LONGNVARCHAR
-
SQLXML
public static final JdbcType SQLXML
-
DATETIMEOFFSET
public static final JdbcType DATETIMEOFFSET
-
TIME_WITH_TIMEZONE
public static final JdbcType TIME_WITH_TIMEZONE
-
TIMESTAMP_WITH_TIMEZONE
public static final JdbcType TIMESTAMP_WITH_TIMEZONE
-
-
Method Detail
-
values
public static JdbcType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JdbcType c : JdbcType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JdbcType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forCode
public static JdbcType forCode(int code)
-
-