Skip to content

Commit

Permalink
Add MetadataElement.isVisible, and implement in XMLA driver.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@373 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Dec 2, 2010
1 parent 0c8a01f commit 116ad0d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/olap4j/driver/xmla/XmlaOlap4jCube.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public String getDescription() {
return description;
}

public boolean isVisible() {
return true;
}

public NamedList<Dimension> getDimensions() {
return Olap4jUtil.cast(dimensions);
}
Expand Down
4 changes: 4 additions & 0 deletions src/org/olap4j/driver/xmla/XmlaOlap4jElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public String getDescription() {
return description;
}

public boolean isVisible() {
return true;
}

public int hashCode() {
// By the book implementation of a hash code identifier.
if (this.hash == 0) {
Expand Down
4 changes: 4 additions & 0 deletions src/org/olap4j/driver/xmla/XmlaOlap4jNamedSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public String getCaption() {
public String getDescription() {
return "";
}

public boolean isVisible() {
return true;
}
}

// End XmlaOlap4jNamedSet.java
7 changes: 7 additions & 0 deletions src/org/olap4j/metadata/MetadataElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ public interface MetadataElement {
* @see org.olap4j.OlapConnection#getLocale()
*/
String getDescription();

/*
* Returns whether this element is visible to end-users.
*
* @return Whether this element is visible
*/
boolean isVisible();
}

// End MetadataElement.java

0 comments on commit 116ad0d

Please sign in to comment.