TARGET - the mapping target typeRESULT - the result typepublic interface IterationCallback<TARGET,RESULT>
ResultSet iteration process.
The implementation class is not required to be thread safe.
| Modifier and Type | Method and Description |
|---|---|
default RESULT |
defaultResult()
Returns the default value.
|
RESULT |
iterate(TARGET target,
IterationContext context)
Invoked from a
ResultSet iteration process. |
default RESULT |
postIterate(RESULT result,
IterationContext context)
Executes post process of
iterate(Object, IterationContext). |
default RESULT defaultResult()
RESULT iterate(TARGET target, IterationContext context)
ResultSet iteration process.target - the object that is mapped to a row of ResultSetcontext - the execution contextdefault RESULT postIterate(RESULT result, IterationContext context)
iterate(Object, IterationContext).result - the result of iterate(Object, IterationContext) or the result of defaultResult() if ResultSet has no rowscontext - the execution context