Package org.jooq.impl
Class NoConnectionProvider
- java.lang.Object
-
- org.jooq.impl.NoConnectionProvider
-
- All Implemented Interfaces:
ConnectionProvider
public class NoConnectionProvider extends java.lang.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 java.sql.Connection
acquire()
This method will always returnnull
.void
release(java.sql.Connection connection)
This method has no effect.
-
-
-
Method Detail
-
acquire
public final java.sql.Connection acquire()
This method will always returnnull
.- Specified by:
acquire
in interfaceConnectionProvider
- Returns:
- A connection for the current
ExecuteContext
.
-
release
public final void release(java.sql.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
.
-
-