org.gcube.dataaccess.spql.stmt
Class WhereStatement

java.lang.Object
  extended by org.gcube.dataaccess.spql.stmt.AbstractStatement
      extended by org.gcube.dataaccess.spql.stmt.WhereStatement

public class WhereStatement
extends AbstractStatement

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

Field Summary
protected  boolean first
           
protected  SimpleDateFormat simpleDateFormat
           
 
Fields inherited from class org.gcube.dataaccess.spql.stmt.AbstractStatement
query
 
Constructor Summary
protected WhereStatement(StringBuilder query)
           
 
Method Summary
protected  void addBoundCondition(String bound, float latitude, float longitude)
           
protected  void addDateCondition(String dateCondition, Date date)
           
protected  void checkFirst()
           
 WhereStatement fromDateIs(Date date)
           
 WhereStatement lowerBoundIs(float latitude, float longitude)
           
 WhereStatement toDateIs(Date date)
           
 WhereStatement upperBoundIs(float latitude, float longitude)
           
 
Methods inherited from class org.gcube.dataaccess.spql.stmt.AbstractStatement
appendNames, returnType, toQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simpleDateFormat

protected SimpleDateFormat simpleDateFormat

first

protected boolean first
Constructor Detail

WhereStatement

protected WhereStatement(StringBuilder query)
Method Detail

checkFirst

protected void checkFirst()

addBoundCondition

protected void addBoundCondition(String bound,
                                 float latitude,
                                 float longitude)

lowerBoundIs

public WhereStatement lowerBoundIs(float latitude,
                                   float longitude)

upperBoundIs

public WhereStatement upperBoundIs(float latitude,
                                   float longitude)

addDateCondition

protected void addDateCondition(String dateCondition,
                                Date date)

fromDateIs

public WhereStatement fromDateIs(Date date)

toDateIs

public WhereStatement toDateIs(Date date)


Copyright © 2013. All Rights Reserved.