|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.sqls.impl.SQLGeneratorImpl
org.apache.ws.jaxme.sqls.db2.DB2SQLGeneratorImpl
Default implementation of an SQL generator for DB2 schemas.
| Constructor Summary | |
DB2SQLGeneratorImpl()
|
|
| Method Summary | |
java.util.Collection |
getCreate(BufferPool pBufferPool)
Returns an SQL statement creating the given BufferPool. |
protected java.lang.String |
getCreate(Column pColumn)
|
java.util.Collection |
getCreate(TableSpace pTableSpace)
Returns an SQL statement creating the given TableSpace. |
protected java.lang.String |
getCreateTableHeader(Table pTable)
|
java.util.Collection |
getDrop(BufferPool pBufferPool)
Returns an SQL statement dropping the given BufferPool. |
java.util.Collection |
getDrop(Schema pSchema)
Generates a DROP SCHEMA statement. |
java.util.Collection |
getDrop(TableSpace pTableSpace)
Returns an SQL statement dropping the given TableSpace. |
protected java.lang.String |
getTypeName(Column.Type pType)
|
boolean |
isCreatingTableSpaceReferences()
Returns whether CREATE TABLE statements will contain
table space references or not. |
protected boolean |
isForeignKeyPartOfCreateTable()
Returns whether a CREATE TABLE statement may contain
a FOREIGN KEY clause. |
protected boolean |
isPrimaryKeyPartOfCreateTable()
Returns whether a CREATE TABLE statement may contain
a PRIMARY KEY clause. |
protected boolean |
isUniqueIndexPartOfCreateTable()
Returns whether a CREATE TABLE statement may contain
a UNIQUE clause. |
void |
setCreatingTableSpaceReferences(boolean pCreatingTableSpaceReferences)
Sets whether CREATE TABLE statements will contain
table space references or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ws.jaxme.sqls.SQLGenerator |
getConstraint, getCreate, getCreate, getCreate, getCreate, getCreate, getCreate, getDrop, getDrop, getDrop, getDrop, getDrop, getLineTerminator, getQuery, getStatementTerminator, getWhereClause, setLineTerminator, setStatementTerminator |
| Constructor Detail |
public DB2SQLGeneratorImpl()
| Method Detail |
protected boolean isPrimaryKeyPartOfCreateTable()
SQLGeneratorImplReturns whether a CREATE TABLE statement may contain
a PRIMARY KEY clause.
isPrimaryKeyPartOfCreateTable in class SQLGeneratorImplprotected boolean isUniqueIndexPartOfCreateTable()
SQLGeneratorImplReturns whether a CREATE TABLE statement may contain
a UNIQUE clause.
isUniqueIndexPartOfCreateTable in class SQLGeneratorImplprotected boolean isForeignKeyPartOfCreateTable()
SQLGeneratorImplReturns whether a CREATE TABLE statement may contain
a FOREIGN KEY clause.
isForeignKeyPartOfCreateTable in class SQLGeneratorImplpublic void setCreatingTableSpaceReferences(boolean pCreatingTableSpaceReferences)
Sets whether CREATE TABLE statements will contain
table space references or not. The default is to create table
space references.
setCreatingTableSpaceReferences in interface DB2SQLGeneratorpublic boolean isCreatingTableSpaceReferences()
Returns whether CREATE TABLE statements will contain
table space references or not. The default is to create table
space references.
isCreatingTableSpaceReferences in interface DB2SQLGeneratorprotected java.lang.String getTypeName(Column.Type pType)
getTypeName in class SQLGeneratorImplpublic java.util.Collection getCreate(BufferPool pBufferPool)
DB2SQLGeneratorReturns an SQL statement creating the given BufferPool.
getCreate in interface DB2SQLGeneratorpublic java.util.Collection getDrop(BufferPool pBufferPool)
DB2SQLGeneratorReturns an SQL statement dropping the given BufferPool.
getDrop in interface DB2SQLGeneratorpublic java.util.Collection getCreate(TableSpace pTableSpace)
DB2SQLGeneratorReturns an SQL statement creating the given TableSpace.
getCreate in interface DB2SQLGeneratorpublic java.util.Collection getDrop(TableSpace pTableSpace)
DB2SQLGeneratorReturns an SQL statement dropping the given TableSpace.
getDrop in interface DB2SQLGeneratorprotected java.lang.String getCreateTableHeader(Table pTable)
getCreateTableHeader in class SQLGeneratorImplprotected java.lang.String getCreate(Column pColumn)
getCreate in class SQLGeneratorImplpublic java.util.Collection getDrop(Schema pSchema)
SQLGeneratorGenerates a DROP SCHEMA statement. Doesn't create
DROP TABLE or similar statements.
getDrop in interface SQLGeneratorgetDrop in class SQLGeneratorImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||