org.apache.ws.jaxme.sqls.db2

Class DB2SQLFactoryImpl

Implemented Interfaces:
DB2SQLFactory, SQLFactory

public class DB2SQLFactoryImpl
extends SQLFactoryImpl
implements DB2SQLFactory

Default implementation of an SQL factory for DB2 databases. This factory ensures that the created implementations of Schema, Table, Column, and SQLGenerator may be casted to DB2Schema, DB2Table, DB2Column, DB2SQLGenerator, respectively.
Author:
Jochen Wiedmann

Nested Class Summary

class
DB2SQLFactoryImpl.PredefinedTableSpace
An immutable, predefined TableSpace.

Nested classes/interfaces inherited from class org.apache.ws.jaxme.sqls.impl.SQLFactoryImpl

SQLFactoryImpl.IdentImpl

Field Summary

TableSpace
SYSCATSPACE
The predefined table space SYSCATSPACE.
TableSpace
TEMPSPACE1
The predefined table space TEMPSPACE1.
TableSpace
USERSPACE1
The predefined table space USERSPACE1.

Constructor Summary

DB2SQLFactoryImpl()

Method Summary

TableSpace
getTableSpace(String pName)
Returns the tablespace with the given name or null, if no such tablespace exists.
TableSpace
getTableSpace(TableSpace.Name pName)
Returns the tablespace with the given name or null, if no such tablespace exists.
Iterator
getTableSpaces()
Returns a list of all tablespaces.
Column
newColumn(Table pTable, Column.Name pName, Column.Type pType)
SQLGenerator
newSQLGenerator()
Schema
newSchemaImpl(Schema.Name pName)
Table
newTableImpl(Schema pSchema, Table.Name pName)
TableSpace
newTableSpace(String pName, TableSpace.Type pType)
Creates a new TableSpace with the given name.
TableSpace
newTableSpace(TableSpace.Name pName, TableSpace.Type pType)
Creates a new TableSpace with the given name.
protected TableSpace
newTableSpaceImpl(TableSpace.Name pName, TableSpace.Type pType)

Methods inherited from class org.apache.ws.jaxme.sqls.impl.SQLFactoryImpl

getDefaultSchema, getMaxColumnNameLength, getMaxSchemaNameLength, getMaxTableNameLength, getObjectFactory, getSchema, getSchema, getSchema, getSchema, getSchemas, getTable, getTable, isColumnNameCaseSensitive, isSchemaNameCaseSensitive, isTableNameCaseSensitive, makeSchema, newColumnImpl, newDeleteStatement, newIdent, newInsertStatement, newObjectFactory, newSQLGenerator, newSchema, newSchema, newSchemaImpl, newSelectStatement, newTableImpl, newUpdateStatement, readColumn, readForeignKeys, readPrimaryKey, readTable, readTables, setColumnNameCaseSensitive, setMaxColumnNameLength, setMaxSchemaNameLength, setMaxTableNameLength, setObjectFactory, setSchemaNameCaseSensitive, setTableNameCaseSensitive

Field Details

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 Details

DB2SQLFactoryImpl

public DB2SQLFactoryImpl()

Method Details

getTableSpace

public TableSpace getTableSpace(String pName)
Returns the tablespace with the given name or null, if no such tablespace exists.
Specified by:
getTableSpace in interface DB2SQLFactory

getTableSpace

public TableSpace getTableSpace(TableSpace.Name pName)
Returns the tablespace with the given name or null, if no such tablespace exists.
Specified by:
getTableSpace in interface DB2SQLFactory

getTableSpaces

public Iterator getTableSpaces()
Specified by:
getTableSpaces in interface DB2SQLFactory

newColumn

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

newSQLGenerator

public SQLGenerator newSQLGenerator()
Specified by:
newSQLGenerator in interface SQLFactory
Overrides:
newSQLGenerator in interface SQLFactoryImpl

newSchemaImpl

public Schema newSchemaImpl(Schema.Name pName)
Overrides:
newSchemaImpl in interface SQLFactoryImpl

newTableImpl

public Table newTableImpl(Schema pSchema,
                          Table.Name pName)
Overrides:
newTableImpl in interface SQLFactoryImpl

newTableSpace

public TableSpace newTableSpace(String pName,
                                TableSpace.Type pType)
Creates a new TableSpace with the given name.
Specified by:
newTableSpace in interface DB2SQLFactory

newTableSpace

public TableSpace newTableSpace(TableSpace.Name pName,
                                TableSpace.Type pType)
Creates a new TableSpace with the given name.
Specified by:
newTableSpace in interface DB2SQLFactory

newTableSpaceImpl

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