Class EssWorkbookImportOptions
An application workbook is not only an outline. Oracle's own Sample_Basic.xlsx carries the cube definition, a sheet per dimension, 4,256 rows of data, a calculation script and a sample query - and the import reads as much or as little of that as it is told to. The job reports back exactly four flags it acted on: load data, recreate application, create files, execute script.
The defaults load the data and run the scripts, because a workbook that carries both almost certainly means them to be used: an import that skips them leaves a cube whose every upper level reads #Missing, which looks like a failed import rather than a partial one.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFiles(boolean createFiles) Whether to create the scripts, rules and queries the workbook defines.static EssWorkbookImportOptionsdefaults()Loads the data and runs the scripts; does not recreate an existing application.deleteWorkbookOnSuccess(boolean deleteWorkbookOnSuccess) Whether to delete the workbook from the catalogue once the import succeeds.executeScripts(boolean executeScripts) Whether to run the calculation scripts the workbook carries.booleanbooleanbooleanbooleanbooleanbooleanloadData(boolean loadData) Whether to load the workbook's data sheets.overwrite(boolean overwrite) Whether the import may overwrite artifacts it finds already present.recreateApplication(boolean recreateApplication) Whether to destroy an existing application of this name and build it again.
-
Constructor Details
-
EssWorkbookImportOptions
public EssWorkbookImportOptions()
-
-
Method Details
-
defaults
Loads the data and runs the scripts; does not recreate an existing application. -
loadData
Whether to load the workbook's data sheets. -
executeScripts
Whether to run the calculation scripts the workbook carries.This is what makes the difference between a cube with data in it and a cube you can query: loading writes level 0 and aggregates nothing.
-
createFiles
Whether to create the scripts, rules and queries the workbook defines. -
recreateApplication
Whether to destroy an existing application of this name and build it again.Off by default, and the only genuinely destructive thing here: it discards the application and everything in it, not just what the workbook describes.
-
overwrite
Whether the import may overwrite artifacts it finds already present. -
deleteWorkbookOnSuccess
Whether to delete the workbook from the catalogue once the import succeeds. -
isLoadData
public boolean isLoadData() -
isExecuteScripts
public boolean isExecuteScripts() -
isCreateFiles
public boolean isCreateFiles() -
isRecreateApplication
public boolean isRecreateApplication() -
isOverwrite
public boolean isOverwrite() -
isDeleteWorkbookOnSuccess
public boolean isDeleteWorkbookOnSuccess()
-