Class BasePostgresDdlHelper

    • Field Detail

      • jdbcTemplate

        protected final org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
      • schemaName

        protected final String schemaName
    • Constructor Detail

      • BasePostgresDdlHelper

        public BasePostgresDdlHelper​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
    • 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 abstract String getTriggerName()
      • getTriggerTableName

        protected abstract String getTriggerTableName()
      • getTriggerFunctionName

        protected abstract String getTriggerFunctionName()
      • getCreateTriggerFunctionDdl

        protected abstract String getCreateTriggerFunctionDdl()
      • getCreateEmptyTriggerFunctionDdl

        protected String getCreateEmptyTriggerFunctionDdl()
      • getDropTriggerDdl

        protected String getDropTriggerDdl​(String triggerName)
      • getCreateTriggerScripts

        protected List<String> getCreateTriggerScripts()
      • indexExist

        public boolean indexExist​(String indexName,
                                  String tableName)