Class ReadQueryString

java.lang.Object
rife.database.queries.ReadQueryString
All Implemented Interfaces:
Query, ReadQuery

public class ReadQueryString extends Object implements ReadQuery
An instance of ReadQueryString can contain any kind of SQL query for read purposes.

This allows you to use any SQL together with the functionalities that are provided by DbQueryManager

Since:
1.0
  • Constructor Details

    • ReadQueryString

      public ReadQueryString()
      Creates a new empty instance of ReadQueryString.
      Since:
      1.0
    • ReadQueryString

      public ReadQueryString(String sql)
      Creates a new instance of ReadQueryString with the specified SQL query.
      Parameters:
      sql - The SQL that should be executed by this query
      Since:
      1.0
  • Method Details

    • sql

      public ReadQueryString sql(String sql)
      Replaces the SQL that is executed by this query.
      Parameters:
      sql - The SQL that should be executed by this query
      Returns:
      this ReadQueryString instance.
      Since:
      1.0
    • setSql

      public void setSql(String sql)
      Replaces the SQL that is executed by this query.
      Parameters:
      sql - The SQL that should be executed by this query
      Since:
      1.0
    • clear

      public void clear()
      Specified by:
      clear in interface Query
    • getSql

      public String getSql()
      Specified by:
      getSql in interface Query
    • getParameters

      public QueryParameters getParameters()
      Specified by:
      getParameters in interface Query
    • getCapabilities

      public rife.database.capabilities.Capabilities getCapabilities()
      Specified by:
      getCapabilities in interface Query
    • setExcludeUnsupportedCapabilities

      public void setExcludeUnsupportedCapabilities(boolean flag)
      Specified by:
      setExcludeUnsupportedCapabilities in interface Query