org.apache.ws.jaxme.sqls.db2

Class DB2SQLGeneratorImpl

public class DB2SQLGeneratorImpl extends SQLGeneratorImpl implements DB2SQLGenerator

Default implementation of an SQL generator for DB2 schemas.

Author: Jochen Wiedmann

Method Summary
CollectiongetCreate(BufferPool pBufferPool)
CollectiongetCreate(TableSpace pTableSpace)
protected StringgetCreate(Column pColumn)
protected StringgetCreateTableHeader(Table pTable)
CollectiongetDrop(BufferPool pBufferPool)
CollectiongetDrop(TableSpace pTableSpace)
CollectiongetDrop(Schema pSchema)
protected StringgetTypeName(Column.Type pType)
booleanisCreatingTableSpaceReferences()

Returns whether CREATE TABLE statements will contain table space references or not.

protected booleanisForeignKeyPartOfCreateTable()
protected booleanisPrimaryKeyPartOfCreateTable()
protected booleanisUniqueIndexPartOfCreateTable()
voidsetCreatingTableSpaceReferences(boolean pCreatingTableSpaceReferences)

Sets whether CREATE TABLE statements will contain table space references or not.

Method Detail

getCreate

public Collection getCreate(BufferPool pBufferPool)

getCreate

public Collection getCreate(TableSpace pTableSpace)

getCreate

protected String getCreate(Column pColumn)

getCreateTableHeader

protected String getCreateTableHeader(Table pTable)

getDrop

public Collection getDrop(BufferPool pBufferPool)

getDrop

public Collection getDrop(TableSpace pTableSpace)

getDrop

public Collection getDrop(Schema pSchema)

getTypeName

protected String getTypeName(Column.Type pType)

isCreatingTableSpaceReferences

public boolean isCreatingTableSpaceReferences()

Returns whether CREATE TABLE statements will contain table space references or not. The default is to create table space references.

isForeignKeyPartOfCreateTable

protected boolean isForeignKeyPartOfCreateTable()

isPrimaryKeyPartOfCreateTable

protected boolean isPrimaryKeyPartOfCreateTable()

isUniqueIndexPartOfCreateTable

protected boolean isUniqueIndexPartOfCreateTable()

setCreatingTableSpaceReferences

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.