Class HibernateConnectionOperations
java.lang.Object
io.micronaut.data.connection.support.AbstractConnectionOperations<org.hibernate.Session>
io.micronaut.data.hibernate.connection.HibernateConnectionOperations
- All Implemented Interfaces:
- ConnectionOperations<org.hibernate.Session>,- SynchronousConnectionManager<org.hibernate.Session>
@Order(100)
@Internal
@RequiresSyncHibernate
@EachBean(org.hibernate.SessionFactory.class)
public final class HibernateConnectionOperations
extends AbstractConnectionOperations<org.hibernate.Session>
The Hibernate connection operations.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
- 
Field SummaryFields inherited from class io.micronaut.data.connection.support.AbstractConnectionOperationslogger
- 
Constructor SummaryConstructorsConstructorDescriptionHibernateConnectionOperations(org.hibernate.SessionFactory sessionFactory, @Nullable org.hibernate.Interceptor entityInterceptor) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcloseConnection(ConnectionStatus<org.hibernate.Session> connectionStatus) Closed the connection.protected org.hibernate.SessionopenConnection(ConnectionDefinition definition) Opens a new connection.protected voidsetupConnection(ConnectionStatus<org.hibernate.Session> connectionStatus) Setups the connection after it have been open.Methods inherited from class io.micronaut.data.connection.support.AbstractConnectionOperationscomplete, execute, findConnectionStatus, getConnectionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.data.connection.ConnectionOperationsexecuteRead, executeWrite, getConnectionStatus
- 
Constructor Details- 
HibernateConnectionOperationspublic HibernateConnectionOperations(org.hibernate.SessionFactory sessionFactory, @Nullable @Nullable org.hibernate.Interceptor entityInterceptor) 
 
- 
- 
Method Details- 
openConnectionDescription copied from class:AbstractConnectionOperationsOpens a new connection.- Specified by:
- openConnectionin class- AbstractConnectionOperations<org.hibernate.Session>
- Parameters:
- definition- The connection definition
- Returns:
- The connection
 
- 
setupConnectionDescription copied from class:AbstractConnectionOperationsSetups the connection after it have been open.- Specified by:
- setupConnectionin class- AbstractConnectionOperations<org.hibernate.Session>
- Parameters:
- connectionStatus- The connection status
 
- 
closeConnectionDescription copied from class:AbstractConnectionOperationsClosed the connection.- Specified by:
- closeConnectionin class- AbstractConnectionOperations<org.hibernate.Session>
- Parameters:
- connectionStatus- The connection status
 
 
-