Class AbstractCreateQuery<RESULT>

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.

  • Constructor Details

    • AbstractCreateQuery

      public AbstractCreateQuery()
  • Method Details

    • getQueryTimeout

      public int getQueryTimeout()
      Returns the query timeout in seconds.
      Specified by:
      getQueryTimeout in interface Query
      Overrides:
      getQueryTimeout in class AbstractQuery
      Returns:
      the query timeout
    • getSql

      public Sql<?> getSql()
      Returns the SQL object that represents the query.
      Specified by:
      getSql in interface Query
      Returns:
      the SQL object
    • complete

      public void complete()
      Completes this query after execution. This method must be called after the query is executed.
      Specified by:
      complete in interface Query