org.hibernate.engine.jdbc.internal.proxy
Class DatabaseMetaDataProxyHandler

java.lang.Object
  extended by org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler
      extended by org.hibernate.engine.jdbc.internal.proxy.DatabaseMetaDataProxyHandler
All Implemented Interfaces:
InvocationHandler

public class DatabaseMetaDataProxyHandler
extends AbstractProxyHandler

The InvocationHandler for intercepting messages to DatabaseMetaData proxies.

Mainly we need to intercept the methods defined on DatabaseMetaData which expose ResultSet instances, which in turn expose Statement instances, which in turn...


Constructor Summary
DatabaseMetaDataProxyHandler(DatabaseMetaData databaseMetaData, ConnectionProxyHandler connectionProxyHandler, Connection connectionProxy)
           
 
Method Summary
protected  Object continueInvocation(Object proxy, Method method, Object[] args)
           
protected  boolean doesMethodExposeResultSet(Method method)
           
 
Methods inherited from class org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler
errorIfInvalid, hashCode, invalidate, invoke, isValid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseMetaDataProxyHandler

public DatabaseMetaDataProxyHandler(DatabaseMetaData databaseMetaData,
                                    ConnectionProxyHandler connectionProxyHandler,
                                    Connection connectionProxy)
Method Detail

continueInvocation

protected Object continueInvocation(Object proxy,
                                    Method method,
                                    Object[] args)
                             throws Throwable
Specified by:
continueInvocation in class AbstractProxyHandler
Throws:
Throwable

doesMethodExposeResultSet

protected boolean doesMethodExposeResultSet(Method method)


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.