Top Description Methods
org.apache.derby.iapi.sql.dictionary

public Interface BulkInsertCounter

Known Direct Implementers
org.apache.derby.impl.sql.catalog.SequenceUpdater.BulkInsertUpdater
Imports
org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.types.NumberDataValue

Thin wrapper around a sequence generator to support the bulk-insert optimization used by InsertResultSet.

Method Summary

Modifier and TypeMethod and Description
public void
getCurrentValueAndAdvance(NumberDataValue
This value is stuffed with the new sequence number.
returnValue
)

Get the next sequence number for bulk-insert.

public Long
peekAtCurrentValue()

Get the current value of the sequence generator without advancing it.

Method Detail

getCurrentValueAndAdvanceback to summary
public void getCurrentValueAndAdvance(NumberDataValue returnValue) throws StandardException

Get the next sequence number for bulk-insert.

Parameters
returnValue:NumberDataValue

This value is stuffed with the new sequence number.

peekAtCurrentValueback to summary
public Long peekAtCurrentValue() throws StandardException

Get the current value of the sequence generator without advancing it. May return null if the generator is exhausted.