Class BasePostgresDdlHelper
- java.lang.Object
-
- com.atlassian.confluence.security.denormalisedpermissions.impl.setup.postgres.BasePostgresDdlHelper
-
- Direct Known Subclasses:
PostgresContentDdlHelper,PostgresContentPermissionDdlHelper,PostgresContentPermissionSetDdlHelper,PostgresSpaceDdlHelper,PostgresSpacePermissionDdlHelper
public abstract class BasePostgresDdlHelper extends Object
Abstract class for Postgres 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 BasePostgresDdlHelper(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)voiddropTriggersAndFunctions()voidenableService()protected StringgetCreateEmptyTriggerFunctionDdl()protected StringgetCreateTriggerDdl(TriggerEvent event)protected abstract StringgetCreateTriggerFunctionDdl()protected List<String>getCreateTriggerScripts()protected StringgetDropTriggerDdl(String triggerName)protected abstract StringgetTriggerFunctionName()protected abstract StringgetTriggerName()protected StringgetTriggerName(TriggerEvent event)protected abstract StringgetTriggerTableName()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()
-
dropIndex
public void dropIndex(String indexName)
-
getTriggerName
protected String getTriggerName(TriggerEvent event)
-
getTriggerName
protected abstract String getTriggerName()
-
getTriggerTableName
protected abstract String getTriggerTableName()
-
getTriggerFunctionName
protected abstract String getTriggerFunctionName()
-
getCreateTriggerFunctionDdl
protected abstract String getCreateTriggerFunctionDdl()
-
getCreateEmptyTriggerFunctionDdl
protected String getCreateEmptyTriggerFunctionDdl()
-
getCreateTriggerDdl
protected String getCreateTriggerDdl(TriggerEvent event)
-
-