uk.org.ogsadai.tuple
Class TupleTypes

java.lang.Object
  extended by uk.org.ogsadai.tuple.TupleTypes

public class TupleTypes
extends java.lang.Object

TupleTypes consists of declaration of constant values which describe the types of ODTuple objects.

Author:
The OGSA-DAI Project Team

Field Summary
static int _BIGDECIMAL
          Constant reprsenting the type of a BigDecimal.
static int _BOOLEAN
          Constant reprsenting the type of a boolean.
static int _BYTEARRAY
          Constant representing the type of a bytearray.
static int _CHAR
          Constant reprsenting the type of a char.
static int _DATE
          Constant reprsenting the type of a date.
static int _DOUBLE
          Constant reprsenting the type of a double.
static int _FILE
          Constant reprsenting the type of a file.
static int _FLOAT
          Constant reprsenting the type of a float.
static int _INT
          Constant reprsenting the type of an integer.
static int _LONG
          Constant reprsenting the type of a long.
static int _OBJECT
          Constant reprsenting the type of a generic object.
static int _ODBLOB
          Constant reprsenting the type of a Blob object.
static int _ODCLOB
          Constant reprsenting the type of a Clob object.
static int _ODNULL
          Constant reprsenting the type of an Null object.
static int _SHORT
          Constant reprsenting the type of a short.
static int _STRING
          Constant reprsenting the type of a string.
static int _TIME
          Constant reprsenting the type of a time.
static int _TIMESTAMP
          Constant reprsenting the type of a timestamp.
 
Constructor Summary
TupleTypes()
           
 
Method Summary
static java.lang.String getTypeName(int type)
           
static boolean isNumeric(int tupleType)
          Returns whether the given tuple type is numeric.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_OBJECT

public static final int _OBJECT
Constant reprsenting the type of a generic object.

See Also:
Constant Field Values

_BOOLEAN

public static final int _BOOLEAN
Constant reprsenting the type of a boolean.

See Also:
Constant Field Values

_FLOAT

public static final int _FLOAT
Constant reprsenting the type of a float.

See Also:
Constant Field Values

_INT

public static final int _INT
Constant reprsenting the type of an integer.

See Also:
Constant Field Values

_LONG

public static final int _LONG
Constant reprsenting the type of a long.

See Also:
Constant Field Values

_STRING

public static final int _STRING
Constant reprsenting the type of a string.

See Also:
Constant Field Values

_CHAR

public static final int _CHAR
Constant reprsenting the type of a char.

See Also:
Constant Field Values

_DOUBLE

public static final int _DOUBLE
Constant reprsenting the type of a double.

See Also:
Constant Field Values

_SHORT

public static final int _SHORT
Constant reprsenting the type of a short.

See Also:
Constant Field Values

_BYTEARRAY

public static final int _BYTEARRAY
Constant representing the type of a bytearray. This type may be redundant as bytearrays will be mapped into Blob objects.

See Also:
Constant Field Values

_FILE

public static final int _FILE
Constant reprsenting the type of a file.

See Also:
Constant Field Values

_DATE

public static final int _DATE
Constant reprsenting the type of a date.

See Also:
Constant Field Values

_TIME

public static final int _TIME
Constant reprsenting the type of a time.

See Also:
Constant Field Values

_TIMESTAMP

public static final int _TIMESTAMP
Constant reprsenting the type of a timestamp.

See Also:
Constant Field Values

_ODBLOB

public static final int _ODBLOB
Constant reprsenting the type of a Blob object.

See Also:
Constant Field Values

_ODCLOB

public static final int _ODCLOB
Constant reprsenting the type of a Clob object.

See Also:
Constant Field Values

_BIGDECIMAL

public static final int _BIGDECIMAL
Constant reprsenting the type of a BigDecimal.

See Also:
Constant Field Values

_ODNULL

public static final int _ODNULL
Constant reprsenting the type of an Null object.

See Also:
Constant Field Values
Constructor Detail

TupleTypes

public TupleTypes()
Method Detail

getTypeName

public static java.lang.String getTypeName(int type)

isNumeric

public static boolean isNumeric(int tupleType)
Returns whether the given tuple type is numeric. The following tuple types are numeric: All of these these types will correspond to data values that can be case to java.lang.Number if they are not uk.org.ogsadai.tuple.Null.VALUE.

Parameters:
tupleType - the tuple type, one of the constants defined in TupleTypes
Returns:
true if the type type is number, false otherwise.