com.xavax.xstore
Class SQLTypes
Object
SQLTypes
- public class SQLTypes
- extends Object
SQLTypes defines constants used to encode SQL types in the persistence
mechanism and methods to convert between types and type names.
Method Summary |
static String |
name(short sqlType)
Returns the name of a canonical SQLType. |
static short |
value(String name)
Returns the value of the SQLType with the specified name. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOOLEAN
public static final short BOOLEAN
- See Also:
- Constant Field Values
BYTE
public static final short BYTE
- See Also:
- Constant Field Values
CHAR
public static final short CHAR
- See Also:
- Constant Field Values
DATE
public static final short DATE
- See Also:
- Constant Field Values
DOUBLE
public static final short DOUBLE
- See Also:
- Constant Field Values
FLOAT
public static final short FLOAT
- See Also:
- Constant Field Values
INTEGER
public static final short INTEGER
- See Also:
- Constant Field Values
LONG
public static final short LONG
- See Also:
- Constant Field Values
LONGVARCHAR
public static final short LONGVARCHAR
- See Also:
- Constant Field Values
NULL
public static final short NULL
- See Also:
- Constant Field Values
SHORT
public static final short SHORT
- See Also:
- Constant Field Values
TIME
public static final short TIME
- See Also:
- Constant Field Values
TIMESTAMP
public static final short TIMESTAMP
- See Also:
- Constant Field Values
VARCHAR
public static final short VARCHAR
- See Also:
- Constant Field Values
SQLTypes
public SQLTypes()
name
public static String name(short sqlType)
- Returns the name of a canonical SQLType.
- Parameters:
sqlType
- the SQL type.
- Returns:
- the name of a canonical SQLType.
value
public static short value(String name)
- Returns the value of the SQLType with the specified name.
- Parameters:
name
- the name of an SQLType.
- Returns:
- the value of the specified SQLType.