public class SpreadsheetConnectionImpl extends BasicConnection implements GoogleSpreadsheetConnection
| Constructor and Description |
|---|
SpreadsheetConnectionImpl(SpreadsheetManagedConnectionFactory config,
AtomicReference<SpreadsheetInfo> spreadsheetInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes Google spreadsheet context, effectively closing the connection to Google spreadsheet.
|
UpdateResult |
deleteRows(String worksheetID,
String criteria) |
UpdateResult |
executeListFeedUpdate(String worksheetID,
String criteria,
List<UpdateSet> set) |
RowsResult |
executeQuery(String worksheetName,
String query,
Integer offset,
Integer limit,
int batchSize) |
UpdateResult |
executeRowInsert(String worksheetID,
Map<String,String> pair) |
SpreadsheetInfo |
getSpreadsheetInfo()
Returns information about existing Spreadsheets and worksheets.
|
boolean |
isAlive()
Tests the connection to see if it is still valid.
|
cleanUp, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo, getXAResourcepublic SpreadsheetConnectionImpl(SpreadsheetManagedConnectionFactory config, AtomicReference<SpreadsheetInfo> spreadsheetInfo)
public void close()
close in interface javax.resource.cci.Connectionpublic boolean isAlive()
BasicConnectionisAlive in class BasicConnectionpublic RowsResult executeQuery(String worksheetName, String query, Integer offset, Integer limit, int batchSize)
executeQuery in interface GoogleSpreadsheetConnectionpublic SpreadsheetInfo getSpreadsheetInfo()
GoogleSpreadsheetConnectiongetSpreadsheetInfo in interface GoogleSpreadsheetConnectionpublic UpdateResult executeListFeedUpdate(String worksheetID, String criteria, List<UpdateSet> set)
executeListFeedUpdate in interface GoogleSpreadsheetConnectionpublic UpdateResult deleteRows(String worksheetID, String criteria)
deleteRows in interface GoogleSpreadsheetConnectionpublic UpdateResult executeRowInsert(String worksheetID, Map<String,String> pair)
executeRowInsert in interface GoogleSpreadsheetConnectionCopyright © 2017 JBoss by Red Hat. All rights reserved.