/** * Generates a proxy wrapping the ResultSet. * * @param resultSet The resultSet to wrap. * @param columnNameCache The cache storing data for converting column names to column indexes. * @param serviceRegistry Access to any needed services * * @return The generated proxy. */ public static ResultSet generateProxy( ResultSet resultSet, ColumnNameCache columnNameCache, ServiceRegistry serviceRegistry) { return serviceRegistry.getService( ClassLoaderService.class ).generateProxy( new ResultSetWrapperProxy( resultSet, columnNameCache ), ResultSet.class ); }
/** * Generates a proxy wrapping the ResultSet. * * @param resultSet The resultSet to wrap. * @param columnNameCache The cache storing data for converting column names to column indexes. * @return The generated proxy. */ public static ResultSet generateProxy(ResultSet resultSet, ColumnNameCache columnNameCache) { return ( ResultSet ) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ResultSetWrapperProxy( resultSet, columnNameCache ) ); }
/** * Generates a proxy wrapping the ResultSet. * * @param resultSet The resultSet to wrap. * @param columnNameCache The cache storing data for converting column names to column indexes. * @return The generated proxy. */ public static ResultSet generateProxy(ResultSet resultSet, ColumnNameCache columnNameCache) { return ( ResultSet ) Proxy.newProxyInstance( getProxyClassLoader(), PROXY_INTERFACES, new ResultSetWrapperProxy( resultSet, columnNameCache ) ); }
/** * Generates a proxy wrapping the ResultSet. * * @param resultSet The resultSet to wrap. * @param columnNameCache The cache storing data for converting column names to column indexes. * @param serviceRegistry Access to any needed services * * @return The generated proxy. */ public static ResultSet generateProxy( ResultSet resultSet, ColumnNameCache columnNameCache, ServiceRegistry serviceRegistry) { return serviceRegistry.getService( ClassLoaderService.class ).generateProxy( new ResultSetWrapperProxy( resultSet, columnNameCache ), ResultSet.class ); }