Class DefaultDataSourceConnectionOperations
java.lang.Object
io.micronaut.data.connection.support.AbstractConnectionOperations<Connection>
io.micronaut.data.connection.jdbc.operations.DefaultDataSourceConnectionOperations
- All Implemented Interfaces:
 ConnectionOperations<Connection>,SynchronousConnectionManager<Connection>
@Internal
@EachBean(javax.sql.DataSource.class)
public final class DefaultDataSourceConnectionOperations
extends AbstractConnectionOperations<Connection>
The 
DataSource connection operations.- Since:
 - 4.0.0
 - Author:
 - Denis Stepanov
 
- 
Field Summary
Fields inherited from class io.micronaut.data.connection.support.AbstractConnectionOperations
logger - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseConnection(ConnectionStatus<Connection> connectionStatus) Closed the connection.protected ConnectionopenConnection(ConnectionDefinition definition) Opens a new connection.protected voidsetupConnection(ConnectionStatus<Connection> connectionStatus) Setups the connection after it have been open.Methods inherited from class io.micronaut.data.connection.support.AbstractConnectionOperations
complete, execute, findConnectionStatus, getConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.data.connection.ConnectionOperations
executeRead, executeWrite, getConnectionStatus 
- 
Method Details
- 
openConnection
Description copied from class:AbstractConnectionOperationsOpens a new connection.- Specified by:
 openConnectionin classAbstractConnectionOperations<Connection>- Parameters:
 definition- The connection definition- Returns:
 - The connection
 
 - 
setupConnection
Description copied from class:AbstractConnectionOperationsSetups the connection after it have been open.- Specified by:
 setupConnectionin classAbstractConnectionOperations<Connection>- Parameters:
 connectionStatus- The connection status
 - 
closeConnection
Description copied from class:AbstractConnectionOperationsClosed the connection.- Specified by:
 closeConnectionin classAbstractConnectionOperations<Connection>- Parameters:
 connectionStatus- The connection status
 
 -