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 Summary
Fields inherited from class io.micronaut.data.connection.support.AbstractConnectionOperations
logger
-
Constructor Summary
ConstructorDescriptionHibernateConnectionOperations
(org.hibernate.SessionFactory sessionFactory, @Nullable org.hibernate.Interceptor entityInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
closeConnection
(ConnectionStatus<org.hibernate.Session> connectionStatus) Closed the connection.protected org.hibernate.Session
openConnection
(ConnectionDefinition definition) Opens a new connection.protected void
setupConnection
(ConnectionStatus<org.hibernate.Session> connectionStatus) Setups the connection after it have been open.Methods inherited from class io.micronaut.data.connection.support.AbstractConnectionOperations
complete, execute, findConnectionStatus, getConnection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.connection.ConnectionOperations
executeRead, executeWrite, getConnectionStatus
-
Constructor Details
-
HibernateConnectionOperations
public HibernateConnectionOperations(org.hibernate.SessionFactory sessionFactory, @Nullable @Nullable org.hibernate.Interceptor entityInterceptor)
-
-
Method Details
-
openConnection
Description copied from class:AbstractConnectionOperations
Opens a new connection.- Specified by:
openConnection
in classAbstractConnectionOperations<org.hibernate.Session>
- Parameters:
definition
- The connection definition- Returns:
- The connection
-
setupConnection
Description copied from class:AbstractConnectionOperations
Setups the connection after it have been open.- Specified by:
setupConnection
in classAbstractConnectionOperations<org.hibernate.Session>
- Parameters:
connectionStatus
- The connection status
-
closeConnection
Description copied from class:AbstractConnectionOperations
Closed the connection.- Specified by:
closeConnection
in classAbstractConnectionOperations<org.hibernate.Session>
- Parameters:
connectionStatus
- The connection status
-