net.sf.jaxme.sqls.db2
Interface DB2SQLGenerator

All Superinterfaces:
SQLGenerator
All Known Implementing Classes:
DB2SQLGeneratorImpl

public interface DB2SQLGenerator
extends SQLGenerator

Interface of an SQL generator for DB2 databases.

Author:
Jochen Wiedmann

Method Summary
 java.util.Collection getCreate(BufferPool pBufferPool)
          Returns an SQL statement creating the given BufferPool.
 java.util.Collection getCreate(TableSpace pTableSpace)
          Returns an SQL statement creating the given TableSpace.
 java.util.Collection getDrop(BufferPool pBufferPool)
          Returns an SQL statement dropping the given BufferPool.
 java.util.Collection getDrop(TableSpace pTableSpace)
          Returns an SQL statement dropping the given TableSpace.
 boolean isCreatingTableSpaceReferences()
          Returns whether the generated CREATE TABLE statements will contain table space references or not.
 void setCreatingTableSpaceReferences(boolean pCreatingTableSpaceReferences)
          Sets whether the generated CREATE TABLE statements will contain table space references or not.
 
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
 

Method Detail

getCreate

public java.util.Collection getCreate(BufferPool pBufferPool)

Returns an SQL statement creating the given BufferPool.


getDrop

public java.util.Collection getDrop(BufferPool pBufferPool)

Returns an SQL statement dropping the given BufferPool.


getCreate

public java.util.Collection getCreate(TableSpace pTableSpace)

Returns an SQL statement creating the given TableSpace.


getDrop

public java.util.Collection getDrop(TableSpace pTableSpace)

Returns an SQL statement dropping the given TableSpace.


setCreatingTableSpaceReferences

public void setCreatingTableSpaceReferences(boolean pCreatingTableSpaceReferences)

Sets whether the generated CREATE TABLE statements will contain table space references or not. By default they will.


isCreatingTableSpaceReferences

public boolean isCreatingTableSpaceReferences()

Returns whether the generated CREATE TABLE statements will contain table space references or not. By default they will.