java.lang.Object
org.seasar.doma.jdbc.command.ModuleCommand<FunctionQuery<RESULT>,RESULT>
org.seasar.doma.jdbc.command.FunctionCommand<RESULT>
- Type Parameters:
RESULT- the result type
- All Implemented Interfaces:
Command<RESULT>
A command that executes a database function.
This command returns the result of the function execution. The result is obtained from the query object after executing the function and fetching output parameters.
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.command.ModuleCommand
query, sql -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RESULTexecuteInternal(CallableStatement callableStatement) Executes the database function.Methods inherited from class org.seasar.doma.jdbc.command.ModuleCommand
bindParameters, execute, fetchParameters, getQuery, log, setupOptions
-
Constructor Details
-
FunctionCommand
Creates a new instance.- Parameters:
query- the query to execute
-
-
Method Details
-
executeInternal
Executes the database function.- Specified by:
executeInternalin classModuleCommand<FunctionQuery<RESULT>,RESULT> - Parameters:
callableStatement- the statement to execute- Returns:
- the result of the function execution
- Throws:
SQLException- if a database access error occurs
-