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.JdbcTemplate
jdbcTemplate
protected String
schemaName
-
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 void
createTriggersAndFunctions()
void
disableService()
void
dropIndex(String indexName, String tableName)
void
dropTriggersAndFunctions()
void
enableService()
protected abstract String
getCreateDeleteTriggerDdl()
protected abstract String
getCreateInsertTriggerDdl()
protected List<String>
getCreateTriggerScripts()
protected abstract String
getCreateUpdateTriggerDdl()
protected abstract String
getProcedureName()
protected TriggerEvent[]
getSupportedEvents()
protected abstract String
getTriggerName()
protected String
getTriggerName(TriggerEvent event)
boolean
indexExist(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()
-
-