Class AbstractAuditWorkUnit

    • Field Detail

      • sessionImplementor

        protected final org.hibernate.engine.spi.SessionImplementor sessionImplementor
      • id

        protected final Object id
      • entityName

        protected final String entityName
    • Constructor Detail

      • AbstractAuditWorkUnit

        protected AbstractAuditWorkUnit​(org.hibernate.engine.spi.SessionImplementor sessionImplementor,
                                        String entityName,
                                        EnversService enversService,
                                        Object id,
                                        RevisionType revisionType)
    • Method Detail

      • perform

        public void perform​(org.hibernate.Session session,
                            Object revisionData)
        Description copied from interface: AuditWorkUnit
        Perform this work unit in the given session.
        Specified by:
        perform in interface AuditWorkUnit
        Parameters:
        session - Session, in which the work unit should be performed.
        revisionData - The current revision data, which will be used to populate the work unit with the correct revision relation.
      • setPerformed

        protected void setPerformed​(Object performedData)
      • undo

        public void undo​(org.hibernate.Session session)
        Specified by:
        undo in interface AuditWorkUnit