public interface IEssCustomObject extends IEssExtendedObject
A Custom object is associated with the Essbase cube and can be of type: Set, Measure, Aggregate or Grid Layout.
These APIs are supported by Essbase version 11.1.2.3
Modifier and Type | Interface and Description |
---|---|
static class |
IEssCustomObject.CustomObjectCopyOption
Options available for copying Custom Objects.
|
static class |
IEssCustomObject.CustomObjectType
Types of Custom Objects.
|
Modifier and Type | Method and Description |
---|---|
void |
copyTo(java.lang.String destSchema,
java.lang.String destName,
IEssCustomObject.CustomObjectCopyOption option)
Copies this custom object (includes its metadata definition)
to specified schema and name.
|
void |
create()
Creates this custom object on the on associated Essbase Cube.
|
void |
delete()
Deletes this Custom object from associated Essbase cube.
|
IEssCube |
getCube()
Returns the Cube instance to which this Custom Object is associated.
|
com.essbase.api.datasource.EssCustObjDefinition |
getDefinition()
Gets the custom object metadata definition.
|
java.lang.String |
getName()
Returns the Name of the Custom Object.
|
java.lang.String |
getSchemaName()
Returns the relation database schema name where this custom object
is stored.
|
IEssCustomObject.CustomObjectType |
getType()
Returns the type of Custom Object.
|
boolean |
isEditable()
Indicates if this custom object is edit-able by the logged-in
Essbase user.
|
void |
refresh()
On refresh, an instance of this java object will be updated with the
latest information of this object from Essbase Server.
|
void |
rename(java.lang.String newName)
Renames the existing Custom object in associated Essbase cube.
|
void |
setDefinition(com.essbase.api.datasource.EssCustObjDefinition coDefintion)
Sets the metadata definition information for this custom object.
|
void |
setEditable(boolean editable)
To sets if its editable or not.
|
void |
update()
Updates this custom object information like defintion, etc on the
Essbase server.
|
void |
validate()
Validates this existing custom object and its definition in the
associated Cube.
|
clearClientCache, getParent, getParentBase, isClientCachingEnabled, setClientCachingEnabled
java.lang.String getName()
getName
in interface IEssExtendedObject
IEssCustomObject.CustomObjectType getType()
IEssCustomObject.CustomObjectType
java.lang.String getSchemaName()
IEssCube getCube()
void create() throws com.essbase.api.base.EssException
This method requires the user to be a member of the group i.e. the schema specified, else it errors out.
com.essbase.api.base.EssException
- on failure to create.setDefinition(EssCustObjDefinition)
void update() throws com.essbase.api.base.EssException
This method requires the user to be a member of the group i.e. the schema specified, else it errors out.
com.essbase.api.base.EssException
- on failure to update the definition.void delete() throws com.essbase.api.base.EssException
This method requires the user to be a member of the group i.e. the schema specified, else it errors out.
com.essbase.api.base.EssException
- on failure to remove this custom object.void rename(java.lang.String newName) throws com.essbase.api.base.EssException
newName
- New name for this custom object.
This method requires the user to be a member of the group i.e. the schema specified, else it errors out.
com.essbase.api.base.EssException
- on failing to rename.void validate() throws com.essbase.api.base.EssException
EssException
with the error information.
The following are the Essbase rules for validating a custom object: 1) Ensures user has access to the schema and the custom object exists. 2) Ensures based on type, appropriate fields are filled. 3) Compiles MDX fragment and verifies dimensionality. If successful, updates the dimensionality in schema-object list mapping. 4) Validates the dependency object list.
Please note that during outline restructure, Essbase does not validate custom objects. It validates custom objects only on a demand basis. So only when custom objects are created, updated or when they are validated, the validity status of the custom objects is updated within. One of the purposes of validating custom object is the outline may have changed by deleting or renaming dimension(s) or member(s), then the custom objects which refer to that dimension(s) or member(s) become invalid.
This method requires the user to be a member of the group i.e. the schema specified, else it errors out.
com.essbase.api.base.EssException
- if object is in a invalid state, or failing to
validate the object.void copyTo(java.lang.String destSchema, java.lang.String destName, IEssCustomObject.CustomObjectCopyOption option) throws com.essbase.api.base.EssException
This method requires the user to be a member of both source schema and schema specified, else it errors out.
destSchema
- Destination Schema.destName
- Destination Name.option
- type of copying option available
in {#IEssCustomObject.CustomObjectType}com.essbase.api.base.EssException
- on Error.IEssCustomObject.CustomObjectCopyOption
com.essbase.api.datasource.EssCustObjDefinition getDefinition() throws com.essbase.api.base.EssException
This method requires the user to be a member of both source schema and schema specified, else it errors out.
com.essbase.api.base.EssException
- on failing to get the object definition.void setDefinition(com.essbase.api.datasource.EssCustObjDefinition coDefintion) throws com.essbase.api.base.EssException
coDefintion
- type EssCustObjDefinitioncom.essbase.api.base.EssException
- if an error occursboolean isEditable() throws com.essbase.api.base.EssException
com.essbase.api.base.EssException
- on failing to retrieve editable
information from Essbase.void setEditable(boolean editable) throws com.essbase.api.base.EssException
editable
- Modify-able.com.essbase.api.base.EssException
- on failing to set this state.void refresh() throws com.essbase.api.base.EssException
com.essbase.api.base.EssException
- If object is invalid or the operation fails to
retrieve data from Essbase.