Class PostgresDdlGenerator
- java.lang.Object
-
- ru.curs.celesta.dbutils.adaptors.ddl.DdlGenerator
-
- ru.curs.celesta.dbutils.adaptors.ddl.OpenSourceDdlGenerator
-
- ru.curs.celesta.dbutils.adaptors.ddl.PostgresDdlGenerator
-
public final class PostgresDdlGenerator extends OpenSourceDdlGenerator
Class for SQL generation of data definition of PostgreSQL.
-
-
Constructor Summary
Constructors Constructor Description PostgresDdlGenerator(DBAdaptor dmlAdaptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
createTableTriggersForMaterializedViews(BasicTable t)
String
dropPk(TableElement t, String pkName)
Generates SQL for dropping primary key from the table by using known name of the primary key.List<String>
dropTableTriggersForMaterializedViews(Connection conn, BasicTable t)
SQLGenerator
getViewSQLGenerator()
-
-
-
Constructor Detail
-
PostgresDdlGenerator
public PostgresDdlGenerator(DBAdaptor dmlAdaptor)
-
-
Method Detail
-
dropPk
public String dropPk(TableElement t, String pkName)
Description copied from class:DdlGenerator
Generates SQL for dropping primary key from the table by using known name of the primary key.- Specified by:
dropPk
in classDdlGenerator
- Parameters:
t
- table table namepkName
- primary key name
-
getViewSQLGenerator
public SQLGenerator getViewSQLGenerator()
-
dropTableTriggersForMaterializedViews
public List<String> dropTableTriggersForMaterializedViews(Connection conn, BasicTable t)
- Specified by:
dropTableTriggersForMaterializedViews
in classDdlGenerator
-
createTableTriggersForMaterializedViews
public List<String> createTableTriggersForMaterializedViews(BasicTable t)
- Specified by:
createTableTriggersForMaterializedViews
in classDdlGenerator
-
-