public class

CellQuery

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

Class Overview

Simple class for cells-feed-specific queries. The main features include minimum and maximum row and column numbers. For instance, you could select only cells in the range of rows 2 through 5 and columns 3 and beyond. This would correspond to: query.setMinimumRow(2); query.setMaximumRow(5); query.setMinimumCol(3);

Summary

Constants
String MAXIMUM_COL String property for maximum column number.
String MAXIMUM_ROW String property for maximum row number.
String MINIMUM_COL String property for minimum column number.
String MINIMUM_ROW String property for minimum row number.
String RANGE String property for a cell range.
String RETURN_EMPTY String porperty for flag to return empty cells.
[Expand]
Inherited Constants
From class com.google.gdata.client.Query
[Expand]
Inherited Fields
From class com.google.gdata.client.Query
Public Constructors
CellQuery(URL feedUrl)
Constructs an object representing a to-be-executed query on cells.
Public Methods
Integer getMaximumCol()
Gets the largest column number possible in the cells to be returned.
Integer getMaximumRow()
Gets the largest row number possible in the cells to be returned.
Integer getMinimumCol()
Gets the smallest column number possible in the cells to be returned.
Integer getMinimumRow()
Gets the smallest row number possible in the cells to be returned.
String getRange()
Gets the range of the cells to be returned.
boolean getReturnEmpty()
Gets whether the empty cells should be returned.
void setMaximumCol(Integer value)
Sets the maximum column number of cells that are returned.
void setMaximumRow(Integer value)
Sets the maximum row number of cells that are returned.
void setMinimumCol(Integer value)
Sets the minimum column number of cells that are returned.
void setMinimumRow(Integer value)
Sets the minimum row number of cells that are returned.
void setRange(String value)
Sets the range for the cells to return.
void setReturnEmpty(boolean value)
Sets whether to return empty cells.
[Expand]
Inherited Methods
From class com.google.gdata.client.Query
From class java.lang.Object

Constants

public static final String MAXIMUM_COL

String property for maximum column number.

Constant Value: "max-col"

public static final String MAXIMUM_ROW

String property for maximum row number.

Constant Value: "max-row"

public static final String MINIMUM_COL

String property for minimum column number.

Constant Value: "min-col"

public static final String MINIMUM_ROW

String property for minimum row number.

Constant Value: "min-row"

public static final String RANGE

String property for a cell range.

Constant Value: "range"

public static final String RETURN_EMPTY

String porperty for flag to return empty cells.

Constant Value: "return-empty"

Public Constructors

public CellQuery (URL feedUrl)

Constructs an object representing a to-be-executed query on cells.

Parameters
feedUrl The URI of the particular worksheet's cells feed

Public Methods

public Integer getMaximumCol ()

Gets the largest column number possible in the cells to be returned.

public Integer getMaximumRow ()

Gets the largest row number possible in the cells to be returned.

public Integer getMinimumCol ()

Gets the smallest column number possible in the cells to be returned.

public Integer getMinimumRow ()

Gets the smallest row number possible in the cells to be returned.

public String getRange ()

Gets the range of the cells to be returned.

public boolean getReturnEmpty ()

Gets whether the empty cells should be returned.

public void setMaximumCol (Integer value)

Sets the maximum column number of cells that are returned.

Parameters
value The column number, of null if there is no maximum

public void setMaximumRow (Integer value)

Sets the maximum row number of cells that are returned.

Parameters
value The row number, or null if there is no maximum

public void setMinimumCol (Integer value)

Sets the minimum column number of cells that are returned.

Parameters
value The column numer, or null if there is no minimum

public void setMinimumRow (Integer value)

Sets the minimum row number of cells that are returned.

Parameters
value The row number, or null if there is no minimum

public void setRange (String value)

Sets the range for the cells to return.

Parameters
value The range in A1 or R1C1 for the cells to be returned.

public void setReturnEmpty (boolean value)

Sets whether to return empty cells.

Parameters
value If true, then empty cells will be returned in the feed.