|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| 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.
| Field Summary | |
boolean |
cacheTables
Sets whether HSQL should use "CREATED CACHED TABLE" rather than "CREATE TABLE", which allows disk-based database operations. |
| Constructor Summary | |
HSQLDictionary()
|
|
| Method Summary | |
protected void |
appendSelectRange(SQLBuffer buf,
long start,
long end)
If this dictionary can select ranges, use this method to append the range SQL. |
String[] |
getAddColumnSQL(<
|
String[] |
getAddPrimaryKeySQL(PrimaryKey pk)
Return a series of SQL statements to add the given primary key to its table. |
String[] |
getCreateTableSQL(<
|
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. |
void |
indexOf(SQLBuffer buf,
FilterValue str,
FilterValue find,
FilterValue start)
Invoke this database's indexOf function. |
boolean |
isSystemIndex(String name,
<
|
JDOException |
newDataStoreException(String msg,
SQLException[] causes,
Object failed)
Return a new JDO exception that wraps causes. |
void |
setLong(PreparedStatement stmnt,
int idx,
long val,
<
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public boolean cacheTables
| Constructor Detail |
public HSQLDictionary()
| Method Detail |
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)
public String[] getCreateTableSQL(<>Table table)
protected 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)
public void setLong(PreparedStatement stmnt,
int idx,
long val,
<>Column col)
throws SQLException
protected void appendSelectRange(SQLBuffer buf,
long start,
long end)
DBDictionaryappendSelectRange in class DBDictionary
public void indexOf(SQLBuffer buf,
FilterValue str,
FilterValue find,
FilterValue start)
DBDictionaryindexOf in class DBDictionarykodo.jdbc.sql.DBDictionarybuf - the SQL buffer to write the indexOf invocation tostr - a query value representing the target stringsearch - a query value representing the search stringstart - a query value representing the start index, or null
to start at the beginning
public JDOException newDataStoreException(String msg,
SQLException[] causes,
Object failed)
DBDictionarycauses.
However, the details of exactly what type of exception is returned can
be determined by the implementation. This may take into account
DB-specific exception information in causes.newDataStoreException in class DBDictionary
|
SolarMetric Kodo JDO 3.4.1 generated on May 30 2006 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||