Package com.appliedolap.essbase.impl
Class EssScriptImpl
java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssScriptImpl
A calculation or MDX script on a cube.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.TypeNested classes/interfaces inherited from interface com.appliedolap.essbase.EssScript
EssScript.ScriptType -
Field Summary
Fields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()voidexecute()Runs the script as a job and waits.The script's text, fetched from the server.getCube()The cube this script belongs to.getName()Gets the name of this object.Which kind of script this is.getSize()getType()Gets the type of this object.voidReplaces the script's text on the server.validate()Checks the script without running it.
-
Method Details
-
getName
Description copied from interface:EssObjectGets the name of this object. This will generally be the "nice" and "unique" name of this object, such as the application name, cube, member, variable, or whatever. -
getType
Description copied from interface:EssObjectGets the type of this object. -
getScriptType
Description copied from interface:EssScriptWhich kind of script this is.- Specified by:
getScriptTypein interfaceEssScript- Returns:
- the type, never null
-
getCube
Description copied from interface:EssScriptThe cube this script belongs to. -
getModifiedTime
- Specified by:
getModifiedTimein interfaceEssScript
-
getSize
-
getContent
Description copied from interface:EssScriptThe script's text, fetched from the server.- Specified by:
getContentin interfaceEssScript- Returns:
- the content
-
save
Description copied from interface:EssScriptReplaces the script's text on the server. -
validate
Description copied from interface:EssScriptChecks the script without running it.Worth doing before a save as well as before a run: Essbase validates against the live outline, so it catches a member name that no longer exists.
-
delete
public void delete() -
execute
public void execute()Runs the script as a job and waits.The two types are parameterised differently, and neither is guessable. A calculation goes in
fileas its bare name; putting it inscriptanswers "Invalid file name 'CalcAll'. Does not have an extension." An MDX script goes inscriptas its file name with the.mdxextension; putting it infileruns and then fails inside Essbase with "NULL argument (5) passed to ESSAPI function executeMdxScript".
-