public class SpreadsheetConnectionImpl extends BasicConnection implements GoogleSpreadsheetConnection
Constructor and Description |
---|
SpreadsheetConnectionImpl(SpreadsheetManagedConnectionFactory config) |
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, getXAResource
public SpreadsheetConnectionImpl(SpreadsheetManagedConnectionFactory config)
public void close()
close
in interface javax.resource.cci.Connection
public boolean isAlive()
BasicConnection
isAlive
in class BasicConnection
public RowsResult executeQuery(String worksheetName, String query, Integer offset, Integer limit, int batchSize)
executeQuery
in interface GoogleSpreadsheetConnection
public SpreadsheetInfo getSpreadsheetInfo()
GoogleSpreadsheetConnection
getSpreadsheetInfo
in interface GoogleSpreadsheetConnection
public UpdateResult executeListFeedUpdate(String worksheetID, String criteria, List<UpdateSet> set)
executeListFeedUpdate
in interface GoogleSpreadsheetConnection
public UpdateResult deleteRows(String worksheetID, String criteria)
deleteRows
in interface GoogleSpreadsheetConnection
public UpdateResult executeRowInsert(String worksheetID, Map<String,String> pair)
executeRowInsert
in interface GoogleSpreadsheetConnection
Copyright © 2016 JBoss by Red Hat. All rights reserved.