java.lang.Object
org.jooq.impl.NoConnectionProvider
- All Implemented Interfaces:
ConnectionProvider
An "empty" implementation that is never connected.
- Author:
- Lukas Eder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Connection
acquire()
This method will always returnnull
.void
release(Connection connection)
This method has no effect.
-
Constructor Details
-
NoConnectionProvider
public NoConnectionProvider()
-
-
Method Details
-
acquire
This method will always returnnull
.- Specified by:
acquire
in interfaceConnectionProvider
- Returns:
- A connection for the current
ExecuteContext
. Ifnull
is returned (e.g. by NoConnectionProvider), then statements cannot be executed. Attempts to execute statements will result in aDetachedException
.
-
release
This method has no effect.- Specified by:
release
in interfaceConnectionProvider
- Parameters:
connection
- A connection that was previously obtained fromConnectionProvider.acquire()
. This is nevernull
.
-