Package com.jedox.palojlib.main
Class DatabaseHandler
java.lang.Object
com.jedox.palojlib.main.DatabaseHandler
handler used by
Database
to make request on olap server- Author:
- khaddadin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCube
(Database database, String name, int[] dimensionIds, ICube.CubeType type, int basesCubeId) protected void
addDimension
(Database database, String name, IDimension.DimensionType type, boolean generateDefaultSubsets) void
backup
(int databaseId, String backupPath, boolean show_system, boolean include_archive, boolean show_audit, boolean include_csv, String password) generateScript
(int id, IDimension[] dims, ICube[] cubes, boolean includeElementsInfo, boolean complete, boolean withAttribute, boolean includeLocalSubsets, boolean includeGlobalSubsets, boolean includeDimensionRights, boolean includeLocalViews, boolean includeGlobalViews, boolean includeCubeRights, boolean clear, boolean includeGlobalLists, IElement[] languages, boolean withRule, IScriptHandler.ScriptCreateClause cClause, IScriptHandler.ScriptModifyClause mClause) protected LinkedHashMap<String,
Cube> protected DatabaseInfo
getDatabaseInfo
(int id) protected long
getDatabaseSize
(int id) protected LinkedHashMap<String,
Dimension> getDimensions
(Database database) protected void
removeCube
(int databaseId, Cube c) protected void
removeDimension
(int databaseId, Dimension d) void
void
save
(int databaseId, boolean complete)
-
Constructor Details
-
DatabaseHandler
- Throws:
PaloException
PaloJException
-
-
Method Details
-
getDatabaseInfo
- Throws:
PaloException
PaloJException
-
getDatabaseSize
- Throws:
PaloException
PaloJException
-
addDimension
protected void addDimension(Database database, String name, IDimension.DimensionType type, boolean generateDefaultSubsets) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
getDimensions
protected LinkedHashMap<String,Dimension> getDimensions(Database database) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
addCube
protected void addCube(Database database, String name, int[] dimensionIds, ICube.CubeType type, int basesCubeId) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
getCubes
protected LinkedHashMap<String,Cube> getCubes(IDatabase database) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
removeCube
- Throws:
PaloException
PaloJException
-
removeDimension
- Throws:
PaloException
PaloJException
-
save
- Throws:
PaloException
PaloJException
-
backup
public void backup(int databaseId, String backupPath, boolean show_system, boolean include_archive, boolean show_audit, boolean include_csv, String password) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
rename
- Throws:
PaloException
PaloJException
-
generateScript
public String generateScript(int id, IDimension[] dims, ICube[] cubes, boolean includeElementsInfo, boolean complete, boolean withAttribute, boolean includeLocalSubsets, boolean includeGlobalSubsets, boolean includeDimensionRights, boolean includeLocalViews, boolean includeGlobalViews, boolean includeCubeRights, boolean clear, boolean includeGlobalLists, IElement[] languages, boolean withRule, IScriptHandler.ScriptCreateClause cClause, IScriptHandler.ScriptModifyClause mClause)
-