Skip to content

Commit

Permalink
HHH-14679 - Deprecate ResultSetWrapper and friends
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole authored and Sanne committed Jun 14, 2021
1 parent e2f24c5 commit f91fe03
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 1 deletion.
Expand Up @@ -1273,6 +1273,7 @@ public void enableScrollableResultSupport(boolean enabled) {
this.scrollableResultSetsEnabled = enabled;
}

@Deprecated
public void enableResultSetWrappingSupport(boolean enabled) {
this.wrapResultSetsEnabled = enabled;
}
Expand Down
Expand Up @@ -219,6 +219,10 @@ default boolean isStrictJpaQueryLanguageCompliance() {

boolean isScrollableResultSetsEnabled();

/**
* @deprecated (since 5.5) Scheduled for removal in 6.0 as ResultSet wrapping is no longer needed
*/
@Deprecated
boolean isWrapResultSetsEnabled();

boolean isGetGeneratedKeysEnabled();
Expand Down
Expand Up @@ -1114,7 +1114,10 @@ public interface AvailableSettings extends org.hibernate.jpa.AvailableSettings {
/**
* Enable wrapping of JDBC result sets in order to speed up column name lookups for
* broken JDBC drivers
*
* @deprecated (since 5.5) Scheduled for removal in 6.0 as ResultSet wrapping is no longer needed
*/
@Deprecated
String WRAP_RESULT_SETS = "hibernate.jdbc.wrap_result_sets";

/**
Expand Down
Expand Up @@ -13,8 +13,11 @@
/**
* Cache of column-name -> column-index resolutions
*
* @deprecated (since 5.5) Scheduled for removal in 6.0 as ResultSet wrapping is no longer needed
*
* @author Steve Ebersole
*/
@Deprecated
public final class ColumnNameCache {
private static final float LOAD_FACTOR = .75f;

Expand Down
Expand Up @@ -27,9 +27,12 @@
* 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).
*
* @deprecated (since 5.5) Scheduled for removal in 6.0 as ResultSet wrapping is no longer needed
*
* @author Steve Ebersole
* @author Gail Badner
*/
@Deprecated
public class ResultSetWrapperProxy implements InvocationHandler {
private static final CoreMessageLogger LOG = messageLogger( ResultSetWrapperProxy.class );

Expand Down
Expand Up @@ -8,7 +8,6 @@

import java.sql.ResultSet;

import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
import org.hibernate.engine.jdbc.ColumnNameCache;
import org.hibernate.engine.jdbc.ResultSetWrapperProxy;
import org.hibernate.engine.jdbc.spi.ResultSetWrapper;
Expand All @@ -18,9 +17,12 @@
* Standard Hibernate implementation for wrapping a {@link ResultSet} in a
" column name cache" wrapper.
*
* @deprecated (since 5.5) Scheduled for removal in 6.0 as ResultSet wrapping is no longer needed
*
* @author Steve Ebersole
* @author Gail Badner
*/
@Deprecated
public class ResultSetWrapperImpl implements ResultSetWrapper {
private final ServiceRegistry serviceRegistry;

Expand Down
Expand Up @@ -13,8 +13,11 @@
/**
* Contract for wrapping a {@link ResultSet} in a "column name cache" wrapper.
*
* @deprecated (since 5.5) Scheduled for removal in 6.0 as ResultSet wrapping is no longer needed
*
* @author Gail Badner
*/
@Deprecated
public interface ResultSetWrapper {
/**
* Wrap a result set in a "column name cache" wrapper.
Expand Down

0 comments on commit f91fe03

Please sign in to comment.