public abstract class SessionClearingRowCallbackHandler extends Object implements org.springframework.jdbc.core.RowCallbackHandler
RowCallbackHandler
which clears the session after processing a configurable
number of rows. Subclasses should implement processRowInternal(ResultSet)
to do their
specific processing.
If you need a custom flushing and clearing strategy (not after a certain number of rows), you can
write your own RowCallbackHandler and use flushAndClear(Session)
to do the flushing.
Modifier and Type | Method and Description |
---|---|
void |
processRow(ResultSet rs) |
protected abstract void |
processRowInternal(ResultSet rs) |
public final void processRow(ResultSet rs) throws SQLException
processRow
in interface org.springframework.jdbc.core.RowCallbackHandler
SQLException
protected abstract void processRowInternal(ResultSet rs) throws SQLException
SQLException
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.