| Modifier and Type | Field and Description |
|---|---|
protected String |
expression
The textual expression of the query.
|
protected Map<String,String> |
parameters
Query parameters .
|
| Constructor and Description |
|---|
AbstractQuery() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameters(QueryParameter... parameters)
Add one or more parameters to the query.
|
String |
getExpression()
Returns the textual expression of the query.
|
long |
getTTL()
Returns the time-to-live of the results of the query.
|
protected boolean |
isWellFormed()
Override to indicate whether the query is well-formed.
|
protected abstract RESULT |
parseResult(String unparsedResult)
Override to return a query result from its textual serialisation.
|
void |
setExpression(String exp)
Sets the textual expression of the query.
|
void |
setTTL(long ttl)
Sets the time-to-live of the results of the query.
|
protected String expression
public long getTTL()
public String getExpression()
getExpression in interface ISQuery<RESULT>public void setTTL(long ttl)
public void setExpression(String exp)
setExpression in interface ISQuery<RESULT>exp - the expression.public void addParameters(QueryParameter... parameters)
parameters - the parameters.protected boolean isWellFormed()
null.true if the query is well-formed, false otherwise.protected abstract RESULT parseResult(String unparsedResult) throws ISClient.ISMalformedResultException
unparsedResult - the textual representation.ISClient.ISMalformedResultException - if the result cannot be deserialised.Copyright © 2015. All Rights Reserved.