Class QueryConfig

java.lang.Object
com.tangosol.coherence.rest.config.QueryConfig

public class QueryConfig extends Object
Holder for query configuration.

Query configuration is composed of two parts:

  • named queries (pre-defined queries that can be invoked using their name)
  • direct query (queries submitted directly as part of URL)
Author:
ic 2011/11/26
See Also:
  • Field Details

  • Constructor Details

    • QueryConfig

      public QueryConfig()
  • Method Details

    • addNamedQuery

      public QueryConfig addNamedQuery(NamedQuery query)
      Add named query to this config.
      Parameters:
      query - named query to add
    • getNamedQuery

      public NamedQuery getNamedQuery(String sName)
      Return the named query.
      Parameters:
      sName - name of the query
      Returns:
      named query
    • containsNamedQuery

      public boolean containsNamedQuery(String sName)
      Return true if this configuration contains a query with given name.
      Parameters:
      sName - name of the query whose presence is to be tested
      Returns:
      true if query with given name exists in this configuration.
    • getDirectQuery

      public DirectQuery getDirectQuery()
      Return the direct query.
      Returns:
      direct query
    • setDirectQuery

      public QueryConfig setDirectQuery(DirectQuery directQuery)
      Set the direct query.
      Parameters:
      directQuery - direct query
    • isDirectQueryEnabled

      public boolean isDirectQueryEnabled()
      Return true if direct querying is enabled.
      Returns:
      true if direct querying is enabled