public interface IEssPerformCustomCalc
performCustomCalc(boolean, List)
. Before calling this
API, all the parameters must be set using the appropriate set* methods in
this class.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCreditMember() |
long |
getDataloadOption() |
java.lang.String |
getDebitMember() |
long |
getGroupID() |
java.lang.String |
getOffset() |
java.lang.String |
getPOV() |
short |
getRoundDigits() |
long |
getRuleID() |
java.lang.String |
getScript() |
java.lang.String |
getSourceRegion() |
java.lang.String |
getTarget() |
boolean |
performCustomCalc(boolean verifyOnly,
java.util.List outErrorsAndWarnings)
Performs the custom calculation on an Essbase ASO(Aggregate Storage outline) cube.
|
void |
setCreditMember(java.lang.String creditMember)
Sets the creditMember - An MDX member expression that specifies the
�credit� member used for negative and offsetting result values.
|
void |
setDataloadOption(long dataloadOption)
The dataloadOption can have values IEssCube.ESS_ASO_DATA_LOAD_BUFFER_STORE_DATA,
IEssCube.ESS_ASO_DATA_LOAD_BUFFER_ADD_DATA or IEssCube.ESS_ASO_DATA_LOAD_BUFFER_SUBTRACT_DATA
|
void |
setDebitMember(java.lang.String debitMember)
Sets the debitMember - An MDX member expression that specifies the
�debit� member used for positive result values.
|
void |
setGroupID(long groupID)
Sets the groupID - The groupID refers to the Rule Set that this
calculation is a part of.
|
void |
setOffset(java.lang.String offset)
Sets the offset - An MDX tuple expression that specifies where offsetting
entries should be made.
|
void |
setPOV(java.lang.String pov)
Sets the POV - MDX set expression specifying area where the formulae
will be executed
|
void |
setRoundDigits(short roundDigits)
The roundDigits is used to define a number of digits for rounding calculated
values before storing to the cube.
|
void |
setRuleID(long ruleID)
The rule ID used to identify the information (rule name, rule
description) related to this allocation rule.
|
void |
setScript(java.lang.String script)
Sets the scripts - The contents of the custom calc script that will be
executed or verified.
|
void |
setSourceRegion(java.lang.String sourceRegion)
Sets the sourceRegion - An MDX set expression that gives the region of
the cube referred to by the formulas in the script.
|
void |
setTarget(java.lang.String target)
Sets the target - MDX tuple expression specifying target location for
writing results of each custom calculation.
|
java.lang.String getPOV()
void setPOV(java.lang.String pov)
pov
- the pov to setjava.lang.String getScript()
void setScript(java.lang.String script)
script
- the script to setjava.lang.String getTarget()
void setTarget(java.lang.String target)
target
- the target to setjava.lang.String getDebitMember()
void setDebitMember(java.lang.String debitMember)
debitMember
- the debitMember to setjava.lang.String getCreditMember()
void setCreditMember(java.lang.String creditMember)
creditMember
- the creditMember to setjava.lang.String getOffset()
void setOffset(java.lang.String offset)
offset
- the offset to setjava.lang.String getSourceRegion()
void setSourceRegion(java.lang.String sourceRegion)
sourceRegion
- the sourceRegion to setlong getGroupID()
void setGroupID(long groupID)
By default this feature is turned off (i.e., groupID is 0).
groupID
- the groupID to setlong getRuleID()
void setRuleID(long ruleID)
ruleID
- the rule ID to setlong getDataloadOption()
void setDataloadOption(long dataloadOption)
dataloadOption
- the dataloadOption to setshort getRoundDigits()
void setRoundDigits(short roundDigits)
roundDigits
- the roundDigits to set. Acceptable value is in range of [0, 100].
In case, roundDigits is not set, the default (equal to 101, i.e. no rounding) will be appliedboolean performCustomCalc(boolean verifyOnly, java.util.List outErrorsAndWarnings) throws com.essbase.api.base.EssException
This calculation operation could result in any of the below cases:
1) Succeeds without any warnings:
In this scenario, this operation will return true
and
outErrorsAndWarnings
will not have any messages added
to your outErrorsAndWarnings
object.
2) Executes, but has warning(s):
In this scenario, this operation will return false
,
indicating the operation was executed, but has warning(s) which will be
returned to you, by appending to your outErrorsAndWarnings
object. Each warning message element within your
outErrorsAndWarnings
list is of type, EssPerformAllocationError
3) Fails with Errors (may also have warnings additionally):
This will result in an EssException
being thrown containing the
error message from Essbase. The outErrorsAndWarnings
list will
be populated with the errors (and warnings if any). If there are no errors added
to your outErrorsAndWarnings
object, then the exception occurred
may be due to other reasons like for instance, failing to connect to
Essbase when trying to perform this calculation operation. In such a case, the
EssException
message will clearly reflect the appropriate Essbase
Error code and error message.
Refer CustomCalc.java sample for an example usage.
verifyOnly
- This is a flag to validate the custom calculation parameters
without performing the calculation. If it is set to true, the
allocation parameters are validated only. If it is false, the
allocation is verified and executed on the associated Essbase cube.outErrorsAndWarnings
- This is output object for collecting the errors and/or warnings
returned by Essbase. This object needs to be instantiated by the
caller so that Essbase can populate the messages (if any).
Note that, if this List object is non-empty, this operation
will be appending the returned errors. So, if you are reusing your
outErrorsAndWarnings
object and like to have the errors/warnings
corresponding to this particular call only, please make sure that
you clear your list before invoking this method.
The list will contain objects of type EssPerformAllocationError
only.com.essbase.api.base.EssException
- when Essbase fails to perform the calculation on the cube.
Refer case (3) mentioned above for more details.EssPerformAllocationError