org.ujorm.orm
Enum DbType

java.lang.Object
  extended by java.lang.Enum<DbType>
      extended by org.ujorm.orm.DbType
All Implemented Interfaces:
Serializable, Comparable<DbType>

public enum DbType
extends Enum<DbType>

Supported Database Types


Enum Constant Summary
Automatic
          Get the type by a Java key
BIGINT
           
BINARY
           
BLOB
           
BOOLEAN
           
CHAR
           
CLOB
           
DATE
           
DECIMAL
           
DOUBLE
           
FLOAT
           
INT
           
NULL
           
REAL
           
SMALLINT
           
TIME
           
TIMESTAMP
           
TINYINT
           
VARCHAR
           
VARCHAR_IGNORECASE
           
 
Method Summary
 int getSqlType()
          Returns an JDBC SQL type
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 are declared.
 
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
 

Enum Constant Detail

Automatic

public static final DbType Automatic
Get the type by a Java key


INT

public static final DbType INT

BOOLEAN

public static final DbType BOOLEAN

TINYINT

public static final DbType TINYINT

SMALLINT

public static final DbType SMALLINT

BIGINT

public static final DbType BIGINT

DECIMAL

public static final DbType DECIMAL

FLOAT

public static final DbType FLOAT

DOUBLE

public static final DbType DOUBLE

REAL

public static final DbType REAL

TIME

public static final DbType TIME

DATE

public static final DbType DATE

TIMESTAMP

public static final DbType TIMESTAMP

BINARY

public static final DbType BINARY

VARCHAR

public static final DbType VARCHAR

VARCHAR_IGNORECASE

public static final DbType VARCHAR_IGNORECASE

CHAR

public static final DbType CHAR

BLOB

public static final DbType BLOB

CLOB

public static final DbType CLOB

NULL

public static final DbType NULL
Method Detail

values

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

Returns:
an array containing the constants of this enum type, in the order they are 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
NullPointerException - if the argument is null

getSqlType

public int getSqlType()
Returns an JDBC SQL type

See Also:
Types


Copyright 2013, Pavel Ponec