Class BaseH2DdlHelper
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.setup.h2triggers.BaseH2DdlHelper
-
- Direct Known Subclasses:
H2ContentDdlHelper
,H2ContentPermissionDdlHelper
,H2ContentPermissionSetDdlHelper
,H2SpaceDdlHelper
,H2SpacePermissionDdlHelper
public abstract class BaseH2DdlHelper extends Object
Abstract class for H2 operations- Since:
- 7.11.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.jdbc.core.JdbcTemplate
jdbcTemplate
-
Constructor Summary
Constructors Constructor Description BaseH2DdlHelper(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
createTriggersAndFunctions(boolean enableService)
void
disableService()
void
dropIndex(String indexName)
void
dropTriggersAndFunctions()
void
enableService()
protected TriggerEvent[]
getSupportedEvents()
protected abstract String
getTableName()
protected abstract String
getTriggerClassName()
protected abstract String
getTriggerName(TriggerEvent event)
boolean
indexExist(String indexName, String tableName)
-
-
-
Method Detail
-
getTriggerName
protected abstract String getTriggerName(TriggerEvent event)
-
getTableName
protected abstract String getTableName()
-
getTriggerClassName
protected abstract String getTriggerClassName()
-
createTriggersAndFunctions
public void createTriggersAndFunctions(boolean enableService)
-
getSupportedEvents
protected TriggerEvent[] getSupportedEvents()
-
enableService
public void enableService()
-
disableService
public void disableService()
-
dropTriggersAndFunctions
public void dropTriggersAndFunctions()
-
dropIndex
public void dropIndex(String indexName)
-
-