Class DdlGenerator
- java.lang.Object
-
- ru.curs.celesta.dbutils.adaptors.ddl.DdlGenerator
-
- Direct Known Subclasses:
FirebirdDdlGenerator
,MsSqlDdlGenerator
,OpenSourceDdlGenerator
,OraDdlGenerator
public abstract class DdlGenerator extends Object
Base class for SQL generation of data definition.
-
-
Constructor Summary
Constructors Constructor Description DdlGenerator(DBAdaptor dmlAdaptor)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract List<String>
createTableTriggersForMaterializedViews(BasicTable t)
abstract String
dropPk(TableElement t, String pkName)
Generates SQL for dropping primary key from the table by using known name of the primary key.abstract List<String>
dropTableTriggersForMaterializedViews(Connection conn, BasicTable t)
-
-
-
Constructor Detail
-
DdlGenerator
public DdlGenerator(DBAdaptor dmlAdaptor)
-
-
Method Detail
-
dropPk
public abstract String dropPk(TableElement t, String pkName)
Generates SQL for dropping primary key from the table by using known name of the primary key.- Parameters:
t
- table table namepkName
- primary key name
-
dropTableTriggersForMaterializedViews
public abstract List<String> dropTableTriggersForMaterializedViews(Connection conn, BasicTable t)
-
createTableTriggersForMaterializedViews
public abstract List<String> createTableTriggersForMaterializedViews(BasicTable t)
-
-