Interface PersistenceContext


  • public interface PersistenceContext
    • Method Detail

      • persist

        PersistentSession persist​(PersistentSession session)
        This method persists the entity. If pessimistic locking is being used, the method will also immediately lock the entity and return a reference to the locked entity.
        Parameters:
        sessionInfo - The SessionInfo instance representing the state of the KieSession
        Returns:
        sessionInfo a reference to the persisted SessionInfo instance.
      • isOpen

        boolean isOpen()
      • joinTransaction

        void joinTransaction()
      • close

        void close()
      • lock

        void lock​(PersistentWorkItem workItem)
        This method pessimistically locks the WorkItemInfo instance
        Parameters:
        sessionInfo - The persistent representation of a WorkItem