* @param nextVal Value that should be yielded by next NEXVAL call
*/
public void oracleSequenceSetNextVal(String sequenceName, long nextVal) {
JdbcTemplate jdbcTemplate = new JdbcTemplate(this.dataSource);
Long currentValue = jdbcTemplate.queryForLong(String.format("SELECT %s.NEXTVAL from dual", sequenceName));
Long increment = nextVal - currentValue - 1;
jdbcTemplate.execute(String.format("ALTER SEQUENCE %s INCREMENT BY %d", sequenceName, increment));
jdbcTemplate.execute(String.format("SELECT %s.NEXTVAL from dual", sequenceName));
jdbcTemplate.execute(String.format("ALTER SEQUENCE %s INCREMENT BY 1", sequenceName));
}