Examples of addWorkUnit()


Examples of org.hibernate.envers.internal.synchronization.AuditProcess.addWorkUnit()

          getAuditConfiguration(),
          event.getId(),
          event.getPersister(),
          event.getDeletedState()
      );
      auditProcess.addWorkUnit( workUnit );

      if ( workUnit.containsWork() ) {
        generateBidirectionalCollectionChangeWorkUnits(
            auditProcess,
            event.getPersister(),
View Full Code Here

Examples of org.hibernate.envers.internal.synchronization.AuditProcess.addWorkUnit()

            collectionEntry,
            oldColl,
            event.getAffectedOwnerIdOrNull(),
            referencingPropertyName
        );
        auditProcess.addWorkUnit( workUnit );

        if ( workUnit.containsWork() ) {
          // There are some changes: a revision needs also be generated for the collection owner
          auditProcess.addWorkUnit(
              new CollectionChangeWorkUnit(
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

            collectionEntry,
            oldColl,
            event.getAffectedOwnerIdOrNull(),
            referencingPropertyName
        );
        auditProcess.addWorkUnit( workUnit );

                if (workUnit.containsWork()) {
                    // There are some changes: a revision needs also be generated for the collection owner
                    auditProcess.addWorkUnit(
              new CollectionChangeWorkUnit(
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

        );
        auditProcess.addWorkUnit( workUnit );

                if (workUnit.containsWork()) {
                    // There are some changes: a revision needs also be generated for the collection owner
                    auditProcess.addWorkUnit(
              new CollectionChangeWorkUnit(
                  event.getSession(),
                  event.getAffectedOwnerEntityName(),
                  referencingPropertyName,
                  getAuditConfiguration(),
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

                    event.getId(),
          event.getPersister(),
          newDbState,
          event.getOldState()
      );
            auditProcess.addWorkUnit( workUnit );

            if ( workUnit.containsWork() ) {
                generateBidirectionalCollectionChangeWorkUnits(
            auditProcess,
            event.getPersister(),
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

        if (verCfg.getEntCfg().isVersioned(entityName)) {
            AuditProcess auditProcess = verCfg.getSyncManager().get(event.getSession());

            AuditWorkUnit workUnit = new AddWorkUnit(event.getSession(), event.getPersister().getEntityName(), verCfg,
                    event.getId(), event.getPersister(), event.getState());
            auditProcess.addWorkUnit(workUnit);

            if (workUnit.containsWork()) {
                generateBidirectionalCollectionChangeWorkUnits(auditProcess, event.getPersister(), entityName, event.getState(),
                        null, event.getSession());
            }
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

        if (verCfg.getEntCfg().isVersioned(entityName)) {
            AuditProcess auditProcess = verCfg.getSyncManager().get(event.getSession());

            AuditWorkUnit workUnit = new ModWorkUnit(event.getSession(), event.getPersister().getEntityName(), verCfg,
                    event.getId(), event.getPersister(), event.getState(), event.getOldState());
            auditProcess.addWorkUnit(workUnit);

            if (workUnit.containsWork()) {
                generateBidirectionalCollectionChangeWorkUnits(auditProcess, event.getPersister(), entityName, event.getState(),
                        event.getOldState(), event.getSession());
            }
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

        if (verCfg.getEntCfg().isVersioned(entityName)) {
            AuditProcess auditProcess = verCfg.getSyncManager().get(event.getSession());

            AuditWorkUnit workUnit = new DelWorkUnit(event.getSession(), event.getPersister().getEntityName(), verCfg,
                    event.getId(), event.getPersister(), event.getDeletedState());
            auditProcess.addWorkUnit(workUnit);

            if (workUnit.containsWork()) {
                generateBidirectionalCollectionChangeWorkUnits(auditProcess, event.getPersister(), entityName, null,
                        event.getDeletedState(), event.getSession());
            }
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

                        referencingPropertyName, event, rd);
            } else {
                PersistentCollectionChangeWorkUnit workUnit = new PersistentCollectionChangeWorkUnit(event.getSession(),
                        entityName, verCfg, newColl, collectionEntry, oldColl, event.getAffectedOwnerIdOrNull(),
                        referencingPropertyName);
                auditProcess.addWorkUnit(workUnit);

                if (workUnit.containsWork()) {
                    // There are some changes: a revision needs also be generated for the collection owner
                    auditProcess.addWorkUnit(new CollectionChangeWorkUnit(event.getSession(), event.getAffectedOwnerEntityName(),
                            verCfg, event.getAffectedOwnerIdOrNull(), event.getAffectedOwnerOrNull()));
View Full Code Here

Examples of org.hibernate.envers.synchronization.AuditProcess.addWorkUnit()

                        referencingPropertyName);
                auditProcess.addWorkUnit(workUnit);

                if (workUnit.containsWork()) {
                    // There are some changes: a revision needs also be generated for the collection owner
                    auditProcess.addWorkUnit(new CollectionChangeWorkUnit(event.getSession(), event.getAffectedOwnerEntityName(),
                            verCfg, event.getAffectedOwnerIdOrNull(), event.getAffectedOwnerOrNull()));

                    generateBidirectionalCollectionChangeWorkUnits(auditProcess, event, workUnit, rd);
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.