Class QueryConfig
java.lang.Object
com.tangosol.coherence.rest.config.QueryConfig
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNamedQuery
(NamedQuery query) Add named query to this config.boolean
containsNamedQuery
(String sName) Return true if this configuration contains a query with given name.Return the direct query.getNamedQuery
(String sName) Return the named query.boolean
Return true if direct querying is enabled.setDirectQuery
(DirectQuery directQuery) Set the direct query.
-
Field Details
-
m_mapNamedQueries
Named query mappings.
-
-
Constructor Details
-
QueryConfig
public QueryConfig()
-
-
Method Details
-
addNamedQuery
Add named query to this config.- Parameters:
query
- named query to add
-
getNamedQuery
Return the named query.- Parameters:
sName
- name of the query- Returns:
- named query
-
containsNamedQuery
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
Return the direct query.- Returns:
- direct query
-
setDirectQuery
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
-