Package 

Class PersistenceContext

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public final class PersistenceContext
     implements Closeable
                        

    Provides access to a single JDBC connection and its EntityManager, and several utility methods.

    The db function executes block in context of this class.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Connection connection
      private final SessionImpl session
      private final EntityManager em
    • Constructor Summary

      Constructors 
      Constructor Description
      PersistenceContext(EntityManager em)
    • Method Summary

      Modifier and Type Method Description
      Unit close()
      final Connection getConnection()
      final SessionImpl getSession()
      final EntityManager getEm()
      • Methods inherited from class java.lang.AutoCloseable

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait