com.xavax.xstore
Class JTypes

Object
  extended byJTypes

public class JTypes
extends Object

JTypes defines constants used to encode Java types in the persistence mechanism and methods to convert between types and type names.


Field Summary
static short BOOLEAN
          The native boolean data type.
static short BYTE
          The native byte data type.
static short CHAR
          The native char data type.
static short COLLECTION
          An object that implements java.util.Collection.
static short DATE
          An instance of the java.sql.Date class.
static short DOUBLE
          The native double data type.
static short FLOAT
          The native float data type.
static short INT
          The native short data type.
static short LONG
          The native long data type.
static short OBJECT
          An instance of the java.lang.Object class.
static short SHORT
          The native short data type.
static short STRING
          An instance of the java.lang.String class.
static short TIMESTAMP
          An instance of the java.sql.Timestamp class.
static short WBOOLEAN
          An instance of the java.lang.Boolean wrapper class.
static short WBYTE
          An instance of the java.lang.Byte wrapper class.
static short WCHAR
          An instance of the java.lang.Character wrapper class.
static short WDOUBLE
          An instance of the java.lang.Double wrapper class.
static short WFLOAT
          An instance of the java.lang.Float wrapper class.
static short WINT
          An instance of the java.lang.Integer wrapper class.
static short WLONG
          An instance of the java.lang.Long wrapper class.
static short WSHORT
          An instance of the java.lang.Short wrapper class.
 
Constructor Summary
JTypes()
           
 
Method Summary
static String name(short i)
          Returns the name of the JType with the specified value.
static short value(String name)
          Returns the value of the JType with the specified name.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOLEAN

public static final short BOOLEAN
The native boolean data type.

See Also:
Constant Field Values

BYTE

public static final short BYTE
The native byte data type.

See Also:
Constant Field Values

CHAR

public static final short CHAR
The native char data type.

See Also:
Constant Field Values

SHORT

public static final short SHORT
The native short data type.

See Also:
Constant Field Values

INT

public static final short INT
The native short data type.

See Also:
Constant Field Values

LONG

public static final short LONG
The native long data type.

See Also:
Constant Field Values

FLOAT

public static final short FLOAT
The native float data type.

See Also:
Constant Field Values

DOUBLE

public static final short DOUBLE
The native double data type.

See Also:
Constant Field Values

STRING

public static final short STRING
An instance of the java.lang.String class.

See Also:
Constant Field Values

OBJECT

public static final short OBJECT
An instance of the java.lang.Object class.

See Also:
Constant Field Values

COLLECTION

public static final short COLLECTION
An object that implements java.util.Collection.

See Also:
Constant Field Values

DATE

public static final short DATE
An instance of the java.sql.Date class.

See Also:
Constant Field Values

WBOOLEAN

public static final short WBOOLEAN
An instance of the java.lang.Boolean wrapper class.

See Also:
Constant Field Values

WBYTE

public static final short WBYTE
An instance of the java.lang.Byte wrapper class.

See Also:
Constant Field Values

WCHAR

public static final short WCHAR
An instance of the java.lang.Character wrapper class.

See Also:
Constant Field Values

WSHORT

public static final short WSHORT
An instance of the java.lang.Short wrapper class.

See Also:
Constant Field Values

WINT

public static final short WINT
An instance of the java.lang.Integer wrapper class.

See Also:
Constant Field Values

WLONG

public static final short WLONG
An instance of the java.lang.Long wrapper class.

See Also:
Constant Field Values

WFLOAT

public static final short WFLOAT
An instance of the java.lang.Float wrapper class.

See Also:
Constant Field Values

WDOUBLE

public static final short WDOUBLE
An instance of the java.lang.Double wrapper class.

See Also:
Constant Field Values

TIMESTAMP

public static final short TIMESTAMP
An instance of the java.sql.Timestamp class.

See Also:
Constant Field Values
Constructor Detail

JTypes

public JTypes()
Method Detail

name

public static String name(short i)
Returns the name of the JType with the specified value.

Parameters:
i - the value of a JType.
Returns:
the name of the specified JType.

value

public static short value(String name)
Returns the value of the JType with the specified name.

Parameters:
name - the name of a JType.
Returns:
the value of the specified JType.