|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.util.DelegatingInvocationHandler
mondrian.rolap.SqlStatement.MyDelegatingInvocationHandler
public static class SqlStatement.MyDelegatingInvocationHandler
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.
| Constructor Summary | |
|---|---|
SqlStatement.MyDelegatingInvocationHandler(SqlStatement sqlStatement)
Creates a MyDelegatingInvocationHandler. |
|
| Method Summary | |
|---|---|
void |
close()
Helper method to implement ResultSet.close(). |
protected Object |
getTarget()
Returns the object to forward method calls to, should the derived class not implement the method. |
| Methods inherited from class mondrian.util.DelegatingInvocationHandler |
|---|
invoke |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
SqlStatement.MyDelegatingInvocationHandler(SqlStatement sqlStatement)
sqlStatement - SQL statement| Method Detail |
|---|
protected Object getTarget()
DelegatingInvocationHandlerThe default implementation returns null, which will cause the
DelegatingInvocationHandler.invoke(Object, java.lang.reflect.Method, Object[]) method
to throw an UnsupportedOperationException if the derived class
does not have the required method.
getTarget in class DelegatingInvocationHandler
public void close()
throws SQLException
ResultSet.close().
SQLException - on error
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||