public class

ListQuery

extends Query
java.lang.Object
   ↳ com.google.gdata.client.Query
     ↳ com.google.gdata.client.spreadsheet.ListQuery

Class Overview

Simple class for cells-feed-specific queries.

Summary

Constants
String ORDERBY The URI parameter for sorting options.
String ORDERBY_COLUMN The "orderby" string for sorting by a particular column.
String ORDERBY_POSITION The "orderby" string for sorting by position.
String REVERSE The URI parameter for reversing sorted results.
String SPREADSHEET_QUERY The URI parameter for structured spreadsheet queries.
[Expand]
Inherited Constants
From class com.google.gdata.client.Query
[Expand]
Inherited Fields
From class com.google.gdata.client.Query
Public Constructors
ListQuery(URL feedUrl)
Constructs a non-restrictive row-based query, given the URI of a list feed for a particular worksheet.
Public Methods
String getOrderBy()
Gets the sorting query parameter.
String getSpreadsheetQuery()
Gets the structured spreadsheet query string.
boolean isReverse()
Gets whether the query should be reversed.
void setFullTextQuery(String query)
Sets the full-text query.
void setOrderBy(String orderby)
Sets the sorting parameter, which can be "position", or "column:(column name)".
void setReverse(boolean reverse)
Sets whether the results should be reversed, i.e.
void setSortColumn(String column)
Sort by a specific column.
void setSpreadsheetQuery(String query)
Sets the structured spreadsheet query.
[Expand]
Inherited Methods
From class com.google.gdata.client.Query
From class java.lang.Object

Constants

public static final String ORDERBY

The URI parameter for sorting options.

Constant Value: "orderby"

public static final String ORDERBY_COLUMN

The "orderby" string for sorting by a particular column. For instance, "column:title" would sort by the column title.

Constant Value: "column"

public static final String ORDERBY_POSITION

The "orderby" string for sorting by position.

Constant Value: "position"

public static final String REVERSE

The URI parameter for reversing sorted results.

Constant Value: "reverse"

public static final String SPREADSHEET_QUERY

The URI parameter for structured spreadsheet queries.

Constant Value: "sq"

Public Constructors

public ListQuery (URL feedUrl)

Constructs a non-restrictive row-based query, given the URI of a list feed for a particular worksheet.

Parameters
feedUrl The feed's URI

Public Methods

public String getOrderBy ()

Gets the sorting query parameter.

public String getSpreadsheetQuery ()

Gets the structured spreadsheet query string.

public boolean isReverse ()

Gets whether the query should be reversed.

public void setFullTextQuery (String query)

Sets the full-text query. Matched entries must contain all the specified words somewhere in the input.

Parameters
query The full-text query string such as "Sonja Georgia"

public void setOrderBy (String orderby)

Sets the sorting parameter, which can be "position", or "column:(column name)".

Parameters
orderby The order-by parameter

public void setReverse (boolean reverse)

Sets whether the results should be reversed, i.e. descending.

Parameters
reverse Whether to reverse results

public void setSortColumn (String column)

Sort by a specific column. Convenience method for setOrderBy("column:" + column).

Parameters
column

public void setSpreadsheetQuery (String query)

Sets the structured spreadsheet query.

Parameters
query The query such as "name = 'Sonja' and state = 'Georgia'"