org.jboss.dna.common.jdbc.model.api
Enum SqlType
java.lang.Object
java.lang.Enum<SqlType>
org.jboss.dna.common.jdbc.model.api.SqlType
- All Implemented Interfaces:
- Serializable, Comparable<SqlType>
public enum SqlType
- extends Enum<SqlType>
Provides RDBMS supported standard SQL types as enumeration set.
- Author:
- Sergiy Litsenko
BIT
public static final SqlType BIT
TINYINT
public static final SqlType TINYINT
SMALLINT
public static final SqlType SMALLINT
INTEGER
public static final SqlType INTEGER
BIGINT
public static final SqlType BIGINT
FLOAT
public static final SqlType FLOAT
REAL
public static final SqlType REAL
DOUBLE
public static final SqlType DOUBLE
NUMERIC
public static final SqlType NUMERIC
DECIMAL
public static final SqlType DECIMAL
CHAR
public static final SqlType CHAR
VARCHAR
public static final SqlType VARCHAR
LONGVARCHAR
public static final SqlType LONGVARCHAR
DATE
public static final SqlType DATE
TIME
public static final SqlType TIME
TIMESTAMP
public static final SqlType TIMESTAMP
BINARY
public static final SqlType BINARY
VARBINARY
public static final SqlType VARBINARY
LONGVARBINARY
public static final SqlType LONGVARBINARY
NULL
public static final SqlType NULL
OTHER
public static final SqlType OTHER
JAVA_OBJECT
public static final SqlType JAVA_OBJECT
DISTINCT
public static final SqlType DISTINCT
STRUCT
public static final SqlType STRUCT
ARRAY
public static final SqlType ARRAY
BLOB
public static final SqlType BLOB
CLOB
public static final SqlType CLOB
REF
public static final SqlType REF
DATALINK
public static final SqlType DATALINK
BOOLEAN
public static final SqlType BOOLEAN
values
public static final SqlType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(SqlType c : SqlType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static SqlType 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
getType
public int getType()
getName
public String getName()
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.