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.IdentImpl
SQLFactory.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, setTableNameCaseSensitive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultSchema, getMaxColumnNameLength, getMaxSchemaNameLength, getMaxTableNameLength, getObjectFactory, getSchema, getSchema, getSchema, getSchema, getSchemas, getTable, getTable, isColumnNameCaseSensitive, isSchemaNameCaseSensitive, isTableNameCaseSensitive, newDeleteStatement, newInsertStatement, newSchema, newSchema, newSelectStatement, newUpdateStatement
public 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 SQLFactoryImpl
public Table newTableImpl(Schema pSchema, Table.Name pName)
newTableImpl
in class SQLFactoryImpl
public Column newColumn(Table pTable, Column.Name pName, Column.Type pType)
public SQLGenerator newSQLGenerator()
SQLFactory
Creates a new SQLGenerator
.
newSQLGenerator
in interface SQLFactory
newSQLGenerator
in class SQLFactoryImpl
public TableSpace newTableSpace(java.lang.String pName, TableSpace.Type pType)
DB2SQLFactory
Creates a new TableSpace
with the given name.
newTableSpace
in interface DB2SQLFactory
public TableSpace newTableSpace(TableSpace.Name pName, TableSpace.Type pType)
DB2SQLFactory
Creates a new TableSpace
with the given name.
newTableSpace
in interface DB2SQLFactory
protected TableSpace newTableSpaceImpl(TableSpace.Name pName, TableSpace.Type pType)
public TableSpace getTableSpace(TableSpace.Name pName)
DB2SQLFactory
Returns the tablespace with the given name or null, if no such tablespace exists.
getTableSpace
in interface DB2SQLFactory
public TableSpace getTableSpace(java.lang.String pName)
DB2SQLFactory
Returns the tablespace with the given name or null, if no such tablespace exists.
getTableSpace
in interface DB2SQLFactory
public java.util.Iterator getTableSpaces()
DB2SQLFactory
Returns 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