|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap4j.MondrianOlap4jConnection.Helper
static class MondrianOlap4jConnection.Helper
Package-private helper class which encapsulates policies which are common throughout the driver. These policies include exception handling and factory methods.
| Constructor Summary | |
|---|---|
MondrianOlap4jConnection.Helper()
|
|
| Method Summary | |
|---|---|
(package private) OlapException |
createException(Cell context,
String msg)
Creates an exception in the context of a particular Cell. |
(package private) OlapException |
createException(Cell context,
String msg,
Throwable cause)
Creates an exception in the context of a particular Cell and with a given cause. |
(package private) OlapException |
createException(String msg)
|
(package private) OlapException |
createException(String msg,
Throwable cause)
Creates an exception with a given cause. |
OlapException |
toOlapException(SQLException e)
Converts a SQLException to an OlapException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
MondrianOlap4jConnection.Helper()
| Method Detail |
|---|
OlapException createException(String msg)
OlapException createException(Cell context,
String msg)
context - Cell context for exceptionmsg - Message
OlapException createException(Cell context,
String msg,
Throwable cause)
context - Cell context for exceptionmsg - Messagecause - Causing exception
OlapException createException(String msg,
Throwable cause)
msg - Messagecause - Causing exception
public OlapException toOlapException(SQLException e)
This method is typically used as an adapter for SQLException instances coming from a base class, where derived interface declares that it throws the more specific OlapException.
e - Exception
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||