Class StatefulPersistenceContext

  • All Implemented Interfaces:

    public class StatefulPersistenceContext
    extends Object
    implements PersistenceContext
    A stateful implementation of the PersistenceContext contract meaning that we maintain this state throughout the life of the persistence context.

    IMPL NOTE: There is meant to be a one-to-one correspondence between a SessionImpl and a PersistentContext. Event listeners and other Session collaborators then use the PersistentContext to drive their processing.