org.gcube.common.core.informationsystem.client
Interface ISQuery<RESULT>

Type Parameters:
RESULT - the type of the expected results.
All Known Subinterfaces:
GCUBECollectionQuery, GCUBECSInstanceQuery, GCUBECSQuery, GCUBEExternalRIQuery, GCUBEGenericQuery, GCUBEGenericResourceQuery, GCUBEGHNQuery, GCUBEMCollectionQuery, GCUBERIQuery, GCUBERuntimeResourceQuery, GCUBEServiceQuery, ISTemplateQuery<RESULT>, WSResourceQuery
All Known Implementing Classes:
AbstractQuery

public interface ISQuery<RESULT>

Defines the minimal behaviour of queries accepted by ISClients: they contain their textual expression and specify a time-to-live for their results.

The definition is parametric with respect to the type of the expected results. This is not required for the interface, though it may be for its implementations. In addition, it allows static typing of the ISClient interface.

Author:
Andrea Manzi (CNR), Fabio Simeoni (University of Strathclyde)

Method Summary
 String getExpression()
          Returns the textual expression of the query.
 long getTTL()
          Returns the time-to-live of the results of the query.
 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.
 

Method Detail

getTTL

long getTTL()
Returns the time-to-live of the results of the query.

Returns:
the time-to-live.

setTTL

void setTTL(long ttl)
Sets the time-to-live of the results of the query.

Parameters:
ttl - the time-to-live.

getExpression

String getExpression()
Returns the textual expression of the query.

Returns:
the expression.

setExpression

void setExpression(String exp)
Sets the textual expression of the query.

Parameters:
exp - the expression.


Copyright © 2012. All Rights Reserved.