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 CamundaBpmPropertiescamundaBpmPropertiesprotected java.lang.StringdefaultHistoryLevelprotected java.util.List<HistoryLevel>historyLevelsprotected booleanignoreDataAccessExceptionprotected org.springframework.jdbc.core.JdbcTemplatejdbcTemplateprotected static java.lang.StringSQL_TEMPLATE
-
Constructor Summary
Constructors Constructor Description HistoryLevelDeterminatorJdbcTemplateImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomHistoryLevels(java.util.Collection<HistoryLevel> customHistoryLevels)voidafterPropertiesSet()static HistoryLevelDeterminatorcreateHistoryLevelDeterminator(CamundaBpmProperties camundaBpmProperties, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)java.lang.StringdetermineHistoryLevel()CamundaBpmPropertiesgetCamundaBpmProperties()java.lang.StringgetDefaultHistoryLevel()protected java.lang.StringgetHistoryLevelFrom(java.lang.Integer historyLevelFromDb)org.springframework.jdbc.core.JdbcTemplategetJdbcTemplate()protected java.lang.StringgetSql()booleanisIgnoreDataAccessException()voidsetCamundaBpmProperties(CamundaBpmProperties camundaBpmProperties)voidsetDefaultHistoryLevel(java.lang.String defaultHistoryLevel)voidsetIgnoreDataAccessException(boolean ignoreDataAccessException)voidsetJdbcTemplate(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:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
determineHistoryLevel
public java.lang.String determineHistoryLevel()
- Specified by:
determineHistoryLevelin 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)
-
-