|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.sqls.impl.SQLGeneratorImpl net.sf.jaxme.sqls.hsqldb.HsqlDbSQLGeneratorImpl
Default implementation of an SQL generator for HsqlDb schemas.
Constructor Summary | |
HsqlDbSQLGeneratorImpl()
|
Method Summary | |
protected java.lang.String |
getCreateTableHeader(Table pTable)
|
protected boolean |
isForeignKeyPartOfCreateTable()
Returns whether a CREATE TABLE statement may contain
a FOREIGN KEY clause. |
protected boolean |
isNonUniqueIndexPartOfCreateTable()
Returns whether a CREATE TABLE statement may contain
an INDEX clause. |
protected boolean |
isPrimaryKeyPartOfCreateTable()
Returns whether a CREATE TABLE statement may contain
a PRIMARY KEY clause. |
protected boolean |
isPrimaryKeyUniqueIndex()
Returns whether the primary key requires special handling (in which case isPrimaryKeyPartOfCreateTable() and
SQLGeneratorImpl.createPrimaryKeyAsPartOfCreateTable(Table) are used)
or nor (in which case isUniqueIndexPartOfCreateTable()
and SQLGeneratorImpl.createIndexAsPartOfCreateTable(Index) apply). |
protected boolean |
isUniqueIndexPartOfCreateTable()
Returns whether a CREATE TABLE statement may contain
a UNIQUE clause. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jaxme.sqls.SQLGenerator |
getConstraint, getCreate, getCreate, getCreate, getCreate, getCreate, getCreate, getDrop, getDrop, getDrop, getDrop, getDrop, getDrop, getLineTerminator, getQuery, getStatementTerminator, setLineTerminator, setStatementTerminator |
Constructor Detail |
public HsqlDbSQLGeneratorImpl()
Method Detail |
protected boolean isPrimaryKeyUniqueIndex()
SQLGeneratorImpl
Returns whether the primary key requires special handling
(in which case SQLGeneratorImpl.isPrimaryKeyPartOfCreateTable()
and
SQLGeneratorImpl.createPrimaryKeyAsPartOfCreateTable(Table)
are used)
or nor (in which case SQLGeneratorImpl.isUniqueIndexPartOfCreateTable()
and SQLGeneratorImpl.createIndexAsPartOfCreateTable(Index)
apply).
isPrimaryKeyUniqueIndex
in class SQLGeneratorImpl
protected boolean isPrimaryKeyPartOfCreateTable()
SQLGeneratorImpl
Returns whether a CREATE TABLE
statement may contain
a PRIMARY KEY
clause.
isPrimaryKeyPartOfCreateTable
in class SQLGeneratorImpl
protected boolean isUniqueIndexPartOfCreateTable()
SQLGeneratorImpl
Returns whether a CREATE TABLE
statement may contain
a UNIQUE
clause.
isUniqueIndexPartOfCreateTable
in class SQLGeneratorImpl
protected boolean isNonUniqueIndexPartOfCreateTable()
SQLGeneratorImpl
Returns whether a CREATE TABLE
statement may contain
an INDEX
clause.
isNonUniqueIndexPartOfCreateTable
in class SQLGeneratorImpl
protected boolean isForeignKeyPartOfCreateTable()
SQLGeneratorImpl
Returns whether a CREATE TABLE
statement may contain
a FOREIGN KEY
clause.
isForeignKeyPartOfCreateTable
in class SQLGeneratorImpl
protected java.lang.String getCreateTableHeader(Table pTable)
getCreateTableHeader
in class SQLGeneratorImpl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |