|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.sqls.impl.SQLFactoryImpl net.sf.jaxme.sqls.db2.DB2SQLFactoryImpl
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.
Nested Class Summary | |
class |
DB2SQLFactoryImpl.PredefinedTableSpace
An immutable, predefined TableSpace. |
Nested classes inherited from class net.sf.jaxme.sqls.impl.SQLFactoryImpl |
SQLFactoryImpl.IdentImpl |
Nested classes inherited from class net.sf.jaxme.sqls.SQLFactory |
SQLFactory.Ident |
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(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 DB2SQLFactoryImpl.PredefinedTableSpace with the given name. |
TableSpace |
newTableSpace(TableSpace.Name pName,
TableSpace.Type pType)
Creates a new DB2SQLFactoryImpl.PredefinedTableSpace with the given name. |
protected TableSpace |
newTableSpaceImpl(TableSpace.Name pName,
TableSpace.Type pType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jaxme.sqls.SQLFactory |
getDefaultSchema, getMaxColumnNameLength, getMaxSchemaNameLength, getMaxTableNameLength, getSchema, getSchema, getSchema, getSchema, getSchemas, isColumnNameCaseSensitive, isSchemaNameCaseSensitive, isTableNameCaseSensitive, newDeleteStatement, newInsertStatement, newSchema, newSchema, newSelectStatement, newUpdateStatement |
Field Detail |
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
.
Constructor Detail |
public DB2SQLFactoryImpl()
Method Detail |
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |