use of org.dbflute.bhv.core.supplement.SequenceCache in project dbflute-core by dbflute.
the class SelectNextValCommand method createSelectNextValExecution.
protected SqlExecution createSelectNextValExecution(TnResultSetHandler handler) {
assertStatus("createSelectNextValExecution");
final DBMeta dbmeta = _dbmeta;
assertTableHasSequence();
// filtered later
String sql = getSequenceNextValSql();
assertSequenceReturnsNotNull(sql, dbmeta);
// handling for sequence cache
final SequenceCache sequenceCache = findSequenceCache(dbmeta);
sql = prepareSequenceCache(sql, sequenceCache);
return createSequenceExecution(handler, sql, sequenceCache);
}
Aggregations