Package mondrian.rolap
Class SqlStatement.MyDelegatingInvocationHandler
java.lang.Object
mondrian.util.DelegatingInvocationHandler
mondrian.rolap.SqlStatement.MyDelegatingInvocationHandler
- All Implemented Interfaces:
InvocationHandler
- Enclosing class:
- SqlStatement
Reflectively implements the
ResultSet interface by routing method calls to the result set inside a
SqlStatement. When the result set is closed, so is the SqlStatement, and hence the JDBC
connection and statement also.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Helper method to implementResultSet.close().protected ObjectReturns the object to forward method calls to, should the derived class not implement the method.Methods inherited from class mondrian.util.DelegatingInvocationHandler
invoke
-
Method Details
-
getTarget
Description copied from class:DelegatingInvocationHandlerReturns the object to forward method calls to, should the derived class not implement the method. Generally, this object will be a member of the derived class, supplied as a parameter to its constructor.The default implementation returns null, which will cause the
DelegatingInvocationHandler.invoke(Object, java.lang.reflect.Method, Object[])method to throw anUnsupportedOperationExceptionif the derived class does not have the required method.- Overrides:
getTargetin classDelegatingInvocationHandler- Returns:
- object to forward method calls to
- Throws:
InvocationTargetException- if there is an error acquiring the target
-
close
Helper method to implementResultSet.close().- Throws:
SQLException- on error
-