Skip to content

Commit

Permalink
Spreadsheet::select()メソッドの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
HituziANDO committed Feb 16, 2014
1 parent 530279e commit ac5c410
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Binary file modified bin/jp/hituzi/gdata/Spreadsheet.class
Binary file not shown.
14 changes: 12 additions & 2 deletions src/jp/hituzi/gdata/Spreadsheet.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,23 @@ public List<ListEntry> getEntries () throws IOException, ServiceException {
ListFeed feed = service.getFeed(url, ListFeed.class);
return feed.getEntries();
}
/**
* Select all entries.
* @return All entries
* @throws IOException
* @throws ServiceException
*/
public List<ListEntry> select () throws IOException, ServiceException {
URL url = worksheetEntry.getListFeedUrl();
ListFeed feed = service.getFeed(url, ListFeed.class);
return feed.getEntries();
}

public List<ListEntry> select (String where) throws IOException, ServiceException {
ListQuery query = new ListQuery(worksheetEntry.getListFeedUrl());
query.setSpreadsheetQuery(where);
ListFeed feed = service.query(query, ListFeed.class);
List<ListEntry> list = feed.getEntries();
return list;
return feed.getEntries();
}

public void insert (Map<String, String> value) throws IOException, ServiceException {
Expand Down

0 comments on commit ac5c410

Please sign in to comment.