@Test public void getSqlTest() { HistoryLevelDeterminatorJdbcTemplateImpl determinator = new HistoryLevelDeterminatorJdbcTemplateImpl(); determinator.setCamundaBpmProperties(camundaBpmProperties); assertEquals("SELECT VALUE_ FROM ACT_GE_PROPERTY WHERE NAME_='historyLevel'", determinator.getSql()); camundaBpmProperties.getDatabase().setTablePrefix("TEST_"); assertEquals("SELECT VALUE_ FROM TEST_ACT_GE_PROPERTY WHERE NAME_='historyLevel'", determinator.getSql()); }
protected String getSql() { String tablePrefix = camundaBpmProperties.getDatabase().getTablePrefix(); if (tablePrefix == null) { tablePrefix = ""; } return SQL_TEMPLATE.replace(TABLE_PREFIX_PLACEHOLDER, tablePrefix); }
HistoryLevelDeterminatorJdbcTemplateImpl implements HistoryLevelDeterminator, InitializingBean { protected String getSql() { String tablePrefix = camundaBpmProperties.getDatabase().getTablePrefix(); if (tablePrefix == null) { tablePrefix = ""; } return SQL_TEMPLATE.replace(TABLE_PREFIX_PLACEHOLDER, tablePrefix); } }
HistoryLevelDeterminatorJdbcTemplateImpl implements HistoryLevelDeterminator, InitializingBean { protected String getSql() { String tablePrefix = camundaBpmProperties.getDatabase().getTablePrefix(); if (tablePrefix == null) { tablePrefix = ""; } return SQL_TEMPLATE.replace(TABLE_PREFIX_PLACEHOLDER, tablePrefix); }  }
HistoryLevelDeterminatorJdbcTemplateImpl implements HistoryLevelDeterminator, InitializingBean { protected String getSql() { String tablePrefix = camundaBpmProperties.getDatabase().getTablePrefix(); if (tablePrefix == null) { tablePrefix = ""; } return SQL_TEMPLATE.replace(TABLE_PREFIX_PLACEHOLDER, tablePrefix); }  static HistoryLevelDeterminator createHistoryLevelDeterminator(CamundaBpmProperties camundaBpmProperties, JdbcTemplate jdbcTemplate); String getDefaultHistoryLevel(); void setDefaultHistoryLevel(String defaultHistoryLevel); JdbcTemplate getJdbcTemplate(); void setJdbcTemplate(JdbcTemplate jdbcTemplate); boolean isIgnoreDataAccessException(); void setIgnoreDataAccessException(boolean ignoreDataAccessException); CamundaBpmProperties getCamundaBpmProperties(); void setCamundaBpmProperties(CamundaBpmProperties camundaBpmProperties); @Override void afterPropertiesSet(); @Override String determineHistoryLevel(); void addCustomHistoryLevels(Collection<HistoryLevel> customHistoryLevels); }
HistoryLevelDeterminatorJdbcTemplateImpl implements HistoryLevelDeterminator, InitializingBean { protected String getSql() { String tablePrefix = camundaBpmProperties.getDatabase().getTablePrefix(); if (tablePrefix == null) { tablePrefix = ""; } return SQL_TEMPLATE.replace(TABLE_PREFIX_PLACEHOLDER, tablePrefix); }  static HistoryLevelDeterminator createHistoryLevelDeterminator(CamundaBpmProperties camundaBpmProperties, JdbcTemplate jdbcTemplate); String getDefaultHistoryLevel(); void setDefaultHistoryLevel(String defaultHistoryLevel); JdbcTemplate getJdbcTemplate(); void setJdbcTemplate(JdbcTemplate jdbcTemplate); boolean isIgnoreDataAccessException(); void setIgnoreDataAccessException(boolean ignoreDataAccessException); CamundaBpmProperties getCamundaBpmProperties(); void setCamundaBpmProperties(CamundaBpmProperties camundaBpmProperties); @Override void afterPropertiesSet(); @Override String determineHistoryLevel(); void addCustomHistoryLevels(Collection<HistoryLevel> customHistoryLevels);  }