Top Description Constructors Methods
org.jooq.impl

public Class NoConnectionProvider

extends Object
implements ConnectionProvider
Class Inheritance
All Implemented Interfaces
org.jooq.ConnectionProvider
Imports
java.sql.Connection, org.jooq.ConnectionProvider, org.jetbrains.annotations.Nullable

An "empty" implementation that is never connected.
Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final @Nullable Connection
acquire()

Implements org.jooq.ConnectionProvider.acquire.

This method will always return null.
public final void
release(Connection
A connection that was previously obtained from acquire(). This is never null.
connection
)

Implements org.jooq.ConnectionProvider.release.

This method has no effect.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NoConnectionProviderback to summary
public NoConnectionProvider()

Method Detail

acquireback to summary
public final @Nullable Connection acquire()

Implements org.jooq.ConnectionProvider.acquire.

This method will always return null.

Returns:@Nullable Connection

Doc from org.jooq.ConnectionProvider.acquire.

A connection for the current ExecuteContext. If null is returned (e.g. by NoConnectionProvider), then statements cannot be executed. Attempts to execute statements will result in a DetachedException.

Annotations
@Nullable
@Override
releaseback to summary
public final void release(Connection connection)

Implements org.jooq.ConnectionProvider.release.

This method has no effect.

Parameters
connection:Connection

Doc from org.jooq.ConnectionProvider.release.

A connection that was previously obtained from acquire(). This is never null.

Annotations
@Override