Top Inners Fields Constructors Methods
org.jooq.impl

pack-priv final Class DefaultUnwrapperProvider

extends Object
implements UnwrapperProvider
Class Inheritance
All Implemented Interfaces
org.jooq.UnwrapperProvider
Imports
java.sql.Connection, .PreparedStatement, .SQLException, .Statement, .Wrapper, org.jooq.Unwrapper, .UnwrapperProvider, org.jooq.tools.reflect.Reflect, .ReflectException

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final Unwrapper

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Unwrapper
provide()

Implements org.jooq.UnwrapperProvider.provide.

Provide an unwrapper for JDBC types.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
pack-priv static final Unwrapper INSTANCE

Constructor Detail

DefaultUnwrapperProviderback to summary
pack-priv DefaultUnwrapperProvider()

Method Detail

provideback to summary
public Unwrapper provide()

Implements org.jooq.UnwrapperProvider.provide.

Doc from org.jooq.UnwrapperProvider.provide.

Provide an unwrapper for JDBC types.

Annotations
@Override
org.jooq.impl back to summary

pack-priv final Class DefaultUnwrapperProvider.DefaultUnwrapper

extends Object
implements Unwrapper
Class Inheritance
All Implemented Interfaces
org.jooq.Unwrapper

Field Summary

Modifier and TypeField and Description
private static int
maxUnwrappedConnections

[#3696] We shouldn't infinitely attempt to unwrap connections.

private static int
maxUnwrappedStatements

[#7589] No infinite attempts to unwrap statements, either.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static final boolean
isWrapperFor(Wrapper w, Class<?> iface)

public <T> T
unwrap(Wrapper wrapper, Class<T> iface)

Implements org.jooq.Unwrapper.unwrap.

Unwrap a wrapped type from a JDBC Wrapper.
private <T> T
unwrap(Connection wrapper, Class<T> iface)

private <T> T
unwrap(Statement wrapper, Class<T> iface)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

maxUnwrappedConnectionsback to summary
private static int maxUnwrappedConnections

[#3696] We shouldn't infinitely attempt to unwrap connections.

maxUnwrappedStatementsback to summary
private static int maxUnwrappedStatements

[#7589] No infinite attempts to unwrap statements, either.

Constructor Detail

DefaultUnwrapperback to summary
pack-priv DefaultUnwrapper()

Method Detail

isWrapperForback to summary
pack-priv static final boolean isWrapperFor(Wrapper w, Class<?> iface)
unwrapback to summary
public <T> T unwrap(Wrapper wrapper, Class<T> iface)

Implements org.jooq.Unwrapper.unwrap.

Doc from org.jooq.Unwrapper.unwrap.

Unwrap a wrapped type from a JDBC Wrapper.

Annotations
@Override
unwrapback to summary
private <T> T unwrap(Connection wrapper, Class<T> iface)
Annotations
@SuppressWarnings:unchecked
unwrapback to summary
private <T> T unwrap(Statement wrapper, Class<T> iface)
Annotations
@SuppressWarnings:unchecked