Package com.activeviam.copper
Class MeasureMetadata
java.lang.Object
com.activeviam.copper.MeasureMetadata
- All Implemented Interfaces:
IClone<MeasureMetadata>,Cloneable
Contains the additional information required to publish a measure into a cube.
- Author:
- ActiveViam
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFlags for user-specified metadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()This method is very similar to the one used by Object except that it returns the real class.static MeasureMetadatacopyOnlyType(MeasureMetadata metadata) Returns a newMeasureMetadatacontaining only the type of the given metadata.Gets this measure's description.booleanReturns true if the measure should be executed in the data cube.Gets the folder for a measure.Gets the formatter of this measure.Gets this measure's group.getName()Gets the name of this measure.getType()Deprecated, for removal: This API element is subject to removal in a future version.the type will be stored in the Copper Measure instance in the futureintGets this measure's xmla aggregator.booleanChecks if the user has specified something.booleanisUserSpecified(MeasureMetadata.UserSpecific userSpecifiedMetadata) Gets whether the user has specified the given metadata.Returns whether the measure is visible.voidsetDescription(String description) Sets this measure's description.voidsetExecuteInDataCube(boolean executeInDataCube) Activates the execution of the measure in the data cube if the setup is distributed.voidChanges the folder.voidsetFormatter(String formatter) Sets the formatter of this measure.voidsetMeasureGroup(String measureGroup) Sets this measure's group.voidSets the name of this measure.voidsetType(int type) Deprecated, for removal: This API element is subject to removal in a future version.the type will be stored in the Copper Measure instance in the futurevoidsetUserSpecifiedMetadata(MeasureMetadata.UserSpecific userSpecifiedMetadata) Marks the metadata item as specified by the user.voidsetVisible(boolean visible) Changes the visibility.voidsetXmlaAggregator(int aggregator) Sets this measure's xmla aggregator.toString()voidMarks the metadata name as NOT specified by the user.voidunsetUserSpecifiedMetadata(MeasureMetadata.UserSpecific userSpecifiedMetadata) Marks the metadata item as NOT specified by the user.
-
Constructor Details
-
MeasureMetadata
public MeasureMetadata()
-
-
Method Details
-
setVisible
public void setVisible(boolean visible) Changes the visibility.- Parameters:
visible- whether the measure should be visible
-
isVisible
Returns whether the measure is visible. Ifnull, it means the user didn't change it.- Returns:
trueif the measure is visible,falseotherwise
-
setFolder
Changes the folder.- Parameters:
folder- the new folder to use- See Also:
-
getFolder
Gets the folder for a measure.- Returns:
- the folder of the measure
- See Also:
-
setFormatter
Sets the formatter of this measure.- Parameters:
formatter- the formatter
-
getFormatter
Gets the formatter of this measure.- Returns:
- the formatter
-
setName
Sets the name of this measure.- Parameters:
name- the name
-
getName
Gets the name of this measure.- Returns:
- the name
-
setType
@DeprecatedApi(forRemoval="6.1.0") @Deprecated(since="6.0.6", forRemoval=true) public void setType(int type) Deprecated, for removal: This API element is subject to removal in a future version.the type will be stored in the Copper Measure instance in the futureSets the type of this measure.- Parameters:
type- the type
-
getType
@DeprecatedApi(forRemoval="6.1.0") @Deprecated(since="6.0.6", forRemoval=true) public Integer getType()Deprecated, for removal: This API element is subject to removal in a future version.the type will be stored in the Copper Measure instance in the futureGets the type of this measure.- Returns:
- the type
-
setMeasureGroup
Sets this measure's group.- Parameters:
measureGroup- the group
-
getMeasureGroup
Gets this measure's group.- Returns:
- the group
-
setDescription
Sets this measure's description.- Parameters:
description- the description
-
getDescription
Gets this measure's description.- Returns:
- the description
-
setXmlaAggregator
public void setXmlaAggregator(int aggregator) Sets this measure's xmla aggregator.- Parameters:
aggregator- the xmla aggregator
-
getXmlaAggregator
public int getXmlaAggregator()Gets this measure's xmla aggregator.- Returns:
- the xmla aggregator
-
setExecuteInDataCube
public void setExecuteInDataCube(boolean executeInDataCube) Activates the execution of the measure in the data cube if the setup is distributed. By default, the measures described in Copper are executed in the query cube. -
getExecuteInDataCube
public boolean getExecuteInDataCube()Returns true if the measure should be executed in the data cube. -
setUserSpecifiedMetadata
Marks the metadata item as specified by the user.- Parameters:
userSpecifiedMetadata- the metadata specified by the user
-
unsetUserSpecifiedMetadata
Marks the metadata item as NOT specified by the user.- Parameters:
userSpecifiedMetadata- the specified metadata to unset
-
isUserSpecified
Gets whether the user has specified the given metadata.- Parameters:
userSpecifiedMetadata- the metadata- Returns:
trueif the user has specified the given metadata,falseotherwise
-
hasUserSpecification
public boolean hasUserSpecification()Checks if the user has specified something.- Returns:
trueif the user has specified something,falseotherwise
-
unsetName
public void unsetName()Marks the metadata name as NOT specified by the user. -
clone
Description copied from interface:ICloneThis method is very similar to the one used by Object except that it returns the real class.- Specified by:
clonein interfaceIClone<MeasureMetadata>- Returns:
- a clone of the object
-
copyOnlyType
Returns a newMeasureMetadatacontaining only the type of the given metadata.- Parameters:
metadata- the given metadata we want to copy the type of- Returns:
- aforementioned new MeasureMetadata
-
toString
-