org.gcube.dataaccess.spql.model
Class Query

java.lang.Object
  extended by org.gcube.dataaccess.spql.model.Query
All Implemented Interfaces:
CheckableElement

public class Query
extends Object
implements CheckableElement

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  List<String> datasources
           
protected  HavingExpression havingExpression
           
protected  ReturnType returnType
           
protected  List<Term> terms
           
protected  WhereExpression whereExpression
           
 
Constructor Summary
Query()
           
 
Method Summary
 List<QueryError> check()
           
 List<String> getDatasources()
           
 HavingExpression getHavingExpression()
           
 ReturnType getReturnType()
           
 List<Term> getTerms()
           
 WhereExpression getWhereExpression()
           
 void setDatasources(List<String> datasources)
           
 void setHavingExpression(HavingExpression havingExpression)
           
 void setReturnType(ReturnType returnType)
           
 void setTerms(List<Term> terms)
           
 void setWhereExpression(WhereExpression whereExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

terms

protected List<Term> terms

datasources

protected List<String> datasources

whereExpression

protected WhereExpression whereExpression

returnType

protected ReturnType returnType

havingExpression

protected HavingExpression havingExpression
Constructor Detail

Query

public Query()
Method Detail

getTerms

public List<Term> getTerms()
Returns:
the terms

setTerms

public void setTerms(List<Term> terms)
Parameters:
terms - the terms to set

getDatasources

public List<String> getDatasources()
Returns:
the datasources

setDatasources

public void setDatasources(List<String> datasources)
Parameters:
datasources - the datasources to set

getWhereExpression

public WhereExpression getWhereExpression()
Returns:
the whereExpression

setWhereExpression

public void setWhereExpression(WhereExpression whereExpression)
Parameters:
whereExpression - the whereExpression to set

getReturnType

public ReturnType getReturnType()
Returns:
the returnType

setReturnType

public void setReturnType(ReturnType returnType)
Parameters:
returnType - the returnType to set

getHavingExpression

public HavingExpression getHavingExpression()
Returns:
the havingExpression

setHavingExpression

public void setHavingExpression(HavingExpression havingExpression)
Parameters:
havingExpression - the havingExpression to set

check

public List<QueryError> check()
Specified by:
check in interface CheckableElement


Copyright © 2013. All Rights Reserved.