java.lang.Object
org.seasar.doma.jdbc.query.AbstractQuery
org.seasar.doma.jdbc.query.AbstractCreateQuery<RESULT>
- Type Parameters:
RESULT- the type of the resource to be created
- All Implemented Interfaces:
CreateQuery<RESULT>,Query
- Direct Known Subclasses:
ArrayCreateQuery,BlobCreateQuery,ClobCreateQuery,NClobCreateQuery,SQLXMLCreateQuery
public abstract class AbstractCreateQuery<RESULT>
extends AbstractQuery
implements CreateQuery<RESULT>
An abstract base class for queries that create database resources.
This class provides a skeletal implementation of the CreateQuery interface, reducing
the effort required to implement resource creation queries.
-
Field Summary
Fields inherited from class org.seasar.doma.jdbc.query.AbstractQuery
callerClassName, callerMethodName, config, message, method, queryTimeout -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.seasar.doma.jdbc.query.AbstractQuery
comment, getClassName, getConfig, getMethod, getMethodName, prepare, 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.CreateQuery
createMethods inherited from interface org.seasar.doma.jdbc.query.Query
comment, getClassName, getConfig, getMethod, getMethodName, prepare
-
Constructor Details
-
AbstractCreateQuery
public AbstractCreateQuery()
-
-
Method Details
-
getQueryTimeout
public int getQueryTimeout()Returns the query timeout in seconds.- Specified by:
getQueryTimeoutin interfaceQuery- Overrides:
getQueryTimeoutin classAbstractQuery- Returns:
- the query timeout
-
getSql
Returns the SQL object that represents the query. -
complete
public void complete()Completes this query after execution. This method must be called after the query is executed.
-