org.glite.rgma
Class Types

java.lang.Object
  extended by org.glite.rgma.Types

public final class Types
extends java.lang.Object

Constants for SQL column types.


Field Summary
static int BOOLEAN
          The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BOOLEAN.
static int CHAR
           The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CHAR.
static int DATE
          Deprecated.  
static int DOUBLE
           The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DOUBLE.
static int FLOAT
           The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT.
static int INTEGER
           The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type INTEGER.
static int REAL
           The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL.
static int TIME
          Deprecated.  
static int TIMESTAMP
           The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP.
static int VARCHAR
           The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR.
 
Method Summary
static int getType(java.lang.String typeName)
          Returns the type number for the given type.
static java.lang.String getTypeName(int type)
          Gets the name associated with a type number.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTEGER

public static final int INTEGER

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type INTEGER.

See Also:
Constant Field Values

FLOAT

public static final int FLOAT

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT.

See Also:
Constant Field Values

REAL

public static final int REAL

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL.

See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DOUBLE.

See Also:
Constant Field Values

CHAR

public static final int CHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CHAR.

See Also:
Constant Field Values

VARCHAR

public static final int VARCHAR

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR.

See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BOOLEAN.

Since:
1.4
See Also:
Constant Field Values

TIMESTAMP

public static final int TIMESTAMP

The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP.

See Also:
Constant Field Values

DATE

public static final int DATE
Deprecated. 
See Also:
Constant Field Values

TIME

public static final int TIME
Deprecated. 
See Also:
Constant Field Values
Method Detail

getTypeName

public static java.lang.String getTypeName(int type)
Gets the name associated with a type number.

Parameters:
type - Type number.
Returns:
Name associated with type.

getType

public static int getType(java.lang.String typeName)
Returns the type number for the given type.

Parameters:
typeName - Name of type to convert.
Returns:
Type number for the given type.