[Mondrian] MondrianOlap4jConnection visibility

Julian Hyde jhyde at pentaho.com
Sat Aug 25 21:07:00 EDT 2012


On Aug 25, 2012, at 5:59 PM, Paul Stoellberger <p.stoellberger at gmail.com> wrote:

> I assume its due to JDBC standards, but why is MondrianOlap4jConnection not a public class?

If we made it public people would start using it! And the principle that when one works with JDBC, one just uses the methods in the specification, is a principle worth enforcing.

> I need to check what connection type an OlapConnection is, so I'd like to use OlapConnection.isWrapperFor(<Class>)
> For now I always use RolapConnection.class, since its the only one being public and MondrianOlap4jConnection returns for RolapConnections true as well
> 
> Thats ok for now but I'd rather be able to specifically now what connection I am dealing with.
> 
> Or is there any other way I can figure that out?

Connection.getMetaData().getDriverName()

Julian



More information about the Mondrian mailing list