Class AbstractSqlQueryRequest

java.lang.Object
io.ebeaninternal.server.core.AbstractSqlQueryRequest
All Implemented Interfaces:
CancelableQuery
Direct Known Subclasses:
DtoQueryRequest, RelationalQueryRequest

public abstract class AbstractSqlQueryRequest extends Object implements CancelableQuery
Wraps the objects involved in executing a SQL / Relational Query.
  • Field Details

  • Method Details

    • initTransIfRequired

      public void initTransIfRequired()
      Create a transaction if none currently exists.
    • endTransIfRequired

      public void endTransIfRequired()
      End the transaction if it was locally created.
    • flushJdbcBatchOnQuery

      protected void flushJdbcBatchOnQuery()
    • isLogSql

      public boolean isLogSql()
    • getBindLog

      public String getBindLog()
      Return the bindLog for this request.
    • next

      public abstract boolean next() throws SQLException
      Return true if we can navigate to the next row.
      Throws:
      SQLException
    • requestComplete

      protected abstract void requestComplete()
    • close

      public void close()
      Close the underlying resources.
    • executeSql

      public void executeSql(Binder binder, SpiQuery.Type type) throws SQLException
      Prepare and execute the SQL using the Binder.
      Throws:
      SQLException
    • executeAsSql

      protected void executeAsSql(Binder binder) throws SQLException
      Throws:
      SQLException
    • getSql

      public String getSql()
      Return the SQL executed for this query.
    • cancel

      public void cancel()
      Specified by:
      cancel in interface CancelableQuery