|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManipulationFactory
This is factory for creating builders and syntax elements related to SQL Data Manipulation (typically ALTER
and DROP statements).
| Method Summary | |
|---|---|
AddColumnDefinition |
createAddColumnDefinition(ColumnDefinition definition)
Creates the syntax element for adding column ( ADD COLUMN ...) in ALTER TABLE statement. |
AddTableConstraintDefinition |
createAddTableConstraintDefinition(TableConstraintDefinition constraintDefinition)
Creates the syntax element for adding table constraint( ADD ...) in ALTER TABLE statement. |
AlterColumnDefinition |
createAlterColumnDefinition(String columnName,
AlterColumnAction action)
Creates the syntax element for altering column definition ( ALTER COLUMN) in ALTER TABLE
statement. |
AlterTableStatement |
createAlterTableStatement(TableNameDirect tableName,
AlterTableAction action)
Creates the ALTER TABLE statement with specified parameter. |
DropColumnDefinition |
createDropColumnDefinition(String columnName,
DropBehaviour dropBehaviour)
Creates the syntax element for dropping a column definition ( DROP COLUMN) in ALTER TABLE
statement. |
DropSchemaStatement |
createDropSchemaStatement(String schemaName,
DropBehaviour dropBehaviour)
Creates the statement to drop schema ( DROP SCHEMA ...). |
DropTableConstraintDefinition |
createDropTableConstraintDefinition(String constraintName,
DropBehaviour dropBehaviour)
Creates the syntax element for dropping a table constraint ( DROP CONSTRAINT ...) in ALTER TABLE
statement. |
DropTableOrViewStatement |
createDropTableOrViewStatement(TableNameDirect tableName,
ObjectType theType,
DropBehaviour dropBehaviour)
Creates the statement to drop table ( DROP TABLE ...) or view (DROP VIEW ...). |
SetColumnDefault |
createSetColumnDefault(String newDefault)
Creates the syntax element for setting a new default for column ( SET DEFAULT ...) in ALTER TABLE
statement. |
| Method Detail |
|---|
AlterTableStatement createAlterTableStatement(TableNameDirect tableName,
AlterTableAction action)
ALTER TABLE statement with specified parameter.
tableName - The name of the table.action - The action to be done to the table.
ALTER TABLE statement syntax element.AlterTableStatement,
createAddColumnDefinition(ColumnDefinition),
createAddTableConstraintDefinition(TableConstraintDefinition),
createAlterColumnDefinition(String, AlterColumnAction),
createDropColumnDefinition(String, DropBehaviour),
createDropTableConstraintDefinition(String, DropBehaviour)AddColumnDefinition createAddColumnDefinition(ColumnDefinition definition)
ADD COLUMN ...) in ALTER TABLE statement.
definition - The column to add to table.
ADD COLUMN ...) in ALTER TABLE statement.AlterTableStatementAddTableConstraintDefinition createAddTableConstraintDefinition(TableConstraintDefinition constraintDefinition)
ADD ...) in ALTER TABLE statement.
constraintDefinition - The table constraint to add to table.
ADD ...) in ALTER TABLE statement.AlterTableStatement
AlterColumnDefinition createAlterColumnDefinition(String columnName,
AlterColumnAction action)
ALTER COLUMN) in ALTER TABLE
statement.
columnName - The name of the column to alter.action - The way how column should be altered.
ALTER COLUMN) in ALTER TABLE
statement.AlterColumnAction,
AlterColumnAction.DropDefault,
createSetColumnDefault(String)SetColumnDefault createSetColumnDefault(String newDefault)
SET DEFAULT ...) in ALTER TABLE
statement.
newDefault - The new default value for column.
SET DEFAULT ...) in ALTER TABLE
statement.AlterColumnAction
DropColumnDefinition createDropColumnDefinition(String columnName,
DropBehaviour dropBehaviour)
DROP COLUMN) in ALTER TABLE
statement.
columnName - The name of the column to drop.dropBehaviour - The drop behaviour.
DROP COLUMN) in ALTER TABLE
statement.DropBehaviour,
AlterTableStatement
DropTableConstraintDefinition createDropTableConstraintDefinition(String constraintName,
DropBehaviour dropBehaviour)
DROP CONSTRAINT ...) in ALTER TABLE
statement.
constraintName - The name of the constraint to drop.dropBehaviour - The drop behaviour.
DROP CONSTRAINT ...) in ALTER TABLE
statement.DropBehaviour,
AlterTableStatement
DropSchemaStatement createDropSchemaStatement(String schemaName,
DropBehaviour dropBehaviour)
DROP SCHEMA ...).
schemaName - The name of the schema to drop.dropBehaviour - The drop behaviour.
DROP SCHEMA ...).
DropTableOrViewStatement createDropTableOrViewStatement(TableNameDirect tableName,
ObjectType theType,
DropBehaviour dropBehaviour)
DROP TABLE ...) or view (DROP VIEW ...).
tableName - The name of the table or view to drop.theType - What to drop. Must be either ObjectType.TABLE for tables or ObjectType.VIEW for
views.dropBehaviour - The drop behaviour.
DROP TABLE ...) or view (DROP VIEW ...).DropBehaviour,
ObjectType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||