public interface ManipulationFactory
ALTER
and DROP statements).| Modifier and Type | Method and Description |
|---|---|
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. |
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.AlterTableStatementAlterColumnDefinition 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.AlterColumnActionDropColumnDefinition 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,
AlterTableStatementDropTableConstraintDefinition 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,
AlterTableStatementDropSchemaStatement 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,
ObjectTypeCopyright © 2010-2012. All Rights Reserved.