org.eclipse.datatools.enablement.oda.xml.impl
Class DataTypes

java.lang.Object
  extended by org.eclipse.datatools.enablement.oda.xml.impl.DataTypes

public final class DataTypes
extends java.lang.Object

This class hosts the information of data types that are supported by flat file driver


Field Summary
static int BIGDECIMAL
           
static int BLOB
           
static int BOOLEAN
           
static int DATE
           
static int DOUBLE
           
static int INT
           
static int STRING
           
static int TIME
           
static int TIMESTAMP
           
 
Method Summary
static int getType(java.lang.String typeName)
          Return the int which stands for the type specified by input argument
static java.lang.String getTypeString(int type)
          Return the String which stands for the type specified by input argument
static boolean isValidType(java.lang.String typeName)
          Evalute whether an input String is a valid type that is supported by flat file driver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT

public static final int INT
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

TIME

public static final int TIME
See Also:
Constant Field Values

TIMESTAMP

public static final int TIMESTAMP
See Also:
Constant Field Values

BLOB

public static final int BLOB
See Also:
Constant Field Values

BIGDECIMAL

public static final int BIGDECIMAL
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values
Method Detail

getType

public static int getType(java.lang.String typeName)
                   throws OdaException
Return the int which stands for the type specified by input argument

Parameters:
typeName - the String value of a Type
Returns:
the int which stands for the type specified by input typeName
Throws:
OdaException - Once the input arguement is not a valid type name

getTypeString

public static java.lang.String getTypeString(int type)
                                      throws OdaException
Return the String which stands for the type specified by input argument

Parameters:
typeName - the int value of a Type
Returns:
the String which stands for the type specified by input typeName
Throws:
OdaException - Once the input arguement is not a valid type name

isValidType

public static boolean isValidType(java.lang.String typeName)
Evalute whether an input String is a valid type that is supported by flat file driver

Parameters:
typeName -
Returns: