mondrian.olap4j
Class MondrianOlap4jMetadataElement

java.lang.Object
  extended by mondrian.olap4j.MondrianOlap4jMetadataElement
All Implemented Interfaces:
OlapWrapper
Direct Known Subclasses:
MondrianOlap4jCatalog, MondrianOlap4jCube, MondrianOlap4jDatabase, MondrianOlap4jDimension, MondrianOlap4jHierarchy, MondrianOlap4jLevel, MondrianOlap4jMember, MondrianOlap4jNamedSet, MondrianOlap4jSchema

abstract class MondrianOlap4jMetadataElement
extends Object
implements OlapWrapper

Basic features of metadata elements in Mondrian's olap4j driver.

Author:
jhyde

Constructor Summary
MondrianOlap4jMetadataElement()
           
 
Method Summary
protected abstract  OlapElement getOlapElement()
          Returns the Mondrian metadata element inside this wrapper, or null if there is none.
 boolean isWrapperFor(Class<?> iface)
           
<T> T
unwrap(Class<T> iface)
           
protected
<T> T
unwrapImpl(Class<T> iface)
          Helper for unwrap(Class) and isWrapperFor(Class).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MondrianOlap4jMetadataElement

MondrianOlap4jMetadataElement()
Method Detail

unwrapImpl

protected <T> T unwrapImpl(Class<T> iface)
Helper for unwrap(Class) and isWrapperFor(Class).

Type Parameters:
T - Type
Parameters:
iface - Desired interface
Returns:
This as desired interface, or null

getOlapElement

protected abstract OlapElement getOlapElement()
Returns the Mondrian metadata element inside this wrapper, or null if there is none.

Returns:
The Mondrian metadata element, if any

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Specified by:
unwrap in interface OlapWrapper
Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
Specified by:
isWrapperFor in interface OlapWrapper

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads