iitb.con.core
Class DataType

java.lang.Object
  extended by iitb.con.core.DataType

public class DataType
extends java.lang.Object

DataTypes for the attributes.


Field Summary
static short BOOL_SIZE
           
static byte BOOLEAN
          Boolean data type
static byte DOUBLE
          Double data type
static short DOUBLE_SIZE
           
static byte FLOAT
          Float data type
static short FLOAT_SIZE
           
static short INT_SIZE
           
static byte INTEGER
          Integer data type
static byte SHORT
          Short data type
static short SHORT_SIZE
          Long data type
static byte STRING
          String data type
static byte TIME
          Date & Time data type
static byte UNDEFINED
          Undefined data type
 
Constructor Summary
DataType()
           
 
Method Summary
static java.lang.String getDataTypeString(byte dataType)
          Return the data type string
static java.lang.Object getDataValue(byte dataType, java.lang.String value)
          Returns the data type wrapper object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOL_SIZE

public static short BOOL_SIZE

BOOLEAN

public static final byte BOOLEAN
Boolean data type

See Also:
Constant Field Values

DOUBLE

public static final byte DOUBLE
Double data type

See Also:
Constant Field Values

DOUBLE_SIZE

public static short DOUBLE_SIZE

FLOAT

public static final byte FLOAT
Float data type

See Also:
Constant Field Values

FLOAT_SIZE

public static short FLOAT_SIZE

INT_SIZE

public static short INT_SIZE

INTEGER

public static final byte INTEGER
Integer data type

See Also:
Constant Field Values

SHORT

public static final byte SHORT
Short data type

See Also:
Constant Field Values

SHORT_SIZE

public static short SHORT_SIZE
Long data type


STRING

public static final byte STRING
String data type

See Also:
Constant Field Values

TIME

public static final byte TIME
Date & Time data type

See Also:
Constant Field Values

UNDEFINED

public static final byte UNDEFINED
Undefined data type

See Also:
Constant Field Values
Constructor Detail

DataType

public DataType()
Method Detail

getDataTypeString

public static java.lang.String getDataTypeString(byte dataType)
Return the data type string

Parameters:
dataType - byte representation of data type
Returns:
data type string

getDataValue

public static java.lang.Object getDataValue(byte dataType,
                                            java.lang.String value)
Returns the data type wrapper object

Parameters:
dataType - byte representation of data type
value - data type value
Returns:
converted wrapper object of the given value