|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary
|
+--com.solarmetric.kodo.impl.jdbc.schema.dict.HSQLDictionary
Implementation of the DBDictionary interface for Hypersonic SQL.
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary |
CENTI, DECI, meta, MICRO, MILLI, NANO, NUMBER_FORMAT, SEC |
| Constructor Summary | |
HSQLDictionary()
|
|
| Method Summary | |
void |
booleanToPreparedParameter(PreparedStatement st,
int index,
Boolean val)
|
SQLBuffer[] |
getAddColumnSQL(Column column)
Return a series of SQL statements to add the given column to its table, including the addition of any indexes on the column. |
protected SQLBuffer |
getColumnDeclaration(Column column)
This method can be overridden if the database does not support standard column declarations, which are in the form: <column-name> <sql-type> [NOT NULL]. |
SQLBuffer[] |
getDropColumnSQL(Column column)
Return a series of SQL statements to drop the given column from its table, including the deletion of any indices from the column. |
long |
getNextAutoIncrementValue(Table table,
SQLExecutionManager sqlem)
Returns the next auto-increment value for a given table. |
String |
getPlatform()
Return the title of this database platform, used for display only. |
protected SQLBuffer |
getPrimaryKeyClause(Set pks)
Return the SQL to add primary key information. |
String |
getValidIndexName(String name)
Limits index names to getMaxIndexNameLength()-1 plus an 'I'
that is appended to the end of the given name to avoid SQL
keyword conflicts. |
protected void |
setupSQLTypeMap(SQLTypeMap map)
This is the most commonly overridden method when porting to a new database. |
boolean |
supportsAutoIncrement()
Returns true if this dictionary / database
combination supports auto-incrementing primary-key columns. |
boolean |
supportsLocking()
Hsql does not understand FOR UPDATE. |
| 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 String getPlatform()
AbstractDictionarygetPlatform in class AbstractDictionarypublic boolean supportsLocking()
supportsLocking in class AbstractDictionaryprotected void setupSQLTypeMap(SQLTypeMap map)
AbstractDictionarysetupSQLTypeMap in class AbstractDictionarypublic String getValidIndexName(String name)
getMaxIndexNameLength()-1 plus an 'I'
that is appended to the end of the given name to avoid SQL
keyword conflicts.getValidIndexName in class AbstractDictionary
public void booleanToPreparedParameter(PreparedStatement st,
int index,
Boolean val)
throws SQLException
booleanToPreparedParameter in class AbstractDictionarypublic SQLBuffer[] getAddColumnSQL(Column column)
DBDictionarygetAddColumnSQL in class AbstractDictionarypublic SQLBuffer[] getDropColumnSQL(Column column)
DBDictionarygetDropColumnSQL in class AbstractDictionarypublic boolean supportsAutoIncrement()
DBDictionarytrue if this dictionary / database
combination supports auto-incrementing primary-key columns.supportsAutoIncrement in class AbstractDictionary
public long getNextAutoIncrementValue(Table table,
SQLExecutionManager sqlem)
throws SQLException
DBDictionarygetNextAutoIncrementValue in class AbstractDictionaryprotected SQLBuffer getColumnDeclaration(Column column)
AbstractDictionary<column-name> <sql-type> [NOT NULL].
Where NOT NULL is appended if it is a primary key column.getColumnDeclaration in class AbstractDictionaryprotected SQLBuffer getPrimaryKeyClause(Set pks)
AbstractDictionarygetPrimaryKeyClause in class AbstractDictionary
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||