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.JdbcTemplate
jdbcTemplate
protected String
schemaName
-
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 void
createTriggersAndFunctions()
void
disableService()
void
dropIndex(String indexName)
void
dropTriggersAndFunctions()
void
enableService()
protected String
getCreateEmptyTriggerFunctionDdl()
protected String
getCreateTriggerDdl(TriggerEvent event)
protected abstract String
getCreateTriggerFunctionDdl()
protected List<String>
getCreateTriggerScripts()
protected String
getDropTriggerDdl(String triggerName)
protected abstract String
getTriggerFunctionName()
protected abstract String
getTriggerName()
protected String
getTriggerName(TriggerEvent event)
protected abstract String
getTriggerTableName()
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()
-
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)
-
-