org.sql.generation.api.grammar.factories.pgsql
Interface PgSQLManipulationFactory
- All Superinterfaces:
- ManipulationFactory
public interface PgSQLManipulationFactory
- extends ManipulationFactory
- Author:
- Stanislav Muhametsin
createDropTableOrViewStatement
PgSQLDropTableOrViewStatement createDropTableOrViewStatement(TableNameDirect tableName,
ObjectType theType,
DropBehaviour dropBehaviour)
- Description copied from interface:
ManipulationFactory
- Creates the statement to drop table (
DROP TABLE ...) or view (DROP VIEW ...).
- Specified by:
createDropTableOrViewStatement in interface ManipulationFactory
- Parameters:
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.
- Returns:
- The statement to drop table (
DROP TABLE ...) or view (DROP VIEW ...). - See Also:
DropBehaviour,
ObjectType
createDropTableOrViewStatement
PgSQLDropTableOrViewStatement createDropTableOrViewStatement(TableNameDirect tableName,
ObjectType theType,
DropBehaviour dropBehaviour,
Boolean useIfExists)
- Creates
DROP TABLE/VIEW statement, which may use IF EXISTS clause before the table name.
- Parameters:
tableName - The name of the table/view to drop.theType - What to drop - ObjectType.TABLE or ObjectType.VIEW.dropBehaviour - Drop behaviour - DropBehaviour.CASCADE or DropBehaviour.RESTRICT.useIfExists - true to append IF EXISTS before table/view name, false otherwise.
- Returns:
- New
DROP TABLE/VIEW statement.
Copyright © 2010-2012. All Rights Reserved.