|
|||||||||||
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.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 net.sf.jaxme.sqls.SQLGenerator |
getConstraint, getCreate, getCreate, getCreate, getCreate, getCreate, getCreate, getDrop, getDrop, getDrop, getDrop, getDrop, getLineTerminator, getQuery, getStatementTerminator, setLineTerminator, setStatementTerminator |
Constructor Detail |
public DB2SQLGeneratorImpl()
Method Detail |
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 isForeignKeyPartOfCreateTable()
SQLGeneratorImpl
Returns whether a CREATE TABLE
statement may contain
a FOREIGN KEY
clause.
isForeignKeyPartOfCreateTable
in class SQLGeneratorImpl
public 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 DB2SQLGenerator
public 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 DB2SQLGenerator
protected java.lang.String getTypeName(Column.Type pType)
getTypeName
in class SQLGeneratorImpl
public java.util.Collection getCreate(BufferPool pBufferPool)
DB2SQLGenerator
Returns an SQL statement creating the given BufferPool.
getCreate
in interface DB2SQLGenerator
public java.util.Collection getDrop(BufferPool pBufferPool)
DB2SQLGenerator
Returns an SQL statement dropping the given BufferPool.
getDrop
in interface DB2SQLGenerator
public java.util.Collection getCreate(TableSpace pTableSpace)
DB2SQLGenerator
Returns an SQL statement creating the given TableSpace.
getCreate
in interface DB2SQLGenerator
public java.util.Collection getDrop(TableSpace pTableSpace)
DB2SQLGenerator
Returns an SQL statement dropping the given TableSpace.
getDrop
in interface DB2SQLGenerator
protected java.lang.String getCreateTableHeader(Table pTable)
getCreateTableHeader
in class SQLGeneratorImpl
protected java.lang.String getCreate(Column pColumn)
getCreate
in class SQLGeneratorImpl
public java.util.Collection getDrop(Schema pSchema)
SQLGenerator
Generates a DROP SCHEMA statement. Doesn't create
DROP TABLE
or similar statements.
getDrop
in interface SQLGenerator
getDrop
in class SQLGeneratorImpl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |