Examples of synchronizeWithDbEntity()


Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

                return;
            }

            while (it.hasNext()) {
                ObjEntity entity = (ObjEntity) it.next();
                if (merger.synchronizeWithDbEntity(entity)) {
                    mediator.fireObjEntityEvent(new EntityEvent(
                            this,
                            entity,
                            MapEvent.CHANGE));
                }
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

            if (merger == null) {
                return;
            }

            if (merger.synchronizeWithDbEntity(entity)) {
                mediator
                        .fireObjEntityEvent(new EntityEvent(this, entity, MapEvent.CHANGE));
                mediator.fireObjEntityDisplayEvent(new EntityDisplayEvent(
                        this,
                        entity,
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

        dataMap.addObjEntity(entity);

        // perform the merge
        EntityMergeSupport merger = new EntityMergeSupport(dataMap);
        merger.synchronizeWithDbEntity(entity);

        mediator.fireObjEntityEvent(new EntityEvent(this, entity, MapEvent.ADD));
        EntityDisplayEvent displayEvent = new EntityDisplayEvent(
                this,
                entity,
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

        dataMap.addObjEntity(entity);

        // perform the merge
        EntityMergeSupport merger = new EntityMergeSupport(dataMap);
        merger.addEntityMergeListener(DeleteRuleUpdater.getEntityMergeListener());
        merger.synchronizeWithDbEntity(entity);

        fireObjEntityEvent(this, mediator, dataMap, entity);

        application.getUndoManager().addEdit(
                new CreateObjEntityUndoableEdit(dataMap, entity));
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

            if (merger == null) {
                return;
            }

            if (merger.synchronizeWithDbEntity(entity)) {
                mediator
                        .fireObjEntityEvent(new EntityEvent(this, entity, MapEvent.CHANGE));
                mediator.fireObjEntityDisplayEvent(new EntityDisplayEvent(
                        this,
                        entity,
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

                    undoableEdit.addEdit(undoableEdit.new MeaningfulFKsUndoableEdit(
                            entity,
                            merger.getMeaningfulFKs(entity)));
                }

                if (merger.synchronizeWithDbEntity(entity)) {
                    mediator.fireObjEntityEvent(new EntityEvent(
                            this,
                            entity,
                            MapEvent.CHANGE));
                }
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

            if (merger == null) {
                return;
            }

            if (merger.synchronizeWithDbEntity(entity)) {
                mediator
                        .fireObjEntityEvent(new EntityEvent(this, entity, MapEvent.CHANGE));
                mediator.fireObjEntityDisplayEvent(new EntityDisplayEvent(
                        this,
                        entity,
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

                    undoableEdit.addEdit(undoableEdit.new MeaningfulFKsUndoableEdit(
                            entity,
                            merger.getMeaningfulFKs(entity)));
                }

                if (merger.synchronizeWithDbEntity(entity)) {
                    mediator.fireObjEntityEvent(new EntityEvent(
                            this,
                            entity,
                            MapEvent.CHANGE));
                }
View Full Code Here

Examples of org.apache.cayenne.util.EntityMergeSupport.synchronizeWithDbEntity()

        dataMap.addObjEntity(entity);

        // perform the merge
        EntityMergeSupport merger = new EntityMergeSupport(dataMap);
        merger.addEntityMergeListener(DeleteRuleUpdater.getEntityMergeListener());
        merger.synchronizeWithDbEntity(entity);

        fireObjEntityEvent(this, mediator, dataMap, entity);

        application.getUndoManager().addEdit(
                new CreateObjEntityUndoableEdit(dataMap, entity));
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.