com.im.commons.db 5.9.2

com.im.commons.db.ddl
Enum GenericColumnType

java.lang.Object
  extended by java.lang.Enum<GenericColumnType>
      extended by com.im.commons.db.ddl.GenericColumnType
All Implemented Interfaces:
Serializable, Comparable<GenericColumnType>

public enum GenericColumnType
extends Enum<GenericColumnType>

Generic database column types.


Enum Constant Summary
BINARY
           
BOOLEAN
           
CALCULATED
          Experimental type - might be removed in the future.
DATE
           
FLOAT
           
INTEGER
           
TEXT
           
URL
          Will be removed in the future.
 
Method Summary
 String getDisplayName()
           
 String getId()
           
static GenericColumnType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GenericColumnType[] 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

INTEGER

public static final GenericColumnType INTEGER

FLOAT

public static final GenericColumnType FLOAT

TEXT

public static final GenericColumnType TEXT

BOOLEAN

public static final GenericColumnType BOOLEAN

DATE

public static final GenericColumnType DATE

BINARY

public static final GenericColumnType BINARY

URL

public static final GenericColumnType URL
Will be removed in the future.


CALCULATED

public static final GenericColumnType CALCULATED
Experimental type - might be removed in the future.

Method Detail

values

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

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

valueOf

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

getId

public String getId()

getDisplayName

public String getDisplayName()

com.im.commons.db 5.9.2