Class BaseMySqlDdlHelper
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.setup.mysql.BaseMySqlDdlHelper
-
- Direct Known Subclasses:
MySqlContentDdlHelper,MySqlContentPermissionDdlHelper,MySqlContentPermissionSetDdlHelper,MySqlSpaceDdlHelper,MySqlSpacePermissionDdlHelper
public abstract class BaseMySqlDdlHelper extends Object
Abstract class for MySql operations- Since:
- 7.11.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.jdbc.core.JdbcTemplatejdbcTemplateprotected StringschemaName
-
Constructor Summary
Constructors Constructor Description BaseMySqlDdlHelper(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreateTriggersAndFunctions()voiddisableService()voiddropIndex(String indexName, String tableName)voiddropTriggersAndFunctions()voidenableService()protected abstract StringgetCreateDeleteTriggerDdl()protected abstract StringgetCreateInsertTriggerDdl()protected List<String>getCreateTriggerScripts()protected abstract StringgetCreateUpdateTriggerDdl()protected abstract StringgetProcedureName()protected TriggerEvent[]getSupportedEvents()protected abstract StringgetTriggerName()protected StringgetTriggerName(TriggerEvent event)booleanindexExist(String indexName, String tableName)
-
-
-
Field Detail
-
jdbcTemplate
protected final org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
-
schemaName
protected final String schemaName
-
-
Method Detail
-
createTriggersAndFunctions
public void createTriggersAndFunctions()
-
enableService
public void enableService()
-
disableService
public void disableService()
-
dropTriggersAndFunctions
public void dropTriggersAndFunctions()
-
getTriggerName
protected String getTriggerName(TriggerEvent event)
-
getTriggerName
protected abstract String getTriggerName()
-
getProcedureName
protected abstract String getProcedureName()
-
getCreateUpdateTriggerDdl
protected abstract String getCreateUpdateTriggerDdl()
-
getCreateInsertTriggerDdl
protected abstract String getCreateInsertTriggerDdl()
-
getCreateDeleteTriggerDdl
protected abstract String getCreateDeleteTriggerDdl()
-
getSupportedEvents
protected TriggerEvent[] getSupportedEvents()
-
-