Package step.datapool.gsheet
Class GoogleSheetv4DataPool
- java.lang.Object
-
- step.datapool.DataSet<GoogleSheetv4DataPoolConfiguration>
-
- step.datapool.gsheet.GoogleSheetv4DataPool
-
public class GoogleSheetv4DataPool extends DataSet<GoogleSheetv4DataPoolConfiguration>
- Author:
- doriancransac, Jérôme Comte
-
-
Field Summary
-
Fields inherited from class step.datapool.DataSet
closing, configuration, context, isRowCommitEnabled
-
-
Constructor Summary
Constructors Constructor Description GoogleSheetv4DataPool(GoogleSheetv4DataPoolConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRow(Object row)
com.google.api.services.sheets.v4.Sheets
buildService(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential)
void
close()
void
createDatapool(String saKey, String fileId, String tabName)
com.google.api.client.googleapis.auth.oauth2.GoogleCredential
getCredential(String saKey)
List<List<Object>>
getValuesForRange(String spreadsheetId, String range)
void
init()
Object
next_()
void
reset()
-
Methods inherited from class step.datapool.DataSet
enableRowCommit, isWriteQueueSupportEnabled, next, save, setContext, writeRow
-
-
-
-
Constructor Detail
-
GoogleSheetv4DataPool
public GoogleSheetv4DataPool(GoogleSheetv4DataPoolConfiguration configuration)
-
-
Method Detail
-
init
public void init()
- Overrides:
init
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
reset
public void reset()
- Specified by:
reset
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
close
public void close()
- Overrides:
close
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
next_
public Object next_()
- Specified by:
next_
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
addRow
public void addRow(Object row)
- Specified by:
addRow
in classDataSet<GoogleSheetv4DataPoolConfiguration>
-
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:
IOException
GeneralSecurityException
-
getValuesForRange
public List<List<Object>> getValuesForRange(String spreadsheetId, String range) throws IOException
- Throws:
IOException
-
-