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>
Method Summary |
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. |
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
TYPE_CODE
public final int TYPE_CODE
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 name
NullPointerException
- if the argument is null
forCode
public static JdbcType forCode(int code)
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.