org.apache.ws.jaxme.sqls.db2

Class DB2SQLFactoryImpl

public class DB2SQLFactoryImpl extends SQLFactoryImpl implements DB2SQLFactory

Default implementation of an SQL factory for DB2 databases. This factory ensures that the created implementations of {@link Schema}, {@link Table}, {@link Column}, and {@link SQLGenerator} may be casted to {@link DB2Schema}, {@link DB2Table}, {@link DB2Column}, {@link DB2SQLGenerator}, respectively.

Author: Jochen Wiedmann

Nested Class Summary
classDB2SQLFactoryImpl.PredefinedTableSpace

An immutable, predefined TableSpace.

Field Summary
TableSpaceSYSCATSPACE

The predefined table space SYSCATSPACE.

TableSpaceTEMPSPACE1

The predefined table space TEMPSPACE1.

TableSpaceUSERSPACE1

The predefined table space USERSPACE1.

Constructor Summary
DB2SQLFactoryImpl()
Method Summary
TableSpacegetTableSpace(TableSpace.Name pName)
TableSpacegetTableSpace(String pName)
IteratorgetTableSpaces()
ColumnnewColumn(Table pTable, Column.Name pName, Column.Type pType)
SchemanewSchemaImpl(Schema.Name pName)
SQLGeneratornewSQLGenerator()
TablenewTableImpl(Schema pSchema, Table.Name pName)
TableSpacenewTableSpace(String pName, TableSpace.Type pType)
TableSpacenewTableSpace(TableSpace.Name pName, TableSpace.Type pType)
protected TableSpacenewTableSpaceImpl(TableSpace.Name pName, TableSpace.Type pType)

Field Detail

SYSCATSPACE

public final TableSpace SYSCATSPACE

The predefined table space SYSCATSPACE.

TEMPSPACE1

public final TableSpace TEMPSPACE1

The predefined table space TEMPSPACE1.

USERSPACE1

public final TableSpace USERSPACE1

The predefined table space USERSPACE1.

Constructor Detail

DB2SQLFactoryImpl

public DB2SQLFactoryImpl()

Method Detail

getTableSpace

public TableSpace getTableSpace(TableSpace.Name pName)

getTableSpace

public TableSpace getTableSpace(String pName)

getTableSpaces

public Iterator getTableSpaces()

newColumn

public Column newColumn(Table pTable, Column.Name pName, Column.Type pType)

newSchemaImpl

public Schema newSchemaImpl(Schema.Name pName)

newSQLGenerator

public SQLGenerator newSQLGenerator()

newTableImpl

public Table newTableImpl(Schema pSchema, Table.Name pName)

newTableSpace

public TableSpace newTableSpace(String pName, TableSpace.Type pType)

newTableSpace

public TableSpace newTableSpace(TableSpace.Name pName, TableSpace.Type pType)

newTableSpaceImpl

protected TableSpace newTableSpaceImpl(TableSpace.Name pName, TableSpace.Type pType)