Module org.seasar.doma.core
Class SingleResultCallback<TARGET>
java.lang.Object
org.seasar.doma.internal.jdbc.command.SingleResultCallback<TARGET>
- All Implemented Interfaces:
IterationCallback<TARGET,TARGET>
public class SingleResultCallback<TARGET>
extends Object
implements IterationCallback<TARGET,TARGET>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value.iterate(TARGET target, IterationContext context) Invoked from aResultSetiteration process.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seasar.doma.jdbc.IterationCallback
postIterate
-
Field Details
-
supplier
-
-
Constructor Details
-
SingleResultCallback
public SingleResultCallback() -
SingleResultCallback
-
-
Method Details
-
defaultResult
Description copied from interface:IterationCallbackReturns the default value.- Specified by:
defaultResultin interfaceIterationCallback<TARGET,TARGET> - Returns:
- the default value
-
iterate
Description copied from interface:IterationCallbackInvoked from aResultSetiteration process.- Specified by:
iteratein interfaceIterationCallback<TARGET,TARGET> - Parameters:
target- the object that is mapped to a row ofResultSetcontext- the execution context- Returns:
- the result type
-