public class SpreadsheetConnectionImpl4 extends BasicConnection implements GoogleSpreadsheetConnection
Constructor and Description |
---|
SpreadsheetConnectionImpl4(SpreadsheetManagedConnectionFactory config,
AtomicReference<SpreadsheetInfo> spreadsheetInfo,
AtomicReference<SpreadsheetInfo> v2SpreadsheetInfo) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes Google spreadsheet context, effectively closing the connection to Google spreadsheet.
|
UpdateResult |
deleteRows(String worksheetTitle,
String criteria) |
RowsResult |
executeQuery(String worksheetTitle,
String query,
Integer offset,
Integer limit,
int batchSize) |
UpdateResult |
executeRowInsert(String worksheetTitle,
Map<String,Object> pairs) |
SpreadsheetInfo |
getSpreadsheetInfo()
Returns information about existing Spreadsheets and worksheets.
|
SpreadsheetInfo |
getV2SpreadsheetInfo() |
boolean |
isAlive()
Tests the connection to see if it is still valid.
|
UpdateResult |
updateRows(String worksheetTitle,
String criteria,
List<UpdateSet> set) |
cleanUp, createInteraction, getLocalTransaction, getMetaData, getResultSetInfo, getXAResource
public SpreadsheetConnectionImpl4(SpreadsheetManagedConnectionFactory config, AtomicReference<SpreadsheetInfo> spreadsheetInfo, AtomicReference<SpreadsheetInfo> v2SpreadsheetInfo)
public void close()
close
in interface Connection
public boolean isAlive()
BasicConnection
isAlive
in class BasicConnection
public RowsResult executeQuery(String worksheetTitle, String query, Integer offset, Integer limit, int batchSize)
executeQuery
in interface GoogleSpreadsheetConnection
public SpreadsheetInfo getSpreadsheetInfo()
GoogleSpreadsheetConnection
getSpreadsheetInfo
in interface GoogleSpreadsheetConnection
public SpreadsheetInfo getV2SpreadsheetInfo()
public UpdateResult updateRows(String worksheetTitle, String criteria, List<UpdateSet> set)
updateRows
in interface GoogleSpreadsheetConnection
public UpdateResult deleteRows(String worksheetTitle, String criteria)
deleteRows
in interface GoogleSpreadsheetConnection
public UpdateResult executeRowInsert(String worksheetTitle, Map<String,Object> pairs)
executeRowInsert
in interface GoogleSpreadsheetConnection
Copyright © 2020. All rights reserved.