|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hsqldb.Column
Implementation of SQL table columns as defined in DDL statements with static methods to process their values.
Field Summary | |
org.hsqldb.HsqlNameManager.HsqlName |
columnName
|
Method Summary | |
static Object |
convertObject(Object o,
int type)
Convert an object into a Java object that represents its SQL type. |
static String |
createSQLString(double x)
|
static String |
createSQLString(String s)
Turns a java string into a quoted SQL string |
static byte[] |
hexToByteArray(String hexString)
Converts the specified hexadecimal digit String
to an equivalent array of bytes. |
boolean |
isPrimaryKey()
Is this single column primary key of the table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public org.hsqldb.HsqlNameManager.HsqlName columnName
Method Detail |
public boolean isPrimaryKey()
public static Object convertObject(Object o, int type) throws HsqlException
All internal type conversion operations start with
this method. If a direct conversion doesn't take place, the object
is converted into a string first and an attempt is made to convert
the string into the target type.
One objective of this mehod is to ensure the Object can be converted
to the given SQL type. For example, a very large BIGINT
value cannot be narrowed down to an INTEGER or SMALLINT.
Type conversion performed by this method has gradually evolved in 1.7.2
to allow narrowing of numeric types in all cases according to the SQL
standard.
Another new objective is to normalize DATETIME values.
Objects set via JDBC PreparedStatement use this method to convert
the data to the Java type that is required for custom serialization
by the engine.
o
- type
-
HsqlException
public static String createSQLString(double x)
public static String createSQLString(String s)
public static byte[] hexToByteArray(String hexString) throws HsqlException
String
to an equivalent array of bytes.
hexString
- a String
of hexadecimal digits
HsqlException
- if the specified string contains non-hexadecimal digits.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |