java.lang.Object
org.jooq.impl.NoConnectionProvider
- All Implemented Interfaces:
ConnectionProvider
An "empty" implementation that is never connected.
- Author:
- Lukas Eder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @Nullable Connectionacquire()This method will always returnnull.final voidrelease(Connection connection) This method has no effect.
-
Constructor Details
-
NoConnectionProvider
public NoConnectionProvider()
-
-
Method Details
-
acquire
This method will always returnnull.- Specified by:
acquirein interfaceConnectionProvider- Returns:
- A connection for the current
ExecuteContext. Ifnullis 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:
releasein interfaceConnectionProvider- Parameters:
connection- A connection that was previously obtained fromConnectionProvider.acquire(). This is nevernull.
-