de.fuberlin.wiwiss.d2rq.sql.types
Enum DataType.GenericType

java.lang.Object
  extended by java.lang.Enum<DataType.GenericType>
      extended by de.fuberlin.wiwiss.d2rq.sql.types.DataType.GenericType
All Implemented Interfaces:
Serializable, Comparable<DataType.GenericType>
Enclosing class:
DataType

public static enum DataType.GenericType
extends Enum<DataType.GenericType>


Enum Constant Summary
BINARY
           
BIT
           
BOOLEAN
           
CHARACTER
           
DATE
           
INTERVAL
           
NUMERIC
           
TIME
           
TIMESTAMP
           
 
Method Summary
 DataType dataTypeFor(Vendor vendor)
           
static DataType.GenericType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataType.GenericType[] 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

CHARACTER

public static final DataType.GenericType CHARACTER

BINARY

public static final DataType.GenericType BINARY

NUMERIC

public static final DataType.GenericType NUMERIC

BOOLEAN

public static final DataType.GenericType BOOLEAN

DATE

public static final DataType.GenericType DATE

TIME

public static final DataType.GenericType TIME

TIMESTAMP

public static final DataType.GenericType TIMESTAMP

INTERVAL

public static final DataType.GenericType INTERVAL

BIT

public static final DataType.GenericType BIT
Method Detail

values

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

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

valueOf

public static DataType.GenericType 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

dataTypeFor

public DataType dataTypeFor(Vendor vendor)