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 Object implements HistoryLevelDeterminator, org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description protected CamundaBpmProperties
camundaBpmProperties
protected String
defaultHistoryLevel
protected List<HistoryLevel>
historyLevels
protected boolean
ignoreDataAccessException
protected org.springframework.jdbc.core.JdbcTemplate
jdbcTemplate
protected static 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(Collection<HistoryLevel> customHistoryLevels)
void
afterPropertiesSet()
static HistoryLevelDeterminator
createHistoryLevelDeterminator(CamundaBpmProperties camundaBpmProperties, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
String
determineHistoryLevel()
CamundaBpmProperties
getCamundaBpmProperties()
String
getDefaultHistoryLevel()
protected String
getHistoryLevelFrom(Integer historyLevelFromDb)
org.springframework.jdbc.core.JdbcTemplate
getJdbcTemplate()
protected String
getSql()
boolean
isIgnoreDataAccessException()
void
setCamundaBpmProperties(CamundaBpmProperties camundaBpmProperties)
void
setDefaultHistoryLevel(String defaultHistoryLevel)
void
setIgnoreDataAccessException(boolean ignoreDataAccessException)
void
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
-
-
Field Detail
-
SQL_TEMPLATE
protected static final String SQL_TEMPLATE
- See Also:
- Constant Field Values
-
historyLevels
protected final List<HistoryLevel> historyLevels
-
defaultHistoryLevel
protected 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 String getDefaultHistoryLevel()
-
setDefaultHistoryLevel
public void setDefaultHistoryLevel(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 Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
determineHistoryLevel
public String determineHistoryLevel()
- Specified by:
determineHistoryLevel
in interfaceHistoryLevelDeterminator
-
getSql
protected String getSql()
-
addCustomHistoryLevels
public void addCustomHistoryLevels(Collection<HistoryLevel> customHistoryLevels)
-
-