Skip to content

Commit

Permalink
Adds getSchemaId() to XmlaExtra.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucboudreau committed Jan 2, 2013
1 parent 5206fe3 commit d87b6ad
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/mondrian/xmla/XmlaHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.UndeclaredThrowableException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.*;
Expand Down Expand Up @@ -2973,6 +2971,11 @@ boolean shouldReturnCellProperty(
*/
List<String> getSchemaRoleNames(Schema schema);

/**
* Returns the unique ID of a schema.
*/
String getSchemaId(Schema schema);

String getCubeType(Cube cube);

boolean isLevelUnique(Level level);
Expand Down Expand Up @@ -3146,6 +3149,10 @@ public List<String> getSchemaRoleNames(Schema schema) {
return Collections.emptyList();
}

public String getSchemaId(Schema schema) {
return schema.getName();
}

public String getCubeType(Cube cube) {
return RowsetDefinition.MdschemaCubesRowset.MD_CUBTYPE_CUBE;
}
Expand Down

0 comments on commit d87b6ad

Please sign in to comment.