org.javagen.agile.db.model
Enum DbType

java.lang.Object
  extended by java.lang.Enum<DbType>
      extended by org.javagen.agile.db.model.DbType
All Implemented Interfaces:
Serializable, Comparable<DbType>

public enum DbType
extends Enum<DbType>


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
 int getJdbcType()
           
static DbType lookup(int jdbcType)
           
static DbType lookup(String enumName)
           
static DbType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DbType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BIT

public static final DbType BIT

TINYINT

public static final DbType TINYINT

SMALLINT

public static final DbType SMALLINT

INTEGER

public static final DbType INTEGER

BIGINT

public static final DbType BIGINT

FLOAT

public static final DbType FLOAT

REAL

public static final DbType REAL

DOUBLE

public static final DbType DOUBLE

NUMERIC

public static final DbType NUMERIC

DECIMAL

public static final DbType DECIMAL

CHAR

public static final DbType CHAR

VARCHAR

public static final DbType VARCHAR

LONGVARCHAR

public static final DbType LONGVARCHAR

DATE

public static final DbType DATE

TIME

public static final DbType TIME

TIMESTAMP

public static final DbType TIMESTAMP

BINARY

public static final DbType BINARY

VARBINARY

public static final DbType VARBINARY

LONGVARBINARY

public static final DbType LONGVARBINARY

NULL

public static final DbType NULL

OTHER

public static final DbType OTHER

JAVA_OBJECT

public static final DbType JAVA_OBJECT

DISTINCT

public static final DbType DISTINCT

STRUCT

public static final DbType STRUCT

ARRAY

public static final DbType ARRAY

BLOB

public static final DbType BLOB

CLOB

public static final DbType CLOB

REF

public static final DbType REF

DATALINK

public static final DbType DATALINK

BOOLEAN

public static final DbType BOOLEAN
Method Detail

values

public static final DbType[] 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(DbType c : DbType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static DbType 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

getJdbcType

public int getJdbcType()

lookup

public static DbType lookup(String enumName)

lookup

public static DbType lookup(int jdbcType)


Copyright 2006-2006-2007 Outsource Cafe Inc.. All Rights Reserved.