public class MockConnectionProvider extends Object implements ConnectionProvider
ConnectionProvider wraps a delegate
ConnectionProvider and wraps all acquired
|Constructor and Description|
|Modifier and Type||Method and Description|
Acquire a connection from the connection lifecycle handler.
Release a connection to the connection lifecycle handler.
public MockConnectionProvider(ConnectionProvider delegate, MockDataProvider provider)
public final Connection acquire()
This method is called by jOOQ exactly once per execution lifecycle, i.e.
ExecuteContext. Implementations may freely chose, whether
subsequent calls to this method:
jOOQ will guarantee that every acquired connection is released through
ConnectionProvider.release(Connection) exactly once.
public final void release(Connection connection)
jOOQ will guarantee that every acquired connection is released exactly once.
connection- A connection that was previously obtained from
ConnectionProvider.acquire(). This is never
Copyright © 2016. All Rights Reserved.