Class HibernateConnectionOperations

java.lang.Object
io.micronaut.data.connection.support.AbstractConnectionOperations<org.hibernate.Session>
io.micronaut.data.hibernate.connection.HibernateConnectionOperations
All Implemented Interfaces:
io.micronaut.data.connection.ConnectionOperations<org.hibernate.Session>, io.micronaut.data.connection.SynchronousConnectionManager<org.hibernate.Session>

@Order(100) @Internal @RequiresSyncHibernate @EachBean(org.hibernate.SessionFactory.class) public final class HibernateConnectionOperations extends io.micronaut.data.connection.support.AbstractConnectionOperations<org.hibernate.Session>
The Hibernate connection operations.
Since:
4.0.0
  • Field Summary

    Fields inherited from class io.micronaut.data.connection.support.AbstractConnectionOperations

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    HibernateConnectionOperations(org.hibernate.SessionFactory sessionFactory, @Nullable org.hibernate.Interceptor entityInterceptor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    closeConnection(io.micronaut.data.connection.ConnectionStatus<org.hibernate.Session> connectionStatus)
     
    protected org.hibernate.Session
    openConnection(io.micronaut.data.connection.ConnectionDefinition definition)
     
    protected void
    setupConnection(io.micronaut.data.connection.ConnectionStatus<org.hibernate.Session> connectionStatus)
     

    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

      protected org.hibernate.Session openConnection(io.micronaut.data.connection.ConnectionDefinition definition)
      Specified by:
      openConnection in class io.micronaut.data.connection.support.AbstractConnectionOperations<org.hibernate.Session>
    • setupConnection

      protected void setupConnection(io.micronaut.data.connection.ConnectionStatus<org.hibernate.Session> connectionStatus)
      Specified by:
      setupConnection in class io.micronaut.data.connection.support.AbstractConnectionOperations<org.hibernate.Session>
    • closeConnection

      protected void closeConnection(io.micronaut.data.connection.ConnectionStatus<org.hibernate.Session> connectionStatus)
      Specified by:
      closeConnection in class io.micronaut.data.connection.support.AbstractConnectionOperations<org.hibernate.Session>