Package org.apache.cayenne.modeler.undo

Examples of org.apache.cayenne.modeler.undo.DbEntitySyncUndoableEdit$MeaningfulFKsUndoableEdit


            if (merger == null) {
                return;
            }

            DbEntitySyncUndoableEdit undoableEdit = new DbEntitySyncUndoableEdit(mediator
                    .getCurrentDataDomain(), mediator.getCurrentDataMap());

            while (it.hasNext()) {
                ObjEntity entity = (ObjEntity) it.next();

                DbEntitySyncUndoableEdit.EntitySyncUndoableListener listener = undoableEdit.new EntitySyncUndoableListener(
                        entity);

                merger.addEntityMergeListener(listener);

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

                if (merger.synchronizeWithDbEntity(entity)) {
View Full Code Here


            if (merger == null) {
                return;
            }

            DbEntitySyncUndoableEdit undoableEdit = new DbEntitySyncUndoableEdit((DataChannelDescriptor)mediator.getProject().getRootNode()
                    , mediator.getCurrentDataMap());

            while (it.hasNext()) {
                ObjEntity entity = (ObjEntity) it.next();

                DbEntitySyncUndoableEdit.EntitySyncUndoableListener listener = undoableEdit.new EntitySyncUndoableListener(
                        entity);

                merger.addEntityMergeListener(listener);

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

                if (merger.synchronizeWithDbEntity(entity)) {
View Full Code Here

TOP

Related Classes of org.apache.cayenne.modeler.undo.DbEntitySyncUndoableEdit$MeaningfulFKsUndoableEdit

Copyright © 2018 www.massapicom. 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.