Database Reference
In-Depth Information
Figure 8.4 Member properties. (From Oracle Essbase Administration Services. With permission.)
// print member information
private static void printMember(String desc, IEssMember member) {
try {
System.out.println("\n=== " + desc + " ===");
System.out.print("Name: ");
System.out.println(member.getName());
System.out.print("Level: ");
System.out.println(member.getLevelNumber());
System.out.print("Related Members-Parent: ");
System.out.println(member.getRelatedMemberNames()[0]);
} catch (EssException e) {
System.out.println("Error: " + e.getMessage());
}
}
now let us take a look at some of the different methods for getting an IEssMember
object and discuss the pros and cons of each method. In the examples, we will use the
Product dimension of the Sample Basic database, specifically the Colas member and
its descendants. In tableĀ 8.5 are the member names, aliases, and level numbers for the
members we will see in the examples.
8.7.2 Getting IEssMember Objects Using IEssCube.getMember
The most straightforward way to get an IEssMember object is to request it by name using
the IEssCube.getMember method. If we continue using the code sample from earlier in
the chapter, the code to get the member is quite simple.
// get the member object
IEssMember member = cube.getMember("100-10");
Search WWH ::




Custom Search