Class DimensionConditionHandle


public class DimensionConditionHandle extends StructureHandle
Represents the handle of the cube-dimension/hierarchy join condition.

Primary Keys
Primary keys define a list of primary key to do the join actions between cube and hierarchy in dimension. Each one in the list must be one of the data set column in data set defined in cube.
Hierarchy
Hierarchy refers a hierarchy element in one of the dimension in the cube.
  • Constructor Details

    • DimensionConditionHandle

      public DimensionConditionHandle(SimpleValueHandle valueHandle, int index)
      Constructs the handle of the cube join condition.
      Parameters:
      valueHandle - the value handle for the cube join condition list of one property
      index - the position of this join condition in the list
  • Method Details

    • getJoinConditions

      public MemberHandle getJoinConditions()
      Gets the member handle to deal with all the DimensionJoinCondition.
      Returns:
      the member handle for all the DimensionJoinCondition
    • addJoinCondition

      public DimensionJoinConditionHandle addJoinCondition(DimensionJoinCondition joinCondition) throws SemanticException
      Gets the dimension join condition handle.
      Parameters:
      joinCondition - the join condition.
      Returns:
      the dimension join condition handle.
      Throws:
      SemanticException
    • removeJoinCondition

      public void removeJoinCondition(DimensionJoinCondition joinCondition) throws SemanticException
      Removes join condition from this dimension condition.
      Parameters:
      joinCondition - the join condition to remove
      Throws:
      SemanticException
    • removeJoinCondition

      public void removeJoinCondition(int index) throws SemanticException
      Remove the join condition in the specified position.
      Parameters:
      index - the position where the join condition resides
      Throws:
      SemanticException
    • getHierarchy

      public HierarchyHandle getHierarchy()
      Gets the referred hierarchy handle of this condition.
      Returns:
      hierarchy handle of this condition if found, otherwise null
    • getHierarchyName

      public String getHierarchyName()
      Gets the referred hierarchy name of this condition.
      Returns:
      hierarchy name of this condition if set, otherwise null
    • setHierarchy

      public void setHierarchy(String hierarchyName) throws SemanticException
      Sets the referred hierarchy by the name.
      Parameters:
      hierarchyName - the hierarchy name to set
      Throws:
      SemanticException
    • setHierarchy

      public void setHierarchy(HierarchyHandle hierarchyHandle) throws SemanticException
      Sets the referred hierarchy by the handle.
      Parameters:
      hierarchyHandle - the hierarchy handle to set
      Throws:
      SemanticException