Package org.datanucleus.metadata
Enum JdbcType
- java.lang.Object
-
- java.lang.Enum<JdbcType>
-
- org.datanucleus.metadata.JdbcType
-
- All Implemented Interfaces:
Serializable
,Comparable<JdbcType>
public enum JdbcType extends Enum<JdbcType>
Representation of the jdbc-type of a column. Note that something similar to this is now present in JDK 1.8 so we could remove this in the future when that is the minimum JDK supported.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY
BIGINT
BINARY
BIT
BLOB
BOOLEAN
CHAR
CLOB
DATALINK
DATE
DECIMAL
DOUBLE
FLOAT
INTEGER
LONGNVARCHAR
LONGVARBINARY
LONGVARCHAR
NCHAR
NCLOB
NUMERIC
NVARCHAR
OTHER
REAL
REF_CURSOR
SMALLINT
SQLXML
TIME
TIME_WITH_TIMEZONE
TIMESTAMP
TIMESTAMP_WITH_TIMEZONE
TINYINT
VARBINARY
VARCHAR
XMLTYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JdbcType
getEnumByValue(int value)
int
getValue()
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
-
BIGINT
public static final JdbcType BIGINT
-
BINARY
public static final JdbcType BINARY
-
BIT
public static final JdbcType BIT
-
BLOB
public static final JdbcType BLOB
-
BOOLEAN
public static final JdbcType BOOLEAN
-
CHAR
public static final JdbcType CHAR
-
CLOB
public static final JdbcType CLOB
-
DATALINK
public static final JdbcType DATALINK
-
DATE
public static final JdbcType DATE
-
DECIMAL
public static final JdbcType DECIMAL
-
DOUBLE
public static final JdbcType DOUBLE
-
FLOAT
public static final JdbcType FLOAT
-
INTEGER
public static final JdbcType INTEGER
-
LONGNVARCHAR
public static final JdbcType LONGNVARCHAR
-
LONGVARBINARY
public static final JdbcType LONGVARBINARY
-
LONGVARCHAR
public static final JdbcType LONGVARCHAR
-
NCHAR
public static final JdbcType NCHAR
-
NCLOB
public static final JdbcType NCLOB
-
NUMERIC
public static final JdbcType NUMERIC
-
NVARCHAR
public static final JdbcType NVARCHAR
-
OTHER
public static final JdbcType OTHER
-
REAL
public static final JdbcType REAL
-
REF_CURSOR
public static final JdbcType REF_CURSOR
-
SMALLINT
public static final JdbcType SMALLINT
-
SQLXML
public static final JdbcType SQLXML
-
TIME
public static final JdbcType TIME
-
TIME_WITH_TIMEZONE
public static final JdbcType TIME_WITH_TIMEZONE
-
TIMESTAMP
public static final JdbcType TIMESTAMP
-
TIMESTAMP_WITH_TIMEZONE
public static final JdbcType TIMESTAMP_WITH_TIMEZONE
-
TINYINT
public static final JdbcType TINYINT
-
VARBINARY
public static final JdbcType VARBINARY
-
VARCHAR
public static final JdbcType VARCHAR
-
XMLTYPE
public static final JdbcType XMLTYPE
-
-
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
-
getValue
public int getValue()
-
getEnumByValue
public static JdbcType getEnumByValue(int value)
-
-