Interface PersistenceContextFactory<T extends PersistenceContext>

    • Method Detail

      • createPersistenceContextForLoading

        T createPersistenceContextForLoading​(PersistentWorkflow<?> workflow)
        Creates a persistence context for use during loading of workflows.
        Parameters:
        workflow - the workflow for which the context is created
        Returns:
        the created context
      • createPersistenceContextForSaving

        T createPersistenceContextForSaving​(PersistentWorkflow<?> workflow)
        Creates a persistence context for use during saving of workflows.
        Parameters:
        workflow - the workflow for which the context is created
        Returns:
        the created context
      • createPersistenceContextForDeletion

        T createPersistenceContextForDeletion​(PersistentWorkflow<?> workflow)
        Creates a persistence context for use during deletion of workflows.
        Parameters:
        workflow - the workflow for which the context is created
        Returns:
        the created context
      • flush

        void flush()
            throws java.sql.SQLException
        Flushes all operations that were passed to the created PersistenceContexts.
        Throws:
        java.sql.SQLException - for any SQL exception happening during this operation