| 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 |
|---|---|
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 ObjectType |
ObjectType.SCHEMA
The object type which means to
DROP SCHEMA. |
static ObjectType |
ObjectType.TABLE
The object type which means to
DROP TABLE. |
static ObjectType |
ObjectType.VIEW
The object type which means to
DROP VIEW. |
| Modifier and Type | Method and Description |
|---|---|
ObjectType |
DropStatement.whatToDrop()
Returns the object type to drop.
|
Copyright © 2010-2012. All Rights Reserved.