org.drizzle.jdbc.internal.mysql
Enum MySQLType.Type
java.lang.Object
java.lang.Enum<MySQLType.Type>
org.drizzle.jdbc.internal.mysql.MySQLType.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MySQLType.Type>
- Enclosing class:
- MySQLType
public static enum MySQLType.Type
- extends java.lang.Enum<MySQLType.Type>
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DECIMAL
public static final MySQLType.Type DECIMAL
TINY
public static final MySQLType.Type TINY
SHORT
public static final MySQLType.Type SHORT
LONG
public static final MySQLType.Type LONG
FLOAT
public static final MySQLType.Type FLOAT
DOUBLE
public static final MySQLType.Type DOUBLE
NULL
public static final MySQLType.Type NULL
TIMESTAMP
public static final MySQLType.Type TIMESTAMP
LONGLONG
public static final MySQLType.Type LONGLONG
INT24
public static final MySQLType.Type INT24
DATETIME
public static final MySQLType.Type DATETIME
DATE
public static final MySQLType.Type DATE
TIME
public static final MySQLType.Type TIME
YEAR
public static final MySQLType.Type YEAR
BIT
public static final MySQLType.Type BIT
VARCHAR
public static final MySQLType.Type VARCHAR
NEWDECIMAL
public static final MySQLType.Type NEWDECIMAL
ENUM
public static final MySQLType.Type ENUM
SET
public static final MySQLType.Type SET
BLOB
public static final MySQLType.Type BLOB
MAX
public static final MySQLType.Type MAX
CLOB
public static final MySQLType.Type CLOB
values
public static MySQLType.Type[] 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 (MySQLType.Type c : MySQLType.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MySQLType.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getDataType
public java.lang.Class getDataType()
getSqlType
public int getSqlType()
Copyright © 2012. All Rights Reserved.