com.google.visualization.datasource.query
Class QueryOptions

java.lang.Object
  extended by com.google.visualization.datasource.query.QueryOptions

public class QueryOptions
extends java.lang.Object

Options definition for a query. Holds options for the query that fall under the options clause.

Author:
Yonatan B.Y.

Constructor Summary
QueryOptions()
          Constructs query options with all boolean options set to false.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 boolean isDefault()
          Returns true if all options are set to their default values.
 boolean isNoFormat()
          Returns the value of the noFormat option.
 boolean isNoValues()
          Returns the value of the noValues option.
 void setNoFormat(boolean noFormat)
          Sets the value of the noFormat option.
 void setNoValues(boolean noValues)
          Sets the value of the noValues option.
 java.lang.String toQueryString()
          Returns a string that when fed to the query parser should return a QueryOptions equal to this one.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryOptions

public QueryOptions()
Constructs query options with all boolean options set to false.

Method Detail

isNoValues

public boolean isNoValues()
Returns the value of the noValues option.

Returns:
The value of the noValues option.

setNoValues

public void setNoValues(boolean noValues)
Sets the value of the noValues option.

Parameters:
noValues - The new value of the noValues option.

isNoFormat

public boolean isNoFormat()
Returns the value of the noFormat option.

Returns:
The value of the noFormat option.

setNoFormat

public void setNoFormat(boolean noFormat)
Sets the value of the noFormat option.

Parameters:
noFormat - The new value of the noFormat option.

isDefault

public boolean isDefault()
Returns true if all options are set to their default values.

Returns:
True if all options are set to their default values.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toQueryString

public java.lang.String toQueryString()
Returns a string that when fed to the query parser should return a QueryOptions equal to this one. Used mainly for debugging purposes. The string returned does not contain the OPTIONS keyword.

Returns:
The query string.


Copyright © 2009 Google. All Rights Reserved.