Search in sources :

Example 1 with SequenceCache

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);
}
Also used : DBMeta(org.dbflute.dbmeta.DBMeta) SequenceCache(org.dbflute.bhv.core.supplement.SequenceCache)

Aggregations

SequenceCache (org.dbflute.bhv.core.supplement.SequenceCache)1 DBMeta (org.dbflute.dbmeta.DBMeta)1