Class HistoryLevelDeterminatorJdbcTemplateImpl
- java.lang.Object
-
- org.camunda.bpm.spring.boot.starter.jdbc.HistoryLevelDeterminatorJdbcTemplateImpl
-
- All Implemented Interfaces:
HistoryLevelDeterminator
,org.springframework.beans.factory.InitializingBean
public class HistoryLevelDeterminatorJdbcTemplateImpl extends java.lang.Object implements HistoryLevelDeterminator, org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected CamundaBpmProperties
camundaBpmProperties
protected java.lang.String
defaultHistoryLevel
protected java.util.List<HistoryLevel>
historyLevels
protected boolean
ignoreDataAccessException
protected org.springframework.jdbc.core.JdbcTemplate
jdbcTemplate
protected static java.lang.String
SQL_TEMPLATE
-
Constructor Summary
Constructors Constructor Description HistoryLevelDeterminatorJdbcTemplateImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomHistoryLevels(java.util.Collection<HistoryLevel> customHistoryLevels)
void
afterPropertiesSet()
static HistoryLevelDeterminator
createHistoryLevelDeterminator(CamundaBpmProperties camundaBpmProperties, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
java.lang.String
determineHistoryLevel()
CamundaBpmProperties
getCamundaBpmProperties()
java.lang.String
getDefaultHistoryLevel()
protected java.lang.String
getHistoryLevelFrom(java.lang.Integer historyLevelFromDb)
org.springframework.jdbc.core.JdbcTemplate
getJdbcTemplate()
protected java.lang.String
getSql()
boolean
isIgnoreDataAccessException()
void
setCamundaBpmProperties(CamundaBpmProperties camundaBpmProperties)
void
setDefaultHistoryLevel(java.lang.String defaultHistoryLevel)
void
setIgnoreDataAccessException(boolean ignoreDataAccessException)
void
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
-
-
Field Detail
-
SQL_TEMPLATE
protected static final java.lang.String SQL_TEMPLATE
- See Also:
- Constant Field Values
-
historyLevels
protected final java.util.List<HistoryLevel> historyLevels
-
defaultHistoryLevel
protected java.lang.String defaultHistoryLevel
-
jdbcTemplate
protected org.springframework.jdbc.core.JdbcTemplate jdbcTemplate
-
ignoreDataAccessException
protected boolean ignoreDataAccessException
-
camundaBpmProperties
protected CamundaBpmProperties camundaBpmProperties
-
-
Method Detail
-
createHistoryLevelDeterminator
public static HistoryLevelDeterminator createHistoryLevelDeterminator(CamundaBpmProperties camundaBpmProperties, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
getDefaultHistoryLevel
public java.lang.String getDefaultHistoryLevel()
-
setDefaultHistoryLevel
public void setDefaultHistoryLevel(java.lang.String defaultHistoryLevel)
-
getJdbcTemplate
public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
-
setJdbcTemplate
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
isIgnoreDataAccessException
public boolean isIgnoreDataAccessException()
-
setIgnoreDataAccessException
public void setIgnoreDataAccessException(boolean ignoreDataAccessException)
-
getCamundaBpmProperties
public CamundaBpmProperties getCamundaBpmProperties()
-
setCamundaBpmProperties
public void setCamundaBpmProperties(CamundaBpmProperties camundaBpmProperties)
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
determineHistoryLevel
public java.lang.String determineHistoryLevel()
- Specified by:
determineHistoryLevel
in interfaceHistoryLevelDeterminator
-
getSql
protected java.lang.String getSql()
-
getHistoryLevelFrom
protected java.lang.String getHistoryLevelFrom(java.lang.Integer historyLevelFromDb)
-
addCustomHistoryLevels
public void addCustomHistoryLevels(java.util.Collection<HistoryLevel> customHistoryLevels)
-
-