Class NamedQuery
- java.lang.Object
-
- com.tangosol.coherence.rest.config.NamedQuery
-
- Direct Known Subclasses:
DirectQuery
public class NamedQuery extends Object
Holder for configured named query data.- Author:
- ic 2011.12.03
-
-
Constructor Summary
Constructors Constructor Description NamedQuery(String sName, String sExpression, String sQueryEngine, int cMaxResults)
Construct an instance of NamedQuery.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExpression()
Return the query expression.int
getMaxResults()
Return the max allowed result set size.String
getName()
Return the query name.String
getQueryEngineName()
Return the name of the query engine responsible to execute this query.
-
-
-
Constructor Detail
-
NamedQuery
public NamedQuery(String sName, String sExpression, String sQueryEngine, int cMaxResults)
Construct an instance of NamedQuery.- Parameters:
sName
- query namesExpression
- query expressionsQueryEngine
- name of query engine responsible to execute this querycMaxResults
- max size of result set that this query can return
-
-
Method Detail
-
getName
public String getName()
Return the query name.- Returns:
- query name
-
getExpression
public String getExpression()
Return the query expression.- Returns:
- query expression
-
getQueryEngineName
public String getQueryEngineName()
Return the name of the query engine responsible to execute this query.- Returns:
- query engine name
-
getMaxResults
public int getMaxResults()
Return the max allowed result set size.- Returns:
- max size of the result set
-
-