- 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 SummaryConstructors Constructor Description NoConnectionProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Connectionacquire()This method will always returnnull.voidrelease(Connection connection)This method has no effect.
 
- 
- 
- 
Method Detail- 
acquire@Nullable public final @Nullable Connection acquire() This method will always returnnull.- Specified by:
- acquirein interface- ConnectionProvider
- 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.
 
 - 
releasepublic final void release(Connection connection) This method has no effect.- Specified by:
- releasein interface- ConnectionProvider
- Parameters:
- connection- A connection that was previously obtained from- ConnectionProvider.acquire(). This is never- null.
 
 
- 
 
-