return new Integer(value.intValue());
}
protected Integer getSequenceNextValue(final String sequenceName) {
// we need to cast to Number since some JDBC drivers return Integer and others return Long
final Number value = (Number) getBrokerTemplate().execute(new BrokerCallback() {
public Object doInBroker(Executable executable) throws BrokerException {
executable.setTextReplacement(SEQUENCE_PARAMETER, sequenceName);
return executable.selectOne(getSequenceStatementId());
}
});