Package com.jedox.palojlib.main
Class CubeHandler
java.lang.Object
com.jedox.palojlib.main.CubeHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRule
(Database database, Cube cube, String definition, boolean activate, String externalIdentifier, String comment, boolean useIdentifier, double position, String source) protected StringBuilder
buildLockedPaths
(IElement[][] lockedPaths) void
changeRuleActivation
(Database database, Cube cube, IRule[] rules, boolean activate) protected void
void
commitLock
(Database database, int id, int lockId) protected void
void
copyCell
(Database database, Cube cube, IElement[] fromPath, IElement[][] fromArea, IElement[] toPath, IElement[][] lockedPaths, Double likeValue, boolean useRules, boolean wait) protected StringBuilder
fillAreaBuffer
(IElement[][] area) generateScript
(int databaseid, int id, boolean complete, IElement[][] area, boolean withAttribute, boolean includeLocalViews, boolean includeGlobalViews, boolean includeCubeRights, IElement[] languages, boolean clear, boolean withRule, IScriptHandler.ScriptCreateClause cClause, IScriptHandler.ScriptModifyClause mClause) Cell[]
protected CubeInfo
getCubeInfo
(int databaseId, int cubeId, boolean wait, boolean showZero, boolean showDataToken, boolean showVirtual) protected long
getCubeMemorySize
(int databaseId, int cubeId) protected IHold[]
protected IRule[]
protected int
Boolean[]
protected void
loadCell
(int databaseId, int id, IElement[] paths, Object value, boolean isAdd, ICube.SplashMode mode, boolean eventprocessor, IElement[][] lockedPaths) protected void
loadCells
(int databaseId, int id, IElement[][] paths, Object[] values, int blockSize, boolean isAdd, ICube.SplashMode mode, boolean eventprocessor, IElement[][] lockedPaths, boolean useAudit) int
int
protected void
modifyCube
(Database database, int[] dimensionIds, int cubeId) protected String
void
removeHolds
(Database database, Cube cube, IHold[] holds) void
removeRules
(Database database, Cube cube, IRule[] rules) void
protected void
void
updateRule
(Database database, Cube cube, int id, String definition, boolean activate, String externalIdentifier, String comment, boolean useIdentifier, double position, String source)
-
Constructor Details
-
CubeHandler
- Throws:
PaloException
PaloJException
-
-
Method Details
-
getCubeMemorySize
- Throws:
PaloException
-
getCubeInfo
protected CubeInfo getCubeInfo(int databaseId, int cubeId, boolean wait, boolean showZero, boolean showDataToken, boolean showVirtual) throws PaloException - Throws:
PaloException
-
modifyCube
protected void modifyCube(Database database, int[] dimensionIds, int cubeId) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
parseTypeToString
-
clear
protected void clear(Database database, String name, int id, IElement[][] area) throws PaloException - Throws:
PaloException
-
fillAreaBuffer
-
getRules
- Throws:
PaloException
-
convert
- Throws:
PaloException
-
save
- Throws:
PaloException
-
buildLockedPaths
-
getSplashMode
-
loadCells
protected void loadCells(int databaseId, int id, IElement[][] paths, Object[] values, int blockSize, boolean isAdd, ICube.SplashMode mode, boolean eventprocessor, IElement[][] lockedPaths, boolean useAudit) throws PaloJException, PaloException - Throws:
PaloJException
PaloException
-
loadCell
protected void loadCell(int databaseId, int id, IElement[] paths, Object value, boolean isAdd, ICube.SplashMode mode, boolean eventprocessor, IElement[][] lockedPaths) throws PaloJException, PaloException - Throws:
PaloJException
PaloException
-
addRule
public void addRule(Database database, Cube cube, String definition, boolean activate, String externalIdentifier, String comment, boolean useIdentifier, double position, String source) throws PaloException - Throws:
PaloException
-
updateRule
public void updateRule(Database database, Cube cube, int id, String definition, boolean activate, String externalIdentifier, String comment, boolean useIdentifier, double position, String source) throws PaloException - Throws:
PaloException
-
removeRules
- Throws:
PaloException
-
parseRule
- Throws:
PaloException
-
getCell
public Cell getCell(Database database, Cube cube, IElement[] path) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
getCells
public Cell[] getCells(Database database, Cube cube, IElement[][] paths) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
hasCells
public Boolean[] hasCells(Database database, Cube cube, IElement[][] paths) throws PaloException, PaloJException - Throws:
PaloException
PaloJException
-
copyCell
public void copyCell(Database database, Cube cube, IElement[] fromPath, IElement[][] fromArea, IElement[] toPath, IElement[][] lockedPaths, Double likeValue, boolean useRules, boolean wait) throws PaloException - Throws:
PaloException
-
rename
- Throws:
PaloException
-
lock
- Throws:
PaloException
-
lock
- Throws:
PaloException
-
commitLock
- Throws:
PaloException
-
changeRuleActivation
-
generateScript
public String generateScript(int databaseid, int id, boolean complete, IElement[][] area, boolean withAttribute, boolean includeLocalViews, boolean includeGlobalViews, boolean includeCubeRights, IElement[] languages, boolean clear, boolean withRule, IScriptHandler.ScriptCreateClause cClause, IScriptHandler.ScriptModifyClause mClause) -
addHold
- Throws:
PaloException
-
removeHolds
- Throws:
PaloException
-
getHolds
- Throws:
PaloException
-