diff options
author | Brian Vosburgh | 2015-12-23 17:56:56 +0000 |
---|---|---|
committer | Brian Vosburgh | 2015-12-23 17:56:56 +0000 |
commit | 4427a68f59f21dcb8722f992e6c52bbdb101fd3c (patch) | |
tree | 8461e979741f561fe531190842a476b653046252 /jpa/plugins | |
parent | a6f3ee27c985c7afbec04a194d65326db8466b84 (diff) | |
download | webtools.dali-4427a68f59f21dcb8722f992e6c52bbdb101fd3c.tar.gz webtools.dali-4427a68f59f21dcb8722f992e6c52bbdb101fd3c.tar.xz webtools.dali-4427a68f59f21dcb8722f992e6c52bbdb101fd3c.zip |
pass IProgressMonitor to JpaContextModel.update(...)
Diffstat (limited to 'jpa/plugins')
232 files changed, 1438 insertions, 1201 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/JpaContextModel.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/JpaContextModel.java index c4b32c1c7c..d6cbcd10b3 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/JpaContextModel.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/JpaContextModel.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,7 +10,7 @@ package org.eclipse.jpt.jpa.core.context; import java.util.List; - +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.JptResourceTypeReference; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.JpaModel; @@ -85,7 +85,7 @@ public interface JpaContextModel /** * The resource model has changed; synchronize the context model with it. - * This will probably trigger a call to {@link #update()}. + * This will probably trigger a call to {@link #update(IProgressMonitor)}. */ void synchronizeWithResourceModel(); @@ -96,6 +96,7 @@ public interface JpaContextModel * If the dependent state changes also, yet another <em>update</em> will be * triggered, possibly followed by yet more <em>updates</em>; until the JPA * project's state quiesces. + * @param monitor TODO */ - void update(); + void update(IProgressMonitor monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java index 0c9c9d3bea..9dbe47adda 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -1990,14 +1990,23 @@ public abstract class AbstractJpaProject * Called by the {@link UpdateJobCommand#execute(IProgressMonitor)}. */ // TODO pass the monitor down - protected IStatus update(@SuppressWarnings("unused") IProgressMonitor monitor) { - this.contextRoot.update(); - this.updateRootStructureNodes(); + protected IStatus update(IProgressMonitor monitor) { + if (monitor.isCanceled()) { + return Status.CANCEL_STATUS; + } + this.contextRoot.update(monitor); + if (monitor.isCanceled()) { + return Status.CANCEL_STATUS; + } + this.updateRootStructureNodes(monitor); return Status.OK_STATUS; } - protected void updateRootStructureNodes() { + protected void updateRootStructureNodes(IProgressMonitor monitor) { for (JpaFile jpaFile : this.getJpaFiles()) { + if (monitor.isCanceled()) { + return; + } jpaFile.updateRootStructureNodes(); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java index 4bdbb2261a..9dade627cb 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/AbstractJpaContextModel.java @@ -17,6 +17,8 @@ import java.util.List; import java.util.ListIterator; import java.util.Vector; import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.jpt.common.core.JptResourceType; import org.eclipse.jpt.common.core.internal.utility.ValidationMessageTools; import org.eclipse.jpt.common.core.utility.TextRange; @@ -61,16 +63,18 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel> } } - public void update() { - // NOP + public void update(IProgressMonitor monitor) { + if (monitor.isCanceled()) { + throw new OperationCanceledException(); + } } /** * convenience method */ - protected void updateModels(Iterable<? extends JpaContextModel> models) { + protected void updateModels(Iterable<? extends JpaContextModel> models, IProgressMonitor monitor) { for (JpaContextModel model : models) { - model.update(); + model.update(monitor); } } @@ -444,14 +448,14 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel> * </ul> */ public void synchronizeWithResourceModel() { - this.sync(true); // true = sync + this.sync(true, null); // true = sync } /** * @see #synchronizeWithResourceModel() */ - public void update() { - this.sync(false); // false = update + public void update(IProgressMonitor monitor) { + this.sync(false, monitor); // false = update } /** @@ -459,7 +463,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel> * context nodes are either <em>synchronized</em> (<code>true</code>) or * <em>updated</em> (<code>false</code>). */ - protected void sync(boolean sync) { + protected void sync(boolean sync, IProgressMonitor monitor) { @SuppressWarnings("unchecked") HashSet<C> contextElements = (HashSet<C>) CollectionTools.hashSet(this.elements.toArray()); ArrayList<C> contextElementsToSync = new ArrayList<C>(contextElements.size()); @@ -503,7 +507,7 @@ public abstract class AbstractJpaContextModel<P extends JpaContextModel> if (sync) { contextElement.synchronizeWithResourceModel(); } else { - contextElement.update(); + contextElement.update(monitor); } } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/ContextContainerTools.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/ContextContainerTools.java index 7604c53d18..8205172426 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/ContextContainerTools.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/ContextContainerTools.java @@ -12,6 +12,7 @@ package org.eclipse.jpt.jpa.core.internal.context; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.collection.CollectionTools; import org.eclipse.jpt.jpa.core.context.JpaContextModel; @@ -78,14 +79,14 @@ public class ContextContainerTools { * </ul> */ public static <C extends JpaContextModel, R> void synchronizeWithResourceModel(Adapter<C, R> adapter) { - sync(adapter, true); // true = sync + sync(adapter, true, null); // true = sync } /** * @see #synchronizeWithResourceModel(Adapter) */ - public static <C extends JpaContextModel, R> void update(Adapter<C, R> adapter) { - sync(adapter, false); // false = update + public static <C extends JpaContextModel, R> void update(Adapter<C, R> adapter, IProgressMonitor monitor) { + sync(adapter, false, monitor); // false = update } /** @@ -93,7 +94,7 @@ public class ContextContainerTools { * context nodes are either <em>synchronized</em> (<code>true</code>) or * <em>updated</em> (<code>false</code>). */ - protected static <C extends JpaContextModel, R> void sync(Adapter<C, R> adapter, boolean sync) { + protected static <C extends JpaContextModel, R> void sync(Adapter<C, R> adapter, boolean sync, IProgressMonitor monitor) { HashSet<C> contextElements = CollectionTools.hashSet(adapter.getContextElements()); ArrayList<C> contextElementsToSync = new ArrayList<C>(contextElements.size()); int resourceIndex = 0; @@ -136,7 +137,7 @@ public class ContextContainerTools { if (sync) { contextElement.synchronizeWithResourceModel(); } else { - contextElement.update(); + contextElement.update(monitor); } } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaAttributeMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaAttributeMapping.java index 161172c161..d4fdbde3b3 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaAttributeMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaAttributeMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.utility.TextRange; @@ -68,8 +69,8 @@ public abstract class AbstractJavaAttributeMapping<A extends Annotation> } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseColumn.java index 45cb5d68a8..c939462dc8 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -78,8 +79,8 @@ public abstract class AbstractJavaBaseColumn<PA extends TableColumn.ParentAdapte } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTableName(this.buildDefaultTableName()); this.setDefaultUnique(this.buildDefaultUnique()); this.setDefaultNullable(this.buildDefaultNullable()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseEmbeddedMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseEmbeddedMapping.java index 54800e59a5..6737c542a9 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseEmbeddedMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBaseEmbeddedMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceMember; import org.eclipse.jpt.common.core.utility.TextRange; @@ -71,9 +72,9 @@ public abstract class AbstractJavaBaseEmbeddedMapping<A extends Annotation> } @Override - public void update() { - super.update(); - this.attributeOverrideContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.attributeOverrideContainer.update(monitor); this.setTargetEmbeddable(this.buildTargetEmbeddable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBasicMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBasicMapping.java index 53b65712ee..865f73d380 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBasicMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaBasicMapping.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.utility.Association; @@ -86,12 +87,12 @@ public abstract class AbstractJavaBasicMapping } @Override - public void update() { - super.update(); - this.column.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); this.setDefaultFetch(this.buildDefaultFetch()); this.setDefaultOptional(this.buildDefaultOptional()); - this.converter.update(); + this.converter.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaDatabaseGenerator.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaDatabaseGenerator.java index f3e45043cd..fad6df2773 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaDatabaseGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaDatabaseGenerator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.DatabaseGenerator; import org.eclipse.jpt.jpa.core.context.Generator; @@ -50,8 +51,8 @@ public abstract class AbstractJavaDatabaseGenerator<A extends DatabaseGeneratorA } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultInitialValue(this.buildDefaultInitialValue()); this.setDefaultAllocationSize(this.buildDefaultAllocationSize()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedIdMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedIdMapping.java index 35a4a61083..7c6821620a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedIdMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedIdMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.internal.utility.TypeTools; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -44,8 +45,8 @@ public abstract class AbstractJavaEmbeddedIdMapping // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDerived(this.buildDerived()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedMapping.java index c1e1b2e8cf..ec22dac810 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEmbeddedMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -73,9 +74,9 @@ public abstract class AbstractJavaEmbeddedMapping } @Override - public void update() { - super.update(); - this.associationOverrideContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.associationOverrideContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEntity.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEntity.java index 1a1a1bac03..bcde3b8aed 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEntity.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaEntity.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -12,6 +12,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.Iterator; import java.util.List; import java.util.Vector; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceMember; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; import org.eclipse.jpt.common.core.resource.java.NestableAnnotation; @@ -187,8 +188,8 @@ public abstract class AbstractJavaEntity } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultName(this.buildDefaultName()); @@ -198,16 +199,16 @@ public abstract class AbstractJavaEntity this.setDefaultInheritanceStrategy(this.buildDefaultInheritanceStrategy()); - this.table.update(); + this.table.update(monitor); this.setSpecifiedTableIsAllowed(this.buildSpecifiedTableIsAllowed()); this.setTableIsUndefined(this.buildTableIsUndefined()); - this.updateModels(this.getSecondaryTables()); + this.updateModels(this.getSecondaryTables(), monitor); - this.updateDefaultPrimaryKeyJoinColumn(); - this.updateModels(this.getPrimaryKeyJoinColumns()); + this.updateDefaultPrimaryKeyJoinColumn(monitor); + this.updateModels(this.getPrimaryKeyJoinColumns(), monitor); - this.discriminatorColumn.update(); + this.discriminatorColumn.update(monitor); this.setSpecifiedDiscriminatorColumnIsAllowed(this.buildSpecifiedDiscriminatorColumnIsAllowed()); this.setDiscriminatorColumnIsUndefined(this.buildDiscriminatorColumnIsUndefined()); @@ -215,11 +216,11 @@ public abstract class AbstractJavaEntity this.setSpecifiedDiscriminatorValueIsAllowed(this.buildSpecifiedDiscriminatorValueIsAllowed()); this.setDiscriminatorValueIsUndefined(this.buildDiscriminatorValueIsUndefined()); - this.attributeOverrideContainer.update(); - this.associationOverrideContainer.update(); + this.attributeOverrideContainer.update(monitor); + this.associationOverrideContainer.update(monitor); - this.generatorContainer.update(); - this.queryContainer.update(); + this.generatorContainer.update(monitor); + this.queryContainer.update(monitor); } @@ -612,12 +613,12 @@ public abstract class AbstractJavaEntity return (this.defaultPrimaryKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultPrimaryKeyJoinColumn() { + protected void updateDefaultPrimaryKeyJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultPrimaryKeyJoinColumn()) { if (this.defaultPrimaryKeyJoinColumn == null) { this.setDefaultPrimaryKeyJoinColumn(this.buildDefaultPrimaryKeyJoinColumn()); } else { - this.defaultPrimaryKeyJoinColumn.update(); + this.defaultPrimaryKeyJoinColumn.update(monitor); } } else { this.setDefaultPrimaryKeyJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdMapping.java index b5c0857c97..798a12ccbc 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdMapping.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.resource.java.JavaResourceMember; @@ -91,14 +92,14 @@ public abstract class AbstractJavaIdMapping } @Override - public void update() { - super.update(); - this.column.update(); - this.generatorContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); + this.generatorContainer.update(monitor); if (this.generatedValue != null) { - this.generatedValue.update(); + this.generatedValue.update(monitor); } - this.converter.update(); + this.converter.update(monitor); this.setDerived(this.buildDerived()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdTypeMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdTypeMapping.java index 9c1beae46b..931e6270bf 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdTypeMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaIdTypeMapping.java @@ -1,15 +1,16 @@ /*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0, which accompanies this distribution
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle - initial API and implementation
- *******************************************************************************/
+ * Copyright (c) 2013, 2015 Oracle. All rights reserved.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0, which accompanies this distribution
+ * and is available at http://www.eclipse.org/legal/epl-v10.html.
+ *
+ * Contributors:
+ * Oracle - initial API and implementation
+ ******************************************************************************/
package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jpt.common.core.resource.java.Annotation;
import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement;
import org.eclipse.jpt.common.core.resource.java.JavaResourceType;
@@ -49,10 +50,10 @@ public abstract class AbstractJavaIdTypeMapping<A extends Annotation> }
@Override
- public void update() {
- super.update();
+ public void update(IProgressMonitor monitor) {
+ super.update(monitor);
setSuperTypeMapping_(findSuperTypeMapping());
- this.idClassReference.update();
+ this.idClassReference.update(monitor);
}
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinColumnRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinColumnRelationshipStrategy.java index 75354fa6ec..9407df9a25 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinColumnRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinColumnRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; @@ -55,10 +56,10 @@ public abstract class AbstractJavaJoinColumnRelationshipStrategy<P extends JavaJ } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedJoinColumns()); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedJoinColumns(), monitor); + this.updateDefaultJoinColumn(monitor); } @@ -185,12 +186,12 @@ public abstract class AbstractJavaJoinColumnRelationshipStrategy<P extends JavaJ return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultJoinColumn()) { if (this.defaultJoinColumn == null) { this.setDefaultJoinColumn(this.buildJoinColumn(this.buildNullJoinColumnAnnotation())); } else { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } } else { this.setDefaultJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinTableRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinTableRelationshipStrategy.java index 78295da021..acf41e0c19 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinTableRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaJoinTableRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -47,9 +48,9 @@ public abstract class AbstractJavaJoinTableRelationshipStrategy<P extends JavaJo } @Override - public void update() { - super.update(); - this.updateJoinTable(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateJoinTable(monitor); } @@ -65,12 +66,12 @@ public abstract class AbstractJavaJoinTableRelationshipStrategy<P extends JavaJo this.firePropertyChanged(JOIN_TABLE_PROPERTY, old, joinTable); } - protected void updateJoinTable() { + protected void updateJoinTable(IProgressMonitor monitor) { if (this.buildsJoinTable()) { if (this.joinTable == null) { this.setJoinTable(this.buildJoinTable()); } else { - this.joinTable.update(); + this.joinTable.update(monitor); } } else { if (this.joinTable != null) { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaManagedType.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaManagedType.java index cb0f52388e..0494fb8889 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaManagedType.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaManagedType.java @@ -1,5 +1,5 @@ /*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
+ * Copyright (c) 2013, 2015 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.JavaModelException;
@@ -48,8 +49,8 @@ public abstract class AbstractJavaManagedType<P extends JpaContextModel> }
@Override
- public void update() {
- super.update();
+ public void update(IProgressMonitor monitor) {
+ super.update(monitor);
}
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappedSuperclass.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappedSuperclass.java index d2491d6635..c28ec91e84 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappedSuperclass.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappedSuperclass.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceMember; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.Entity; @@ -49,9 +50,9 @@ public abstract class AbstractJavaMappedSuperclass } @Override - public void update() { - super.update(); - this.queryContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.queryContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappingRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappingRelationship.java index 6751f0e6cc..7953a370df 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappingRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMappingRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.Entity; import org.eclipse.jpt.jpa.core.context.SpecifiedRelationshipStrategy; @@ -19,7 +20,7 @@ import org.eclipse.jpt.jpa.core.context.java.JavaRelationshipMapping; /** * <strong>NB:</strong> Subclasses may want to set the {@link #strategy} at the * end of their constructors; otherwise, it will be <code>null</code> until it - * is set during {@link #update()}. + * is set during {@link #update(IProgressMonitor)}. */ public abstract class AbstractJavaMappingRelationship<P extends JavaRelationshipMapping> extends AbstractJavaContextModel<P> @@ -36,8 +37,8 @@ public abstract class AbstractJavaMappingRelationship<P extends JavaRelationship // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.updateStrategy(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java index 842ea7a1cf..6bc261283e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaMultiRelationshipMapping.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.resource.java.NestableAnnotation; @@ -159,10 +160,10 @@ public abstract class AbstractJavaMultiRelationshipMapping<A extends Relationshi } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); - this.orderable.update(); + this.orderable.update(monitor); this.setDefaultMapKeyClass(this.buildDefaultMapKeyClass()); this.setFullyQualifiedMapKeyClass(this.buildFullyQualifiedMapKeyClass()); @@ -170,12 +171,12 @@ public abstract class AbstractJavaMultiRelationshipMapping<A extends Relationshi this.setValueType(this.buildValueType()); this.setKeyType(this.buildKeyType()); - this.mapKeyColumn.update(); - this.mapKeyConverter.update(); - this.updateModels(this.getSpecifiedMapKeyJoinColumns()); - this.updateDefaultMapKeyJoinColumn(); + this.mapKeyColumn.update(monitor); + this.mapKeyConverter.update(monitor); + this.updateModels(this.getSpecifiedMapKeyJoinColumns(), monitor); + this.updateDefaultMapKeyJoinColumn(monitor); - this.mapKeyAttributeOverrideContainer.update(); + this.mapKeyAttributeOverrideContainer.update(monitor); } @@ -790,12 +791,12 @@ public abstract class AbstractJavaMultiRelationshipMapping<A extends Relationshi return (this.defaultMapKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultMapKeyJoinColumn() { + protected void updateDefaultMapKeyJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultMapKeyJoinColumn()) { if (this.defaultMapKeyJoinColumn == null) { this.setDefaultMapKeyJoinColumn(this.buildMapKeyJoinColumn(this.buildNullMapKeyJoinColumnAnnotation())); } else { - this.defaultMapKeyJoinColumn.update(); + this.defaultMapKeyJoinColumn.update(monitor); } } else { this.setDefaultMapKeyJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaNamedColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaNamedColumn.java index 090b16109b..dc39aaa904 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaNamedColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaNamedColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -87,8 +88,8 @@ public abstract class AbstractJavaNamedColumn<PA extends NamedColumn.ParentAdapt } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultName(this.buildDefaultName()); this.setDbTable(this.buildDbTable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToManyMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToManyMapping.java index 810032816f..a08a3b748c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToManyMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToManyMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.java.JavaMappingRelationship; import org.eclipse.jpt.jpa.core.context.java.JavaOneToManyMapping; @@ -41,9 +42,9 @@ public abstract class AbstractJavaOneToManyMapping } @Override - public void update() { - super.update(); - this.orphanRemoval.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.orphanRemoval.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToOneMapping.java index a4ea0544b5..32ad7628f1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToOneMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaOneToOneMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2012 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.java.JavaOneToOneMapping; import org.eclipse.jpt.jpa.core.context.java.JavaOneToOneRelationship; @@ -41,9 +42,9 @@ public abstract class AbstractJavaOneToOneMapping } @Override - public void update() { - super.update(); - this.orphanRemoval.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.orphanRemoval.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentAttribute.java index 3299a467b4..d1f12f61aa 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentAttribute.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentAttribute.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.Collection; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.content.IContentType; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jpt.common.core.internal.utility.TypeTools; @@ -103,10 +104,10 @@ public abstract class AbstractJavaPersistentAttribute } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.updateJpaContainerDefinition(); - this.updateMapping(); + this.updateMapping(monitor); } public void addRootStructureNodesTo(JpaFile jpaFile, Collection<JpaStructureNode> rootStructureNodes) { @@ -410,7 +411,7 @@ public abstract class AbstractJavaPersistentAttribute * A default mapping may depend on another resource, and the specified mapping * may depend on the default mapping, so we must analyze both here. */ - protected void updateMapping() { + protected void updateMapping(IProgressMonitor monitor) { JavaAttributeMappingDefinition newDefinition = null; JavaAttributeMappingDefinition defaultDefinition = this.getDefaultMappingDefinition(); @@ -437,7 +438,7 @@ public abstract class AbstractJavaPersistentAttribute this.setMapping(this.buildMapping(newDefinition)); } else { - this.mapping.update(); + this.mapping.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentType.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentType.java index 497030caf6..fc2353eb15 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentType.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaPersistentType.java @@ -14,6 +14,7 @@ import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Vector; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAbstractType; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; @@ -94,11 +95,11 @@ public abstract class AbstractJavaPersistentType } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultAccess(this.buildDefaultAccess()); - this.mapping.update(); - this.updateAttributes(); + this.mapping.update(monitor); + this.updateAttributes(monitor); this.updateStructureChildren(); } @@ -490,12 +491,12 @@ public abstract class AbstractJavaPersistentType * the list of resource attributes is determined by the access type * which can be controlled in a number of different places.... */ - protected void updateAttributes() { + protected void updateAttributes(IProgressMonitor monitor) { if (this.getAccess() == AccessType.FIELD) { - this.syncFieldAccessAttributes(); + this.syncFieldAccessAttributes(monitor); } else if (this.getAccess() == AccessType.PROPERTY) { - this.syncPropertyAccessAttributes(); + this.syncPropertyAccessAttributes(monitor); } } @@ -504,11 +505,11 @@ public abstract class AbstractJavaPersistentType * 1. all non-transient, non-static fields + annotated fields * 2. all annotated methods(getters/setters) */ - private void syncFieldAccessAttributes() { + private void syncFieldAccessAttributes(IProgressMonitor monitor) { HashSet<JavaSpecifiedPersistentAttribute> contextAttributes = CollectionTools.hashSet(this.getAttributes()); - this.syncFieldAttributes(contextAttributes, JavaResourceField.IS_RELEVANT_FOR_FIELD_ACCESS); - this.syncAnnotatedPropertyAttributes(contextAttributes); + this.syncFieldAttributes(contextAttributes, JavaResourceField.IS_RELEVANT_FOR_FIELD_ACCESS, monitor); + this.syncAnnotatedPropertyAttributes(contextAttributes, monitor); } /** @@ -517,10 +518,10 @@ public abstract class AbstractJavaPersistentType * 2. all annotated fields * 3. all annotated methods getters/setters that don't have a matching pair */ - private void syncPropertyAccessAttributes() { + private void syncPropertyAccessAttributes(IProgressMonitor monitor) { HashSet<JavaSpecifiedPersistentAttribute> contextAttributes = CollectionTools.hashSet(this.getAttributes()); - this.syncFieldAttributes(contextAttributes, JavaResourceAnnotatedElement.IS_ANNOTATED); + this.syncFieldAttributes(contextAttributes, JavaResourceAnnotatedElement.IS_ANNOTATED, monitor); Collection<JavaResourceMethod> resourceMethods = CollectionTools.hashBag(this.getResourceMethods()); //iterate through all resource methods searching for persistable getters @@ -532,7 +533,7 @@ public abstract class AbstractJavaPersistentType JavaSpecifiedPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(getterMethod, setterMethod)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } @@ -544,10 +545,10 @@ public abstract class AbstractJavaPersistentType resourceMethods.remove(getterMethod); resourceMethods.remove(setterMethod); } - this.syncRemainingResourceMethods(contextAttributes, resourceMethods); + this.syncRemainingResourceMethods(contextAttributes, resourceMethods, monitor); } - private void syncAnnotatedPropertyAttributes(HashSet<JavaSpecifiedPersistentAttribute> contextAttributes) { + private void syncAnnotatedPropertyAttributes(HashSet<JavaSpecifiedPersistentAttribute> contextAttributes, IProgressMonitor monitor) { Collection<JavaResourceMethod> resourceMethods = CollectionTools.hashBag(this.getResourceMethods()); //iterate through all resource methods searching for persistable getters for (JavaResourceMethod getterMethod : this.getResourcePropertyGetters()) { @@ -558,7 +559,7 @@ public abstract class AbstractJavaPersistentType JavaSpecifiedPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(getterMethod, setterMethod)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } @@ -570,17 +571,17 @@ public abstract class AbstractJavaPersistentType resourceMethods.remove(getterMethod); resourceMethods.remove(setterMethod); } - this.syncRemainingResourceMethods(contextAttributes, resourceMethods); + this.syncRemainingResourceMethods(contextAttributes, resourceMethods, monitor); } - private void syncFieldAttributes(HashSet<JavaSpecifiedPersistentAttribute> contextAttributes, Predicate<? super JavaResourceField> filter) { + private void syncFieldAttributes(HashSet<JavaSpecifiedPersistentAttribute> contextAttributes, Predicate<? super JavaResourceField> filter, IProgressMonitor monitor) { for (JavaResourceField resourceField : this.getResourceFields(filter)) { boolean match = false; for (Iterator<JavaSpecifiedPersistentAttribute> stream = contextAttributes.iterator(); stream.hasNext(); ) { JavaSpecifiedPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(resourceField)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } @@ -594,7 +595,7 @@ public abstract class AbstractJavaPersistentType } } - private void syncRemainingResourceMethods(HashSet<JavaSpecifiedPersistentAttribute> contextAttributes, Collection<JavaResourceMethod> resourceMethods) { + private void syncRemainingResourceMethods(HashSet<JavaSpecifiedPersistentAttribute> contextAttributes, Collection<JavaResourceMethod> resourceMethods, IProgressMonitor monitor) { //iterate through remaining resource methods and search for those that are annotated. //all getter methods will already be used. for (JavaResourceMethod resourceMethod : resourceMethods) { @@ -605,7 +606,7 @@ public abstract class AbstractJavaPersistentType JavaSpecifiedPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(null, resourceMethod)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaQuery.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaQuery.java index 60d7de60a6..92b2ac303a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaQuery.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaQuery.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -61,9 +62,9 @@ public abstract class AbstractJavaQuery<P extends JavaQueryContainer, A extends } @Override - public void update() { - super.update(); - this.updateModels(this.getHints()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getHints(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaRelationshipMapping.java index 61c7c1004e..7ccdae19ad 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaRelationshipMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaRelationshipMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; import org.eclipse.jpt.common.core.utility.TextRange; @@ -75,12 +76,12 @@ public abstract class AbstractJavaRelationshipMapping<A extends RelationshipMapp } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTargetEntity(this.buildDefaultTargetEntity()); this.setFullyQualifiedTargetEntity(this.buildFullyQualifiedTargetEntity()); - this.relationship.update(); - this.cascade.update(); + this.relationship.update(monitor); + this.cascade.update(monitor); this.setDefaultFetch(this.buildDefaultFetch()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSequenceGenerator.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSequenceGenerator.java index f0c3a5401c..34ef4227c5 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSequenceGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSequenceGenerator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -47,8 +48,8 @@ public abstract class AbstractJavaSequenceGenerator<A extends SequenceGeneratorA } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultSequenceName(this.buildDefaultSequenceName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSingleRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSingleRelationshipMapping.java index 4c72bd102c..0e0b7ca1cd 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSingleRelationshipMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaSingleRelationshipMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.FetchType; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; @@ -50,10 +51,10 @@ public abstract class AbstractJavaSingleRelationshipMapping<A extends SingleRela } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultOptional(this.buildDefaultOptional()); - this.derivedIdentity.update(); + this.derivedIdentity.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaTable.java index 33a4a5315e..b1df49bc5d 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.NameTools; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -90,12 +91,12 @@ public abstract class AbstractJavaTable<P extends JpaContextModel, PA extends Ta } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultName(this.buildDefaultName()); this.setDefaultSchema(this.buildDefaultSchema()); this.setDefaultCatalog(this.buildDefaultCatalog()); - this.updateModels(this.getUniqueConstraints()); + this.updateModels(this.getUniqueConstraints(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVersionMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVersionMapping.java index 858429829f..c3b0a0d6ed 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVersionMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVersionMapping.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.utility.Association; @@ -74,10 +75,10 @@ public abstract class AbstractJavaVersionMapping } @Override - public void update() { - super.update(); - this.column.update(); - this.converter.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); + this.converter.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualBaseColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualBaseColumn.java index 298ecf50f2..01bca9e45c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualBaseColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualBaseColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.TableColumn; @@ -42,8 +43,8 @@ public abstract class AbstractJavaVirtualBaseColumn<PA extends TableColumn.Paren // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedTableName(this.buildSpecifiedTableName()); this.setDefaultTableName(this.buildDefaultTableName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedColumn.java index b516dcd9ae..5be9a5cc4b 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JpaContextModel; import org.eclipse.jpt.jpa.core.context.NamedColumn; @@ -25,7 +26,7 @@ import org.eclipse.wst.validation.internal.provisional.core.IReporter; * <li>column * <li>join column * </ul> - * <strong>NB:</strong> all state is sync'ed/updated in {@link #update()} + * <strong>NB:</strong> all state is sync'ed/updated in {@link #update(IProgressMonitor)} * because <em>all</em> of it is derived from the context model (i.e. none of it * is derived from the resource model). */ @@ -51,8 +52,8 @@ public abstract class AbstractJavaVirtualNamedColumn<PA extends NamedColumn.Pare // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedName(this.buildSpecifiedName()); this.setDefaultName(this.buildDefaultName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedDiscriminatorColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedDiscriminatorColumn.java index 05e211d76e..b0e92d3215 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedDiscriminatorColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualNamedDiscriminatorColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.DiscriminatorType; import org.eclipse.jpt.jpa.core.context.NamedDiscriminatorColumn; import org.eclipse.jpt.jpa.core.context.VirtualNamedDiscriminatorColumn; @@ -31,8 +32,8 @@ public abstract class AbstractJavaVirtualNamedDiscriminatorColumn<PA extends Nam // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedDiscriminatorType(this.buildSpecifiedDiscriminatorType()); this.setDefaultDiscriminatorType(this.buildDefaultDiscriminatorType()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualReferenceTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualReferenceTable.java index 4dcbaf430d..4435273110 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualReferenceTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualReferenceTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.SingleElementListIterable; import org.eclipse.jpt.common.utility.internal.iterable.SuperListIterableWrapper; @@ -44,10 +45,10 @@ public abstract class AbstractJavaVirtualReferenceTable<P extends JpaContextMode // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateSpecifiedJoinColumns(); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedJoinColumns(monitor); + this.updateDefaultJoinColumn(monitor); } @@ -80,8 +81,8 @@ public abstract class AbstractJavaVirtualReferenceTable<P extends JpaContextMode return this.specifiedJoinColumnContainer.get(index); } - protected void updateSpecifiedJoinColumns() { - this.specifiedJoinColumnContainer.update(); + protected void updateSpecifiedJoinColumns(IProgressMonitor monitor) { + this.specifiedJoinColumnContainer.update(monitor); } protected ListIterable<JoinColumn> getOverriddenJoinColumns() { @@ -144,12 +145,12 @@ public abstract class AbstractJavaVirtualReferenceTable<P extends JpaContextMode return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultJoinColumn()) { if (this.defaultJoinColumn == null) { this.setDefaultJoinColumn(this.buildJoinColumn(this.getOverriddenTable().getDefaultJoinColumn())); } else { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } } else { this.setDefaultJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualTable.java index 705adaab50..7cbe18e249 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/AbstractJavaVirtualTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.NameTools; import org.eclipse.jpt.common.utility.internal.iterable.SuperListIterableWrapper; @@ -57,8 +58,8 @@ public abstract class AbstractJavaVirtualTable<P extends JpaContextModel, PA ext // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedName(this.buildSpecifiedName()); this.setDefaultName(this.buildDefaultName()); @@ -69,7 +70,7 @@ public abstract class AbstractJavaVirtualTable<P extends JpaContextModel, PA ext this.setSpecifiedCatalog(this.buildSpecifiedCatalog()); this.setDefaultCatalog(this.buildDefaultCatalog()); - this.updateUniqueConstraints(); + this.updateUniqueConstraints(monitor); } @@ -196,8 +197,8 @@ public abstract class AbstractJavaVirtualTable<P extends JpaContextModel, PA ext return this.uniqueConstraintContainer.get(index); } - protected void updateUniqueConstraints() { - this.uniqueConstraintContainer.update(); + protected void updateUniqueConstraints(IProgressMonitor monitor) { + this.uniqueConstraintContainer.update(monitor); } protected ListIterable<UniqueConstraint> getOverriddenUniqueConstraints() { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaIdClassReference.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaIdClassReference.java index 99963c13f9..4eb817621a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaIdClassReference.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaIdClassReference.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.internal.utility.TypeTools; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement.AstNodeType; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; @@ -64,12 +65,12 @@ public class GenericJavaIdClassReference } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); setDefaultIdClassName_(buildDefaultIdClassName()); setIdClassName_(buildIdClassName()); setFullyQualifiedIdClassName(buildFullyQualifiedIdClassName()); - updateIdClass(); + updateIdClass(monitor); } @@ -198,7 +199,7 @@ public class GenericJavaIdClassReference this.firePropertyChanged(ID_CLASS_PROPERTY, old, idClass); } - protected void updateIdClass() { + protected void updateIdClass(IProgressMonitor monitor) { JavaResourceType resourceIdClass = this.resolveResourceIdClass(); if (resourceIdClass == null) { if (this.idClass != null) { @@ -209,7 +210,7 @@ public class GenericJavaIdClassReference this.setIdClass(this.buildIdClass(resourceIdClass)); } else { if (this.idClass.getJavaResourceType() == resourceIdClass) { - this.idClass.update(); + this.idClass.update(monitor); } else { this.setIdClass(this.buildIdClass(resourceIdClass)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToManyRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToManyRelationship.java index 8e019ee722..4b80ed2be0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToManyRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToManyRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.AttributeMapping; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -51,10 +52,10 @@ public class GenericJavaManyToManyRelationship } @Override - public void update() { - super.update(); - this.mappedByStrategy.update(); - this.joinTableStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mappedByStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToOneRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToOneRelationship.java index fa34918bb8..37bf1b300a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToOneRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaManyToOneRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; import org.eclipse.jpt.jpa.core.context.SpecifiedRelationshipStrategy; import org.eclipse.jpt.jpa.core.context.java.JavaManyToOneMapping; @@ -50,10 +51,10 @@ public class GenericJavaManyToOneRelationship } @Override - public void update() { - super.update(); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToManyRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToManyRelationship.java index 16b60f7e4b..670b9d30a7 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToManyRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToManyRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.AttributeMapping; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -62,11 +63,11 @@ public class GenericJavaOneToManyRelationship } @Override - public void update() { - super.update(); - this.mappedByStrategy.update(); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mappedByStrategy.update(monitor); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToOneRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToOneRelationship.java index a779fdc229..9eaeaf4bd6 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToOneRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaOneToOneRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.AttributeMapping; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -63,12 +64,12 @@ public class GenericJavaOneToOneRelationship } @Override - public void update() { - super.update(); - this.mappedByStrategy.update(); - this.primaryKeyJoinColumnStrategy.update(); - this.joinTableStrategy.update(); - this.joinColumnStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mappedByStrategy.update(monitor); + this.primaryKeyJoinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); + this.joinColumnStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaPrimaryKeyJoinColumnRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaPrimaryKeyJoinColumnRelationshipStrategy.java index 9324f5ea83..44dfac5439 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaPrimaryKeyJoinColumnRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaPrimaryKeyJoinColumnRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.resource.java.NestableAnnotation; import org.eclipse.jpt.common.core.utility.TextRange; @@ -62,9 +63,9 @@ public class GenericJavaPrimaryKeyJoinColumnRelationshipStrategy } @Override - public void update() { - super.update(); - this.updateModels(this.getPrimaryKeyJoinColumns()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getPrimaryKeyJoinColumns(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaVirtualJoinTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaVirtualJoinTable.java index f91d2ff1db..cf1bd4f9c6 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaVirtualJoinTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/java/GenericJavaVirtualJoinTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -58,10 +59,10 @@ public class GenericJavaVirtualJoinTable // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateSpecifiedInverseJoinColumns(); - this.updateDefaultInverseJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedInverseJoinColumns(monitor); + this.updateDefaultInverseJoinColumn(monitor); } @@ -94,8 +95,8 @@ public class GenericJavaVirtualJoinTable return this.specifiedInverseJoinColumnContainer.get(index); } - protected void updateSpecifiedInverseJoinColumns() { - this.specifiedInverseJoinColumnContainer.update(); + protected void updateSpecifiedInverseJoinColumns(IProgressMonitor monitor) { + this.specifiedInverseJoinColumnContainer.update(monitor); } protected ListIterable<JoinColumn> getOverriddenInverseJoinColumns() { @@ -158,12 +159,12 @@ public class GenericJavaVirtualJoinTable return (this.defaultInverseJoinColumn == null) ? 0 : 1; } - protected void updateDefaultInverseJoinColumn() { + protected void updateDefaultInverseJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultInverseJoinColumn()) { if (this.defaultInverseJoinColumn == null) { this.setDefaultInverseJoinColumn(this.buildInverseJoinColumn(this.getOverriddenTable().getDefaultInverseJoinColumn())); } else { - this.defaultInverseJoinColumn.update(); + this.defaultInverseJoinColumn.update(monitor); } } else { this.setDefaultInverseJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractEntityMappings.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractEntityMappings.java index 76bc4900b9..fe7dab590e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractEntityMappings.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractEntityMappings.java @@ -177,21 +177,21 @@ public abstract class AbstractEntityMappings } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultAccess(this.buildDefaultAccess()); this.setDefaultCatalog(this.buildDefaultCatalog()); this.setDefaultSchema(this.buildDefaultSchema()); - this.persistenceUnitMetadata.update(); + this.persistenceUnitMetadata.update(monitor); - this.updateModels(this.getManagedTypes()); + this.updateModels(this.getManagedTypes(), monitor); - this.updateModels(this.getSequenceGenerators()); - this.updateModels(this.getTableGenerators()); + this.updateModels(this.getSequenceGenerators(), monitor); + this.updateModels(this.getTableGenerators(), monitor); - this.queryContainer.update(); + this.queryContainer.update(monitor); this.updateStructureChildren(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmAttributeMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmAttributeMapping.java index 27c107daf8..5f79f526b3 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmAttributeMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmAttributeMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.utility.TextRange; @@ -91,8 +92,8 @@ public abstract class AbstractOrmAttributeMapping<X extends XmlAttributeMapping> } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultAttributeType(this.buildDefaultAttributeType()); this.setFullyQualifiedAttributeType(this.buildFullyQualifiedAttributeType()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseColumn.java index 057d9a9f97..dc83db9118 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.TableColumn; @@ -65,8 +66,8 @@ public abstract class AbstractOrmBaseColumn<PA extends TableColumn.ParentAdapter } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTableName(this.buildDefaultTableName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseEmbeddedMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseEmbeddedMapping.java index c02ec88280..fc5f1efbd0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseEmbeddedMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBaseEmbeddedMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.common.util.EList; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -71,9 +72,9 @@ public abstract class AbstractOrmBaseEmbeddedMapping<X extends AbstractXmlEmbedd } @Override - public void update() { - super.update(); - this.attributeOverrideContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.attributeOverrideContainer.update(monitor); this.setTargetEmbeddable(this.buildTargetEmbeddable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBasicMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBasicMapping.java index 77abbbad8e..0d1d272fc6 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBasicMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmBasicMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.Converter; @@ -87,12 +88,12 @@ public abstract class AbstractOrmBasicMapping<X extends XmlBasic> } @Override - public void update() { - super.update(); - this.column.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); this.setDefaultFetch(this.buildDefaultFetch()); this.setDefaultOptional(this.buildDefaultOptional()); - this.converter.update(); + this.converter.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmDatabaseGenerator.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmDatabaseGenerator.java index 815d5bd18d..68d13ab587 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmDatabaseGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmDatabaseGenerator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.jpa.core.context.DatabaseGenerator; @@ -52,8 +53,8 @@ public abstract class AbstractOrmDatabaseGenerator<X extends XmlGenerator> } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultInitialValue(this.buildDefaultInitialValue()); this.setDefaultAllocationSize(this.buildDefaultAllocationSize()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmEntity.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmEntity.java index b2e6e8401a..7941a23709 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmEntity.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmEntity.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -12,6 +12,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.Iterator; import java.util.List; import java.util.Vector; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.common.util.EList; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; @@ -217,8 +218,8 @@ public abstract class AbstractOrmEntity<X extends XmlEntity> } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultName(this.buildDefaultName()); @@ -228,17 +229,17 @@ public abstract class AbstractOrmEntity<X extends XmlEntity> this.setDefaultInheritanceStrategy(this.buildDefaultInheritanceStrategy()); - this.table.update(); + this.table.update(monitor); this.setSpecifiedTableIsAllowed(this.buildSpecifiedTableIsAllowed()); this.setTableIsUndefined(this.buildTableIsUndefined()); - this.updateVirtualSecondaryTables(); - this.updateModels(this.getSecondaryTables()); + this.updateVirtualSecondaryTables(monitor); + this.updateModels(this.getSecondaryTables(), monitor); - this.updateDefaultPrimaryKeyJoinColumns(); - this.updateModels(this.getPrimaryKeyJoinColumns()); + this.updateDefaultPrimaryKeyJoinColumns(monitor); + this.updateModels(this.getPrimaryKeyJoinColumns(), monitor); - this.discriminatorColumn.update(); + this.discriminatorColumn.update(monitor); this.setSpecifiedDiscriminatorColumnIsAllowed(this.buildSpecifiedDiscriminatorColumnIsAllowed()); this.setDiscriminatorColumnIsUndefined(this.buildDiscriminatorColumnIsUndefined()); @@ -246,11 +247,11 @@ public abstract class AbstractOrmEntity<X extends XmlEntity> this.setSpecifiedDiscriminatorValueIsAllowed(this.buildSpecifiedDiscriminatorValueIsAllowed()); this.setDiscriminatorValueIsUndefined(this.buildDiscriminatorValueIsUndefined()); - this.attributeOverrideContainer.update(); - this.associationOverrideContainer.update(); + this.attributeOverrideContainer.update(monitor); + this.associationOverrideContainer.update(monitor); - this.generatorContainer.update(); - this.queryContainer.update(); + this.generatorContainer.update(monitor); + this.queryContainer.update(monitor); } @@ -590,8 +591,8 @@ public abstract class AbstractOrmEntity<X extends XmlEntity> * secondary tables. * @see #getJavaSecondaryTablesForVirtuals() */ - protected void updateVirtualSecondaryTables() { - this.virtualSecondaryTableContainer.update(); + protected void updateVirtualSecondaryTables(IProgressMonitor monitor) { + this.virtualSecondaryTableContainer.update(monitor); } protected ListIterable<JavaSpecifiedSecondaryTable> getJavaSecondaryTablesForVirtuals() { @@ -863,7 +864,7 @@ public abstract class AbstractOrmEntity<X extends XmlEntity> * pk join columns. * Otherwise, there is a single, spec-defined, default pk join column. */ - protected void updateDefaultPrimaryKeyJoinColumns() { + protected void updateDefaultPrimaryKeyJoinColumns(IProgressMonitor monitor) { if (this.getSpecifiedPrimaryKeyJoinColumnsSize() > 0) { // specified/java/default => specified this.clearDefaultPrimaryKeyJoinColumns(); @@ -891,7 +892,7 @@ public abstract class AbstractOrmEntity<X extends XmlEntity> } else { if (this.javaPrimaryKeyJoinColumnsWillBeDefaults()) { // java => java ("normal" update) - this.updateVirtualPrimaryKeyJoinColumns(); + this.updateVirtualPrimaryKeyJoinColumns(monitor); } else { // java => default this.clearVirtualPrimaryKeyJoinColumns(); @@ -902,8 +903,8 @@ public abstract class AbstractOrmEntity<X extends XmlEntity> } } - protected void updateVirtualPrimaryKeyJoinColumns() { - ContextContainerTools.update(this.virtualPrimaryKeyJoinColumnContainerAdapter); + protected void updateVirtualPrimaryKeyJoinColumns(IProgressMonitor monitor) { + ContextContainerTools.update(this.virtualPrimaryKeyJoinColumnContainerAdapter, monitor); } /** diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdMapping.java index 0e16b16dd9..535245f26a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.Converter; @@ -91,14 +92,14 @@ public abstract class AbstractOrmIdMapping<X extends XmlId> } @Override - public void update() { - super.update(); - this.column.update(); - this.generatorContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); + this.generatorContainer.update(monitor); if (this.generatedValue != null) { - this.generatedValue.update(); + this.generatedValue.update(monitor); } - this.converter.update(); + this.converter.update(monitor); this.setDerived(this.buildDerived()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdTypeMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdTypeMapping.java index 140d0cc35d..4eae60a9cf 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdTypeMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmIdTypeMapping.java @@ -1,15 +1,16 @@ -/*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0, which accompanies this distribution
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Oracle - initial API and implementation
- *******************************************************************************/
+/******************************************************************************* + * Copyright (c) 2013, 2015 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html. + * + * Contributors: + * Oracle - initial API and implementation + ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement;
import org.eclipse.jpt.common.core.resource.java.JavaResourceType;
import org.eclipse.jpt.common.utility.internal.ObjectTools;
@@ -54,9 +55,9 @@ public abstract class AbstractOrmIdTypeMapping<X extends XmlIdTypeMapping> }
@Override
- public void update() {
- super.update();
- this.idClassReference.update();
+ public void update(IProgressMonitor monitor) {
+ super.update(monitor);
+ this.idClassReference.update(monitor);
setSuperTypeMapping_(findSuperTypeMapping());
}
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinColumnRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinColumnRelationshipStrategy.java index 7e57772ad9..922d3a0615 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinColumnRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinColumnRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -57,10 +58,10 @@ public abstract class AbstractOrmJoinColumnRelationshipStrategy<P extends OrmJoi } @Override - public void update() { - super.update(); - this.updateModels(getSpecifiedJoinColumns()); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(getSpecifiedJoinColumns(), monitor); + this.updateDefaultJoinColumn(monitor); } @@ -201,12 +202,12 @@ public abstract class AbstractOrmJoinColumnRelationshipStrategy<P extends OrmJoi return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultJoinColumn()) { if (this.defaultJoinColumn == null) { this.setDefaultJoinColumn(this.buildJoinColumn(null)); } else { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } } else { this.setDefaultJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinTableRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinTableRelationshipStrategy.java index 688a04e2b3..9dc9ea2a53 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinTableRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmJoinTableRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; import org.eclipse.jpt.jpa.core.context.VirtualJoinTable; @@ -48,9 +49,9 @@ public abstract class AbstractOrmJoinTableRelationshipStrategy<P extends OrmJoin } @Override - public void update() { - super.update(); - this.updateJoinTable(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateJoinTable(monitor); } @@ -66,12 +67,12 @@ public abstract class AbstractOrmJoinTableRelationshipStrategy<P extends OrmJoin this.firePropertyChanged(JOIN_TABLE_PROPERTY, old, joinTable); } - protected void updateJoinTable() { + protected void updateJoinTable(IProgressMonitor monitor) { if (this.buildsJoinTable()) { if (this.joinTable == null) { this.setJoinTable(this.buildJoinTable()); } else { - this.joinTable.update(); + this.joinTable.update(monitor); } } else { if (this.joinTable != null) { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmManagedType.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmManagedType.java index 67fbc23bf3..eb4cdb0d20 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmManagedType.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmManagedType.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013 Oracle. All rights reserved. + * Copyright (c) 2013, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.EmptyTextRange; @@ -72,9 +73,9 @@ public abstract class AbstractOrmManagedType<P extends EntityMappings> } @Override - public void update() { - super.update(); - this.updateJavaManagedType(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateJavaManagedType(monitor); } public XmlManagedType getXmlManagedType() { @@ -174,7 +175,7 @@ public abstract class AbstractOrmManagedType<P extends EntityMappings> /** * @see #syncJavaManagedType() */ - protected void updateJavaManagedType() { + protected void updateJavaManagedType(IProgressMonitor monitor) { if (this.getName() == null) { if (this.javaManagedType != null) { this.setJavaManagedType(null); @@ -190,7 +191,7 @@ public abstract class AbstractOrmManagedType<P extends EntityMappings> // but the location has changed: the java resource type has moved from "external" // to part of the jpa project's jpa files. if (this.javaManagedType.getJavaResourceType() == resourceType) { - this.javaManagedType.update(); + this.javaManagedType.update(monitor); } else { this.setJavaManagedType(this.buildJavaManagedType(resourceType)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMappingRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMappingRelationship.java index 7dc268e256..7c5f31de1f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMappingRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMappingRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.Entity; import org.eclipse.jpt.jpa.core.context.SpecifiedRelationshipStrategy; @@ -24,7 +25,7 @@ import org.eclipse.jpt.jpa.core.resource.orm.AbstractXmlRelationshipMapping; /** * <strong>NB:</strong> Subclasses will want to set the {@link #strategy} at the * end of their constructors; otherwise, it will be <code>null</code> until it - * is set during {@link #update()}. + * is set during {@link #update(IProgressMonitor)}. */ public abstract class AbstractOrmMappingRelationship<P extends OrmRelationshipMapping> extends AbstractOrmXmlContextModel<P> @@ -41,8 +42,8 @@ public abstract class AbstractOrmMappingRelationship<P extends OrmRelationshipMa // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.updateStrategy(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMultiRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMultiRelationshipMapping.java index 4a40f3cf07..e247d23b02 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMultiRelationshipMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmMultiRelationshipMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.common.util.EList; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; @@ -165,10 +166,10 @@ public abstract class AbstractOrmMultiRelationshipMapping<X extends AbstractXmlM } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); - this.orderable.update(); + this.orderable.update(monitor); this.setDefaultMapKeyClass(this.buildDefaultMapKeyClass()); this.setFullyQualifiedMapKeyClass(this.buildFullyQualifiedMapKeyClass()); @@ -176,12 +177,12 @@ public abstract class AbstractOrmMultiRelationshipMapping<X extends AbstractXmlM this.setValueType(this.buildValueType()); this.setKeyType(this.buildKeyType()); - this.mapKeyColumn.update(); - this.mapKeyConverter.update(); + this.mapKeyColumn.update(monitor); + this.mapKeyConverter.update(monitor); - this.mapKeyAttributeOverrideContainer.update(); - this.updateModels(this.getSpecifiedMapKeyJoinColumns()); - this.updateDefaultMapKeyJoinColumn(); + this.mapKeyAttributeOverrideContainer.update(monitor); + this.updateModels(this.getSpecifiedMapKeyJoinColumns(), monitor); + this.updateDefaultMapKeyJoinColumn(monitor); } @@ -823,12 +824,12 @@ public abstract class AbstractOrmMultiRelationshipMapping<X extends AbstractXmlM return (this.defaultMapKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultMapKeyJoinColumn() { + protected void updateDefaultMapKeyJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultMapKeyJoinColumn()) { if (this.defaultMapKeyJoinColumn == null) { this.setDefaultMapKeyJoinColumn(this.buildMapKeyJoinColumn(null)); } else { - this.defaultMapKeyJoinColumn.update(); + this.defaultMapKeyJoinColumn.update(monitor); } } else { this.setDefaultMapKeyJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmNamedColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmNamedColumn.java index 367edecec5..d1d393bede 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmNamedColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmNamedColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -80,8 +81,8 @@ public abstract class AbstractOrmNamedColumn<PA extends NamedColumn.ParentAdapte } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultName(this.buildDefaultName()); this.setDbTable(this.buildDbTable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToManyMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToManyMapping.java index b1f77d2f5d..4d66068158 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToManyMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToManyMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.orm.OrmAttributeMapping; import org.eclipse.jpt.jpa.core.context.orm.OrmOneToManyMapping; @@ -43,9 +44,9 @@ public abstract class AbstractOrmOneToManyMapping<X extends XmlOneToMany> } @Override - public void update() { - super.update(); - this.orphanRemoval.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.orphanRemoval.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToOneMapping.java index 1c5a60299e..6a8e062e0c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToOneMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmOneToOneMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2012 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.orm.OrmAttributeMapping; import org.eclipse.jpt.jpa.core.context.orm.OrmMappingRelationship; @@ -46,9 +47,9 @@ public abstract class AbstractOrmOneToOneMapping<X extends XmlOneToOne> } @Override - public void update() { - super.update(); - this.orphanRemoval.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.orphanRemoval.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmPersistentAttribute.java index 92dda336e2..aa852af5d7 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmPersistentAttribute.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmPersistentAttribute.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.Collection; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement.AstNodeType; @@ -99,13 +100,13 @@ public abstract class AbstractOrmPersistentAttribute } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultAccess(this.buildDefaultAccess()); this.setJavaPersistentAttribute(this.buildJavaPersistentAttribute()); - this.mapping.update(); + this.mapping.update(monitor); if (this.cachedJavaPersistentAttribute != null) { - this.cachedJavaPersistentAttribute.update(); + this.cachedJavaPersistentAttribute.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmQuery.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmQuery.java index 99b1f545d7..1897649193 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmQuery.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmQuery.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -64,9 +65,9 @@ public abstract class AbstractOrmQuery<X extends XmlQuery> } @Override - public void update() { - super.update(); - this.updateModels(this.getHints()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getHints(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmRelationshipMapping.java index 9a6cb94b9e..24f13d22e2 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmRelationshipMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmRelationshipMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -80,12 +81,12 @@ public abstract class AbstractOrmRelationshipMapping<X extends AbstractXmlRelati } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTargetEntity(this.buildDefaultTargetEntity()); this.setFullyQualifiedTargetEntity(this.buildFullyQualifiedTargetEntity()); - this.relationship.update(); - this.cascade.update(); + this.relationship.update(monitor); + this.cascade.update(monitor); this.setDefaultFetch(this.buildDefaultFetch()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSequenceGenerator.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSequenceGenerator.java index b7911f420c..a9971f664f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSequenceGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSequenceGenerator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.jpa.core.context.DatabaseGenerator; @@ -45,8 +46,8 @@ public abstract class AbstractOrmSequenceGenerator } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultSequenceName(this.buildDefaultSequenceName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSingleRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSingleRelationshipMapping.java index 8e2b4cdfe1..6dc1d07d22 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSingleRelationshipMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmSingleRelationshipMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.FetchType; import org.eclipse.jpt.jpa.core.context.orm.OrmSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.context.orm.OrmSingleRelationshipMapping; @@ -50,10 +51,10 @@ public abstract class AbstractOrmSingleRelationshipMapping<X extends AbstractXml } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultOptional(this.buildDefaultOptional()); - this.derivedIdentity.update(); + this.derivedIdentity.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTable.java index 8331729f92..30839babc1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.NameTools; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -93,12 +94,12 @@ public abstract class AbstractOrmTable<P extends JpaContextModel, PA extends Tab } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultName(this.buildDefaultName()); this.setDefaultSchema(this.buildDefaultSchema()); this.setDefaultCatalog(this.buildDefaultCatalog()); - this.updateModels(this.getUniqueConstraints()); + this.updateModels(this.getUniqueConstraints(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTypeMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTypeMapping.java index 1ffaceb0e1..cf97654624 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTypeMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmTypeMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -75,8 +76,8 @@ public abstract class AbstractOrmTypeMapping<X extends XmlTypeMapping> } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); setOverrideMetadataComplete(buildOverrideMetadataComplete()); setDefaultParentClass(buildDefaultParentClass()); setFullyQualifiedParentClass(buildFullyQualifiedParentClass()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVersionMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVersionMapping.java index 297f5fc9c0..ac684550a7 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVersionMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVersionMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ArrayTools; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.MappingKeys; @@ -76,10 +77,10 @@ public abstract class AbstractOrmVersionMapping<X extends XmlVersion> } @Override - public void update() { - super.update(); - this.column.update(); - this.converter.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); + this.converter.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualBaseColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualBaseColumn.java index 73626b6a1a..d6133f52e8 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualBaseColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualBaseColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.TableColumn; @@ -42,8 +43,8 @@ public abstract class AbstractOrmVirtualBaseColumn<PA extends TableColumn.Parent // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedTableName(this.buildSpecifiedTableName()); this.setDefaultTableName(this.buildDefaultTableName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedColumn.java index 53edd21c16..f329773824 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JpaContextModel; import org.eclipse.jpt.jpa.core.context.NamedColumn; @@ -26,7 +27,7 @@ import org.eclipse.wst.validation.internal.provisional.core.IReporter; * <li>join column * <li>primary key join column * </ul> - * <strong>NB:</strong> all state is sync'ed/updated in {@link #update()} + * <strong>NB:</strong> all state is sync'ed/updated in {@link #update(IProgressMonitor)} * because <em>all</em> of its derived from the context model (i.e. none of it * is derived from the resource model). */ @@ -52,8 +53,8 @@ public abstract class AbstractOrmVirtualNamedColumn<PA extends NamedColumn.Paren // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedName(this.buildSpecifiedName()); this.setDefaultName(this.buildDefaultName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedDiscriminatorColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedDiscriminatorColumn.java index 7db9c83f1e..7363e7df09 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedDiscriminatorColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualNamedDiscriminatorColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.DiscriminatorType; import org.eclipse.jpt.jpa.core.context.NamedDiscriminatorColumn; import org.eclipse.jpt.jpa.core.context.VirtualNamedDiscriminatorColumn; @@ -32,8 +33,8 @@ public abstract class AbstractOrmVirtualNamedDiscriminatorColumn<PA extends Name // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedDiscriminatorType(this.buildSpecifiedDiscriminatorType()); this.setDefaultDiscriminatorType(this.buildDefaultDiscriminatorType()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualReferenceTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualReferenceTable.java index 43415175d0..f0ed6bc604 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualReferenceTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualReferenceTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.SingleElementListIterable; import org.eclipse.jpt.common.utility.internal.iterable.SuperListIterableWrapper; @@ -43,10 +44,10 @@ public abstract class AbstractOrmVirtualReferenceTable<P extends JpaContextModel // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateSpecifiedJoinColumns(); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedJoinColumns(monitor); + this.updateDefaultJoinColumn(monitor); } @@ -79,8 +80,8 @@ public abstract class AbstractOrmVirtualReferenceTable<P extends JpaContextModel return this.specifiedJoinColumnContainer.get(index); } - protected void updateSpecifiedJoinColumns() { - this.specifiedJoinColumnContainer.update(); + protected void updateSpecifiedJoinColumns(IProgressMonitor monitor) { + this.specifiedJoinColumnContainer.update(monitor); } protected ListIterable<JoinColumn> getOverriddenJoinColumns() { @@ -143,12 +144,12 @@ public abstract class AbstractOrmVirtualReferenceTable<P extends JpaContextModel return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultJoinColumn()) { if (this.defaultJoinColumn == null) { this.setDefaultJoinColumn(this.buildJoinColumn(this.getOverriddenTable().getDefaultJoinColumn())); } else { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } } else { this.setDefaultJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualTable.java index 70c58917d8..23d4e39e22 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/AbstractOrmVirtualTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.NameTools; import org.eclipse.jpt.common.utility.internal.iterable.SuperListIterableWrapper; @@ -57,8 +58,8 @@ public abstract class AbstractOrmVirtualTable<P extends JpaContextModel, PA exte // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedName(this.buildSpecifiedName()); this.setDefaultName(this.buildDefaultName()); @@ -69,7 +70,7 @@ public abstract class AbstractOrmVirtualTable<P extends JpaContextModel, PA exte this.setSpecifiedCatalog(this.buildSpecifiedCatalog()); this.setDefaultCatalog(this.buildDefaultCatalog()); - this.updateUniqueConstraints(); + this.updateUniqueConstraints(monitor); } @@ -196,8 +197,8 @@ public abstract class AbstractOrmVirtualTable<P extends JpaContextModel, PA exte return this.uniqueConstraintContainer.get(index); } - protected void updateUniqueConstraints() { - this.uniqueConstraintContainer.update(); + protected void updateUniqueConstraints(IProgressMonitor monitor) { + this.uniqueConstraintContainer.update(monitor); } protected ListIterable<UniqueConstraint> getOverriddenUniqueConstraints() { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmIdClassReference.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmIdClassReference.java index bbadb37356..b8161b50ce 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmIdClassReference.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmIdClassReference.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -68,12 +69,12 @@ public class GenericOrmIdClassReference } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultIdClassName(this.buildDefaultIdClassName()); this.setFullyQualifiedIdClassName(this.buildFullyQualifiedIdClassName()); // update the id class *after* we have the fully qualified name - this.updateIdClass(); + this.updateIdClass(monitor); } @@ -226,7 +227,7 @@ public class GenericOrmIdClassReference /** * @see #syncIdClass() */ - protected void updateIdClass() { + protected void updateIdClass(IProgressMonitor monitor) { if (this.fullyQualifiedIdClassName == null) { if (this.idClass != null) { this.setIdClass(null); @@ -236,7 +237,7 @@ public class GenericOrmIdClassReference this.setIdClass(this.buildIdClass()); } else { if (this.idClass.getName().equals(this.fullyQualifiedIdClassName)) { - this.idClass.update(); + this.idClass.update(monitor); } else { this.setIdClass(this.buildIdClass()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToManyRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToManyRelationship.java index 614188d92c..2f2212095b 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToManyRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToManyRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.AttributeMapping; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -53,10 +54,10 @@ public class GenericOrmManyToManyRelationship } @Override - public void update() { - super.update(); - this.mappedByStrategy.update(); - this.joinTableStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mappedByStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToOneRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToOneRelationship.java index 2b65ded067..10e9e2ff02 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToOneRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmManyToOneRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; import org.eclipse.jpt.jpa.core.context.SpecifiedRelationshipStrategy; import org.eclipse.jpt.jpa.core.context.orm.OrmJoinColumnRelationship; @@ -52,10 +53,10 @@ public class GenericOrmManyToOneRelationship } @Override - public void update() { - super.update(); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToManyRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToManyRelationship.java index e9548344b8..79b1f393dd 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToManyRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToManyRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.AttributeMapping; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -65,11 +66,11 @@ public class GenericOrmOneToManyRelationship } @Override - public void update() { - super.update(); - this.mappedByStrategy.update(); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mappedByStrategy.update(monitor); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToOneRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToOneRelationship.java index 4bc1473fea..773542763f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToOneRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmOneToOneRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.MappingKeys; import org.eclipse.jpt.jpa.core.context.AttributeMapping; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -66,12 +67,12 @@ public class GenericOrmOneToOneRelationship } @Override - public void update() { - super.update(); - this.mappedByStrategy.update(); - this.primaryKeyJoinColumnStrategy.update(); - this.joinTableStrategy.update(); - this.joinColumnStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mappedByStrategy.update(monitor); + this.primaryKeyJoinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); + this.joinColumnStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmPrimaryKeyJoinColumnRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmPrimaryKeyJoinColumnRelationshipStrategy.java index 25dc165c7d..9432efad49 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmPrimaryKeyJoinColumnRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmPrimaryKeyJoinColumnRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.common.utility.iterable.ListIterable; @@ -63,9 +64,9 @@ public class GenericOrmPrimaryKeyJoinColumnRelationshipStrategy } @Override - public void update() { - super.update(); - this.updateModels(this.getPrimaryKeyJoinColumns()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getPrimaryKeyJoinColumns(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualJoinTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualJoinTable.java index 721e0c865c..5716e00124 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualJoinTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualJoinTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -58,10 +59,10 @@ public class GenericOrmVirtualJoinTable // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateSpecifiedInverseJoinColumns(); - this.updateDefaultInverseJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedInverseJoinColumns(monitor); + this.updateDefaultInverseJoinColumn(monitor); } @@ -94,8 +95,8 @@ public class GenericOrmVirtualJoinTable return this.specifiedInverseJoinColumnContainer.get(index); } - protected void updateSpecifiedInverseJoinColumns() { - this.specifiedInverseJoinColumnContainer.update(); + protected void updateSpecifiedInverseJoinColumns(IProgressMonitor monitor) { + this.specifiedInverseJoinColumnContainer.update(monitor); } protected ListIterable<JoinColumn> getOverriddenInverseJoinColumns() { @@ -158,12 +159,12 @@ public class GenericOrmVirtualJoinTable return (this.defaultInverseJoinColumn == null) ? 0 : 1; } - protected void updateDefaultInverseJoinColumn() { + protected void updateDefaultInverseJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultInverseJoinColumn()) { if (this.defaultInverseJoinColumn == null) { this.setDefaultInverseJoinColumn(this.buildInverseJoinColumn(this.getOverriddenTable().getDefaultInverseJoinColumn())); } else { - this.defaultInverseJoinColumn.update(); + this.defaultInverseJoinColumn.update(monitor); } } else { this.setDefaultInverseJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualOverrideJoinColumnRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualOverrideJoinColumnRelationshipStrategy.java index 149fb811ea..8ba1d0e904 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualOverrideJoinColumnRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualOverrideJoinColumnRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; @@ -55,10 +56,10 @@ public class GenericOrmVirtualOverrideJoinColumnRelationshipStrategy // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateSpecifiedJoinColumns(); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedJoinColumns(monitor); + this.updateDefaultJoinColumn(monitor); } @@ -91,8 +92,8 @@ public class GenericOrmVirtualOverrideJoinColumnRelationshipStrategy return this.specifiedJoinColumnContainer.get(index); } - protected void updateSpecifiedJoinColumns() { - this.specifiedJoinColumnContainer.update(); + protected void updateSpecifiedJoinColumns(IProgressMonitor monitor) { + this.specifiedJoinColumnContainer.update(monitor); } protected ListIterable<JoinColumn> getOverriddenSpecifiedJoinColumns() { @@ -150,7 +151,7 @@ public class GenericOrmVirtualOverrideJoinColumnRelationshipStrategy return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { JoinColumn overriddenDefaultJoinColumn = this.getOverriddenDefaultJoinColumn(); if (overriddenDefaultJoinColumn == null) { if (this.defaultJoinColumn != null) { @@ -158,7 +159,7 @@ public class GenericOrmVirtualOverrideJoinColumnRelationshipStrategy } } else { if ((this.defaultJoinColumn != null) && (this.defaultJoinColumn.getOverriddenColumn() == overriddenDefaultJoinColumn)) { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } else { this.setDefaultJoinColumn(this.buildJoinColumn(overriddenDefaultJoinColumn)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualSecondaryTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualSecondaryTable.java index 31dc419894..51d5908a59 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualSecondaryTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/GenericOrmVirtualSecondaryTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.SingleElementListIterable; @@ -53,10 +54,10 @@ public class GenericOrmVirtualSecondaryTable // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateSpecifiedPrimaryKeyJoinColumns(); - this.updateDefaultPrimaryKeyJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedPrimaryKeyJoinColumns(monitor); + this.updateDefaultPrimaryKeyJoinColumn(monitor); } @@ -89,8 +90,8 @@ public class GenericOrmVirtualSecondaryTable return this.specifiedPrimaryKeyJoinColumnContainer.get(index); } - protected void updateSpecifiedPrimaryKeyJoinColumns() { - this.specifiedPrimaryKeyJoinColumnContainer.update(); + protected void updateSpecifiedPrimaryKeyJoinColumns(IProgressMonitor monitor) { + this.specifiedPrimaryKeyJoinColumnContainer.update(monitor); } protected ListIterable<JavaSpecifiedPrimaryKeyJoinColumn> getOverriddenPrimaryKeyJoinColumns() { @@ -153,13 +154,13 @@ public class GenericOrmVirtualSecondaryTable return (this.defaultPrimaryKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultPrimaryKeyJoinColumn() { + protected void updateDefaultPrimaryKeyJoinColumn(IProgressMonitor monitor) { JavaSpecifiedPrimaryKeyJoinColumn overriddenColumn = this.getOverriddenTable().getDefaultPrimaryKeyJoinColumn(); if (overriddenColumn == null) { this.setDefaultPrimaryKeyJoinColumn(null); } else { if ((this.defaultPrimaryKeyJoinColumn != null) && (this.defaultPrimaryKeyJoinColumn.getOverriddenColumn() == overriddenColumn)) { - this.defaultPrimaryKeyJoinColumn.update(); + this.defaultPrimaryKeyJoinColumn.update(monitor); } else { this.setDefaultPrimaryKeyJoinColumn(this.buildPrimaryKeyJoinColumn(overriddenColumn)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentType.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentType.java index 695167f8fc..fc5021d0eb 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentType.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentType.java @@ -18,6 +18,7 @@ import java.util.List; import java.util.Map; import java.util.Vector; import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.resource.xml.EFactoryTools; @@ -124,12 +125,12 @@ public abstract class SpecifiedOrmPersistentType } @Override - public void update() { - super.update(); - this.mapping.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mapping.update(monitor); this.setDefaultAccess(this.buildDefaultAccess()); - this.updateModels(this.getSpecifiedAttributes()); - this.updateDefaultAttributes(); + this.updateModels(this.getSpecifiedAttributes(), monitor); + this.updateDefaultAttributes(monitor); this.setDeclaringTypeName(this.buildDeclaringTypeName()); this.updateStructureChildren(); } @@ -606,13 +607,13 @@ public abstract class SpecifiedOrmPersistentType * the list of resource attributes is determined by the access type * which can be controlled in a number of different places.... */ - protected void updateDefaultAttributes() { + protected void updateDefaultAttributes(IProgressMonitor monitor) { AccessType at = this.getDefaultJavaAccess(); if (at == AccessType.FIELD) { - this.syncFieldAccessDefaultAttributes(); + this.syncFieldAccessDefaultAttributes(monitor); } else if (at == AccessType.PROPERTY) { - this.syncPropertyAccessDefaultAttributes(); + this.syncPropertyAccessDefaultAttributes(monitor); } } @@ -622,12 +623,12 @@ public abstract class SpecifiedOrmPersistentType * <li>all annotated methods (getters/setters) * </ol> */ - private void syncFieldAccessDefaultAttributes() { + private void syncFieldAccessDefaultAttributes(IProgressMonitor monitor) { HashSet<OrmPersistentAttribute> contextAttributes = CollectionTools.hashSet(this.getDefaultAttributes()); - this.syncFieldDefaultAttributes(contextAttributes, this.buildResourceFieldIsRelevant()); + this.syncFieldDefaultAttributes(contextAttributes, this.buildResourceFieldIsRelevant(), monitor); if ( ! this.mapping.isMetadataComplete()) { - this.syncAnnotatedPropertyDefaultAttributes(contextAttributes); + this.syncAnnotatedPropertyDefaultAttributes(contextAttributes, monitor); } // remove any leftover context attributes @@ -643,11 +644,11 @@ public abstract class SpecifiedOrmPersistentType * <li>all annotated getter/setter methods that don't have a matching pair * </ol> */ - private void syncPropertyAccessDefaultAttributes() { + private void syncPropertyAccessDefaultAttributes(IProgressMonitor monitor) { HashSet<OrmPersistentAttribute> contextAttributes = CollectionTools.hashSet(this.getDefaultAttributes()); if ( ! this.mapping.isMetadataComplete()) { - this.syncFieldDefaultAttributes(contextAttributes, JavaResourceAnnotatedElement.IS_ANNOTATED); + this.syncFieldDefaultAttributes(contextAttributes, JavaResourceAnnotatedElement.IS_ANNOTATED, monitor); } Collection<JavaResourceMethod> resourceMethods = CollectionTools.hashBag(this.getJavaResourceMethods()); @@ -661,7 +662,7 @@ public abstract class SpecifiedOrmPersistentType OrmPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(getterMethod, setterMethod)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } @@ -674,7 +675,7 @@ public abstract class SpecifiedOrmPersistentType resourceMethods.remove(getterMethod); resourceMethods.remove(setterMethod); } - this.syncRemainingResourceDefaultMethods(contextAttributes, resourceMethods); + this.syncRemainingResourceDefaultMethods(contextAttributes, resourceMethods, monitor); // remove any leftover context attributes for (OrmPersistentAttribute contextAttribute : contextAttributes) { @@ -691,7 +692,7 @@ public abstract class SpecifiedOrmPersistentType return (setterMethod != null) || getterMethod.isAnnotated(); } - private void syncAnnotatedPropertyDefaultAttributes(HashSet<OrmPersistentAttribute> contextAttributes) { + private void syncAnnotatedPropertyDefaultAttributes(HashSet<OrmPersistentAttribute> contextAttributes, IProgressMonitor monitor) { Collection<JavaResourceMethod> resourceMethods = CollectionTools.hashBag(this.getJavaResourceMethods()); //iterate through all resource methods searching for persistable getters for (JavaResourceMethod getterMethod : this.getJavaResourcePropertyGetters()) { @@ -703,7 +704,7 @@ public abstract class SpecifiedOrmPersistentType OrmPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(getterMethod, setterMethod)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } @@ -716,17 +717,17 @@ public abstract class SpecifiedOrmPersistentType resourceMethods.remove(getterMethod); resourceMethods.remove(setterMethod); } - this.syncRemainingResourceDefaultMethods(contextAttributes, resourceMethods); + this.syncRemainingResourceDefaultMethods(contextAttributes, resourceMethods, monitor); } - private void syncFieldDefaultAttributes(HashSet<OrmPersistentAttribute> contextAttributes, Predicate<? super JavaResourceField> filter) { + private void syncFieldDefaultAttributes(HashSet<OrmPersistentAttribute> contextAttributes, Predicate<? super JavaResourceField> filter, IProgressMonitor monitor) { for (JavaResourceField resourceField : this.getDefaultJavaResourceFields(filter)) { boolean match = false; for (Iterator<OrmPersistentAttribute> stream = contextAttributes.iterator(); stream.hasNext(); ) { OrmPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(resourceField)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } @@ -740,7 +741,7 @@ public abstract class SpecifiedOrmPersistentType } } - private void syncRemainingResourceDefaultMethods(HashSet<OrmPersistentAttribute> contextAttributes, Collection<JavaResourceMethod> resourceMethods) { + private void syncRemainingResourceDefaultMethods(HashSet<OrmPersistentAttribute> contextAttributes, Collection<JavaResourceMethod> resourceMethods, IProgressMonitor monitor) { //iterate through remaining resource methods and search for those that are annotated. //all getter methods will already be used. for (JavaResourceMethod resourceMethod : resourceMethods) { @@ -751,7 +752,7 @@ public abstract class SpecifiedOrmPersistentType OrmPersistentAttribute contextAttribute = stream.next(); if (contextAttribute.isFor(null, resourceMethod)) { match = true; - contextAttribute.update(); + contextAttribute.update(monitor); stream.remove(); break; } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/VirtualOrmPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/VirtualOrmPersistentAttribute.java index 473f16ad50..c5e785a7a1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/VirtualOrmPersistentAttribute.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/VirtualOrmPersistentAttribute.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.context.orm; import java.util.Collection; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.resource.java.JavaResourceField; import org.eclipse.jpt.common.core.resource.java.JavaResourceMethod; @@ -113,10 +114,10 @@ public class VirtualOrmPersistentAttribute } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.updateOriginalJavaAttribute(); - this.updateLocalJavaAttributes(); + this.updateLocalJavaAttributes(monitor); this.setMapping(this.buildMapping()); } @@ -194,10 +195,10 @@ public class VirtualOrmPersistentAttribute } } - protected void updateLocalJavaAttributes() { - this.annotatedJavaAttribute.update(); + protected void updateLocalJavaAttributes(IProgressMonitor monitor) { + this.annotatedJavaAttribute.update(monitor); if (this.unannotatedJavaAttribute != null) { - this.unannotatedJavaAttribute.update(); + this.unannotatedJavaAttribute.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractJarFileRef.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractJarFileRef.java index 7838fcc86b..5301579d07 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractJarFileRef.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractJarFileRef.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -15,6 +15,7 @@ import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.jpt.common.core.internal.utility.ProjectTools; import org.eclipse.jpt.common.core.resource.java.JavaResourcePackageFragmentRoot; @@ -78,9 +79,9 @@ public abstract class AbstractJarFileRef } @Override - public void update() { - super.update(); - this.updateJarFile(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateJarFile(monitor); } public void addRootStructureNodesTo(JpaFile jpaFile, Collection<JpaStructureNode> rootStructureNodes) { @@ -175,7 +176,7 @@ public abstract class AbstractJarFileRef * file is still present, we can <code>sync</code> it. Of course, it might * still be obsolete if other things have changed.... * - * @see #updateJarFile() + * @see #updateJarFile(IProgressMonitor) */ protected void syncJarFile() { if (this.jarFile != null) { @@ -186,7 +187,7 @@ public abstract class AbstractJarFileRef /** * @see #syncJarFile() */ - protected void updateJarFile() { + protected void updateJarFile(IProgressMonitor monitor) { JavaResourcePackageFragmentRoot jrpfr = this.resolveJavaResourcePackageFragmentRoot(); if (jrpfr == null) { if (this.jarFile != null) { @@ -197,7 +198,7 @@ public abstract class AbstractJarFileRef this.setJarFile(this.buildJarFile(jrpfr)); } else { if (this.jarFile.getJarResourcePackageFragmentRoot() == jrpfr) { - this.jarFile.update(); + this.jarFile.update(monitor); } else { this.setJarFile(this.buildJarFile(jrpfr)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractMappingFileRef.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractMappingFileRef.java index 8afd50cca5..62c9902b5f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractMappingFileRef.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractMappingFileRef.java @@ -14,6 +14,7 @@ import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; @@ -74,9 +75,9 @@ public abstract class AbstractMappingFileRef<MF extends MappingFile> } @Override - public void update() { - super.update(); - this.updateMappingFile(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateMappingFile(monitor); } public void addRootStructureNodesTo(JpaFile jpaFile, Collection<JpaStructureNode> rootStructureNodes) { @@ -112,7 +113,7 @@ public abstract class AbstractMappingFileRef<MF extends MappingFile> protected abstract MF buildMappingFile(); protected void syncMappingFile() { - this.syncMappingFile(true); + this.syncMappingFile(true, null); } /** @@ -126,7 +127,7 @@ public abstract class AbstractMappingFileRef<MF extends MappingFile> * removed * </ul> */ - protected void syncMappingFile(boolean sync) { + protected void syncMappingFile(boolean sync, IProgressMonitor monitor) { Object newResourceMappingFile = this.resolveResourceMappingFile(); if (newResourceMappingFile == null) { this.setMappingFile(null); @@ -138,7 +139,7 @@ public abstract class AbstractMappingFileRef<MF extends MappingFile> if (sync) { this.mappingFile.synchronizeWithResourceModel(); } else { - this.mappingFile.update(); + this.mappingFile.update(monitor); } } else { // [seems like we should never get here; since if the file's @@ -165,8 +166,8 @@ public abstract class AbstractMappingFileRef<MF extends MappingFile> return (MF) this.getJpaFactory().buildMappingFile(this, resourceMappingFile); } - protected void updateMappingFile() { - this.syncMappingFile(false); + protected void updateMappingFile(IProgressMonitor monitor) { + this.syncMappingFile(false, monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractPersistenceUnit.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractPersistenceUnit.java index e0b78f02f0..676ed19bc4 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractPersistenceUnit.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/persistence/AbstractPersistenceUnit.java @@ -146,7 +146,7 @@ public abstract class AbstractPersistenceUnit /** * Big performance enhancement! * Use with caution since this contains no duplicates (e.g. class is listed in 2 different mappings files) - * Rebuilt at the *beginning* of {@link #update()} + * Rebuilt at the *beginning* of {@link #update(IProgressMonitor)} * * @see #rebuildManagedTypeMap() */ @@ -275,8 +275,8 @@ public abstract class AbstractPersistenceUnit } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); //Rebuild the managed type map first. I *think* if anything changes to cause //this to be out of sync another update would be triggered by that change. @@ -287,18 +287,18 @@ public abstract class AbstractPersistenceUnit // update specified class refs before mapping file refs because of // JpaFile root structure nodes - we want the mapping file to "win", // as it would in a JPA runtime implementation - this.updateModels(this.getSpecifiedClassRefs()); + this.updateModels(this.getSpecifiedClassRefs(), monitor); - this.updateModels(this.getSpecifiedMappingFileRefs()); - this.updateImpliedMappingFileRef(); + this.updateModels(this.getSpecifiedMappingFileRefs(), monitor); + this.updateImpliedMappingFileRef(monitor); - this.updateModels(this.getJarFileRefs()); + this.updateModels(this.getJarFileRefs(), monitor); // update the implied class refs after all the other types, both // specified here and specified in the mapping files, are in place - this.updateImpliedClassRefs(); + this.updateImpliedClassRefs(monitor); - this.updateModels(this.getProperties()); + this.updateModels(this.getProperties(), monitor); this.updatePersistenceUnitMetadata(); @@ -656,10 +656,10 @@ public abstract class AbstractPersistenceUnit this.potentialImpliedMappingFileRef.synchronizeWithResourceModel(); } - protected void updateImpliedMappingFileRef() { + protected void updateImpliedMappingFileRef(IProgressMonitor monitor) { if (this.usesImpliedMappingFile()) { this.setImpliedMappingFileRef(this.potentialImpliedMappingFileRef); - this.impliedMappingFileRef.update(); + this.impliedMappingFileRef.update(monitor); } else { this.setImpliedMappingFileRef(null); } @@ -892,8 +892,8 @@ public abstract class AbstractPersistenceUnit return this.getContextModelFactory().buildClassRef(this, jrat); } - protected void updateImpliedClassRefs() { - this.impliedClassRefContainer.update(); + protected void updateImpliedClassRefs(IProgressMonitor monitor) { + this.impliedClassRefContainer.update(monitor); } protected Iterable<JavaResourceAbstractType> getImpliedClassResourceTypes() { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericContextRoot.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericContextRoot.java index ef9cf5ef60..89bbf072fa 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericContextRoot.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/GenericContextRoot.java @@ -73,9 +73,9 @@ public class GenericContextRoot } @Override - public void update() { - super.update(); - this.updatePersistenceXml(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updatePersistenceXml(monitor); } @@ -97,7 +97,7 @@ public class GenericContextRoot } protected void syncPersistenceXml() { - this.syncPersistenceXml(true); + this.syncPersistenceXml(true, null); } /** @@ -111,7 +111,7 @@ public class GenericContextRoot * removed * </ul> */ - protected void syncPersistenceXml(boolean sync) { + protected void syncPersistenceXml(boolean sync, IProgressMonitor monitor) { JptXmlResource xmlResource = this.resolvePersistenceXmlResource(); if (xmlResource == null) { this.setPersistenceXml(null); @@ -122,7 +122,7 @@ public class GenericContextRoot if (sync) { this.persistenceXml.synchronizeWithResourceModel(); } else { - this.persistenceXml.update(); + this.persistenceXml.update(monitor); } } } @@ -155,8 +155,8 @@ public class GenericContextRoot return this.getJpaFactory().buildPersistenceXml(this, xmlResource); } - protected void updatePersistenceXml() { - this.syncPersistenceXml(false); + protected void updatePersistenceXml(IProgressMonitor monitor) { + this.syncPersistenceXml(false, monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaNamedDiscriminatorColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaNamedDiscriminatorColumn.java index 85173cb7c0..94d948eb8a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaNamedDiscriminatorColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaNamedDiscriminatorColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the terms of * the Eclipse Public License v1.0, which accompanies this distribution and is available at * http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.DiscriminatorType; import org.eclipse.jpt.jpa.core.context.NamedDiscriminatorColumn; @@ -54,8 +55,8 @@ public abstract class AbstractJavaNamedDiscriminatorColumn<PA extends NamedDiscr } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultDiscriminatorType(this.buildDefaultDiscriminatorType()); this.setDefaultLength(this.buildDefaultLength()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaOverrideContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaOverrideContainer.java index e25ff5ac29..a5155ee72a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaOverrideContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/AbstractJavaOverrideContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; import java.util.Vector; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceMember; import org.eclipse.jpt.common.core.resource.java.NestableAnnotation; @@ -102,10 +103,10 @@ public abstract class AbstractJavaOverrideContainer< } @Override - public void update() { - super.update(); - this.updateSpecifiedOverrides(); - this.updateVirtualOverrides(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedOverrides(monitor); + this.updateVirtualOverrides(monitor); } @@ -305,8 +306,8 @@ public abstract class AbstractJavaOverrideContainer< protected abstract S buildSpecifiedOverride(A overrideAnnotation); - protected void updateSpecifiedOverrides() { - ContextContainerTools.update(this.specifiedOverrideContainerAdapter); + protected void updateSpecifiedOverrides(IProgressMonitor monitor) { + ContextContainerTools.update(this.specifiedOverrideContainerAdapter, monitor); } protected Iterable<A> getRelevantOverrideAnnotations() { @@ -400,8 +401,8 @@ public abstract class AbstractJavaOverrideContainer< return (ListIterable<R>) this.getVirtualOverrides(); } - protected void updateVirtualOverrides() { - ContextContainerTools.update(this.virtualOverrideContainerAdapter); + protected void updateVirtualOverrides(IProgressMonitor monitor) { + ContextContainerTools.update(this.virtualOverrideContainerAdapter, monitor); } /** diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJarFile.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJarFile.java index a083bb1c8a..6580574560 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJarFile.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJarFile.java @@ -12,6 +12,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.JptResourceType; import org.eclipse.jpt.common.core.internal.utility.ContentTypeTools; import org.eclipse.jpt.common.core.resource.java.JavaResourceAbstractType; @@ -66,9 +67,9 @@ public class GenericJarFile } @Override - public void update() { - super.update(); - this.updateModels(this.getJavaManagedTypes()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getJavaManagedTypes(), monitor); } public JavaResourcePackageFragmentRoot getJarResourcePackageFragmentRoot() { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaBaseEnumeratedConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaBaseEnumeratedConverter.java index 25bd861666..d9cf2b504b 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaBaseEnumeratedConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaBaseEnumeratedConverter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.BaseEnumeratedConverter; import org.eclipse.jpt.jpa.core.context.Converter; import org.eclipse.jpt.jpa.core.context.EnumType; @@ -42,8 +43,8 @@ public class GenericJavaBaseEnumeratedConverter } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultEnumType(this.buildDefaultEnumType()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaColumn.java index 451a2f2740..fbc2334ca1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.VirtualColumn; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedColumn; @@ -63,8 +64,8 @@ public class GenericJavaColumn } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultLength(this.buildDefaultLength()); this.setDefaultPrecision(this.buildDefaultPrecision()); this.setDefaultScale(this.buildDefaultScale()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaEntity.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaEntity.java index 6a56041c32..70cce6ece8 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaEntity.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaEntity.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.java.JavaPersistentType; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaEntity; import org.eclipse.jpt.jpa.core.internal.jpa2.context.java.NullJavaCacheable2_0; @@ -39,9 +40,9 @@ public class GenericJavaEntity } @Override - public void update() { - super.update(); - this.cacheable.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.cacheable.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratedValue.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratedValue.java index 55ee49ea3a..f51f0546a4 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratedValue.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratedValue.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.StringTools; import org.eclipse.jpt.common.utility.internal.iterable.TransformationIterable; @@ -57,8 +58,8 @@ public class GenericJavaGeneratedValue } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultStrategy(this.buildDefaultStrategy()); this.setDefaultGenerator(this.buildDefaultGenerator()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratorContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratorContainer.java index 5249d942d4..f03a23757f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratorContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaGeneratorContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.Generator; @@ -48,13 +49,13 @@ public class GenericJavaGeneratorContainer } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); if (this.sequenceGenerator != null) { - this.sequenceGenerator.update(); + this.sequenceGenerator.update(monitor); } if (this.tableGenerator != null) { - this.tableGenerator.update(); + this.tableGenerator.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinColumn.java index d116c44227..e6a98d27a7 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -57,8 +58,8 @@ public class GenericJavaJoinColumn } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultReferencedColumnName(this.buildDefaultReferencedColumnName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinTable.java index a09a37830d..51221c6e8f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaJoinTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -76,10 +77,10 @@ public class GenericJavaJoinTable } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedInverseJoinColumns()); - this.updateDefaultInverseJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedInverseJoinColumns(), monitor); + this.updateDefaultInverseJoinColumn(monitor); } @@ -218,12 +219,12 @@ public class GenericJavaJoinTable return (this.defaultInverseJoinColumn == null) ? 0 : 1; } - protected void updateDefaultInverseJoinColumn() { + protected void updateDefaultInverseJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultInverseJoinColumn()) { if (this.defaultInverseJoinColumn == null) { this.setDefaultInverseJoinColumn(this.buildInverseJoinColumn(new NullJoinColumnAnnotation(this.getTableAnnotation()))); } else { - this.defaultInverseJoinColumn.update(); + this.defaultInverseJoinColumn.update(monitor); } } else { this.setDefaultInverseJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedNativeQuery.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedNativeQuery.java index 0904b4da04..80ef6e1080 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedNativeQuery.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedNativeQuery.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; import org.eclipse.jpt.jpa.core.context.NamedNativeQuery; @@ -58,8 +59,8 @@ public class GenericJavaNamedNativeQuery } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedResultClass(this.buildFullyQualifiedResultClass()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedQuery.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedQuery.java index 62cd784bc7..9b604fccc1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedQuery.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaNamedQuery.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -56,8 +57,8 @@ public class GenericJavaNamedQuery } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultLockMode(this.buildDefaultLockMode()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOrderable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOrderable.java index ffa5ab3777..bb702a8c4c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOrderable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOrderable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.NamedColumn; @@ -90,10 +91,10 @@ public class GenericJavaOrderable } @Override - public void update() { - super.update(); - updateOrderBy(); - updateOrderColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + updateOrderBy(monitor); + updateOrderColumn(monitor); } @@ -183,8 +184,8 @@ public class GenericJavaOrderable this.orderBy.synchronizeWithResourceModel(); } - protected void updateOrderBy() { - this.orderBy.update(); + protected void updateOrderBy(IProgressMonitor monitor) { + this.orderBy.update(monitor); } protected boolean buildOrderByOrdering() { @@ -277,8 +278,8 @@ public class GenericJavaOrderable this.orderColumn.synchronizeWithResourceModel(); } - protected void updateOrderColumn() { - this.orderColumn.update(); + protected void updateOrderColumn(IProgressMonitor monitor) { + this.orderColumn.update(monitor); } /** diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOverrideRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOverrideRelationship.java index 14b5bb3a45..17836e1f04 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOverrideRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaOverrideRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.Entity; @@ -65,11 +66,11 @@ public class GenericJavaOverrideRelationship } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setStrategy(this.buildStrategy()); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaPrimaryKeyJoinColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaPrimaryKeyJoinColumn.java index b5e93c13d7..69713649ae 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaPrimaryKeyJoinColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaPrimaryKeyJoinColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -54,8 +55,8 @@ public class GenericJavaPrimaryKeyJoinColumn } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultReferencedColumnName(this.buildDefaultReferencedColumnName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaQueryContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaQueryContainer.java index 1fa00c3ff6..7c5f949c0c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaQueryContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaQueryContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.NestableAnnotation; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -61,11 +62,11 @@ public class GenericJavaQueryContainer } @Override - public void update() { - super.update(); - this.updateModels(this.getNamedQueries()); - this.updateModels(this.getNamedNativeQueries()); - this.updateModels(this.getNamedStoredProcedureQueries()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getNamedQueries(), monitor); + this.updateModels(this.getNamedNativeQueries(), monitor); + this.updateModels(this.getNamedStoredProcedureQueries(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaReferenceTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaReferenceTable.java index bbe4f25943..a5749c1a3e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaReferenceTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaReferenceTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.SingleElementListIterable; import org.eclipse.jpt.common.utility.iterable.ListIterable; @@ -58,10 +59,10 @@ public abstract class GenericJavaReferenceTable<P extends JpaContextModel, PA ex } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedJoinColumns()); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedJoinColumns(), monitor); + this.updateDefaultJoinColumn(monitor); } @@ -185,12 +186,12 @@ public abstract class GenericJavaReferenceTable<P extends JpaContextModel, PA ex return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultJoinColumn()) { if (this.defaultJoinColumn == null) { this.setDefaultJoinColumn(this.buildJoinColumn(new NullJoinColumnAnnotation(this.getTableAnnotation()))); } else { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } } else { this.setDefaultJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSecondaryTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSecondaryTable.java index 64183cafc1..a2cff234d6 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSecondaryTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSecondaryTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.SingleElementListIterable; @@ -63,10 +64,10 @@ public class GenericJavaSecondaryTable } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedPrimaryKeyJoinColumns()); - this.updateDefaultPrimaryKeyJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedPrimaryKeyJoinColumns(), monitor); + this.updateDefaultPrimaryKeyJoinColumn(monitor); } @@ -229,12 +230,12 @@ public class GenericJavaSecondaryTable return (this.defaultPrimaryKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultPrimaryKeyJoinColumn() { + protected void updateDefaultPrimaryKeyJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultPrimaryKeyJoinColumn()) { if (this.defaultPrimaryKeyJoinColumn == null) { this.setDefaultPrimaryKeyJoinColumn(this.buildPrimaryKeyJoinColumn(new NullPrimaryKeyJoinColumnAnnotation(this.tableAnnotation))); } else { - this.defaultPrimaryKeyJoinColumn.update(); + this.defaultPrimaryKeyJoinColumn.update(monitor); } } else { this.setDefaultPrimaryKeyJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAssociationOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAssociationOverride.java index 643fa9fc42..18c3b0ab7a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAssociationOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAssociationOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.JoinTable; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -49,9 +50,9 @@ public class GenericJavaSpecifiedAssociationOverride } @Override - public void update() { - super.update(); - this.relationship.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.relationship.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAttributeOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAttributeOverride.java index ee29deed89..e90d33ff57 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAttributeOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaSpecifiedAttributeOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.JpaContextModel; import org.eclipse.jpt.jpa.core.context.NamedColumn; @@ -50,9 +51,9 @@ public class GenericJavaSpecifiedAttributeOverride } @Override - public void update() { - super.update(); - this.column.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaTableGenerator.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaTableGenerator.java index 9a6051b4c2..900485b432 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaTableGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaTableGenerator.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.ArrayList; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; import org.eclipse.jpt.common.utility.internal.collection.ListTools; @@ -90,15 +91,15 @@ public class GenericJavaTableGenerator } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTableName(this.buildDefaultTableName()); this.setDefaultSchema(this.buildDefaultSchema()); this.setDefaultCatalog(this.buildDefaultCatalog()); this.setDefaultPkColumnName(this.buildDefaultPkColumnName()); this.setDefaultValueColumnName(this.buildDefaultValueColumnName()); this.setDefaultPkColumnValue(this.buildDefaultPkColumnValue()); - this.updateModels(this.getUniqueConstraints()); + this.updateModels(this.getUniqueConstraints(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAssociationOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAssociationOverride.java index 3e655d2ede..3cc2128d88 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAssociationOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAssociationOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.JoinTable; import org.eclipse.jpt.jpa.core.context.Relationship; @@ -41,9 +42,9 @@ public class GenericJavaVirtualAssociationOverride } @Override - public void update() { - super.update(); - this.relationship.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.relationship.update(monitor); } @Override diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAttributeOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAttributeOverride.java index 874bd9490a..2e50372584 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAttributeOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualAttributeOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.Column; import org.eclipse.jpt.jpa.core.context.JpaContextModel; @@ -39,9 +40,9 @@ public class GenericJavaVirtualAttributeOverride } @Override - public void update() { - super.update(); - this.column.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); } @Override diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualColumn.java index c427f8e7e2..35921d977f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.Column; import org.eclipse.jpt.jpa.core.context.VirtualColumn; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaVirtualBaseColumn; @@ -38,8 +39,8 @@ public class GenericJavaVirtualColumn // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedLength(this.buildSpecifiedLength()); this.setDefaultLength(this.buildDefaultLength()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualJoinColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualJoinColumn.java index 13384c5e71..93d64abe8e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualJoinColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualJoinColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.VirtualJoinColumn; @@ -39,8 +40,8 @@ public class GenericJavaVirtualJoinColumn // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedReferencedColumnName(this.buildSpecifiedReferencedColumnName()); this.setDefaultReferencedColumnName(this.buildDefaultReferencedColumnName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideJoinColumnRelationshipStrategy.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideJoinColumnRelationshipStrategy.java index ceab79d8ea..83ed77be25 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideJoinColumnRelationshipStrategy.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideJoinColumnRelationshipStrategy.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; @@ -56,10 +57,10 @@ public class GenericJavaVirtualOverrideJoinColumnRelationshipStrategy // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateSpecifiedJoinColumns(); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateSpecifiedJoinColumns(monitor); + this.updateDefaultJoinColumn(monitor); } @@ -92,8 +93,8 @@ public class GenericJavaVirtualOverrideJoinColumnRelationshipStrategy return this.specifiedJoinColumnContainer.get(index); } - protected void updateSpecifiedJoinColumns() { - this.specifiedJoinColumnContainer.update(); + protected void updateSpecifiedJoinColumns(IProgressMonitor monitor) { + this.specifiedJoinColumnContainer.update(monitor); } protected ListIterable<JoinColumn> getOverriddenSpecifiedJoinColumns() { @@ -151,7 +152,7 @@ public class GenericJavaVirtualOverrideJoinColumnRelationshipStrategy return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { JoinColumn overriddenDefaultJoinColumn = this.getOverriddenDefaultJoinColumn(); if (overriddenDefaultJoinColumn == null) { if (this.defaultJoinColumn != null) { @@ -159,7 +160,7 @@ public class GenericJavaVirtualOverrideJoinColumnRelationshipStrategy } } else { if ((this.defaultJoinColumn != null) && (this.defaultJoinColumn.getOverriddenColumn() == overriddenDefaultJoinColumn)) { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } else { this.setDefaultJoinColumn(this.buildJoinColumn(overriddenDefaultJoinColumn)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideRelationship.java index 0df2bccba6..64f2584613 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualOverrideRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.Entity; @@ -55,11 +56,11 @@ public class GenericJavaVirtualOverrideRelationship // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setStrategy(this.buildStrategy()); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualUniqueConstraint.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualUniqueConstraint.java index 6b612d072a..cb8840f9a2 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualUniqueConstraint.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/java/GenericJavaVirtualUniqueConstraint.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2012 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JpaContextModel; import org.eclipse.jpt.jpa.core.context.UniqueConstraint; @@ -31,8 +32,8 @@ public class GenericJavaVirtualUniqueConstraint // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.syncColumnNames(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedIdMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedIdMapping.java index f7cd7a40f5..68bdec5d0d 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedIdMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedIdMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.io.Serializable; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IJavaProject; import org.eclipse.jpt.common.core.internal.utility.TypeTools; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; @@ -49,8 +50,8 @@ public abstract class AbstractOrmEmbeddedIdMapping<X extends XmlEmbeddedId> // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setMappedByRelationship(this.buildDerived()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedMapping.java index 733a2e633a..4f924e4036 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmEmbeddedMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.common.util.EList; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -78,9 +79,9 @@ public abstract class AbstractOrmEmbeddedMapping<X extends XmlEmbedded> } @Override - public void update() { - super.update(); - this.associationOverrideContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.associationOverrideContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmNamedDiscriminatorColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmNamedDiscriminatorColumn.java index ed4d4a0eb3..fd48bd668e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmNamedDiscriminatorColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmNamedDiscriminatorColumn.java @@ -1,14 +1,15 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the terms of - * the Eclipse Public License v1.0, which accompanies this distribution and is available at - * http://www.eclipse.org/legal/epl-v10.html. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html. * * Contributors: * Oracle - initial API and implementation ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.DiscriminatorType; import org.eclipse.jpt.jpa.core.context.NamedDiscriminatorColumn; @@ -51,8 +52,8 @@ public abstract class AbstractOrmNamedDiscriminatorColumn<PA extends NamedDiscri } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultDiscriminatorType(this.buildDefaultDiscriminatorType()); this.setDefaultLength(this.buildDefaultLength()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmOverrideContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmOverrideContainer.java index 64e770c1c3..9700a6a1e7 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmOverrideContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmOverrideContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; import java.util.Vector; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringBuilderTools; @@ -80,10 +81,10 @@ public abstract class AbstractOrmOverrideContainer< } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedOverrides()); - this.updateVirtualOverrides(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedOverrides(), monitor); + this.updateVirtualOverrides(monitor); } @@ -318,8 +319,8 @@ public abstract class AbstractOrmOverrideContainer< return this.virtualOverrides.size(); } - protected void updateVirtualOverrides() { - ContextContainerTools.update(this.virtualOverrideContainerAdapter); + protected void updateVirtualOverrides(IProgressMonitor monitor) { + ContextContainerTools.update(this.virtualOverrideContainerAdapter, monitor); } /** diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitDefaults.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitDefaults.java index 2c324ef0b7..6c56ede7ae 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitDefaults.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitDefaults.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -74,8 +75,8 @@ public abstract class AbstractOrmPersistenceUnitDefaults } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultCatalog(this.buildDefaultCatalog()); this.setDefaultSchema(this.buildDefaultSchema()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitMetadata.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitMetadata.java index 0fd65427ae..d79d003ab0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitMetadata.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/AbstractOrmPersistenceUnitMetadata.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.orm.EntityMappings; @@ -58,9 +59,9 @@ public abstract class AbstractOrmPersistenceUnitMetadata } @Override - public void update() { - super.update(); - this.persistenceUnitDefaults.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.persistenceUnitDefaults.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmEntity.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmEntity.java index ca3d337477..9386207926 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmEntity.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmEntity.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.orm.OrmPersistentType; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmEntity; import org.eclipse.jpt.jpa.core.internal.jpa2.context.orm.NullOrmCacheable2_0; @@ -40,9 +41,9 @@ public class GenericOrmEntity } @Override - public void update() { - super.update(); - this.cacheable.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.cacheable.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratedValue.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratedValue.java index 9799b50db5..8e7b245632 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratedValue.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratedValue.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.GenerationType; import org.eclipse.jpt.jpa.core.context.Generator; @@ -55,8 +56,8 @@ public class GenericOrmGeneratedValue } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultStrategy(this.buildDefaultStrategy()); this.setDefaultGenerator(this.buildDefaultGenerator()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratorContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratorContainer.java index 9e611c2caa..da5751a1e0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratorContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmGeneratorContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.Generator; @@ -54,13 +55,13 @@ public class GenericOrmGeneratorContainer } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); if (this.sequenceGenerator != null) { - this.sequenceGenerator.update(); + this.sequenceGenerator.update(monitor); } if (this.tableGenerator != null) { - this.tableGenerator.update(); + this.tableGenerator.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinColumn.java index c786f86fc1..6c0d7cc306 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.jpa.core.context.JoinColumn; @@ -53,8 +54,8 @@ public class GenericOrmJoinColumn } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultReferencedColumnName(this.buildDefaultReferencedColumnName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinTable.java index 525b08ae6b..19fa4faee5 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmJoinTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -75,10 +76,10 @@ public class GenericOrmJoinTable } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedInverseJoinColumns()); - this.updateDefaultInverseJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedInverseJoinColumns(), monitor); + this.updateDefaultInverseJoinColumn(monitor); } @@ -225,12 +226,12 @@ public class GenericOrmJoinTable return (this.defaultInverseJoinColumn == null) ? 0 : 1; } - protected void updateDefaultInverseJoinColumn() { + protected void updateDefaultInverseJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultInverseJoinColumn()) { if (this.defaultInverseJoinColumn == null) { this.setDefaultInverseJoinColumn(this.buildInverseJoinColumn(null)); } else { - this.defaultInverseJoinColumn.update(); + this.defaultInverseJoinColumn.update(monitor); } } else { this.setDefaultInverseJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedNativeQuery.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedNativeQuery.java index 13d5cd7b7c..fc37280117 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedNativeQuery.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedNativeQuery.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; import org.eclipse.jpt.jpa.core.context.JpaContextModel; @@ -59,8 +60,8 @@ public class GenericOrmNamedNativeQuery } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedResultClass(this.buildFullyQualifiedResultClass()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedQuery.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedQuery.java index 12ddf4c036..f36d473d00 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedQuery.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmNamedQuery.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.Collections; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -60,8 +61,8 @@ public final class GenericOrmNamedQuery } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultLockMode(this.buildDefaultLockMode()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOrderable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOrderable.java index f9722e145d..a69c09d1ca 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOrderable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOrderable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.NamedColumn; import org.eclipse.jpt.jpa.core.context.OrderBy; @@ -86,10 +87,10 @@ public class GenericOrmOrderable } @Override - public void update() { - super.update(); - updateOrderBy(); - updateOrderColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + updateOrderBy(monitor); + updateOrderColumn(monitor); } @@ -176,8 +177,8 @@ public class GenericOrmOrderable this.orderBy.synchronizeWithResourceModel(); } - protected void updateOrderBy() { - this.orderBy.update(); + protected void updateOrderBy(IProgressMonitor monitor) { + this.orderBy.update(monitor); } protected boolean buildOrderByOrdering() { @@ -253,9 +254,9 @@ public class GenericOrmOrderable } } - protected void updateOrderColumn() { + protected void updateOrderColumn(IProgressMonitor monitor) { if (this.orderColumn != null) { - this.orderColumn.update(); + this.orderColumn.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOverrideRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOverrideRelationship.java index dd18a4cd48..2310e23152 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOverrideRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmOverrideRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.Entity; @@ -66,11 +67,11 @@ public class GenericOrmOverrideRelationship } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setStrategy(this.buildStrategy()); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPrimaryKeyJoinColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPrimaryKeyJoinColumn.java index ac0ee14282..aaceb6190a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPrimaryKeyJoinColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmPrimaryKeyJoinColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; import org.eclipse.jpt.jpa.core.context.BaseJoinColumn; @@ -48,8 +49,8 @@ public class GenericOrmPrimaryKeyJoinColumn } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultReferencedColumnName(this.buildDefaultReferencedColumnName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmQueryContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmQueryContainer.java index e049b69759..45d82ccde9 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmQueryContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmQueryContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.internal.resource.xml.EFactoryTools; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -67,11 +68,11 @@ public class GenericOrmQueryContainer } @Override - public void update() { - super.update(); - this.updateModels(this.getNamedQueries()); - this.updateModels(this.getNamedNativeQueries()); - this.updateModels(this.getNamedStoredProcedureQueries()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getNamedQueries(), monitor); + this.updateModels(this.getNamedNativeQueries(), monitor); + this.updateModels(this.getNamedStoredProcedureQueries(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmReferenceTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmReferenceTable.java index 8814f41cba..10d31829d3 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmReferenceTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmReferenceTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.common.utility.internal.iterable.SingleElementListIterable; @@ -59,10 +60,10 @@ public abstract class GenericOrmReferenceTable<P extends JpaContextModel, PA ext } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedJoinColumns()); - this.updateDefaultJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedJoinColumns(), monitor); + this.updateDefaultJoinColumn(monitor); } @@ -193,12 +194,12 @@ public abstract class GenericOrmReferenceTable<P extends JpaContextModel, PA ext return (this.defaultJoinColumn == null) ? 0 : 1; } - protected void updateDefaultJoinColumn() { + protected void updateDefaultJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultJoinColumn()) { if (this.defaultJoinColumn == null) { this.setDefaultJoinColumn(this.buildJoinColumn(null)); } else { - this.defaultJoinColumn.update(); + this.defaultJoinColumn.update(monitor); } } else { this.setDefaultJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSecondaryTable.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSecondaryTable.java index 87747daaa4..666034c154 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSecondaryTable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSecondaryTable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -70,10 +71,10 @@ public class GenericOrmSecondaryTable } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedPrimaryKeyJoinColumns()); - this.updateDefaultPrimaryKeyJoinColumn(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedPrimaryKeyJoinColumns(), monitor); + this.updateDefaultPrimaryKeyJoinColumn(monitor); } @@ -246,12 +247,12 @@ public class GenericOrmSecondaryTable return (this.defaultPrimaryKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultPrimaryKeyJoinColumn() { + protected void updateDefaultPrimaryKeyJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultPrimaryKeyJoinColumn()) { if (this.defaultPrimaryKeyJoinColumn == null) { this.setDefaultPrimaryKeyJoinColumn(this.buildPrimaryKeyJoinColumn(null)); } else { - this.defaultPrimaryKeyJoinColumn.update(); + this.defaultPrimaryKeyJoinColumn.update(monitor); } } else { this.setDefaultPrimaryKeyJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAssociationOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAssociationOverride.java index 219f1805a7..1e692ca633 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAssociationOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAssociationOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.JoinTable; import org.eclipse.jpt.jpa.core.context.RelationshipMapping; @@ -48,9 +49,9 @@ public class GenericOrmSpecifiedAssociationOverride } @Override - public void update() { - super.update(); - this.relationship.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.relationship.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAttributeOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAttributeOverride.java index 6191763da5..631b03d5f6 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAttributeOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmSpecifiedAttributeOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Oracle. All rights reserved. + * Copyright (c) 2007, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.JpaContextModel; import org.eclipse.jpt.jpa.core.context.NamedColumn; @@ -50,9 +51,9 @@ public class GenericOrmSpecifiedAttributeOverride } @Override - public void update() { - super.update(); - this.column.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmTableGenerator.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmTableGenerator.java index a6820eff0b..83dfa4bc94 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmTableGenerator.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmTableGenerator.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.ArrayList; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.collection.ListTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -87,15 +88,15 @@ public class GenericOrmTableGenerator } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTableName(this.buildDefaultTableName()); this.setDefaultSchema(this.buildDefaultSchema()); this.setDefaultCatalog(this.buildDefaultCatalog()); this.setDefaultPkColumnName(this.buildDefaultPkColumnName()); this.setDefaultValueColumnName(this.buildDefaultValueColumnName()); this.setDefaultPkColumnValue(this.buildDefaultPkColumnValue()); - this.updateModels(this.getUniqueConstraints()); + this.updateModels(this.getUniqueConstraints(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAssociationOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAssociationOverride.java index 7430274784..bc25db5938 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAssociationOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAssociationOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.JoinTable; import org.eclipse.jpt.jpa.core.context.Relationship; @@ -40,9 +41,9 @@ public class GenericOrmVirtualAssociationOverride } @Override - public void update() { - super.update(); - this.relationship.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.relationship.update(monitor); } @Override diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAttributeOverride.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAttributeOverride.java index 1a7906b154..54ed00db95 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAttributeOverride.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualAttributeOverride.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2012 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.Column; import org.eclipse.jpt.jpa.core.context.JpaContextModel; @@ -38,9 +39,9 @@ public class GenericOrmVirtualAttributeOverride } @Override - public void update() { - super.update(); - this.column.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); } @Override diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualColumn.java index 96424b0586..a253fbe4a5 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.jpa.core.context.Column; import org.eclipse.jpt.jpa.core.context.VirtualColumn; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmVirtualBaseColumn; @@ -38,8 +39,8 @@ public class GenericOrmVirtualColumn // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedLength(this.buildSpecifiedLength()); this.setDefaultLength(this.buildDefaultLength()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualJoinColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualJoinColumn.java index 30f499f574..153e03d9cf 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualJoinColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualJoinColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.VirtualJoinColumn; @@ -39,8 +40,8 @@ public class GenericOrmVirtualJoinColumn // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedReferencedColumnName(this.buildSpecifiedReferencedColumnName()); this.setDefaultReferencedColumnName(this.buildDefaultReferencedColumnName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualOverrideRelationship.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualOverrideRelationship.java index cfdcc6abb5..0524e45eee 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualOverrideRelationship.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualOverrideRelationship.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.BaseColumn; import org.eclipse.jpt.jpa.core.context.Entity; @@ -56,11 +57,11 @@ public class GenericOrmVirtualOverrideRelationship // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setStrategy(this.buildStrategy()); - this.joinColumnStrategy.update(); - this.joinTableStrategy.update(); + this.joinColumnStrategy.update(monitor); + this.joinTableStrategy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualPrimaryKeyJoinColumn.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualPrimaryKeyJoinColumn.java index 6070e367c5..d1cd1af773 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualPrimaryKeyJoinColumn.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualPrimaryKeyJoinColumn.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.BaseJoinColumn; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPrimaryKeyJoinColumn; @@ -39,8 +40,8 @@ public class GenericOrmVirtualPrimaryKeyJoinColumn // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedReferencedColumnName(this.buildSpecifiedReferencedColumnName()); this.setDefaultReferencedColumnName(this.buildDefaultReferencedColumnName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualUniqueConstraint.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualUniqueConstraint.java index 62f973eca7..618ced68ac 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualUniqueConstraint.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmVirtualUniqueConstraint.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2012 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JpaContextModel; import org.eclipse.jpt.jpa.core.context.UniqueConstraint; @@ -31,8 +32,8 @@ public class GenericOrmVirtualUniqueConstraint // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.syncColumnNames(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmXml.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmXml.java index a89ed36b35..c1a5e9163c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmXml.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/orm/GenericOrmXml.java @@ -14,6 +14,7 @@ import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IResource; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.JptResourceType; @@ -101,20 +102,20 @@ public class GenericOrmXml } protected void syncEntityMappings() { - this.syncEntityMappings(true); + this.syncEntityMappings(true, null); } /** - * @see org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistenceXml#update() + * @see org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence.GenericPersistenceXml#update(IProgressMonitor) */ @Override - public void update() { - super.update(); - this.updateEntityMappings(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateEntityMappings(monitor); } - protected void updateEntityMappings() { - this.syncEntityMappings(false); + protected void updateEntityMappings(IProgressMonitor monitor) { + this.syncEntityMappings(false, monitor); } /** @@ -127,7 +128,7 @@ public class GenericOrmXml * <li>an <em>update</em> will occur whenever the JPA file is added or removed: * when resource contents replaced from history EMF unloads the resource. */ - protected void syncEntityMappings(boolean sync) { + protected void syncEntityMappings(boolean sync, IProgressMonitor monitor) { XmlEntityMappings oldXmlEntityMappings = (this.root == null) ? null : this.root.getXmlEntityMappings(); XmlEntityMappings newXmlEntityMappings = (XmlEntityMappings) this.xmlResource.getRootObject(); JptResourceType newResourceType = this.xmlResource.getResourceType(); @@ -155,7 +156,7 @@ public class GenericOrmXml this.root.synchronizeWithResourceModel(); } else { - this.root.update(); + this.root.update(monitor); } } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericClassRef.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericClassRef.java index db04d14ee2..492bc25d9f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericClassRef.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericClassRef.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa1.context.persistence; import java.util.Collection; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.resource.java.JavaResourceAbstractType; @@ -119,9 +120,9 @@ public class GenericClassRef } @Override - public void update() { - super.update(); - this.updateJavaManagedType(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateJavaManagedType(monitor); } public void addRootStructureNodesTo(JpaFile jpaFile, Collection<JpaStructureNode> rootStructureNodes) { @@ -177,7 +178,7 @@ public class GenericClassRef this.firePropertyChanged(JAVA_MANAGED_TYPE_PROPERTY, old, managedType); } - protected void updateJavaManagedType() { + protected void updateJavaManagedType(IProgressMonitor monitor) { this.resourceType = this.resolveJavaResourceType(); if ((this.resourceType == null) || (this.resourceType.getAstNodeType() != AstNodeType.TYPE)) { if (this.javaManagedType != null) { @@ -190,7 +191,7 @@ public class GenericClassRef this.setJavaManagedType(this.buildJavaManagedType(jrt, def)); } else { if ((this.javaManagedType.getJavaResourceType() == jrt) && (this.javaManagedType.getManagedTypeType() == def.getManagedTypeType())) { - this.javaManagedType.update(); + this.javaManagedType.update(monitor); } else { this.setJavaManagedType(this.buildJavaManagedType(jrt, def)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java index ba2ce52170..73870d867e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistence.java @@ -70,9 +70,9 @@ public class GenericPersistence } @Override - public void update() { - super.update(); - this.updateModels(this.getPersistenceUnits()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getPersistenceUnits(), monitor); this.updateStructureChildren(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistenceXml.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistenceXml.java index 36b0f6e41e..fdf3b56c48 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistenceXml.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa1/context/persistence/GenericPersistenceXml.java @@ -82,19 +82,19 @@ public class GenericPersistenceXml } protected void syncPersistence() { - this.syncPersistence(true); + this.syncPersistence(true, null); } /** - * @see org.eclipse.jpt.jpa.core.internal.jpa1.context.orm.GenericOrmXml#update() + * @see org.eclipse.jpt.jpa.core.internal.jpa1.context.orm.GenericOrmXml#update(IProgressMonitor) */ @Override - public void update() { - this.updatePersistence(); + public void update(IProgressMonitor monitor) { + this.updatePersistence(monitor); } - protected void updatePersistence() { - this.syncPersistence(false); + protected void updatePersistence(IProgressMonitor monitor) { + this.syncPersistence(false, monitor); } /** @@ -107,7 +107,7 @@ public class GenericPersistenceXml * <li>an <em>update</em> will occur whenever the JPA file is added or removed: * when resource contents replaced from history EMF unloads the resource. */ - protected void syncPersistence(boolean sync) { + protected void syncPersistence(boolean sync, IProgressMonitor monitor) { XmlPersistence oldXmlPersistence = (this.root == null) ? null : this.root.getXmlPersistence(); XmlPersistence newXmlPersistence = (XmlPersistence) this.xmlResource.getRootObject(); JptResourceType newResourceType = this.xmlResource.getResourceType(); @@ -134,7 +134,7 @@ public class GenericPersistenceXml this.root.synchronizeWithResourceModel(); } else { - this.root.update(); + this.root.update(monitor); } } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/AbstractJavaElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/AbstractJavaElementCollectionMapping2_0.java index 6e06d6d24c..1c5f6ec9dc 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/AbstractJavaElementCollectionMapping2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/AbstractJavaElementCollectionMapping2_0.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.resource.java.JavaResourceMember; @@ -224,31 +225,31 @@ public abstract class AbstractJavaElementCollectionMapping2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTargetClass(this.buildDefaultTargetClass()); this.setFullyQualifiedTargetClass(this.buildFullyQualifiedTargetClass()); this.setDefaultFetch(this.buildDefaultFetch()); - this.orderable.update(); - this.collectionTable.update(); + this.orderable.update(monitor); + this.collectionTable.update(monitor); this.setValueType(this.buildValueType()); - this.valueColumn.update(); - this.converter.update(); - this.valueAttributeOverrideContainer.update(); - this.valueAssociationOverrideContainer.update(); + this.valueColumn.update(monitor); + this.converter.update(monitor); + this.valueAttributeOverrideContainer.update(monitor); + this.valueAssociationOverrideContainer.update(monitor); this.setKeyType(this.buildKeyType()); this.setDefaultMapKeyClass(this.buildDefaultMapKeyClass()); this.setFullyQualifiedMapKeyClass(this.buildFullyQualifiedMapKeyClass()); - this.mapKeyColumn.update(); - this.mapKeyConverter.update(); - this.mapKeyAttributeOverrideContainer.update(); - this.updateModels(this.getSpecifiedMapKeyJoinColumns()); - this.updateDefaultMapKeyJoinColumn(); + this.mapKeyColumn.update(monitor); + this.mapKeyConverter.update(monitor); + this.mapKeyAttributeOverrideContainer.update(monitor); + this.updateModels(this.getSpecifiedMapKeyJoinColumns(), monitor); + this.updateDefaultMapKeyJoinColumn(monitor); } @@ -1158,12 +1159,12 @@ public abstract class AbstractJavaElementCollectionMapping2_0 return (this.defaultMapKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultMapKeyJoinColumn() { + protected void updateDefaultMapKeyJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultMapKeyJoinColumn()) { if (this.defaultMapKeyJoinColumn == null) { this.setDefaultMapKeyJoinColumn(this.buildMapKeyJoinColumn(this.buildNullMapKeyJoinColumnAnnotation())); } else { - this.defaultMapKeyJoinColumn.update(); + this.defaultMapKeyJoinColumn.update(monitor); } } else { this.setDefaultMapKeyJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaCacheable2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaCacheable2_0.java index 83570f39a6..8404c0e9b5 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaCacheable2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaCacheable2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -43,8 +44,8 @@ public class GenericJavaCacheable2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultCacheable(this.buildDefaultCacheable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaDerivedIdentity2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaDerivedIdentity2_0.java index 461e14cd4e..04d188e3cc 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaDerivedIdentity2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaDerivedIdentity2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaContextModel; import org.eclipse.jpt.jpa.core.jpa2.context.DerivedIdentityStrategy2_0; @@ -49,10 +50,10 @@ public class GenericJavaDerivedIdentity2_0 } @Override - public void update() { - super.update(); - this.idStrategy.update(); - this.mapsIdStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.idStrategy.update(monitor); + this.mapsIdStrategy.update(monitor); this.updateStrategy(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaMapsIdDerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaMapsIdDerivedIdentityStrategy2_0.java index 931197e521..a0daba9f1f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaMapsIdDerivedIdentityStrategy2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaMapsIdDerivedIdentityStrategy2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.core.utility.ValidationMessage; @@ -62,8 +63,8 @@ public class GenericJavaMapsIdDerivedIdentityStrategy2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); setDefaultIdAttributeName(buildDefaultIdAttributeName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrderColumn2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrderColumn2_0.java index 06205dc26a..b8096701cf 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrderColumn2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrderColumn2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaNamedColumn; import org.eclipse.jpt.jpa.core.jpa2.context.java.JavaSpecifiedOrderColumn2_0; @@ -58,8 +59,8 @@ public class GenericJavaOrderColumn2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultNullable(this.buildDefaultNullable()); this.setDefaultInsertable(this.buildDefaultInsertable()); this.setDefaultUpdatable(this.buildDefaultUpdatable()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrphanRemoval2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrphanRemoval2_0.java index 5094fa1b63..9209fc21c3 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrphanRemoval2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaOrphanRemoval2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.java.JavaAttributeMapping; @@ -43,8 +44,8 @@ public class GenericJavaOrphanRemoval2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultOrphanRemoval(this.buildDefaultOrphanRemoval()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaSequenceGenerator2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaSequenceGenerator2_0.java index c9a3c9a69a..294f316811 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaSequenceGenerator2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaSequenceGenerator2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright (c) 2009, 2013 Oracle. All rights reserved. +* Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ *******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.SequenceGenerator; import org.eclipse.jpt.jpa.core.context.java.JavaGeneratorContainer; @@ -49,8 +50,8 @@ public class GenericJavaSequenceGenerator2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultCatalog(this.buildDefaultCatalog()); this.setDefaultSchema(this.buildDefaultSchema()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaVirtualOverrideJoinTableRelationshipStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaVirtualOverrideJoinTableRelationshipStrategy2_0.java index fdf438ac63..97f272d781 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaVirtualOverrideJoinTableRelationshipStrategy2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/java/GenericJavaVirtualOverrideJoinTableRelationshipStrategy2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.JoinTable; @@ -41,9 +42,9 @@ public class GenericJavaVirtualOverrideJoinTableRelationshipStrategy2_0 // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateJoinTable(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateJoinTable(monitor); } @@ -59,7 +60,7 @@ public class GenericJavaVirtualOverrideJoinTableRelationshipStrategy2_0 this.firePropertyChanged(JOIN_TABLE_PROPERTY, old, joinTable); } - protected void updateJoinTable() { + protected void updateJoinTable(IProgressMonitor monitor) { JoinTable overriddenJoinTable = this.getOverriddenJoinTable(); if (overriddenJoinTable == null) { if (this.joinTable != null) { @@ -67,7 +68,7 @@ public class GenericJavaVirtualOverrideJoinTableRelationshipStrategy2_0 } } else { if ((this.joinTable != null) && (this.joinTable.getOverriddenTable() == overriddenJoinTable)) { - this.joinTable.update(); + this.joinTable.update(monitor); } else { this.setJoinTable(this.buildJoinTable(overriddenJoinTable)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java index 8dddb4b99c..0f6009889a 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/AbstractOrmElementCollectionMapping2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2.context.orm; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.common.util.EList; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; @@ -225,29 +226,29 @@ public abstract class AbstractOrmElementCollectionMapping2_0<X extends XmlElemen } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTargetClass(this.buildDefaultTargetClass()); this.setFullyQualifiedTargetClass(this.buildFullyQualifiedTargetClass()); this.setDefaultFetch(this.buildDefaultFetch()); - this.orderable.update(); - this.collectionTable.update(); + this.orderable.update(monitor); + this.collectionTable.update(monitor); this.setValueType(this.buildValueType()); - this.valueColumn.update(); - this.converter.update(); - this.valueAttributeOverrideContainer.update(); - this.valueAssociationOverrideContainer.update(); + this.valueColumn.update(monitor); + this.converter.update(monitor); + this.valueAttributeOverrideContainer.update(monitor); + this.valueAssociationOverrideContainer.update(monitor); this.setKeyType(this.buildKeyType()); this.setDefaultMapKeyClass(this.buildDefaultMapKeyClass()); this.setFullyQualifiedMapKeyClass(this.buildFullyQualifiedMapKeyClass()); - this.mapKeyColumn.update(); - this.mapKeyConverter.update(); - this.mapKeyAttributeOverrideContainer.update(); - this.updateModels(this.getSpecifiedMapKeyJoinColumns()); - this.updateDefaultMapKeyJoinColumn(); + this.mapKeyColumn.update(monitor); + this.mapKeyConverter.update(monitor); + this.mapKeyAttributeOverrideContainer.update(monitor); + this.updateModels(this.getSpecifiedMapKeyJoinColumns(), monitor); + this.updateDefaultMapKeyJoinColumn(monitor); } @@ -1156,12 +1157,12 @@ public abstract class AbstractOrmElementCollectionMapping2_0<X extends XmlElemen return (this.defaultMapKeyJoinColumn == null) ? 0 : 1; } - protected void updateDefaultMapKeyJoinColumn() { + protected void updateDefaultMapKeyJoinColumn(IProgressMonitor monitor) { if (this.buildsDefaultMapKeyJoinColumn()) { if (this.defaultMapKeyJoinColumn == null) { this.setDefaultMapKeyJoinColumn(this.buildMapKeyJoinColumn(null)); } else { - this.defaultMapKeyJoinColumn.update(); + this.defaultMapKeyJoinColumn.update(monitor); } } else { this.setDefaultMapKeyJoinColumn(null); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmCacheable2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmCacheable2_0.java index e67df4cd5a..5c59dc9f86 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmCacheable2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmCacheable2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmXmlContextModel; import org.eclipse.jpt.jpa.core.jpa2.context.Cacheable2_0; @@ -41,8 +42,8 @@ public class GenericOrmCacheable2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultCacheable(this.buildDefaultCacheable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmDerivedIdentity2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmDerivedIdentity2_0.java index 7ea8c5a0c8..02717f6101 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmDerivedIdentity2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmDerivedIdentity2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmXmlContextModel; import org.eclipse.jpt.jpa.core.jpa2.context.DerivedIdentityStrategy2_0; @@ -48,10 +49,10 @@ public class GenericOrmDerivedIdentity2_0 } @Override - public void update() { - super.update(); - this.idStrategy.update(); - this.mapsIdStrategy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.idStrategy.update(monitor); + this.mapsIdStrategy.update(monitor); this.updateStrategy(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmOrphanRemoval2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmOrphanRemoval2_0.java index 69607b512e..0c88398fb4 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmOrphanRemoval2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmOrphanRemoval2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.orm.OrmAttributeMapping; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmXmlContextModel; @@ -43,8 +44,8 @@ public class GenericOrmOrphanRemoval2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultOrphanRemoval(this.buildDefaultOrphanRemoval()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmSequenceGenerator2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmSequenceGenerator2_0.java index d2340502be..879d1ba8e0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmSequenceGenerator2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmSequenceGenerator2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* -* Copyright (c) 2009, 2013 Oracle. All rights reserved. +* Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ *******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.JpaContextModel; import org.eclipse.jpt.jpa.core.context.SequenceGenerator; @@ -51,8 +52,8 @@ public class GenericOrmSequenceGenerator2_0 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultCatalog(this.buildDefaultCatalog()); this.setDefaultSchema(this.buildDefaultSchema()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmVirtualOverrideJoinTableRelationshipStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmVirtualOverrideJoinTableRelationshipStrategy2_0.java index 280682cad0..159173f9c1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmVirtualOverrideJoinTableRelationshipStrategy2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2/context/orm/GenericOrmVirtualOverrideJoinTableRelationshipStrategy2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.JoinColumn; import org.eclipse.jpt.jpa.core.context.JoinTable; @@ -41,9 +42,9 @@ public class GenericOrmVirtualOverrideJoinTableRelationshipStrategy2_0 // ********** synchronize/update ********** @Override - public void update() { - super.update(); - this.updateJoinTable(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateJoinTable(monitor); } @@ -59,7 +60,7 @@ public class GenericOrmVirtualOverrideJoinTableRelationshipStrategy2_0 this.firePropertyChanged(JOIN_TABLE_PROPERTY, old, joinTable); } - protected void updateJoinTable() { + protected void updateJoinTable(IProgressMonitor monitor) { JoinTable overriddenJoinTable = this.getOverriddenJoinTable(); if (overriddenJoinTable == null) { if (this.joinTable != null) { @@ -67,7 +68,7 @@ public class GenericOrmVirtualOverrideJoinTableRelationshipStrategy2_0 } } else { if ((this.joinTable != null) && (this.joinTable.getOverriddenTable() == overriddenJoinTable)) { - this.joinTable.update(); + this.joinTable.update(monitor); } else { this.setJoinTable(this.buildJoinTable(overriddenJoinTable)); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaConverterType2_1.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaConverterType2_1.java index 6dc3ca23b7..c1f71aedcb 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaConverterType2_1.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaConverterType2_1.java @@ -1,5 +1,5 @@ /*******************************************************************************
- * Copyright (c) 2013 Oracle. All rights reserved.
+ * Copyright (c) 2013, 2015 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -9,6 +9,7 @@ ******************************************************************************/
package org.eclipse.jpt.jpa.core.internal.jpa2_1.context.java;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jpt.common.core.resource.java.JavaResourceType;
import org.eclipse.jpt.jpa.core.context.JpaContextModel;
import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaManagedType;
@@ -39,8 +40,8 @@ public class GenericJavaConverterType2_1 }
@Override
- public void update() {
- super.update();
+ public void update(IProgressMonitor monitor) {
+ super.update(monitor);
}
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaNamedStoredProcedureQuery2_1.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaNamedStoredProcedureQuery2_1.java index 6d4fc0f8ba..78bb94079c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaNamedStoredProcedureQuery2_1.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaNamedStoredProcedureQuery2_1.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2_1.context.java; import java.util.ArrayList; import java.util.Vector; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.collection.ListTools; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -64,9 +65,9 @@ public class GenericJavaNamedStoredProcedureQuery2_1 } @Override - public void update() { - super.update(); - this.updateModels(this.getParameters()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getParameters(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaStoredProcedureParameter2_1.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaStoredProcedureParameter2_1.java index 385d923608..68f3eacef9 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaStoredProcedureParameter2_1.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/java/GenericJavaStoredProcedureParameter2_1.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013 Oracle. All rights reserved. + * Copyright (c) 2013, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2_1.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaContextModel; @@ -56,8 +57,8 @@ public class GenericJavaStoredProcedureParameter2_1 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultMode(this.buildDefaultMode()); this.setFullyQualifiedTypeName(this.buildFullyQualifiedTypeName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmConverterType2_1.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmConverterType2_1.java index 7ca34ec5c0..2cc684b103 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmConverterType2_1.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmConverterType2_1.java @@ -9,6 +9,7 @@ ******************************************************************************/
package org.eclipse.jpt.jpa.core.internal.jpa2_1.context.orm;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jpt.common.core.resource.java.JavaResourceType;
import org.eclipse.jpt.jpa.core.context.java.JavaManagedType;
import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmManagedType;
@@ -40,8 +41,8 @@ public class GenericOrmConverterType2_1 }
@Override
- public void update() {
- super.update();
+ public void update(IProgressMonitor monitor) {
+ super.update(monitor);
}
@Override
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmNamedStoredProcedureQuery2_1.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmNamedStoredProcedureQuery2_1.java index ff89d27beb..7b103c0a3f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmNamedStoredProcedureQuery2_1.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmNamedStoredProcedureQuery2_1.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.core.internal.jpa2_1.context.orm; import java.util.ArrayList; import java.util.Vector; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.collection.ListTools; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -62,9 +63,9 @@ public class GenericOrmNamedStoredProcedureQuery2_1 } @Override - public void update() { - super.update(); - this.updateModels(this.getParameters()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getParameters(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmStoredProcedureParameter2_1.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmStoredProcedureParameter2_1.java index 98dc5bc524..5ce42387ea 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmStoredProcedureParameter2_1.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpa2_1/context/orm/GenericOrmStoredProcedureParameter2_1.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013 Oracle. All rights reserved. + * Copyright (c) 2013, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.core.internal.jpa2_1.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.context.orm.OrmQuery; @@ -57,8 +58,8 @@ public class GenericOrmStoredProcedureParameter2_1 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultMode(this.buildDefaultMode()); this.setFullyQualifiedTypeName(this.buildFullyQualifiedTypeName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/EclipseLinkPersistenceUnit.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/EclipseLinkPersistenceUnit.java index e4f9c63e61..badd6a1045 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/EclipseLinkPersistenceUnit.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/EclipseLinkPersistenceUnit.java @@ -138,8 +138,8 @@ public class EclipseLinkPersistenceUnit // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setConverters(this.buildConverters()); EclipseLinkOrmPersistenceUnitMetadata metadata = this.getEclipseLinkMetadata(); @@ -330,12 +330,12 @@ public class EclipseLinkPersistenceUnit } @Override - protected void updateImpliedMappingFileRef() { - super.updateImpliedMappingFileRef(); + protected void updateImpliedMappingFileRef(IProgressMonitor monitor) { + super.updateImpliedMappingFileRef(monitor); if (this.usesImpliedEclipseLinkMappingFile()) { this.setImpliedEclipseLinkMappingFileRef(this.potentialImpliedEclipseLinkMappingFileRef); - this.impliedEclipseLinkMappingFileRef.update(); + this.impliedEclipseLinkMappingFileRef.update(monitor); } else { this.setImpliedEclipseLinkMappingFileRef(null); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaArrayMapping2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaArrayMapping2_3.java index f80c9f5751..28c882e5b1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaArrayMapping2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaArrayMapping2_3.java @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; @@ -86,11 +87,11 @@ public class EclipseLinkJavaArrayMapping2_3 } @Override - public void update() { - super.update(); - this.column.update(); - this.converter.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); + this.converter.update(monitor); + this.converterContainer.update(monitor); } // ********** column ********** diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicCollectionMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicCollectionMapping.java index b8bea35200..0843fc67ee 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicCollectionMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicCollectionMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaAttributeMapping; @@ -41,9 +42,9 @@ public class EclipseLinkJavaBasicCollectionMapping } @Override - public void update() { - super.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapMapping.java index 592ec2e68e..8f453f61ac 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.ArrayList; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaAttributeMapping; @@ -43,9 +44,9 @@ public class EclipseLinkJavaBasicMapMapping } @Override - public void update() { - super.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapping.java index 04450dba5d..32e6d51f89 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaBasicMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.core.resource.java.JavaResourceMember; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -66,13 +67,13 @@ public class EclipseLinkJavaBasicMapping } @Override - public void update() { - super.update(); - this.mutable.update(); - this.converterContainer.update(); - this.generatorContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mutable.update(monitor); + this.converterContainer.update(monitor); + this.generatorContainer.update(monitor); if (this.generatedValue != null) { - this.generatedValue.update(); + this.generatedValue.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCachingImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCachingImpl.java index c7652eb25b..0ec513ec70 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCachingImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCachingImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -117,13 +118,13 @@ public class EclipseLinkJavaCachingImpl } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); if (this.expiryTimeOfDay != null) { - this.expiryTimeOfDay.update(); + this.expiryTimeOfDay.update(monitor); } this.setDefaultExistenceType(this.buildDefaultExistenceType()); - this.cacheable.update(); + this.cacheable.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConvert.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConvert.java index 99b23c2601..c26358d487 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConvert.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConvert.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.Arrays; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.Annotation; import org.eclipse.jpt.common.utility.internal.StringTools; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -54,8 +55,8 @@ public class EclipseLinkJavaConvert } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultConverterName(this.buildDefaultConverterName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverter.java index 0b3b546777..ccd41cae44 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ArrayTools; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -61,8 +62,8 @@ public abstract class EclipseLinkJavaConverter<A extends NamedConverterAnnotatio } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverterContainerImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverterContainerImpl.java index a68fd4cde2..46f8fe918e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverterContainerImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaConverterContainerImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.core.resource.java.NestableAnnotation; import org.eclipse.jpt.common.core.utility.TextRange; @@ -62,12 +63,12 @@ public class EclipseLinkJavaConverterContainerImpl } @Override - public void update() { - super.update(); - this.updateModels(this.getCustomConverters()); - this.updateModels(this.getObjectTypeConverters()); - this.updateModels(this.getStructConverters()); - this.updateModels(this.getTypeConverters()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getCustomConverters(), monitor); + this.updateModels(this.getObjectTypeConverters(), monitor); + this.updateModels(this.getStructConverters(), monitor); + this.updateModels(this.getTypeConverters(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomConverter.java index cf9e359e93..e82738ef14 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomConverter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.core.utility.ValidationMessage; import org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkCustomConverter; @@ -37,8 +38,8 @@ public class EclipseLinkJavaCustomConverter // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedConverterClass(this.converterAnnotation.getFullyQualifiedConverterClassName()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomizer.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomizer.java index 02704581a5..5d2ca28dba 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomizer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaCustomizer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.TypeTools; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -48,8 +49,8 @@ public class EclipseLinkJavaCustomizer } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedCustomizerClass(this.buildFullyQualifiedCustomizerClass()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaElementCollectionMapping2_0.java index cb41d59f4e..b162e29174 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaElementCollectionMapping2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaElementCollectionMapping2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.java.JavaConverter; @@ -47,10 +48,10 @@ public class EclipseLinkJavaElementCollectionMapping2_0 } @Override - public void update() { - super.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddableImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddableImpl.java index 0e6070fe83..71d216e00d 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddableImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddableImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.utility.internal.ArrayTools; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -63,11 +64,11 @@ public class EclipseLinkJavaEmbeddableImpl } @Override - public void update() { - super.update(); - this.converterContainer.update(); - this.changeTracking.update(); - this.customizer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); + this.changeTracking.update(monitor); + this.customizer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedIdMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedIdMapping.java index 201b45a727..562a288ebd 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedIdMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedIdMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaEmbeddedIdMapping; @@ -40,9 +41,9 @@ public class EclipseLinkJavaEmbeddedIdMapping } @Override - public void update() { - super.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedMapping.java index f2a5ed585e..c87512146f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEmbeddedMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaEmbeddedMapping; @@ -37,9 +38,9 @@ public class EclipseLinkJavaEmbeddedMapping } @Override - public void update() { - super.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEntityImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEntityImpl.java index 40480485d0..bb1a38bceb 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEntityImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaEntityImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.InheritanceType; @@ -82,14 +83,14 @@ public class EclipseLinkJavaEntityImpl } @Override - public void update() { - super.update(); - this.caching.update(); - this.readOnly.update(); - this.converterContainer.update(); - this.changeTracking.update(); - this.customizer.update(); - this.multitenancy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.caching.update(monitor); + this.readOnly.update(monitor); + this.converterContainer.update(monitor); + this.changeTracking.update(monitor); + this.customizer.update(monitor); + this.multitenancy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaGeneratorContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaGeneratorContainer.java index d156bd2cb9..1a4225b845 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaGeneratorContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaGeneratorContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.Generator; import org.eclipse.jpt.jpa.core.internal.jpa1.context.java.GenericJavaGeneratorContainer; @@ -38,10 +39,10 @@ public class EclipseLinkJavaGeneratorContainer } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); if (this.uuidGenerator != null) { - this.uuidGenerator.update(); + this.uuidGenerator.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaIdMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaIdMapping.java index d2dfe2ac83..85b21e89a0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaIdMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaIdMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.java.JavaConverter; @@ -50,10 +51,10 @@ public class EclipseLinkJavaIdMapping } @Override - public void update() { - super.update(); - this.mutable.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mutable.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToManyMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToManyMapping.java index 7cdd02107a..1dbae2a5aa 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToManyMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToManyMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaManyToManyMapping; @@ -46,10 +47,10 @@ public class EclipseLinkJavaManyToManyMapping } @Override - public void update() { - super.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToOneMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToOneMapping.java index 9ddec16e0b..d816cc80cb 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToOneMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaManyToOneMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaManyToOneMapping; @@ -46,10 +47,10 @@ public class EclipseLinkJavaManyToOneMapping } @Override - public void update() { - super.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMappedSuperclassImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMappedSuperclassImpl.java index eda7685112..ae68cf06a9 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMappedSuperclassImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMappedSuperclassImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.Generator; @@ -91,15 +92,15 @@ public class EclipseLinkJavaMappedSuperclassImpl } @Override - public void update() { - super.update(); - this.caching.update(); - this.readOnly.update(); - this.converterContainer.update(); - this.changeTracking.update(); - this.customizer.update(); - this.multitenancy.update(); - this.generatorContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.caching.update(monitor); + this.readOnly.update(monitor); + this.converterContainer.update(monitor); + this.changeTracking.update(monitor); + this.customizer.update(monitor); + this.multitenancy.update(monitor); + this.generatorContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMultitenancyImpl2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMultitenancyImpl2_3.java index c4b747c8db..be2680eafd 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMultitenancyImpl2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMultitenancyImpl2_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; import org.eclipse.jpt.common.core.resource.java.NestableAnnotation; import org.eclipse.jpt.common.core.utility.TextRange; @@ -101,15 +102,15 @@ public class EclipseLinkJavaMultitenancyImpl2_3 } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedTenantDiscriminatorColumns()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedTenantDiscriminatorColumns(), monitor); this.setSpecifiedMultitenant_(this.isMultitenantAnnotationSpecified()); this.setDefaultMultitenant(this.buildDefaultMultitenant()); this.setDefaultType(this.buildDefaultType()); this.setDefaultIncludeCriteria(this.buildDefaultIncludeCriteria()); this.setSpecifiedTenantDiscriminatorColumnsAllowed(this.buildSpecifiedTenantDiscriminatorColumnsAllowed()); - this.updateDefaultTenantDiscriminatorColumns(); + this.updateDefaultTenantDiscriminatorColumns(monitor); } @@ -366,8 +367,8 @@ public class EclipseLinkJavaMultitenancyImpl2_3 * tenant discriminator columns. * @see #getTenantDiscriminatorColumnsForDefaults() */ - protected void updateDefaultTenantDiscriminatorColumns() { - this.defaultTenantDiscriminatorColumnContainer.update(); + protected void updateDefaultTenantDiscriminatorColumns(IProgressMonitor monitor) { + this.defaultTenantDiscriminatorColumnContainer.update(monitor); } protected EclipseLinkVirtualTenantDiscriminatorColumn2_3 buildVirtualTenantDiscriminatorColumn(EclipseLinkTenantDiscriminatorColumn2_3 tenantDiscriminatorColumn) { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMutable.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMutable.java index 09e492cde5..fcc8b6ea8f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMutable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaMutable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -44,8 +45,8 @@ public class EclipseLinkJavaMutable } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultMutable(this.buildDefaultMutable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaObjectTypeConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaObjectTypeConverter.java index ac65fd2c67..683774e41e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaObjectTypeConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaObjectTypeConverter.java @@ -12,6 +12,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.collection.ListTools; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -66,11 +67,11 @@ public class EclipseLinkJavaObjectTypeConverter } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedDataType(this.converterAnnotation.getFullyQualifiedDataType()); this.setFullyQualifiedObjectType(this.converterAnnotation.getFullyQualifiedObjectType()); - this.updateModels(this.getConversionValues()); + this.updateModels(this.getConversionValues(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToManyMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToManyMapping.java index 76fa9fab3d..b2daed86aa 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToManyMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToManyMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaMappingRelationship; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; @@ -53,11 +54,11 @@ public class EclipseLinkJavaOneToManyMapping } @Override - public void update() { - super.update(); - this.privateOwned.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.privateOwned.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToOneMapping.java index 6292cf1a08..5f78d8e051 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToOneMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaOneToOneMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaOneToOneMapping; @@ -50,11 +51,11 @@ public class EclipseLinkJavaOneToOneMapping } @Override - public void update() { - super.update(); - this.privateOwned.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.privateOwned.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTenantDiscriminatorColumn2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTenantDiscriminatorColumn2_3.java index d4a2197c5f..641ab06535 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTenantDiscriminatorColumn2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTenantDiscriminatorColumn2_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -57,8 +58,8 @@ public class EclipseLinkJavaTenantDiscriminatorColumn2_3 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTableName(this.buildDefaultTableName()); this.setDefaultContextProperty(this.buildDefaultContextProperty()); this.setDefaultPrimaryKey(this.buildDefaultPrimaryKey()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTransformationMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTransformationMapping.java index f1558ef0aa..06da9f8c11 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTransformationMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTransformationMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaAttributeMapping; @@ -40,9 +41,9 @@ public class EclipseLinkJavaTransformationMapping } @Override - public void update() { - super.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTypeConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTypeConverter.java index 0aafbb2060..ec9d6a4e96 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTypeConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaTypeConverter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkConverter; import org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkTypeConverter; @@ -47,8 +48,8 @@ public class EclipseLinkJavaTypeConverter } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedDataType(this.converterAnnotation.getFullyQualifiedDataType()); this.setFullyQualifiedObjectType(this.converterAnnotation.getFullyQualifiedObjectType()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVariableOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVariableOneToOneMapping.java index ce503ec5d5..a106c8741c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVariableOneToOneMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVariableOneToOneMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2013 Oracle. All rights reserved. + * Copyright (c) 2009, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.jpa.core.context.java.JavaSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaAttributeMapping; @@ -40,9 +41,9 @@ public class EclipseLinkJavaVariableOneToOneMapping } @Override - public void update() { - super.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVersionMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVersionMapping.java index c71756f96e..0d8df962d9 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVersionMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVersionMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement; import org.eclipse.jpt.common.utility.internal.ArrayTools; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; @@ -50,10 +51,10 @@ public class EclipseLinkJavaVersionMapping } @Override - public void update() { - super.update(); - this.mutable.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mutable.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVirtualTenantDiscriminatorColumn2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVirtualTenantDiscriminatorColumn2_3.java index f0db202b87..09765a3e4f 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVirtualTenantDiscriminatorColumn2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/java/EclipseLinkJavaVirtualTenantDiscriminatorColumn2_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.java; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.internal.context.java.AbstractJavaVirtualNamedDiscriminatorColumn; import org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkTenantDiscriminatorColumn2_3; @@ -42,8 +43,8 @@ public class EclipseLinkJavaVirtualTenantDiscriminatorColumn2_3 // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedTableName(this.buildSpecifiedTableName()); this.setDefaultTableName(this.buildDefaultTableName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkAbstractOrmConverterContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkAbstractOrmConverterContainer.java index 51fe6888bf..aa54d73bd5 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkAbstractOrmConverterContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkAbstractOrmConverterContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.utility.TextRange; @@ -68,12 +69,12 @@ public abstract class EclipseLinkAbstractOrmConverterContainer } @Override - public void update() { - super.update(); - this.updateModels(this.getCustomConverters()); - this.updateModels(this.getObjectTypeConverters()); - this.updateModels(this.getStructConverters()); - this.updateModels(this.getTypeConverters()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getCustomConverters(), monitor); + this.updateModels(this.getObjectTypeConverters(), monitor); + this.updateModels(this.getStructConverters(), monitor); + this.updateModels(this.getTypeConverters(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkEntityMappingsImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkEntityMappingsImpl.java index 2fb6a939cf..a6afc7f9d9 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkEntityMappingsImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkEntityMappingsImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -11,6 +11,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.content.IContentType; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; @@ -98,14 +99,14 @@ public class EclipseLinkEntityMappingsImpl } @Override - public void update() { - super.update(); - this.converterContainer.update(); - this.updateModels(this.getSpecifiedTenantDiscriminatorColumns()); - this.updateDefaultTenantDiscriminatorColumns(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); + this.updateModels(this.getSpecifiedTenantDiscriminatorColumns(), monitor); + this.updateDefaultTenantDiscriminatorColumns(monitor); this.setDefaultGetMethod(this.buildDefaultGetMethod()); this.setDefaultSetMethod(this.buildDefaultSetMethod()); - this.updateModels(this.getUuidGenerators()); + this.updateModels(this.getUuidGenerators(), monitor); } @Override @@ -308,8 +309,8 @@ public class EclipseLinkEntityMappingsImpl * tenant discriminator columns. * @see #getTenantDiscriminatorColumnsForDefaults() */ - protected void updateDefaultTenantDiscriminatorColumns() { - this.defaultTenantDiscriminatorColumnContainer.update(); + protected void updateDefaultTenantDiscriminatorColumns(IProgressMonitor monitor) { + this.defaultTenantDiscriminatorColumnContainer.update(monitor); } protected ListIterable<EclipseLinkTenantDiscriminatorColumn2_3> getTenantDiscriminatorColumnsForDefaults() { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmArrayMapping2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmArrayMapping2_3.java index cd32f108cb..28da9d1d8b 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmArrayMapping2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmArrayMapping2_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -89,11 +90,11 @@ public class EclipseLinkOrmArrayMapping2_3 } @Override - public void update() { - super.update(); - this.column.update(); - this.converterContainer.update(); - this.converter.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.column.update(monitor); + this.converterContainer.update(monitor); + this.converter.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmBasicMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmBasicMapping.java index 4db4e0b95e..f0f69ae3f1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmBasicMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmBasicMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -70,13 +71,13 @@ public class EclipseLinkOrmBasicMapping } @Override - public void update() { - super.update(); - this.mutable.update(); - this.converterContainer.update(); - this.generatorContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mutable.update(monitor); + this.converterContainer.update(monitor); + this.generatorContainer.update(monitor); if (this.generatedValue != null) { - this.generatedValue.update(); + this.generatedValue.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCachingImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCachingImpl.java index 991c1422d8..2514d84b19 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCachingImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCachingImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.StringTools; @@ -124,8 +125,8 @@ public class EclipseLinkOrmCachingImpl } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); boolean xmlCacheNotSpecified = (this.getXmlCache() == null); EclipseLinkJavaCaching javaCaching = this.getJavaCachingForDefaults(); @@ -142,13 +143,13 @@ public class EclipseLinkOrmCachingImpl this.setDefaultCoordinationType(useJavaValue ? javaCaching.getCoordinationType() : DEFAULT_COORDINATION_TYPE); if (this.expiryTimeOfDay != null) { - this.expiryTimeOfDay.update(); + this.expiryTimeOfDay.update(monitor); } // existence checking is its own xml attribute, it is not part of the cache xml element this.setDefaultExistenceType(javaCacheSpecified ? javaCaching.getExistenceType() : DEFAULT_EXISTENCE_TYPE); - this.cacheable.update(); + this.cacheable.update(monitor); this.setDefaultIsolation(useJavaValue ? javaCaching.getIsolation() : DEFAULT_ISOLATION); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmChangeTracking.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmChangeTracking.java index ee4d13e34a..f54e0e342b 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmChangeTracking.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmChangeTracking.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmXmlContextModel; import org.eclipse.jpt.jpa.core.resource.orm.XmlTypeMapping; @@ -43,8 +44,8 @@ public class EclipseLinkOrmChangeTracking } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultType(this.buildDefaultType()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverter.java index 2f82efffdd..66863c5770 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ArrayTools; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -51,8 +52,8 @@ public abstract class EclipseLinkOrmConverter<X extends XmlNamedConverter> } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverterClassConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverterClassConverter.java index 80e59e1a8e..1fe7c02c0c 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverterClassConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmConverterClassConverter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -52,8 +53,8 @@ public abstract class EclipseLinkOrmConverterClassConverter<X extends XmlNamedCo } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedConverterClass(this.buildFullyQualifiedConverterClass()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCustomizer.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCustomizer.java index 9fb23275dd..525ad9f8a6 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCustomizer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmCustomizer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.TypeTools; @@ -59,8 +60,8 @@ public class EclipseLinkOrmCustomizer } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultCustomizerClass(this.buildDefaultCustomizerClass()); this.setFullyQualifiedCustomizerClass(this.buildFullyQualifiedCustomizerClass()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmElementCollectionMapping2_0.java index 9ddf0ec3c7..7514103cf2 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmElementCollectionMapping2_0.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmElementCollectionMapping2_0.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Oracle. All rights reserved. + * Copyright (c) 2010, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -60,10 +61,10 @@ public class EclipseLinkOrmElementCollectionMapping2_0 } @Override - public void update() { - super.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEmbeddableImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEmbeddableImpl.java index aed68ba0f6..b621627289 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEmbeddableImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEmbeddableImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -70,11 +71,11 @@ public class EclipseLinkOrmEmbeddableImpl } @Override - public void update() { - super.update(); - this.converterContainer.update(); - this.changeTracking.update(); - this.customizer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.converterContainer.update(monitor); + this.changeTracking.update(monitor); + this.customizer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEntityImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEntityImpl.java index 912fcfcb2a..a56b821654 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEntityImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmEntityImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -93,14 +94,14 @@ public class EclipseLinkOrmEntityImpl } @Override - public void update() { - super.update(); - this.caching.update(); - this.readOnly.update(); - this.converterContainer.update(); - this.changeTracking.update(); - this.customizer.update(); - this.multitenancy.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.caching.update(monitor); + this.readOnly.update(monitor); + this.converterContainer.update(monitor); + this.changeTracking.update(monitor); + this.customizer.update(monitor); + this.multitenancy.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmGeneratorContainer.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmGeneratorContainer.java index 2a3950cea9..c70795911e 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmGeneratorContainer.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmGeneratorContainer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.Generator; import org.eclipse.jpt.jpa.core.context.JpaContextModel; @@ -46,10 +47,10 @@ public class EclipseLinkOrmGeneratorContainer } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); if (this.uuidGenerator != null) { - this.uuidGenerator.update(); + this.uuidGenerator.update(monitor); } } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmIdMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmIdMapping.java index e04b54fa86..af08cf3d00 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmIdMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmIdMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -57,10 +58,10 @@ public class EclipseLinkOrmIdMapping } @Override - public void update() { - super.update(); - this.mutable.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mutable.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToManyMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToManyMapping.java index 4973092340..eface42580 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToManyMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToManyMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -57,10 +58,10 @@ public class EclipseLinkOrmManyToManyMapping } @Override - public void update() { - super.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToOneMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToOneMapping.java index 5510d6f668..76f6ff0437 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToOneMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmManyToOneMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.orm.OrmSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmManyToOneMapping; @@ -42,9 +43,9 @@ public class EclipseLinkOrmManyToOneMapping } @Override - public void update() { - super.update(); - this.joinFetch.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.joinFetch.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMappedSuperclassImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMappedSuperclassImpl.java index c286fb6f35..21c09a8462 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMappedSuperclassImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMappedSuperclassImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -99,16 +100,16 @@ public class EclipseLinkOrmMappedSuperclassImpl } @Override - public void update() { - super.update(); - this.caching.update(); - this.readOnly.update(); - this.converterContainer.update(); - this.changeTracking.update(); - this.customizer.update(); - this.multitenancy.update(); - this.queryContainer.update(); - this.generatorContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.caching.update(monitor); + this.readOnly.update(monitor); + this.converterContainer.update(monitor); + this.changeTracking.update(monitor); + this.customizer.update(monitor); + this.multitenancy.update(monitor); + this.queryContainer.update(monitor); + this.generatorContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMultitenancyImpl2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMultitenancyImpl2_3.java index 0272d03b9d..8c750d5534 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMultitenancyImpl2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMultitenancyImpl2_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyListIterable; @@ -102,9 +103,9 @@ public class EclipseLinkOrmMultitenancyImpl2_3 } @Override - public void update() { - super.update(); - this.updateModels(this.getSpecifiedTenantDiscriminatorColumns()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getSpecifiedTenantDiscriminatorColumns(), monitor); boolean xmlMultitenantNotSpecified = (this.getXmlMultitenant() == null); EclipseLinkJavaMultitenancy2_3 javaMultitenantPolicy = this.getJavaMultitenancyPolicyForDefaults(); @@ -115,7 +116,7 @@ public class EclipseLinkOrmMultitenancyImpl2_3 this.setDefaultType(useJavaValue ? javaMultitenantPolicy.getType() : this.buildDefaultType()); this.setDefaultIncludeCriteria(useJavaValue ? javaMultitenantPolicy.isIncludeCriteria() : this.buildDefaultIncludeCriteria()); this.setSpecifiedTenantDiscriminatorColumnsAllowed(this.buildSpecifiedTenantDiscriminatorColumnsAllowed()); - this.updateDefaultTenantDiscriminatorColumns(); + this.updateDefaultTenantDiscriminatorColumns(monitor); } @@ -401,8 +402,8 @@ public class EclipseLinkOrmMultitenancyImpl2_3 * tenant discriminator columns. * @see #getTenantDiscriminatorColumnsForDefaults() */ - protected void updateDefaultTenantDiscriminatorColumns() { - this.defaultTenantDiscriminatorColumnContainer.update(); + protected void updateDefaultTenantDiscriminatorColumns(IProgressMonitor monitor) { + this.defaultTenantDiscriminatorColumnContainer.update(monitor); } protected ListIterable<EclipseLinkTenantDiscriminatorColumn2_3> getTenantDiscriminatorColumnsForDefaults() { diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMutable.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMutable.java index 745d399af4..0eafca4ece 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMutable.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmMutable.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.context.orm.OrmAttributeMapping; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmXmlContextModel; @@ -40,8 +41,8 @@ public class EclipseLinkOrmMutable } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultMutable(this.buildDefaultMutable()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmObjectTypeConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmObjectTypeConverter.java index 8dc5144393..4128e41c32 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmObjectTypeConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmObjectTypeConverter.java @@ -12,6 +12,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -72,11 +73,11 @@ public class EclipseLinkOrmObjectTypeConverter } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedDataType(this.buildFullyQualifiedDataType()); this.setFullyQualifiedObjectType(this.buildFullyQualifiedObjectType()); - this.updateModels(this.getConversionValues()); + this.updateModels(this.getConversionValues(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToManyMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToManyMapping.java index e9428ca819..19d8f58eb1 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToManyMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToManyMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -64,11 +65,11 @@ public class EclipseLinkOrmOneToManyMapping } @Override - public void update() { - super.update(); - this.privateOwned.update(); - this.joinFetch.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.privateOwned.update(monitor); + this.joinFetch.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToOneMapping.java index fbfba02ab8..ba2fcfeca0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToOneMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmOneToOneMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; import org.eclipse.jpt.jpa.core.context.orm.OrmSpecifiedPersistentAttribute; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmOneToOneMapping; @@ -47,10 +48,10 @@ public class EclipseLinkOrmOneToOneMapping } @Override - public void update() { - super.update(); - this.privateOwned.update(); - this.joinFetch.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.privateOwned.update(monitor); + this.joinFetch.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistenceUnitDefaults.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistenceUnitDefaults.java index 17ebd04b7f..953e0b5386 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistenceUnitDefaults.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistenceUnitDefaults.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 Oracle. All rights reserved. + * Copyright (c) 2006, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.common.utility.internal.iterable.EmptyIterable; @@ -84,9 +85,9 @@ public class EclipseLinkOrmPersistenceUnitDefaults } @Override - public void update() { - super.update(); - this.updateModels(this.getTenantDiscriminatorColumns()); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.updateModels(this.getTenantDiscriminatorColumns(), monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistentTypeImpl.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistentTypeImpl.java index 7dd8c71034..6abdf122a0 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistentTypeImpl.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmPersistentTypeImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.resource.java.JavaResourceType; import org.eclipse.jpt.common.core.utility.jdt.TypeBinding; import org.eclipse.jpt.common.utility.internal.ObjectTools; @@ -86,8 +87,8 @@ public class EclipseLinkOrmPersistentTypeImpl } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultGetMethod(this.buildDefaultGetMethod()); this.setDefaultSetMethod(this.buildDefaultSetMethod()); this.setDynamic(this.buildDynamic()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmReadOnly.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmReadOnly.java index ff694d1b94..f267f03369 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmReadOnly.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmReadOnly.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmXmlContextModel; import org.eclipse.jpt.jpa.core.resource.orm.XmlTypeMapping; @@ -40,8 +41,8 @@ public class EclipseLinkOrmReadOnly } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultReadOnly(this.buildDefaultReadOnly()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTenantDiscriminatorColumn2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTenantDiscriminatorColumn2_3.java index 1e22cabfc1..efc7c7b0af 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTenantDiscriminatorColumn2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTenantDiscriminatorColumn2_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the terms of * the Eclipse Public License v1.0, which accompanies this distribution and is available at * http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.common.utility.internal.ObjectTools; import org.eclipse.jpt.jpa.core.internal.jpa1.context.orm.AbstractOrmNamedDiscriminatorColumn; @@ -56,8 +57,8 @@ public class EclipseLinkOrmTenantDiscriminatorColumn2_3 } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setDefaultTableName(this.buildDefaultTableName()); this.setDefaultContextProperty(this.buildDefaultContextProperty()); this.setDefaultPrimaryKey(this.buildDefaultPrimaryKey()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTypeConverter.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTypeConverter.java index 06f0835ef8..714471a7ee 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTypeConverter.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmTypeConverter.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -51,8 +52,8 @@ public class EclipseLinkOrmTypeConverter } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setFullyQualifiedDataType(this.buildFullyQualifiedDataType()); this.setFullyQualifiedObjectType(this.buildFullyQualifiedObjectType()); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVersionMapping.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVersionMapping.java index e6cc4a01f3..742a6ec617 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVersionMapping.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVersionMapping.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Oracle. All rights reserved. + * Copyright (c) 2008, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -12,6 +12,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.IType; import org.eclipse.jpt.common.core.internal.utility.JavaProjectTools; @@ -60,10 +61,10 @@ public class EclipseLinkOrmVersionMapping } @Override - public void update() { - super.update(); - this.mutable.update(); - this.converterContainer.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); + this.mutable.update(monitor); + this.converterContainer.update(monitor); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVirtualTenantDiscriminatorColumn2_3.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVirtualTenantDiscriminatorColumn2_3.java index 5645b4ec91..8196c6a2ea 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVirtualTenantDiscriminatorColumn2_3.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkOrmVirtualTenantDiscriminatorColumn2_3.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2013 Oracle. All rights reserved. + * Copyright (c) 2011, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -9,6 +9,7 @@ ******************************************************************************/ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jpt.common.core.utility.TextRange; import org.eclipse.jpt.jpa.core.internal.context.orm.AbstractOrmVirtualNamedDiscriminatorColumn; import org.eclipse.jpt.jpa.eclipselink.core.context.EclipseLinkTenantDiscriminatorColumn2_3; @@ -42,8 +43,8 @@ public class EclipseLinkOrmVirtualTenantDiscriminatorColumn2_3 // ********** synchronize/update ********** @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.setSpecifiedTableName(this.buildSpecifiedTableName()); this.setDefaultTableName(this.buildDefaultTableName()); diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentAttribute.java index 0d377fcbb0..19662314b4 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentAttribute.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentAttribute.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012, 2013 Oracle. All rights reserved. + * Copyright (c) 2012, 2015 Oracle. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0, which accompanies this distribution * and is available at http://www.eclipse.org/legal/epl-v10.html. @@ -10,6 +10,7 @@ package org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm; import java.util.Collection; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.JavaModelException; @@ -59,8 +60,8 @@ public class EclipseLinkVirtualJavaPersistentAttribute } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); this.updateJpaContainerDefinition(); } diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentType.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentType.java index a8f42bf531..248c129130 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentType.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/internal/context/orm/EclipseLinkVirtualJavaPersistentType.java @@ -13,6 +13,7 @@ import java.util.Collection; import java.util.List; import java.util.Map; import org.eclipse.core.resources.IFile; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jpt.common.core.resource.java.JavaResourceAttribute; @@ -70,8 +71,8 @@ public class EclipseLinkVirtualJavaPersistentType } @Override - public void update() { - super.update(); + public void update(IProgressMonitor monitor) { + super.update(monitor); } public void addRootStructureNodesTo(JpaFile jpaFile, Collection<JpaStructureNode> rootStructureNodes) { |