|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.informationsystem.client.impl.AbstractQuery<RESULT>
public abstract class AbstractQuery<RESULT>
Abstract implementation of ISQuery.
| Field Summary | |
|---|---|
protected String |
expression
The textual expression of the query. |
protected Map<String,String> |
parameters
Query parameters . |
| Constructor Summary | |
|---|---|
AbstractQuery()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,String> parameters
protected String expression
| Constructor Detail |
|---|
public AbstractQuery()
| Method Detail |
|---|
public long getTTL()
getTTL in interface ISQuery<RESULT>public String getExpression()
getExpression in interface ISQuery<RESULT>public void setTTL(long ttl)
setTTL in interface ISQuery<RESULT>ttl - the time-to-live.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||