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.
| Modifier and Type | Class and Description |
|---|---|
class |
DB2SQLFactoryImpl.PredefinedTableSpace
An immutable, predefined TableSpace.
|
SQLFactoryImpl.IdentImplSQLFactory.Ident| Modifier and Type | Field and Description |
|---|---|
TableSpace |
SYSCATSPACE
The predefined table space
SYSCATSPACE. |
TableSpace |
TEMPSPACE1
The predefined table space
TEMPSPACE1. |
TableSpace |
USERSPACE1
The predefined table space
USERSPACE1. |
| Constructor and Description |
|---|
DB2SQLFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
TableSpace |
getTableSpace(java.lang.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.
|
java.util.Iterator |
getTableSpaces()
Returns a list of all tablespaces.
|
Column |
newColumn(Table pTable,
Column.Name pName,
Column.Type pType) |
Schema |
newSchemaImpl(Schema.Name pName) |
SQLGenerator |
newSQLGenerator()
Creates a new
SQLGenerator. |
Table |
newTableImpl(Schema pSchema,
Table.Name pName) |
TableSpace |
newTableSpace(java.lang.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) |
getDefaultSchema, getMaxColumnNameLength, getMaxSchemaNameLength, getMaxTableNameLength, getObjectFactory, getSchema, getSchema, getSchema, getSchema, getSchemas, getTable, getTable, isColumnNameCaseSensitive, isSchemaNameCaseSensitive, isTableNameCaseSensitive, makeSchema, newColumnImpl, newDeleteStatement, newIdent, newInsertStatement, newObjectFactory, newSchema, newSchema, newSelectStatement, newUpdateStatement, readColumn, readForeignKeys, readPrimaryKey, readTable, readTables, setColumnNameCaseSensitive, setMaxColumnNameLength, setMaxSchemaNameLength, setMaxTableNameLength, setObjectFactory, setSchemaNameCaseSensitive, setTableNameCaseSensitiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultSchema, getMaxColumnNameLength, getMaxSchemaNameLength, getMaxTableNameLength, getObjectFactory, getSchema, getSchema, getSchema, getSchema, getSchemas, getTable, getTable, isColumnNameCaseSensitive, isSchemaNameCaseSensitive, isTableNameCaseSensitive, newDeleteStatement, newInsertStatement, newSchema, newSchema, newSelectStatement, newUpdateStatementpublic final TableSpace SYSCATSPACE
The predefined table space SYSCATSPACE.
public final TableSpace TEMPSPACE1
The predefined table space TEMPSPACE1.
public final TableSpace USERSPACE1
The predefined table space USERSPACE1.
public Schema newSchemaImpl(Schema.Name pName)
newSchemaImpl in class SQLFactoryImplpublic Table newTableImpl(Schema pSchema, Table.Name pName)
newTableImpl in class SQLFactoryImplpublic Column newColumn(Table pTable, Column.Name pName, Column.Type pType)
public SQLGenerator newSQLGenerator()
SQLFactoryCreates a new SQLGenerator.
newSQLGenerator in interface SQLFactorynewSQLGenerator in class SQLFactoryImplpublic TableSpace newTableSpace(java.lang.String pName, TableSpace.Type pType)
DB2SQLFactoryCreates a new TableSpace with the given name.
newTableSpace in interface DB2SQLFactorypublic TableSpace newTableSpace(TableSpace.Name pName, TableSpace.Type pType)
DB2SQLFactoryCreates a new TableSpace with the given name.
newTableSpace in interface DB2SQLFactoryprotected TableSpace newTableSpaceImpl(TableSpace.Name pName, TableSpace.Type pType)
public TableSpace getTableSpace(TableSpace.Name pName)
DB2SQLFactoryReturns the tablespace with the given name or null, if no such tablespace exists.
getTableSpace in interface DB2SQLFactorypublic TableSpace getTableSpace(java.lang.String pName)
DB2SQLFactoryReturns the tablespace with the given name or null, if no such tablespace exists.
getTableSpace in interface DB2SQLFactorypublic java.util.Iterator getTableSpaces()
DB2SQLFactoryReturns a list of all tablespaces.
This Iterator does not include the predefined table spaces
SYSCATSPACE, TEMPSPACE1, or
USERSPACE1. These table spaces are accessible via
DB2SQLFactory.getTableSpace(TableSpace.Name) only.
getTableSpaces in interface DB2SQLFactory