|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--kodo.jdbc.sql.DBDictionary
|
+--kodo.jdbc.sql.HSQLDictionary
Dictionary for Hypersonic SQL database.
| Fields inherited from class kodo.jdbc.sql.DBDictionary |
CENTI, DECI, MICRO, MILLI, NANO, SCHEMA_CASE_DEFAULT, SCHEMA_CASE_LOWER, SCHEMA_CASE_PRESERVE, SCHEMA_CASE_UPPER, SEC |
| Constructor Summary | |
HSQLDictionary()
|
|
| Method Summary | |
String[] |
getAddColumnSQL(Column column)
Return a series of SQL statements to add the given column to its table. |
String[] |
getAddPrimaryKeySQL(PrimaryKey pk)
Return a series of SQL statements to add the given primary key to its table. |
boolean |
getCacheTables()
Returns whether HSQL should use "CREATED CACHED TABLE" rather than "CREATE TABLE", which allows disk-based database operations. |
String[] |
getCreateTableSQL(Table table)
Return a series of SQL statements to create the given table, complete with columns. |
String[] |
getDropPrimaryKeySQL(PrimaryKey pk)
Return a series of SQL statements to drop the given primary key from its table. |
int |
getPreferredType(int type)
Return the preferred Types type for the given one. |
protected String |
getPrimaryKeyConstraintSQL(PrimaryKey pk)
Return the declaration SQL for the given primary key. |
boolean |
isSystemIndex(String name,
Table table)
This method is used to filter system indexes from database metadata. |
void |
setCacheTables(boolean cacheTables)
Sets whether HSQL should use "CREATED CACHED TABLE" rather than "CREATE TABLE", which allows disk-based database operations. |
void |
setLong(PreparedStatement stmnt,
int idx,
long val)
Set the given value as a parameter to the statement. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HSQLDictionary()
| Method Detail |
public void setCacheTables(boolean cacheTables)
public boolean getCacheTables()
public int getPreferredType(int type)
DBDictionaryTypes type for the given one. Returns
the given type by default.getPreferredType in class DBDictionarypublic String[] getAddPrimaryKeySQL(PrimaryKey pk)
DBDictionaryALTER TABLE <table name> ADD
<pk cons sql > by default.getAddPrimaryKeySQL in class DBDictionarypublic String[] getDropPrimaryKeySQL(PrimaryKey pk)
DBDictionaryALTER TABLE <table name> DROP CONSTRAINT
<pk name> by default.getDropPrimaryKeySQL in class DBDictionarypublic String[] getAddColumnSQL(Column column)
DBDictionaryDBMetaData is checked for support automatically. Returns
ALTER TABLE <table name> ADD (<col dec>)
by default.getAddColumnSQL in class DBDictionarypublic String[] getCreateTableSQL(Table table)
getCreateTableSQL in class DBDictionaryprotected String getPrimaryKeyConstraintSQL(PrimaryKey pk)
DBDictionaryDBDictionary.getCreateTableSQL(kodo.jdbc.schema.Table) and
DBDictionary.getAddPrimaryKeySQL(kodo.jdbc.schema.PrimaryKey). Returns
CONSTRAINT <pk name> PRIMARY KEY (<col list>)
by default.getPrimaryKeyConstraintSQL in class DBDictionary
public boolean isSystemIndex(String name,
Table table)
DBDictionaryisSystemIndex in class DBDictionarykodo.jdbc.sql.DBDictionaryname - the index nametable - the index table
public void setLong(PreparedStatement stmnt,
int idx,
long val)
throws SQLException
DBDictionarysetLong in class DBDictionary
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||