Class SessionProviderWrapper<P extends SessionProvider & ReadOnlyStatus.IsAware>

  • Type Parameters:
    P - session providers that adjust according to read-only status
    All Implemented Interfaces:
    SessionProvider

    public class SessionProviderWrapper<P extends SessionProvider & ReadOnlyStatus.IsAware>
    extends java.lang.Object
    implements SessionProvider
    A session provider that offers a unified view of multiple underlying session providers.
    Since:
    5.4.6
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executeCloseSession​(java.lang.String uuid)
      Loads a session directly, sets its "closed" value and immediately saves it.
      ome.model.meta.Session executeInternalSession​(java.lang.String uuid, ome.model.meta.Session session)  
      long executeNextSessionId()
      Added as an attempt to cure ticket:1176
      ome.model.meta.Session executeUpdate​(ome.system.ServiceFactory sf, ome.model.meta.Session session, java.lang.String uuid, long userId, java.lang.Long sudoerId)  
      ome.model.meta.Session findSessionById​(long id, ome.system.ServiceFactory sf)
      Retrieves a session by ID.
      ome.model.meta.Session findSessionById​(long id, org.hibernate.Session hibernateSession)
      Retrieves a session by ID.
      java.lang.Long findSessionIdByUuid​(java.lang.String uuid)  
      java.lang.Long findSessionIdByUuid​(java.lang.String uuid, ome.system.ServiceFactory sf)  
      • Methods inherited from class java.lang.Object

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