Interface SelectQuery

All Superinterfaces:
Query
All Known Implementing Classes:
AbstractSelectQuery, CountQuery, CriteriaQuery, SqlFileSelectQuery, SqlSelectQuery

public interface SelectQuery extends Query
A query for selecting data from a database.

This interface defines operations specific to SELECT statements.

  • Method Details

    • getSql

      PreparedSql getSql()
      Returns the prepared SQL for this select query.
      Specified by:
      getSql in interface Query
      Returns:
      the prepared SQL
    • getOptions

      SelectOptions getOptions()
      Returns the options for this select query.
      Returns:
      the select options
    • isResultEnsured

      boolean isResultEnsured()
      Returns whether the query is expected to return at least one result.
      Returns:
      true if the query is expected to return at least one result
    • isResultMappingEnsured

      boolean isResultMappingEnsured()
      Returns whether the result mapping is ensured.
      Returns:
      true if the result mapping is ensured
    • getFetchType

      FetchType getFetchType()
      Returns the fetch type for this query.
      Returns:
      the fetch type
    • getFetchSize

      int getFetchSize()
      Returns the fetch size for this query.
      Returns:
      the fetch size
    • getMaxRows

      int getMaxRows()
      Returns the maximum number of rows to be returned.
      Returns:
      the maximum number of rows
    • getSqlLogType

      SqlLogType getSqlLogType()
      Returns the SQL log type for this query.
      Returns:
      the SQL log type
    • isResultStream

      boolean isResultStream()
      Returns whether the result should be processed as a stream.
      Returns:
      true if the result should be processed as a stream