public class

ResultSetWrapperProxy

extends Object
implements InvocationHandler
java.lang.Object
   ↳ org.hibernate.engine.jdbc.ResultSetWrapperProxy

Class Overview

A proxy for a ResultSet delegate, responsible for locally caching the columnName-to-columnIndex resolution that has been found to be inefficient in a few vendor's drivers (i.e., Oracle and Postgres).

Summary

Public Methods
static ResultSet generateProxy(ResultSet resultSet, ColumnNameCache columnNameCache)
Generates a proxy wrapping the ResultSet.
static ClassLoader getProxyClassLoader()
Determines the appropriate class loader to which the generated proxy should be scoped.
Object invoke(Object proxy, Method method, Object[] args)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.reflect.InvocationHandler

Public Methods

public static ResultSet generateProxy (ResultSet resultSet, ColumnNameCache columnNameCache)

Generates a proxy wrapping the ResultSet.

Parameters
resultSet The resultSet to wrap.
columnNameCache The cache storing data for converting column names to column indexes.
Returns
  • The generated proxy.

public static ClassLoader getProxyClassLoader ()

Determines the appropriate class loader to which the generated proxy should be scoped.

Returns
  • The class loader appropriate for proxy construction.

public Object invoke (Object proxy, Method method, Object[] args)

Throws
Throwable