Package step.datapool.gsheet
Class GoogleSheetv4DataPool
java.lang.Object
step.datapool.DataSet<GoogleSheetv4DataPoolConfiguration>
step.datapool.gsheet.GoogleSheetv4DataPool
- Author:
- doriancransac, Jérôme Comte
-
Field Summary
Fields inherited from class step.datapool.DataSet
closing, configuration, context, isRowCommitEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcom.google.api.services.sheets.v4.SheetsbuildService(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential) voidclose()voidcreateDatapool(String saKey, String fileId, String tabName) com.google.api.client.googleapis.auth.oauth2.GoogleCredentialgetCredential(String saKey) getValuesForRange(String spreadsheetId, String range) voidinit()next_()voidreset()Methods inherited from class step.datapool.DataSet
enableRowCommit, isWriteQueueSupportEnabled, next, save, setContext, writeRow
-
Constructor Details
-
GoogleSheetv4DataPool
-
-
Method Details
-
init
public void init()- Overrides:
initin classDataSet<GoogleSheetv4DataPoolConfiguration>
-
reset
public void reset()- Specified by:
resetin classDataSet<GoogleSheetv4DataPoolConfiguration>
-
close
public void close()- Overrides:
closein classDataSet<GoogleSheetv4DataPoolConfiguration>
-
next_
- Specified by:
next_in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
addRow
- Specified by:
addRowin classDataSet<GoogleSheetv4DataPoolConfiguration>
-
createDatapool
-
getCredential
public com.google.api.client.googleapis.auth.oauth2.GoogleCredential getCredential(String saKey) throws Exception - Throws:
Exception
-
buildService
public com.google.api.services.sheets.v4.Sheets buildService(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential) throws IOException, GeneralSecurityException - Throws:
IOExceptionGeneralSecurityException
-
getValuesForRange
- Throws:
IOException
-