- java.lang.Object
-
- org.jooq.impl.NoConnectionProvider
-
- All Implemented Interfaces:
ConnectionProvider
public class NoConnectionProvider extends Object implements ConnectionProvider
An "empty" implementation that is never connected.- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description NoConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
acquire()
This method will always returnnull
.void
release(Connection connection)
This method has no effect.
-
-
-
Method Detail
-
acquire
public final Connection acquire()
This method will always returnnull
.- Specified by:
acquire
in interfaceConnectionProvider
- Returns:
- A connection for the current
ExecuteContext
.
-
release
public final void release(Connection connection)
This method has no effect.- Specified by:
release
in interfaceConnectionProvider
- Parameters:
connection
- A connection that was previously obtained fromConnectionProvider.acquire()
. This is nevernull
.
-
-