| Package | Description |
|---|---|
| org.sql.generation.api.grammar.factories |
This package provides factories to create various builders and SQL syntax elements.
|
| org.sql.generation.api.grammar.factories.pgsql |
Package to contain PostgreSQL-specific factories enabling creating of PostgreSQL-specific syntax elements.
|
| org.sql.generation.api.grammar.manipulation |
This package provides syntax elements for
DROP and ALTER statements. |
| Modifier and Type | Method and Description |
|---|---|
DropColumnDefinition |
ManipulationFactory.createDropColumnDefinition(String columnName,
DropBehaviour dropBehaviour)
Creates the syntax element for dropping a column definition (
DROP COLUMN) in ALTER TABLE
statement. |
DropSchemaStatement |
ManipulationFactory.createDropSchemaStatement(String schemaName,
DropBehaviour dropBehaviour)
Creates the statement to drop schema (
DROP SCHEMA ...). |
DropTableConstraintDefinition |
ManipulationFactory.createDropTableConstraintDefinition(String constraintName,
DropBehaviour dropBehaviour)
Creates the syntax element for dropping a table constraint (
DROP CONSTRAINT ...) in ALTER TABLE
statement. |
DropTableOrViewStatement |
ManipulationFactory.createDropTableOrViewStatement(TableNameDirect tableName,
ObjectType theType,
DropBehaviour dropBehaviour)
Creates the statement to drop table (
DROP TABLE ...) or view (DROP VIEW ...). |
| Modifier and Type | Method and Description |
|---|---|
PgSQLDropTableOrViewStatement |
PgSQLManipulationFactory.createDropTableOrViewStatement(TableNameDirect tableName,
ObjectType theType,
DropBehaviour dropBehaviour) |
PgSQLDropTableOrViewStatement |
PgSQLManipulationFactory.createDropTableOrViewStatement(TableNameDirect tableName,
ObjectType theType,
DropBehaviour dropBehaviour,
Boolean useIfExists)
Creates
DROP TABLE/VIEW statement, which may use IF EXISTS clause before the table name. |
| Modifier and Type | Field and Description |
|---|---|
static DropBehaviour |
DropBehaviour.CASCADE
The drop behaviour which means to
CASCADE the DROP through all depending elements. |
static DropBehaviour |
DropBehaviour.RESTRICT
The drop behaviour which means to
RESTRICT the DROP if any elements depend on the object to be
dropped. |
| Modifier and Type | Method and Description |
|---|---|
DropBehaviour |
DropBehaviourContainer.getDropBehaviour()
Returns the drop behaviour for this clause or statement.
|
Copyright © 2010-2012. All Rights Reserved.