net.sf.jaxme.sqls.hsqldb
Class HsqlDbSQLGeneratorImpl

java.lang.Object
  extended bynet.sf.jaxme.sqls.impl.SQLGeneratorImpl
      extended bynet.sf.jaxme.sqls.hsqldb.HsqlDbSQLGeneratorImpl
All Implemented Interfaces:
HsqlDbSQLGenerator, SQLGenerator

public class HsqlDbSQLGeneratorImpl
extends SQLGeneratorImpl
implements HsqlDbSQLGenerator

Default implementation of an SQL generator for HsqlDb schemas.

Author:
Jochen Wiedmann

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 net.sf.jaxme.sqls.impl.SQLGeneratorImpl
createForeignKeyAsPartOfCreateTable, createIndexAsPartOfCreateTable, createPrimaryKeyAsPartOfCreateTable, getBooleanConstraint, getBooleanConstraintPart, getBooleanConstraintType, getColumnAlias, getColumnAlias, getCombinedConstraint, getConstraint, getCreate, getCreate, getCreate, getCreate, getCreate, getCreate, getCreate, getDeleteQuery, getDrop, getDrop, getDrop, getDrop, getDrop, getDrop, getEscapedString, getIndent, getInsertQuery, getJoinAlias, getLineTerminator, getQuery, getSelectQuery, getStatementTerminator, getTableAlias, getTypeName, getUpdateQuery, getValue, getWhereClause, newStatement, setLineTerminator, setStatementTerminator
 
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

HsqlDbSQLGeneratorImpl

public HsqlDbSQLGeneratorImpl()
Method Detail

isPrimaryKeyUniqueIndex

protected boolean isPrimaryKeyUniqueIndex()
Description copied from class: 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).

Overrides:
isPrimaryKeyUniqueIndex in class SQLGeneratorImpl

isPrimaryKeyPartOfCreateTable

protected boolean isPrimaryKeyPartOfCreateTable()
Description copied from class: SQLGeneratorImpl

Returns whether a CREATE TABLE statement may contain a PRIMARY KEY clause.

Overrides:
isPrimaryKeyPartOfCreateTable in class SQLGeneratorImpl

isUniqueIndexPartOfCreateTable

protected boolean isUniqueIndexPartOfCreateTable()
Description copied from class: SQLGeneratorImpl

Returns whether a CREATE TABLE statement may contain a UNIQUE clause.

Overrides:
isUniqueIndexPartOfCreateTable in class SQLGeneratorImpl

isNonUniqueIndexPartOfCreateTable

protected boolean isNonUniqueIndexPartOfCreateTable()
Description copied from class: SQLGeneratorImpl

Returns whether a CREATE TABLE statement may contain an INDEX clause.

Overrides:
isNonUniqueIndexPartOfCreateTable in class SQLGeneratorImpl

isForeignKeyPartOfCreateTable

protected boolean isForeignKeyPartOfCreateTable()
Description copied from class: SQLGeneratorImpl

Returns whether a CREATE TABLE statement may contain a FOREIGN KEY clause.

Overrides:
isForeignKeyPartOfCreateTable in class SQLGeneratorImpl

getCreateTableHeader

protected java.lang.String getCreateTableHeader(Table pTable)
Overrides:
getCreateTableHeader in class SQLGeneratorImpl