org.sql.generation.api.grammar.factories.pgsql
Interface PgSQLManipulationFactory

All Superinterfaces:
ManipulationFactory

public interface PgSQLManipulationFactory
extends ManipulationFactory

Author:
Stanislav Muhametsin

Method Summary
 PgSQLDropTableOrViewStatement createDropTableOrViewStatement(TableName tableName, ObjectType theType, DropBehaviour dropBehaviour)
          Creates the statement to drop table (DROP TABLE ...) or view (DROP VIEW ...).
 PgSQLDropTableOrViewStatement createDropTableOrViewStatement(TableName tableName, ObjectType theType, DropBehaviour dropBehaviour, java.lang.Boolean useIfExists)
          Creates DROP TABLE/VIEW statement, which may use IF EXISTS clause before the table name.
 
Methods inherited from interface org.sql.generation.api.grammar.factories.ManipulationFactory
createAddColumnDefinition, createAddTableConstraintDefinition, createAlterColumnDefinition, createAlterTableStatement, createDropColumnDefinition, createDropSchemaStatement, createDropTableConstraintDefinition, createSetColumnDefault
 

Method Detail

createDropTableOrViewStatement

PgSQLDropTableOrViewStatement createDropTableOrViewStatement(TableName 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(TableName tableName,
                                                             ObjectType theType,
                                                             DropBehaviour dropBehaviour,
                                                             java.lang.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. All Rights Reserved.