org.jboss.dna.common.jdbc.model.api
Enum SqlType

java.lang.Object
  extended by java.lang.Enum<SqlType>
      extended by 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

Enum Constant Summary
ARRAY
           
BIGINT
           
BINARY
           
BIT
           
BLOB
           
BOOLEAN
           
CHAR
           
CLOB
           
DATALINK
           
DATE
           
DECIMAL
           
DISTINCT
           
DOUBLE
           
FLOAT
           
INTEGER
           
JAVA_OBJECT
           
LONGVARBINARY
           
LONGVARCHAR
           
NULL
           
NUMERIC
           
OTHER
           
REAL
           
REF
           
SMALLINT
           
STRUCT
           
TIME
           
TIMESTAMP
           
TINYINT
           
VARBINARY
           
VARCHAR
           
 
Method Summary
 String getName()
           
 int getType()
           
static SqlType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SqlType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.