public abstract class BasePostgresDdlHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.jdbc.core.JdbcTemplate |
jdbcTemplate |
Constructor and Description |
---|
BasePostgresDdlHelper(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) |
Modifier and Type | Method and 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() |
public BasePostgresDdlHelper(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
public void createTriggersAndFunctions()
public void enableService()
public void disableService()
public void dropTriggersAndFunctions()
public void dropIndex(String indexName)
protected String getTriggerName(TriggerEvent event)
protected abstract String getTriggerName()
protected abstract String getTriggerTableName()
protected abstract String getTriggerFunctionName()
protected abstract String getCreateTriggerFunctionDdl()
protected String getCreateEmptyTriggerFunctionDdl()
protected String getCreateTriggerDdl(TriggerEvent event)
Copyright © 2003–2021 Atlassian. All rights reserved.