java.lang.Object
org.seasar.doma.jdbc.query.AbstractQuery
org.seasar.doma.jdbc.query.AutoModuleQuery
org.seasar.doma.jdbc.query.AutoProcedureQuery
- All Implemented Interfaces:
ModuleQuery,ProcedureQuery,Query
An auto procedure query that calls a database stored procedure.
This class implements ProcedureQuery to provide functionality for calling database
stored procedures. It handles parameter binding and SQL generation.
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.query.AutoModuleQuery
catalogName, isQuoteRequired, moduleName, parameters, qualifiedName, schemaName, sql, sqlLogTypeFields inherited from class org.seasar.doma.jdbc.query.AbstractQuery
callerClassName, callerMethodName, config, message, method, queryTimeout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprepare()Prepares this query for execution.protected voidPrepares the SQL for this procedure query.voidsetProcedureName(String procedureName) Sets the procedure name.Methods inherited from class org.seasar.doma.jdbc.query.AutoModuleQuery
addParameter, complete, getQualifiedName, getSql, getSqlLogType, prepareOptions, prepareQualifiedName, setCatalogName, setModuleName, setQuoteRequired, setSchemaName, setSqlLogTypeMethods inherited from class org.seasar.doma.jdbc.query.AbstractQuery
comment, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, setCallerClassName, setCallerMethodName, setConfig, setMessage, setMethod, setQueryTimeoutMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seasar.doma.jdbc.query.ModuleQuery
getQualifiedName, getSql, getSqlLogTypeMethods inherited from interface org.seasar.doma.jdbc.query.Query
comment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout
-
Constructor Details
-
AutoProcedureQuery
public AutoProcedureQuery()
-
-
Method Details
-
prepare
public void prepare()Prepares this query for execution. This method must be called before the query is executed.- Specified by:
preparein interfaceQuery- Overrides:
preparein classAbstractQuery
-
prepareSql
protected void prepareSql()Prepares the SQL for this procedure query.This method builds the callable SQL statement for the procedure call.
-
setProcedureName
Sets the procedure name.- Parameters:
procedureName- the procedure name
-