public interface ExportExecutor
| Modifier and Type | Method and Description |
|---|---|
void |
executeExport(String exportQueryKey,
Consumer<Map<String,String>> lineProcessor,
boolean incremental,
Integer nbMaxResults,
Map<String,Object> queryParameters)
Executes the query designated by the key and passes the lines procuced to the consumer.
|
default void |
executeExport(String sqlQuery,
String exportQueryKey,
Consumer<Map<String,String>> lineProcessor,
Integer nbMaxResults,
Map<String,Object> queryParameters)
Executes the query passed in first parameter, named by the second parameter.
|
void |
flagItems(ItemKind kind,
List<Long> elementIds,
String functionCode) |
default List<String> |
getAvailableExports() |
default void |
unflagItems(ItemKind kind,
List<Long> elementIds,
String functionCode) |
void executeExport(String exportQueryKey, Consumer<Map<String,String>> lineProcessor, boolean incremental, Integer nbMaxResults, Map<String,Object> queryParameters) throws ExportExecutionException
exportQueryKey - lineProcessor - incremental - : if true, the export will only the contain the lines exported since the last successful execution.nbMaxResults - : default : Integer.MAX_VALUEqueryParameters - : a very simple binding map parameters for the query. Only supported value types are : String, Number, Date and nullExportExecutionExceptiondefault void executeExport(String sqlQuery, String exportQueryKey, Consumer<Map<String,String>> lineProcessor, Integer nbMaxResults, Map<String,Object> queryParameters) throws ExportExecutionException
sqlQuery - : SQL query to execute.exportQueryKey - : name of the query.lineProcessor - : processes the lines of the result.nbMaxResults - : default : Integer.MAX_VALUEqueryParameters - : a very simple binding map parameters for the query. Only supported value types are : String, Number, Date and nullExportExecutionExceptionvoid flagItems(ItemKind kind, List<Long> elementIds, String functionCode) throws ExportExecutionException
kind - : Type of elements to be flaggedelementIds - : Ids to be flaggedfunctionCode - : not mandatory. If passed, the items will be flagged as if flagged from the function passed as a parameter.ExportExecutionExceptiondefault void unflagItems(ItemKind kind, List<Long> elementIds, String functionCode) throws ExportExecutionException
kind - : Type of elements to be unflaggedelementIds - : Ids to be unflaggedfunctionCode - : not mandatory. If passed, the items will be flagged as if flagged from the function passed as a parameter.ExportExecutionExceptiondefault List<String> getAvailableExports()
ExportExecutionExceptionCopyright © 2021. All rights reserved.