diff options
author | nhauge | 2010-12-28 16:07:45 +0000 |
---|---|---|
committer | nhauge | 2010-12-28 16:07:45 +0000 |
commit | 11e0aec96cc69756616f55e0d578bd433a38d703 (patch) | |
tree | 25b1ec060c9aff06e59ec0f941fd50e52115c545 /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2 | |
parent | ca7b37945ef72c9e50de24ad5c394127d3ebea54 (diff) | |
download | webtools.dali-11e0aec96cc69756616f55e0d578bd433a38d703.tar.gz webtools.dali-11e0aec96cc69756616f55e0d578bd433a38d703.tar.xz webtools.dali-11e0aec96cc69756616f55e0d578bd433a38d703.zip |
This commit was manufactured by cvs2svn to create tag 'v201012280000'.v201012280000
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2')
133 files changed, 0 insertions, 6032 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/JpaFactory2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/JpaFactory2_0.java deleted file mode 100644 index a331d9ec4f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/JpaFactory2_0.java +++ /dev/null @@ -1,87 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2; - -import org.eclipse.jpt.core.JpaDataSource; -import org.eclipse.jpt.core.JpaFactory; -import org.eclipse.jpt.core.context.Orderable; -import org.eclipse.jpt.core.context.Table; -import org.eclipse.jpt.core.context.java.JavaAssociationOverrideContainer; -import org.eclipse.jpt.core.context.java.JavaAttributeMapping; -import org.eclipse.jpt.core.context.java.JavaBaseColumn; -import org.eclipse.jpt.core.context.java.JavaColumn; -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.context.java.JavaNamedColumn; -import org.eclipse.jpt.core.context.java.JavaPersistentAttribute; -import org.eclipse.jpt.core.jpa2.context.MetamodelSourceType; -import org.eclipse.jpt.core.jpa2.context.java.JavaCacheable2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaCacheableHolder2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaCollectionTable2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaDerivedIdentity2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaElementCollectionMapping2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaEmbeddedMapping2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaOrderColumn2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaOrderable2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaOrphanRemovable2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaOrphanRemovalHolder2_0; -import org.eclipse.jpt.core.jpa2.context.java.JavaSingleRelationshipMapping2_0; -import org.eclipse.jpt.db.DatabaseIdentifierAdapter; - -/** - * JPA 2.0 factory - *<p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @see org.eclipse.jpt.core.internal.jpa2.GenericJpaFactory2_0 - * - * @version 2.3 - * @since 2.3 - */ -public interface JpaFactory2_0 - extends JpaFactory -{ - - // ********** Core Model ********** - - /** - * Return an identifier adapter that can be used to convert database - * identifiers to names and vice versa, respecting the <code>delimited-identifiers</code> - * in <code>persistence.xml</code>. - */ - DatabaseIdentifierAdapter buildDatabaseIdentifierAdapter(JpaDataSource dataSource); - - MetamodelSourceType.Synchronizer buildMetamodelSynchronizer(MetamodelSourceType sourceType); - - - // ********** Java Context Model ********** - - //overloaded because the 2.0 JPA spec supports association overrides on an embedded mapping while the 1.0 spec did not - JavaAssociationOverrideContainer buildJavaAssociationOverrideContainer(JavaEmbeddedMapping2_0 parent, JavaAssociationOverrideContainer.Owner owner); - - JavaDerivedIdentity2_0 buildJavaDerivedIdentity(JavaSingleRelationshipMapping2_0 parent); - - JavaElementCollectionMapping2_0 buildJavaElementCollectionMapping2_0(JavaPersistentAttribute parent); - - JavaCacheable2_0 buildJavaCacheable(JavaCacheableHolder2_0 parent); - - JavaOrphanRemovable2_0 buildJavaOrphanRemoval(JavaOrphanRemovalHolder2_0 parent); - - JavaOrderColumn2_0 buildJavaOrderColumn(JavaOrderable2_0 parent, JavaNamedColumn.Owner owner); - - JavaCollectionTable2_0 buildJavaCollectionTable(JavaElementCollectionMapping2_0 parent, Table.Owner owner); - - JavaColumn buildJavaMapKeyColumn(JavaJpaContextNode parent, JavaBaseColumn.Owner owner); - - JavaOrderable2_0 buildJavaOrderable(JavaAttributeMapping parent, Orderable.Owner owner); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/JpaProject2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/JpaProject2_0.java deleted file mode 100644 index 8137241489..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/JpaProject2_0.java +++ /dev/null @@ -1,102 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2; - -import org.eclipse.core.resources.IFile; -import org.eclipse.jdt.core.IPackageFragmentRoot; -import org.eclipse.jpt.core.JpaProject; -import org.eclipse.jpt.core.jpa2.resource.java.JavaResourcePersistentType2_0; - -/** - * JPA 2.0 project. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JpaProject2_0 - extends JpaProject, MetamodelSynchronizer -{ - - // ********** Canonical Metamodel ********** - - /** - * ID string used when metamodelSourceFolderName property is changed. - * @see #addPropertyChangeListener(String, org.eclipse.jpt.utility.model.listener.PropertyChangeListener) - */ - String METAMODEL_SOURCE_FOLDER_NAME_PROPERTY = "metamodelSourceFolderName"; //$NON-NLS-1$ - - /** - * Return the name of the folder that holds the generated Canonical - * Metamodel. - */ - String getMetamodelSourceFolderName(); - - /** - * Set the name of the folder that holds the generated Canonical - * Metamodel. - */ - void setMetamodelSourceFolderName(String metamodelSourceFolderName); - - /** - * Return the package fragment root that holds the generated Canonical - * Metamodel. - */ - IPackageFragmentRoot getMetamodelPackageFragmentRoot(); - - /** - * Return a list of the names of the Java source folders. (These - * can be used to hold the generated Canonical Metamodel.) - */ - Iterable<String> getJavaSourceFolderNames(); - - /** - * Return the JPA project's generated metamodel Java resource persistent - * top-level types. - * @see org.eclipse.jpt.core.internal.resource.java.source.SourcePersistentType#isGeneratedMetamodel(IPackageFragmentRoot) - */ - Iterable<JavaResourcePersistentType2_0> getGeneratedMetamodelTopLevelTypes(); - - /** - * Return the top-level generated metamodel Java resource persistent type - * in the specified file. Return null if any of the following is true:<ul> - * <li>the file is not a Java source file - * <li>the top-level Java class is not annotated with the appropriate - * <code>javax.annotation.Generated</code> annotation - * <li>neither the top-level Java class nor any of its nested classes - * is annotated with the appropriate - * <code>javax.persistence.metamodel.StaticMetamodel</code> annotation - * <ul> - */ - JavaResourcePersistentType2_0 getGeneratedMetamodelTopLevelType(IFile file); - - - // ********** construction config ********** - - /** - * The settings used to construct a JPA 2.0 project. - */ - interface Config extends JpaProject.Config { - - /** - * Return the name of the folder that holds the generated Canonical - * Metamodel. Return null if the Canonical Metamodel is not to be - * generated. - */ - String getMetamodelSourceFolderName(); - - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/MappingKeys2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/MappingKeys2_0.java deleted file mode 100644 index 2a8a27d43c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/MappingKeys2_0.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -@SuppressWarnings("nls") -public interface MappingKeys2_0 { - - String ELEMENT_COLLECTION_ATTRIBUTE_MAPPING_KEY = "elementCollection"; -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/MetamodelSynchronizer.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/MetamodelSynchronizer.java deleted file mode 100644 index d3a1290ad1..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/MetamodelSynchronizer.java +++ /dev/null @@ -1,93 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2; - -import java.io.Serializable; - -/** - * JPA 2.0 Canonical Metamodel synchronizer. - * <p> - * Notes: - * <ul><li> - * When a JPA project is first created (e.g. when the user adds the JPA - * Facet to a Faceted project or when a workspace containing a JPA project is - * opened), if it is configured to generate the - * Canonical Metamodel (i.e. its metamodel source folder is non-null), it will - * first discover what metamodel classes are already present in the metamodel - * source folder. Any class appropriately annotated with - * <code>javax.persistence.metamodel.StaticMetamodel</code> - * and <code>javax.annotation.Generated</code> - * will be added to the Canonical Metamodel - * (see {@link org.eclipse.jpt.core.internal.resource.java.source.SourcePersistentType#isGeneratedMetamodel()}). - * Once the JPA project's context model is constructed, a new Canonical - * Metamodel is generated and merged with the classes already present in the - * metamodel source folder. - * </li><li> - * When a JPA project's metamodel source folder setting is cleared, the Canonical - * Metamodel is cleared from the context model, but the generated source files are - * left in place. - * </li><li> - * When a JPA project's metamodel source folder is set to a non-null value, - * like when a JPA project is first created, the resulting Canonical Metamodel - * will be merged with whatever is already present in the folder. - * </li></ul> - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MetamodelSynchronizer { - - void initializeMetamodel(); - - void synchronizeMetamodel(); - - void disposeMetamodel(); - - - /** - * Singleton implemetation of the metamodel synchronizer interface that - * does nothing. (Not sure we need this....) - */ - final class Null implements MetamodelSynchronizer, Serializable { - public static final MetamodelSynchronizer INSTANCE = new Null(); - public static MetamodelSynchronizer instance() { - return INSTANCE; - } - // ensure single instance - private Null() { - super(); - } - public void initializeMetamodel() { - // do nothing - } - public void synchronizeMetamodel() { - // do nothing - } - public void disposeMetamodel() { - // do nothing - } - @Override - public String toString() { - return "MetamodelSynchronizer.Null"; //$NON-NLS-1$ - } - private static final long serialVersionUID = 1L; - private Object readResolve() { - // replace this object with the singleton - return INSTANCE; - } - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AssociationOverrideRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AssociationOverrideRelationshipReference2_0.java deleted file mode 100644 index 46cdce349b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AssociationOverrideRelationshipReference2_0.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.AssociationOverride; -import org.eclipse.jpt.core.context.AssociationOverrideRelationshipReference; -import org.eclipse.jpt.core.context.JoinColumnJoiningStrategy; -import org.eclipse.jpt.core.context.JoinTableEnabledRelationshipReference; -import org.eclipse.jpt.core.context.RelationshipReference; - -/** - * An <code>AssociationOverrideRelationshipReference2_0</code> is a type of - * {@link RelationshipReference} that may utilize a - * {@link JoinColumnJoiningStrategy} or - * {@link JoinTableJoiningStrategy} - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @see AssociationOverride - * - * @version 2.3 - * @since 2.3 - */ -public interface AssociationOverrideRelationshipReference2_0 - extends - AssociationOverrideRelationshipReference, - JoinTableEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AttributeMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AttributeMapping2_0.java deleted file mode 100644 index 08773fb486..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AttributeMapping2_0.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.AttributeMapping; -import org.eclipse.jpt.utility.internal.iterables.ArrayIterable; - -/** - * JPA 2.0 attribute mapping - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface AttributeMapping2_0 - extends AttributeMapping -{ - /** - * Return the Canonical Metamodel field corresponding to the mapping. - * Return null if the mapping is not to be part of the Canonical Metamodel. - */ - MetamodelField getMetamodelField(); - - /** - * Return the name of the mapping's type as used in the Canonical Metamodel. - */ - String getMetamodelTypeName(); - - @SuppressWarnings("nls") - Iterable<String> STANDARD_METAMODEL_FIELD_MODIFIERS = - new ArrayIterable<String>(new String[] { "public", "static", "volatile" }); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AttributeOverride2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AttributeOverride2_0.java deleted file mode 100644 index 036cd3a0d8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/AttributeOverride2_0.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.AttributeOverride; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface AttributeOverride2_0 - extends AttributeOverride -{ - /** - * Property string associated with changes to the mapped by relationship - */ - final String MAPPED_BY_RELATIONSHIP_PROPERTY = "mappedByRelationship"; - - /** - * Return whether this attribute override is mapped by a relationship - * (i.e. a relationship maps this attribute override, possibly in an entity overriding - * an id or an embedded id overriding any attribute) - * N.B. - This might be several relationships (erroneously, of course) - */ - boolean isMappedByRelationship(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Cacheable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Cacheable2_0.java deleted file mode 100644 index 436c918bf9..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Cacheable2_0.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface Cacheable2_0 - extends JpaContextNode -{ - boolean isCacheable(); - - boolean isDefaultCacheable(); - String DEFAULT_CACHEABLE_PROPERTY = "defaultCacheable"; //$NON-NLS-1$ - - Boolean getSpecifiedCacheable(); - void setSpecifiedCacheable(Boolean newSpecifiedCacheable); - String SPECIFIED_CACHEABLE_PROPERTY = "specifiedCacheable"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CacheableHolder2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CacheableHolder2_0.java deleted file mode 100644 index 2b14b7ff7a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CacheableHolder2_0.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.JpaNode; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface CacheableHolder2_0 - extends JpaNode -{ - Cacheable2_0 getCacheable(); - - boolean calculateDefaultCacheable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Cascade2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Cascade2_0.java deleted file mode 100644 index 8339d6cb05..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Cascade2_0.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.Cascade; - -/** - * 1:m, m:m, element collection are all collection mappings. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface Cascade2_0 - extends Cascade -{ - boolean isDetach(); - void setDetach(boolean value); - String DETACH_PROPERTY = "detach"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CollectionMapping2_0.java deleted file mode 100644 index 95f399545d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CollectionMapping2_0.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.AttributeOverrideContainer; -import org.eclipse.jpt.core.context.CollectionMapping; -import org.eclipse.jpt.core.context.Column; -import org.eclipse.jpt.core.context.Embeddable; -import org.eclipse.jpt.core.context.Entity; - -/** - * 1:m, m:m, element collection are all collection mappings. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface CollectionMapping2_0 - extends CollectionMapping -{ - - // **************** map key class ************************************** - - String getMapKeyClass(); - - String getSpecifiedMapKeyClass(); - void setSpecifiedMapKeyClass(String value); - String SPECIFIED_MAP_KEY_CLASS_PROPERTY = "specifiedMapKeyClass"; //$NON-NLS-1$ - - String getDefaultMapKeyClass(); - String DEFAULT_MAP_KEY_CLASS_PROPERTY = "defaultMapKeyClass"; //$NON-NLS-1$ - - /** - * Return the char to be used for browsing or creating the map key class IType. - * @see org.eclipse.jdt.core.IType#getFullyQualifiedName(char) - */ - char getMapKeyClassEnclosingTypeSeparator(); - - /** - * If the attribute type is not a map or if the map key class is a basic type this will return null. - */ - Embeddable getResolvedMapKeyEmbeddable(); - String RESOLVED_MAP_KEY_EMBEDDABLE_PROPERTY = "resolvedMapKeyEmbeddable"; //$NON-NLS-1$ - - /** - * If the attribute type is not a map or if the map key class is a basic type this will return null. - */ - Entity getResolvedMapKeyEntity(); - String RESOLVED_MAP_KEY_ENTITY_PROPERTY = "resolvedMapKeyEntity"; //$NON-NLS-1$ - - - // **************** key column ************************************** - - /** - * Return the map key column for this collection mapping. - */ - Column getMapKeyColumn(); - - AttributeOverrideContainer getMapKeyAttributeOverrideContainer(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CollectionTable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CollectionTable2_0.java deleted file mode 100644 index 5d92938b06..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/CollectionTable2_0.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.ReferenceTable; - -/** - * Used by ElementCollection mappings. - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface CollectionTable2_0 - extends ReferenceTable -{ - ElementCollectionMapping2_0 getParent(); - - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/DerivedIdentity2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/DerivedIdentity2_0.java deleted file mode 100644 index 4304074d60..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/DerivedIdentity2_0.java +++ /dev/null @@ -1,94 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface DerivedIdentity2_0 - extends JpaContextNode -{ - SingleRelationshipMapping2_0 getMapping(); - - /** - * String associated with changes to the predominant strategy property - */ - final static String PREDOMINANT_DERIVED_IDENTITY_STRATEGY_PROPERTY = - "predominantDerivedIdentityStrategy"; //$NON-NLS-1$ - - /** - * Return the predominant joining strategy, this should not be null - */ - DerivedIdentityStrategy2_0 getPredominantDerivedIdentityStrategy(); - - /** - * Return whether there is no derived identity strategy - */ - boolean usesNullDerivedIdentityStrategy(); - - /** - * Sets it so that there is no derived identity strategy. This will unset all other strategies. - */ - void setNullDerivedIdentityStrategy(); - - /** - * Return the aggregate (never null) id strategy - */ - IdDerivedIdentityStrategy2_0 getIdDerivedIdentityStrategy(); - - /** - * Return whether id is the strategy currently used by this object - */ - boolean usesIdDerivedIdentityStrategy(); - - /** - * Sets the id derived identity strategy. This will unset all other strategies. - */ - void setIdDerivedIdentityStrategy(); - - /** - * Unsets the id derived identity strategy. - * This will not set any other strategy, so whichever other strategy is present (or the null strategy) - * will apply at that point. - */ - void unsetIdDerivedIdentityStrategy(); - - /** - * Return the aggregate (never null) maps id derived identity strategy - */ - MapsIdDerivedIdentityStrategy2_0 getMapsIdDerivedIdentityStrategy(); - - /** - * Return whether maps id is the strategy currently used by this object - */ - boolean usesMapsIdDerivedIdentityStrategy(); - - /** - * Sets the maps id derived identity strategy. This will unset all other strategies. - */ - void setMapsIdDerivedIdentityStrategy(); - - /** - * Unsets the maps id derived identity strategy. - * This will not set any other strategy, so whichever other strategy is present (or the null strategy) - * will apply at that point. - */ - void unsetMapsIdDerivedIdentityStrategy(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/DerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/DerivedIdentityStrategy2_0.java deleted file mode 100644 index 3253754190..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/DerivedIdentityStrategy2_0.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface DerivedIdentityStrategy2_0 - extends JpaContextNode -{ - /** - * Return the mapping that employs this strategy - */ - SingleRelationshipMapping2_0 getMapping(); - - /** - * Return the derived identity container - */ - DerivedIdentity2_0 getDerivedIdentity(); - - /** - * Return whether the strategy is specified on the resource model - */ - boolean isSpecified(); - - /** - * Add this strategy to the relationship reference - */ - void addStrategy(); - - /** - * Remove this strategy from the relationship reference - */ - void removeStrategy(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ElementCollectionMapping2_0.java deleted file mode 100644 index 65da4658d2..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ElementCollectionMapping2_0.java +++ /dev/null @@ -1,86 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.AssociationOverrideContainer; -import org.eclipse.jpt.core.context.AttributeOverrideContainer; -import org.eclipse.jpt.core.context.Column; -import org.eclipse.jpt.core.context.ConvertibleMapping; -import org.eclipse.jpt.core.context.Embeddable; -import org.eclipse.jpt.core.context.Entity; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface ElementCollectionMapping2_0 - extends AttributeMapping2_0, CollectionMapping2_0, ConvertibleMapping -{ - /** - * Return the entity that owns the mapping. This is - * just a convenience method that calls getTypeMapping() and returns - * null if it is not an Entity - */ - Entity getEntity(); - - // **************** target class ************************************** - - String getTargetClass(); - - String getSpecifiedTargetClass(); - void setSpecifiedTargetClass(String value); - String SPECIFIED_TARGET_CLASS_PROPERTY = "specifiedTargetClass"; //$NON-NLS-1$ - - String getDefaultTargetClass(); - String DEFAULT_TARGET_CLASS_PROPERTY = "defaultTargetClass"; //$NON-NLS-1$ - - /** - * If the target class is a basic type this will return null. - */ - Embeddable getResolvedTargetEmbeddable(); - String RESOLVED_TARGET_EMBEDDABLE_PROPERTY = "resolvedTargetEmbeddable"; //$NON-NLS-1$ - - /** - * Return the char to be used for browsing or creating the target class IType. - * @see org.eclipse.jdt.core.IType#getFullyQualifiedName(char) - */ - char getTargetClassEnclosingTypeSeparator(); - - - // **************** collection table ************************************** - - /** - * Return the collection table for this element collection mapping. - * This will not be null. - */ - CollectionTable2_0 getCollectionTable(); - - - // **************** value column ************************************** - - /** - * Return the value column for this element collection mapping. - */ - Column getValueColumn(); - - - // ******************* overrides ************************************** - AttributeOverrideContainer getValueAttributeOverrideContainer(); - - AssociationOverrideContainer getValueAssociationOverrideContainer(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/EmbeddedIdMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/EmbeddedIdMapping2_0.java deleted file mode 100644 index 92034d8999..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/EmbeddedIdMapping2_0.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.EmbeddedIdMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface EmbeddedIdMapping2_0 - extends EmbeddedIdMapping -{ - /** - * Property string associated with changes to the mapped by relationship - */ - final String MAPPED_BY_RELATIONSHIP_PROPERTY = "mappedByRelationship"; - - /** - * Return whether this id is mapped by a relationship (i.e. a relationship maps this embedded id) - * N.B. - This might be several relationships (erroneously, of course) - */ - boolean isMappedByRelationship(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/EmbeddedMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/EmbeddedMapping2_0.java deleted file mode 100644 index 1334d829fd..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/EmbeddedMapping2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.AssociationOverrideContainer; -import org.eclipse.jpt.core.context.EmbeddedMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ - public interface EmbeddedMapping2_0 - extends EmbeddedMapping -{ - AssociationOverrideContainer getAssociationOverrideContainer(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/IdDerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/IdDerivedIdentityStrategy2_0.java deleted file mode 100644 index b173b32fc5..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/IdDerivedIdentityStrategy2_0.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface IdDerivedIdentityStrategy2_0 - extends DerivedIdentityStrategy2_0 -{ - /** - * String associated with changes to the value property of this object - */ - public static final String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - - /** - * Return whether this object uses a derived id - */ - boolean getValue(); - - /** - * Set whether this object uses a derived id - */ - void setValue(boolean newValue); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/IdMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/IdMapping2_0.java deleted file mode 100644 index 0cf39d99e7..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/IdMapping2_0.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.IdMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface IdMapping2_0 - extends IdMapping -{ - /** - * Property string associated with changes to the mapped by relationship - */ - final String MAPPED_BY_RELATIONSHIP_PROPERTY = "mappedByRelationship"; - - /** - * Return whether this id is mapped by a relationship (i.e. a relationship maps this id) - * N.B. - This might be several relationships (erroneously, of course) - */ - boolean isMappedByRelationship(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/JpaRootContextNode2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/JpaRootContextNode2_0.java deleted file mode 100644 index 1125ca1ee7..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/JpaRootContextNode2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JpaRootContextNode; -import org.eclipse.jpt.core.jpa2.MetamodelSynchronizer; - -/** - * Root of the Dali JPA 2.0 context model. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JpaRootContextNode2_0 - extends JpaRootContextNode, MetamodelSynchronizer -{ - // nothing yet... -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/LockModeType2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/LockModeType2_0.java deleted file mode 100644 index 63a94dbaa3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/LockModeType2_0.java +++ /dev/null @@ -1,120 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context; - -/** - * LockMode Type - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public enum LockModeType2_0 { - - READ( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.READ, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.READ - ), - WRITE( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.WRITE, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.WRITE - ), - OPTIMISTIC( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.OPTIMISTIC, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.OPTIMISTIC - ), - OPTIMISTIC_FORCE_INCREMENT( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.OPTIMISTIC_FORCE_INCREMENT, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.OPTIMISTIC_FORCE_INCREMENT - ), - PESSIMISTIC_READ( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.PESSIMISTIC_READ, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.PESSIMISTIC_READ - ), - PESSIMISTIC_WRITE( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.PESSIMISTIC_WRITE, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.PESSIMISTIC_WRITE - ), - PESSIMISTIC_FORCE_INCREMENT( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.PESSIMISTIC_FORCE_INCREMENT, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.PESSIMISTIC_FORCE_INCREMENT - ), - NONE( - org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0.NONE, - org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0.NONE - ); - - - private org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0 javaLockModeType; - private org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0 ormLockModeType; - - LockModeType2_0(org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0 javaLockModeType, org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0 ormLockModeType) { - if (javaLockModeType == null) { - throw new NullPointerException(); - } - if (ormLockModeType == null) { - throw new NullPointerException(); - } - this.javaLockModeType = javaLockModeType; - this.ormLockModeType = ormLockModeType; - } - - public org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0 getJavaLockModeType() { - return this.javaLockModeType; - } - - public org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0 getOrmLockModeType() { - return this.ormLockModeType; - } - - - // ********** static methods ********** - - public static LockModeType2_0 fromJavaResourceModel(org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0 javaLockModeType) { - return (javaLockModeType == null) ? null : fromJavaResourceModel_(javaLockModeType); - } - - private static LockModeType2_0 fromJavaResourceModel_(org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0 javaLockModeType) { - for (LockModeType2_0 lockModeType : LockModeType2_0.values()) { - if (lockModeType.getJavaLockModeType() == javaLockModeType) { - return lockModeType; - } - } - return null; - } - - public static org.eclipse.jpt.core.jpa2.resource.java.LockModeType_2_0 toJavaResourceModel(LockModeType2_0 lockModeType) { - return (lockModeType == null) ? null : lockModeType.getJavaLockModeType(); - } - - - public static LockModeType2_0 fromOrmResourceModel(org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0 ormLockModeType) { - return (ormLockModeType == null) ? null : fromOrmResourceModel_(ormLockModeType); - } - - private static LockModeType2_0 fromOrmResourceModel_(org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0 ormLockModeType) { - for (LockModeType2_0 lockModeType : LockModeType2_0.values()) { - if (lockModeType.getOrmLockModeType() == ormLockModeType) { - return lockModeType; - } - } - return null; - } - - public static org.eclipse.jpt.core.resource.orm.v2_0.LockModeType_2_0 toOrmResourceModel(LockModeType2_0 lockModeType) { - return (lockModeType == null) ? null : lockModeType.getOrmLockModeType(); - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToManyMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToManyMapping2_0.java deleted file mode 100644 index 6dc15a7399..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToManyMapping2_0.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.ManyToManyMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface ManyToManyMapping2_0 - extends ManyToManyMapping, CollectionMapping2_0 -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToOneMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToOneMapping2_0.java deleted file mode 100644 index 35ae4f9013..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToOneMapping2_0.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.ManyToOneMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface ManyToOneMapping2_0 - extends ManyToOneMapping, SingleRelationshipMapping2_0 -{ - ManyToOneRelationshipReference2_0 getRelationshipReference(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToOneRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToOneRelationshipReference2_0.java deleted file mode 100644 index 47ef365f4b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/ManyToOneRelationshipReference2_0.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JoinTableEnabledRelationshipReference; -import org.eclipse.jpt.core.context.ManyToOneRelationshipReference; - - -/** - * Represents the {@link RelationshipReference} of a 2.0 {@link ManyToOneMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface ManyToOneRelationshipReference2_0 - extends ManyToOneRelationshipReference, JoinTableEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MappingFilePersistenceUnitDefaults2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MappingFilePersistenceUnitDefaults2_0.java deleted file mode 100644 index 9f6beea9a1..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MappingFilePersistenceUnitDefaults2_0.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.MappingFilePersistenceUnitDefaults; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MappingFilePersistenceUnitDefaults2_0 - extends MappingFilePersistenceUnitDefaults -{ - boolean isDelimitedIdentifiers(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MapsIdDerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MapsIdDerivedIdentityStrategy2_0.java deleted file mode 100644 index f81c12f5d3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MapsIdDerivedIdentityStrategy2_0.java +++ /dev/null @@ -1,74 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.AttributeMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapsIdDerivedIdentityStrategy2_0 - extends DerivedIdentityStrategy2_0 -{ - /** - * String associated with changes to the specified value property of this object - */ - public static final String SPECIFIED_VALUE_PROPERTY = "specified-value"; //$NON-NLS-1$ - - /** - * Return the specified value (the id which has been specified in code) - * Will return null if no value is specified - */ - String getSpecifiedValue(); - - /** - * Set the specified value (the id to specify in code) - */ - void setSpecifiedValue(String newValue); - - /** - * Return whether a default value is ever used (in some cases, there can be no default) - */ - boolean usesDefaultValue(); - - /** - * String associated with changes to the default value property of this object - */ - public static final String DEFAULT_VALUE_PROPERTY = "default-value"; //$NON-NLS-1$ - - /** - * Return the default value (the id which would be used in the absence of a specified value) - */ - String getDefaultValue(); - - /** - * Return the specfied value, or in absence of that, the default value - */ - String getValue(); - - /** - * Return a sorted iterator of possible value choices - */ - Iterable<String> getSortedValueChoices(); - - /** - * Return a resolved attribute mapping, which may be a mapping on the entity, or a mapping - * within an embeddable mapping on the entity - */ - AttributeMapping getResolvedAttributeMappingValue(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MetamodelField.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MetamodelField.java deleted file mode 100644 index de3728b090..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MetamodelField.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -/** - * JPA 2.0 Canonical Metamodel field corresponding to a persistent attribute. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MetamodelField { - - Iterable<String> getModifiers(); - - String getTypeName(); - - Iterable<String> getTypeArgumentNames(); - - String getName(); - - String DEFAULT_TYPE_NAME = java.lang.Object.class.getName(); // ??? - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MetamodelSourceType.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MetamodelSourceType.java deleted file mode 100644 index f94469bec2..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/MetamodelSourceType.java +++ /dev/null @@ -1,116 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import java.util.Collection; -import java.util.Comparator; -import java.util.ListIterator; -import java.util.Map; - -import org.eclipse.core.resources.IFile; -import org.eclipse.jpt.core.JpaProject; -import org.eclipse.jpt.core.context.PersistentAttribute; -import org.eclipse.jpt.core.context.PersistentType; -import org.eclipse.jpt.core.utility.BodySourceWriter; - -import com.ibm.icu.text.Collator; - -/** - * JPA 2.0 metamodel source type. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MetamodelSourceType { - - /** - * Return the source type's name. - */ - String getName(); - - /** - * Return whether the source type is "managed" (i.e. persistent). - */ - boolean isManaged(); - - /** - * Return the source type's super type. - */ - PersistentType getSuperPersistentType(); - - /** - * Return the source type's attributes. - */ - <T extends PersistentAttribute> ListIterator<T> attributes(); - - /** - * Return the file generated as a result of the metamodel synchronization. - */ - IFile getMetamodelFile(); - - /** - * Return the source type's JPA project. - */ - JpaProject getJpaProject(); - - /** - * Synchronize the source type's metamodel, using the specified member type - * tree. - */ - void synchronizeMetamodel(Map<String, Collection<MetamodelSourceType>> memberTypeTree); - - /** - * Print the body of the source type's metamodel class on the specified - * writer, using the specified member type tree. - */ - void printBodySourceOn(BodySourceWriter pw, Map<String, Collection<MetamodelSourceType>> memberTypeTree); - - - /** - * {@link Comparator} that can be used to compare source types. - */ - Comparator<MetamodelSourceType> COMPARATOR = - new Comparator<MetamodelSourceType>() { - public int compare(MetamodelSourceType type1, MetamodelSourceType type2) { - return Collator.getInstance().compare(type1.getName(), type2.getName()); - } - }; - - - /** - * This interface is used by the source type to synchronize the metamodel - * as required by changes to the context model. - */ - interface Synchronizer { - /** - * Return the file generated as a result of the metamodel synchronization. - */ - IFile getFile(); - - /** - * Synchronize the metamodel with the current state of the source - * type, using the specified member type tree. - */ - void synchronize(Map<String, Collection<MetamodelSourceType>> memberTypeTree); - - /** - * Print the body of the metamodel class on the specified writer, - * using the specified member type tree. - */ - void printBodySourceOn(BodySourceWriter pw, Map<String, Collection<MetamodelSourceType>> memberTypeTree); - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/NamedQuery2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/NamedQuery2_0.java deleted file mode 100644 index dd4eabcafa..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/NamedQuery2_0.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.NamedQuery; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface NamedQuery2_0 - extends NamedQuery -{ - /** - * Return the specified lockMode if present, otherwise return the default - * lockMode. - */ - LockModeType2_0 getLockMode(); - LockModeType2_0 getSpecifiedLockMode(); - void setSpecifiedLockMode(LockModeType2_0 lockMode); - String SPECIFIED_LOCK_MODE_PROPERTY = "specifiedLockMode"; //$NON-NLS-1$ - LockModeType2_0 getDefaultLockMode(); - String DEFAULT_LOCK_MODE_PROPERTY = "defaultLockMode"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToManyMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToManyMapping2_0.java deleted file mode 100644 index b63b1850d0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToManyMapping2_0.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.OneToManyMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OneToManyMapping2_0 - extends OneToManyMapping, CollectionMapping2_0 -{ - OneToManyRelationshipReference2_0 getRelationshipReference(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToManyRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToManyRelationshipReference2_0.java deleted file mode 100644 index 9661fdbce3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToManyRelationshipReference2_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JoinColumnEnabledRelationshipReference; -import org.eclipse.jpt.core.context.OneToManyRelationshipReference; - - -/** - * Represents the {@link RelationshipReference} of a {@link OneToManyMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OneToManyRelationshipReference2_0 - extends OneToManyRelationshipReference, - JoinColumnEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToOneMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToOneMapping2_0.java deleted file mode 100644 index 0d010cf4e6..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToOneMapping2_0.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.OneToOneMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OneToOneMapping2_0 - extends OneToOneMapping, SingleRelationshipMapping2_0 -{ - OneToOneRelationshipReference2_0 getRelationshipReference(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToOneRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToOneRelationshipReference2_0.java deleted file mode 100644 index 55d6225373..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OneToOneRelationshipReference2_0.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JoinTableEnabledRelationshipReference; -import org.eclipse.jpt.core.context.OneToOneRelationshipReference; - -/** - * Represents the {@link RelationshipReference} of a 2.0 {@link OneToOneMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OneToOneRelationshipReference2_0 - extends OneToOneRelationshipReference, JoinTableEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrderColumn2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrderColumn2_0.java deleted file mode 100644 index 5e7dccd437..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrderColumn2_0.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.NamedColumn; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrderColumn2_0 - extends NamedColumn -{ - - boolean isNullable(); - - boolean isDefaultNullable(); - String DEFAULT_NULLABLE_PROPERTY = "defaultNullable"; //$NON-NLS-1$ - boolean DEFAULT_NULLABLE = true; - Boolean getSpecifiedNullable(); - void setSpecifiedNullable(Boolean newSpecifiedNullable); - String SPECIFIED_NULLABLE_PROPERTY = "specifiedNullable"; //$NON-NLS-1$ - - - boolean isInsertable(); - - boolean isDefaultInsertable(); - String DEFAULT_INSERTABLE_PROPERTY = "defaultInsertable"; //$NON-NLS-1$ - boolean DEFAULT_INSERTABLE = true; - Boolean getSpecifiedInsertable(); - void setSpecifiedInsertable(Boolean newSpecifiedInsertable); - String SPECIFIED_INSERTABLE_PROPERTY = "specifiedInsertable"; //$NON-NLS-1$ - - - boolean isUpdatable(); - - boolean isDefaultUpdatable(); - String DEFAULT_UPDATABLE_PROPERTY = "defaultUpdatable"; //$NON-NLS-1$ - boolean DEFAULT_UPDATABLE = true; - Boolean getSpecifiedUpdatable(); - void setSpecifiedUpdatable(Boolean newSpecifiedUpdatable); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Orderable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Orderable2_0.java deleted file mode 100644 index a979b3979f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/Orderable2_0.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.Orderable; -import org.eclipse.jpt.db.Table; - -/** - * Multi-valued (1:m, m:m) relationship mappings support ordering. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface Orderable2_0 - extends Orderable -{ - - boolean isOrderColumnOrdering(); - void setOrderColumnOrdering(boolean value); - String ORDER_COLUMN_ORDERING_PROPERTY = "orderColumnOrdering"; //$NON-NLS-1$ - - OrderColumn2_0 getOrderColumn(); - - String getDefaultTableName(); - - /** - * interface allowing Orderable2_0 to be used in multiple places - */ - interface Owner extends Orderable.Owner { - /** - * Return the name of the table which the column belongs to - */ - String getTableName(); - - Table getDbTable(String tableName); - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrphanRemovable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrphanRemovable2_0.java deleted file mode 100644 index 321fa06748..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrphanRemovable2_0.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.JpaContextNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrphanRemovable2_0 - extends JpaContextNode -{ - boolean isOrphanRemoval(); - - boolean isDefaultOrphanRemoval(); - String DEFAULT_ORPHAN_REMOVAL_PROPERTY = "defaultOrphanRemoval"; //$NON-NLS-1$ - boolean DEFAULT_ORPHAN_REMOVAL = false; - - Boolean getSpecifiedOrphanRemoval(); - void setSpecifiedOrphanRemoval(Boolean newSpecifiedOrphanRemoval); - String SPECIFIED_ORPHAN_REMOVAL_PROPERTY = "specifiedOrphanRemoval"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrphanRemovalHolder2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrphanRemovalHolder2_0.java deleted file mode 100644 index ac61f5ef33..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/OrphanRemovalHolder2_0.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.JpaNode; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrphanRemovalHolder2_0 - extends JpaNode -{ - OrphanRemovable2_0 getOrphanRemoval(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/PersistentAttribute2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/PersistentAttribute2_0.java deleted file mode 100644 index 88da656b16..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/PersistentAttribute2_0.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.PersistentAttribute; - -/** - * JPA 2.0 persistent attribute (field or property) - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface PersistentAttribute2_0 - extends PersistentAttribute -{ - /** - * Return the name of the container type to be used in the metamodel field - * declaration corresponding to the attribute's mapping. - */ - String getMetamodelContainerFieldTypeName(); - - /** - * Return the name of the container map key type to be used in the - * metamodel field declaration corresponding to the attribute's mapping. - * Return null if the attribute's type is not {@link java.util.Map}. - */ - String getMetamodelContainerFieldMapKeyTypeName(); - - /** - * Return the attribute's type name for the metamodel. - */ - String getMetamodelTypeName(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/PersistentType2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/PersistentType2_0.java deleted file mode 100644 index 6170a1bc7d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/PersistentType2_0.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.PersistentType; - -/** - * JPA 2.0 context persistent type. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface PersistentType2_0 - extends PersistentType, MetamodelSourceType -{ - /** - * Return the name of the persistent type's "declaring type". - * Return <code>null</code> if the persistent type is a top-level type. - * The declaring type may or may not be a persistent type. - */ - String getDeclaringTypeName(); - String DECLARING_TYPE_NAME_PROPERTY = "declaringTypeName"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/SequenceGenerator2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/SequenceGenerator2_0.java deleted file mode 100644 index 2052a247d0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/SequenceGenerator2_0.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.SequenceGenerator; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface SequenceGenerator2_0 - extends SequenceGenerator -{ - // ********** catalog ********** - - /** - * Return the specified catalog if present, otherwise return the default - * catalog. - */ - String getCatalog(); - String getSpecifiedCatalog(); - void setSpecifiedCatalog(String value); - String SPECIFIED_CATALOG_PROPERTY = "specifiedCatalog"; //$NON-NLS-1$ - String getDefaultCatalog(); - String DEFAULT_CATALOG_PROPERTY = "defaultCatalog"; //$NON-NLS-1$ - - - // ********** schema ********** - /** - * Return the specified schema if present, otherwise return the default - * schema. - */ - String getSchema(); - String getSpecifiedSchema(); - void setSpecifiedSchema(String value); - String SPECIFIED_SCHEMA_PROPERTY = "specifiedSchema"; //$NON-NLS-1$ - String getDefaultSchema(); - String DEFAULT_SCHEMA_PROPERTY = "defaultSchema"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/SingleRelationshipMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/SingleRelationshipMapping2_0.java deleted file mode 100644 index 2225d0fed1..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/SingleRelationshipMapping2_0.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context; - -import org.eclipse.jpt.core.context.SingleRelationshipMapping; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface SingleRelationshipMapping2_0 - extends SingleRelationshipMapping -{ - DerivedIdentity2_0 getDerivedIdentity(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaAssociationOverrideRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaAssociationOverrideRelationshipReference2_0.java deleted file mode 100644 index 31b4387b98..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaAssociationOverrideRelationshipReference2_0.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.JoinColumnJoiningStrategy; -import org.eclipse.jpt.core.context.RelationshipMapping; -import org.eclipse.jpt.core.context.RelationshipReference; -import org.eclipse.jpt.core.context.java.JavaAssociationOverride; -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.AssociationOverrideRelationshipReference2_0; -import org.eclipse.jpt.core.resource.java.AssociationOverrideAnnotation; - -/** - * An <code>AssociationOverrideRelationshipReference</code> is a type of - * {@link RelationshipReference} that may utilize a - * {@link JoinColumnJoiningStrategy} - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @see RelationshipMapping - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaAssociationOverrideRelationshipReference2_0 - extends AssociationOverrideRelationshipReference2_0, JavaJpaContextNode -{ - JavaAssociationOverride getAssociationOverride(); - - JavaJoinTableInAssociationOverrideJoiningStrategy2_0 getJoinTableJoiningStrategy(); - - void initialize(AssociationOverrideAnnotation associationOverride); - - void update(AssociationOverrideAnnotation associationOverride); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCacheable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCacheable2_0.java deleted file mode 100644 index a6883ac14d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCacheable2_0.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.Cacheable2_0; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentType; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaCacheable2_0 - extends JavaJpaContextNode, Cacheable2_0 - -{ - /** - * Initialize model without throwing any events - */ - void initialize(JavaResourcePersistentType jrpt); - - /** - * Update model, throwing events as necessary - */ - void update(JavaResourcePersistentType jrpt); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCacheableHolder2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCacheableHolder2_0.java deleted file mode 100644 index c72bfc55b5..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCacheableHolder2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.CacheableHolder2_0; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaCacheableHolder2_0 - extends CacheableHolder2_0, JavaJpaContextNode -{ - JavaCacheable2_0 getCacheable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCascade2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCascade2_0.java deleted file mode 100644 index b16cbe4cdb..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCascade2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaCascade; -import org.eclipse.jpt.core.jpa2.context.Cascade2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaCascade2_0 - extends JavaCascade, Cascade2_0 -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCollectionMapping2_0.java deleted file mode 100644 index 3241504a04..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCollectionMapping2_0.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaAttributeMapping; -import org.eclipse.jpt.core.context.java.JavaAttributeOverrideContainer; -import org.eclipse.jpt.core.jpa2.context.CollectionMapping2_0; - -/** - * 1:m, m:m, element collection are all collection mappings. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaCollectionMapping2_0 - extends CollectionMapping2_0, JavaAttributeMapping -{ - - JavaAttributeOverrideContainer getMapKeyAttributeOverrideContainer(); - - /** - * If the map key class is specified, this will return it fully qualified. If not - * specified, it returns the default map key class, which is always fully qualified - */ - String getFullyQualifiedMapKeyClass(); - String FULLY_QUALIFIED_MAP_KEY_CLASS_PROPERTY = "fullyQualifiedMapKeyClass"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCollectionTable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCollectionTable2_0.java deleted file mode 100644 index 7c6920b37a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaCollectionTable2_0.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.java.JavaJoinColumn; -import org.eclipse.jpt.core.context.java.JavaReferenceTable; -import org.eclipse.jpt.core.context.java.JavaUniqueConstraint; -import org.eclipse.jpt.core.jpa2.context.CollectionTable2_0; -import org.eclipse.jpt.core.jpa2.resource.java.CollectionTable2_0Annotation; - -/** - * Java collection table - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaCollectionTable2_0 - extends CollectionTable2_0, JavaReferenceTable -{ - void initialize(CollectionTable2_0Annotation collectionTableAnnotation); - - void update(CollectionTable2_0Annotation collectionTableAnnotation); - - // ********** covariant overrides ********** - - ListIterator<JavaJoinColumn> joinColumns(); - - JavaJoinColumn getDefaultJoinColumn(); - - ListIterator<JavaJoinColumn> specifiedJoinColumns(); - - JavaJoinColumn addSpecifiedJoinColumn(int index); - - ListIterator<JavaUniqueConstraint> uniqueConstraints(); - - JavaUniqueConstraint addUniqueConstraint(int index); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaDerivedIdentity2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaDerivedIdentity2_0.java deleted file mode 100644 index 6e2ef6c6bd..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaDerivedIdentity2_0.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import java.util.List; -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.DerivedIdentity2_0; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; -import org.eclipse.wst.validation.internal.provisional.core.IReporter; - -/** - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaDerivedIdentity2_0 - extends DerivedIdentity2_0, JavaJpaContextNode -{ - JavaSingleRelationshipMapping2_0 getMapping(); - - void initialize(); - - void update(); - - void validate(List<IMessage> messages, IReporter reporter, CompilationUnit astRoot); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaElementCollectionMapping2_0.java deleted file mode 100644 index 85e9fbfcab..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaElementCollectionMapping2_0.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaAssociationOverrideContainer; -import org.eclipse.jpt.core.context.java.JavaAttributeOverrideContainer; -import org.eclipse.jpt.core.context.java.JavaColumn; -import org.eclipse.jpt.core.jpa2.context.ElementCollectionMapping2_0; -import org.eclipse.jpt.core.jpa2.resource.java.CollectionTable2_0Annotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaElementCollectionMapping2_0 - extends JavaCollectionMapping2_0, ElementCollectionMapping2_0 -{ - JavaCollectionTable2_0 getCollectionTable(); - - CollectionTable2_0Annotation getCollectionTableAnnotation(); - - JavaColumn getValueColumn(); - - JavaAttributeOverrideContainer getValueAttributeOverrideContainer(); - - JavaAssociationOverrideContainer getValueAssociationOverrideContainer(); - - /** - * If the target class is specified, this will return it fully qualified. If not - * specified, it returns the default target class, which is always fully qualified - */ - String getFullyQualifiedTargetClass(); - String FULLY_QUALIFIED_TARGET_CLASS_PROPERTY = "fullyQualifiedTargetClass"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaEmbeddedMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaEmbeddedMapping2_0.java deleted file mode 100644 index c908abc82b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaEmbeddedMapping2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaAssociationOverrideContainer; -import org.eclipse.jpt.core.context.java.JavaEmbeddedMapping; -import org.eclipse.jpt.core.jpa2.context.EmbeddedMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaEmbeddedMapping2_0 - extends JavaEmbeddedMapping, EmbeddedMapping2_0 -{ - JavaAssociationOverrideContainer getAssociationOverrideContainer(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaIdDerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaIdDerivedIdentityStrategy2_0.java deleted file mode 100644 index 4f0b2c0cb4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaIdDerivedIdentityStrategy2_0.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.IdDerivedIdentityStrategy2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaIdDerivedIdentityStrategy2_0 - extends JavaJpaContextNode, IdDerivedIdentityStrategy2_0 -{ - /** - * Initialize model without throwing any events - */ - void initialize(); - - /** - * Update model, throwing events as necessary - */ - void update(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaJoinTableInAssociationOverrideJoiningStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaJoinTableInAssociationOverrideJoiningStrategy2_0.java deleted file mode 100644 index d1ad0f789b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaJoinTableInAssociationOverrideJoiningStrategy2_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJoinTableJoiningStrategy; -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.resource.java.AssociationOverride2_0Annotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaJoinTableInAssociationOverrideJoiningStrategy2_0 - extends JavaJpaContextNode, JavaJoinTableJoiningStrategy -{ - - void initialize(AssociationOverride2_0Annotation associationOverride); - - void update(AssociationOverride2_0Annotation associationOverride); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToManyMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToManyMapping2_0.java deleted file mode 100644 index a80d5f8049..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToManyMapping2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaManyToManyMapping; -import org.eclipse.jpt.core.jpa2.context.ManyToManyMapping2_0; -import org.eclipse.jpt.core.jpa2.resource.java.ManyToMany2_0Annotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaManyToManyMapping2_0 - extends JavaManyToManyMapping, JavaRelationshipMapping2_0, ManyToManyMapping2_0, JavaCollectionMapping2_0 -{ - ManyToMany2_0Annotation getMappingAnnotation(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToOneMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToOneMapping2_0.java deleted file mode 100644 index b0f1037b31..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToOneMapping2_0.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaManyToOneMapping; -import org.eclipse.jpt.core.jpa2.context.ManyToOneMapping2_0; -import org.eclipse.jpt.core.jpa2.resource.java.ManyToOne2_0Annotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaManyToOneMapping2_0 - extends JavaManyToOneMapping, ManyToOneMapping2_0, JavaSingleRelationshipMapping2_0 -{ - ManyToOne2_0Annotation getMappingAnnotation(); - - JavaManyToOneRelationshipReference2_0 getRelationshipReference(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToOneRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToOneRelationshipReference2_0.java deleted file mode 100644 index 0fd1274088..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaManyToOneRelationshipReference2_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJoinTableEnabledRelationshipReference; -import org.eclipse.jpt.core.context.java.JavaManyToOneRelationshipReference; -import org.eclipse.jpt.core.jpa2.context.ManyToOneRelationshipReference2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaManyToOneRelationshipReference2_0 - extends - JavaManyToOneRelationshipReference, - ManyToOneRelationshipReference2_0, - JavaJoinTableEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaMapsIdDerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaMapsIdDerivedIdentityStrategy2_0.java deleted file mode 100644 index 7b1965abca..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaMapsIdDerivedIdentityStrategy2_0.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.MapsIdDerivedIdentityStrategy2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaMapsIdDerivedIdentityStrategy2_0 - extends JavaJpaContextNode, MapsIdDerivedIdentityStrategy2_0 -{ - /** - * Initialize model without throwing any events - */ - void initialize(); - - /** - * Update model, throwing events as necessary - */ - void update(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaNamedQuery2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaNamedQuery2_0.java deleted file mode 100644 index cf8339bb30..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaNamedQuery2_0.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaNamedQuery; -import org.eclipse.jpt.core.jpa2.context.NamedQuery2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaNamedQuery2_0 - extends NamedQuery2_0, JavaNamedQuery -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToManyMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToManyMapping2_0.java deleted file mode 100644 index 8b4619892f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToManyMapping2_0.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaOneToManyMapping; -import org.eclipse.jpt.core.jpa2.context.OneToManyMapping2_0; -import org.eclipse.jpt.core.jpa2.resource.java.OneToMany2_0Annotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOneToManyMapping2_0 - extends JavaOneToManyMapping, JavaRelationshipMapping2_0, OneToManyMapping2_0, JavaCollectionMapping2_0 -{ - OneToMany2_0Annotation getMappingAnnotation(); - - JavaOneToManyRelationshipReference2_0 getRelationshipReference(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToManyRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToManyRelationshipReference2_0.java deleted file mode 100644 index 861384e3aa..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToManyRelationshipReference2_0.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.RelationshipReference; -import org.eclipse.jpt.core.context.java.JavaJoinColumnEnabledRelationshipReference; -import org.eclipse.jpt.core.context.java.JavaOneToManyRelationshipReference; -import org.eclipse.jpt.core.jpa2.context.OneToManyRelationshipReference2_0; - -/** - * Represents the {@link RelationshipReference} of a {@link JavaOneToManyMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOneToManyRelationshipReference2_0 - extends - JavaOneToManyRelationshipReference, - JavaJoinColumnEnabledRelationshipReference, - OneToManyRelationshipReference2_0 -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToOneMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToOneMapping2_0.java deleted file mode 100644 index d12722e284..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToOneMapping2_0.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaOneToOneMapping; -import org.eclipse.jpt.core.jpa2.context.OneToOneMapping2_0; -import org.eclipse.jpt.core.jpa2.resource.java.OneToOne2_0Annotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOneToOneMapping2_0 - extends JavaOneToOneMapping, OneToOneMapping2_0, JavaSingleRelationshipMapping2_0 -{ - OneToOne2_0Annotation getMappingAnnotation(); - - JavaOneToOneRelationshipReference2_0 getRelationshipReference(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToOneRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToOneRelationshipReference2_0.java deleted file mode 100644 index a4c26adfae..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOneToOneRelationshipReference2_0.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.RelationshipReference; -import org.eclipse.jpt.core.context.java.JavaJoinTableEnabledRelationshipReference; -import org.eclipse.jpt.core.context.java.JavaOneToOneRelationshipReference; -import org.eclipse.jpt.core.jpa2.context.OneToOneRelationshipReference2_0; - -/** - * Represents the {@link RelationshipReference} of a {@link JavaOneToOneMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOneToOneRelationshipReference2_0 - extends - JavaOneToOneRelationshipReference, - OneToOneRelationshipReference2_0, - JavaJoinTableEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrderColumn2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrderColumn2_0.java deleted file mode 100644 index 6bfee02783..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrderColumn2_0.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaNamedColumn; -import org.eclipse.jpt.core.jpa2.context.OrderColumn2_0; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentAttribute; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOrderColumn2_0 - extends OrderColumn2_0, JavaNamedColumn -{ - void initialize(JavaResourcePersistentAttribute resource); - - /** - * Update the JavaColumn context model object to match the ColumnAnnotation - * resource model object. see {@link org.eclipse.jpt.core.JpaProject#update()} - */ - void update(JavaResourcePersistentAttribute resource); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrderable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrderable2_0.java deleted file mode 100644 index d25afe6ccc..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrderable2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaOrderable; -import org.eclipse.jpt.core.jpa2.context.Orderable2_0; - -/** - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOrderable2_0 - extends Orderable2_0, JavaOrderable -{ - JavaOrderColumn2_0 getOrderColumn(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrphanRemovable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrphanRemovable2_0.java deleted file mode 100644 index edf2e66848..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrphanRemovable2_0.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.OrphanRemovable2_0; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentAttribute; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOrphanRemovable2_0 - extends JavaJpaContextNode, OrphanRemovable2_0 -{ - /** - * Initialize model without throwing any events - */ - void initialize(JavaResourcePersistentAttribute jrpa); - - /** - * Update model, throwing events as necessary - */ - void update(JavaResourcePersistentAttribute jrpa); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrphanRemovalHolder2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrphanRemovalHolder2_0.java deleted file mode 100644 index fc498e0c2b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaOrphanRemovalHolder2_0.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaJpaContextNode; -import org.eclipse.jpt.core.jpa2.context.OrphanRemovalHolder2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaOrphanRemovalHolder2_0 - extends OrphanRemovalHolder2_0, JavaJpaContextNode -{ - JavaOrphanRemovable2_0 getOrphanRemoval(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaPersistentAttribute2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaPersistentAttribute2_0.java deleted file mode 100644 index 08b3465102..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaPersistentAttribute2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaPersistentAttribute; -import org.eclipse.jpt.core.jpa2.context.PersistentAttribute2_0; - -/** - * JPA 2.0 context Java persistent attribute (field or property) - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaPersistentAttribute2_0 - extends JavaPersistentAttribute, PersistentAttribute2_0 -{ - // nothing yet... -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaPersistentType2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaPersistentType2_0.java deleted file mode 100644 index 4c26fd707c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaPersistentType2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaPersistentType; -import org.eclipse.jpt.core.jpa2.context.PersistentType2_0; - -/** - * JPA 2.0 context Java persistent type. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaPersistentType2_0 - extends JavaPersistentType, PersistentType2_0 -{ - // nothing yet... -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaRelationshipMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaRelationshipMapping2_0.java deleted file mode 100644 index 5195415c93..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaRelationshipMapping2_0.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaRelationshipMapping; -import org.eclipse.jpt.core.jpa2.resource.java.RelationshipMapping2_0Annotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaRelationshipMapping2_0 - extends JavaRelationshipMapping -{ - RelationshipMapping2_0Annotation getMappingAnnotation(); - - JavaCascade2_0 getCascade(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaSingleRelationshipMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaSingleRelationshipMapping2_0.java deleted file mode 100644 index 2f348611bb..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/java/JavaSingleRelationshipMapping2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.java; - -import org.eclipse.jpt.core.context.java.JavaSingleRelationshipMapping; -import org.eclipse.jpt.core.jpa2.context.SingleRelationshipMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaSingleRelationshipMapping2_0 - extends JavaSingleRelationshipMapping, JavaRelationshipMapping2_0, SingleRelationshipMapping2_0 -{ - JavaDerivedIdentity2_0 getDerivedIdentity(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmAssociationOverrideRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmAssociationOverrideRelationshipReference2_0.java deleted file mode 100644 index dbdb130ea3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmAssociationOverrideRelationshipReference2_0.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.JoinColumn; -import org.eclipse.jpt.core.context.JoinColumnJoiningStrategy; -import org.eclipse.jpt.core.context.RelationshipMapping; -import org.eclipse.jpt.core.context.RelationshipReference; -import org.eclipse.jpt.core.context.Table; -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.context.JoinColumn.Owner; -import org.eclipse.jpt.core.context.orm.OrmAssociationOverride; -import org.eclipse.jpt.core.context.orm.OrmAssociationOverrideRelationshipReference; -import org.eclipse.jpt.core.internal.context.JoinColumnTextRangeResolver; -import org.eclipse.jpt.core.internal.context.JptValidator; -import org.eclipse.jpt.core.internal.context.TableTextRangeResolver; -import org.eclipse.jpt.core.jpa2.context.AssociationOverrideRelationshipReference2_0; -import org.eclipse.jpt.core.resource.orm.XmlAssociationOverride; - -/** - * An <code>AssociationOverrideRelationshipReference</code> is a type of - * {@link RelationshipReference} that may utilize a - * {@link JoinColumnJoiningStrategy} - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @see RelationshipMapping - * - * @version 3.0 - * @since 2.3 - */ -public interface OrmAssociationOverrideRelationshipReference2_0 - extends - OrmAssociationOverrideRelationshipReference, - AssociationOverrideRelationshipReference2_0, - XmlContextNode -{ - OrmAssociationOverride getAssociationOverride(); - - OrmJoinTableInAssociationOverrideJoiningStrategy2_0 getJoinTableJoiningStrategy(); - - void update(XmlAssociationOverride xao); - - JptValidator buildJoinTableJoinColumnValidator(JoinColumn column, JoinColumn.Owner owner, JoinColumnTextRangeResolver textRangeResolver); - - JptValidator buildJoinTableInverseJoinColumnValidator(JoinColumn column, Owner owner, JoinColumnTextRangeResolver textRangeResolver); - - JptValidator buildTableValidator(Table table, TableTextRangeResolver textRangeResolver); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCacheable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCacheable2_0.java deleted file mode 100644 index 3a3729a990..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCacheable2_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.jpa2.context.Cacheable2_0; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmCacheable2_0 - extends XmlContextNode, Cacheable2_0 -{ - /** - * Update model, throwing events as necessary - */ - void update(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCacheableHolder2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCacheableHolder2_0.java deleted file mode 100644 index 1619265ce8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCacheableHolder2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.jpa2.context.CacheableHolder2_0; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmCacheableHolder2_0 - extends CacheableHolder2_0, XmlContextNode -{ - OrmCacheable2_0 getCacheable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCascade2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCascade2_0.java deleted file mode 100644 index e63364e198..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCascade2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmCascade; -import org.eclipse.jpt.core.jpa2.context.Cascade2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmCascade2_0 - extends OrmCascade, Cascade2_0 -{ - void initializeFrom(Cascade2_0 oldCascade); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCollectionMapping2_0.java deleted file mode 100644 index ae312b8842..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCollectionMapping2_0.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmAttributeMapping; -import org.eclipse.jpt.core.jpa2.context.CollectionMapping2_0; - -/** - * 1:m, m:m, element collection are all collection mappings. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmCollectionMapping2_0 - extends CollectionMapping2_0, OrmAttributeMapping -{ - - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCollectionTable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCollectionTable2_0.java deleted file mode 100644 index 38264e3537..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmCollectionTable2_0.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.orm.OrmJoinColumn; -import org.eclipse.jpt.core.context.orm.OrmReferenceTable; -import org.eclipse.jpt.core.context.orm.OrmUniqueConstraint; -import org.eclipse.jpt.core.jpa2.context.CollectionTable2_0; - -/** - * orm.xml collection table - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmCollectionTable2_0 - extends CollectionTable2_0, OrmReferenceTable -{ - void update(); - - void initializeFrom(CollectionTable2_0 oldCollectionTable); - - // ********** covariant overrides ********** - - ListIterator<OrmJoinColumn> joinColumns(); - - OrmJoinColumn getDefaultJoinColumn(); - - ListIterator<OrmJoinColumn> specifiedJoinColumns(); - - OrmJoinColumn addSpecifiedJoinColumn(int index); - - ListIterator<OrmUniqueConstraint> uniqueConstraints(); - - OrmUniqueConstraint addUniqueConstraint(int index); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmDerivedIdentity2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmDerivedIdentity2_0.java deleted file mode 100644 index 7302582a0d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmDerivedIdentity2_0.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.jpa2.context.DerivedIdentity2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmDerivedIdentity2_0 - extends DerivedIdentity2_0, XmlContextNode -{ - OrmSingleRelationshipMapping2_0 getMapping(); - - OrmMapsIdDerivedIdentityStrategy2_0 getMapsIdDerivedIdentityStrategy(); - - OrmIdDerivedIdentityStrategy2_0 getIdDerivedIdentityStrategy(); - - void initializeFrom(OrmDerivedIdentity2_0 oldDerivedIdentity); - - void update(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmElementCollectionMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmElementCollectionMapping2_0.java deleted file mode 100644 index c91e4b4283..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmElementCollectionMapping2_0.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmAssociationOverrideContainer; -import org.eclipse.jpt.core.context.orm.OrmAttributeOverrideContainer; -import org.eclipse.jpt.core.context.orm.OrmColumn; -import org.eclipse.jpt.core.jpa2.context.ElementCollectionMapping2_0; -import org.eclipse.jpt.core.resource.orm.XmlElementCollection; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmElementCollectionMapping2_0 - extends OrmCollectionMapping2_0, ElementCollectionMapping2_0 -{ - OrmCollectionTable2_0 getCollectionTable(); - - XmlElementCollection getResourceAttributeMapping(); - - OrmColumn getValueColumn(); - - OrmAttributeOverrideContainer getValueAttributeOverrideContainer(); - - OrmAssociationOverrideContainer getValueAssociationOverrideContainer(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmEmbeddedMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmEmbeddedMapping2_0.java deleted file mode 100644 index 30876cc70f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmEmbeddedMapping2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmAssociationOverrideContainer; -import org.eclipse.jpt.core.context.orm.OrmEmbeddedMapping; -import org.eclipse.jpt.core.jpa2.context.EmbeddedMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmEmbeddedMapping2_0 - extends OrmEmbeddedMapping, EmbeddedMapping2_0 -{ - OrmAssociationOverrideContainer getAssociationOverrideContainer(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmIdDerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmIdDerivedIdentityStrategy2_0.java deleted file mode 100644 index ec1cf88bfc..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmIdDerivedIdentityStrategy2_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.jpa2.context.IdDerivedIdentityStrategy2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmIdDerivedIdentityStrategy2_0 - extends XmlContextNode, IdDerivedIdentityStrategy2_0 -{ - OrmSingleRelationshipMapping2_0 getMapping(); - - void initializeFrom(OrmIdDerivedIdentityStrategy2_0 oldStrategy); - - void update(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmJoinTableInAssociationOverrideJoiningStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmJoinTableInAssociationOverrideJoiningStrategy2_0.java deleted file mode 100644 index dcbf259614..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmJoinTableInAssociationOverrideJoiningStrategy2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.context.orm.OrmJoinTableJoiningStrategy; -import org.eclipse.jpt.core.resource.orm.XmlAssociationOverride; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmJoinTableInAssociationOverrideJoiningStrategy2_0 - extends XmlContextNode, OrmJoinTableJoiningStrategy -{ - void update(XmlAssociationOverride resourceAssociationOverride); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToManyMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToManyMapping2_0.java deleted file mode 100644 index 2cc2068121..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToManyMapping2_0.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmManyToManyMapping; -import org.eclipse.jpt.core.jpa2.context.ManyToManyMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmManyToManyMapping2_0 - extends OrmManyToManyMapping, ManyToManyMapping2_0 -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToOneMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToOneMapping2_0.java deleted file mode 100644 index 0efc564d9f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToOneMapping2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmManyToOneMapping; -import org.eclipse.jpt.core.jpa2.context.ManyToOneMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmManyToOneMapping2_0 - extends OrmManyToOneMapping, ManyToOneMapping2_0, OrmSingleRelationshipMapping2_0 -{ - OrmManyToOneRelationshipReference2_0 getRelationshipReference(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToOneRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToOneRelationshipReference2_0.java deleted file mode 100644 index d40f199651..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmManyToOneRelationshipReference2_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmJoinTableEnabledRelationshipReference; -import org.eclipse.jpt.core.context.orm.OrmManyToOneRelationshipReference; -import org.eclipse.jpt.core.jpa2.context.ManyToOneRelationshipReference2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmManyToOneRelationshipReference2_0 - extends - OrmManyToOneRelationshipReference, - ManyToOneRelationshipReference2_0, - OrmJoinTableEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmMapsIdDerivedIdentityStrategy2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmMapsIdDerivedIdentityStrategy2_0.java deleted file mode 100644 index 48b2535863..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmMapsIdDerivedIdentityStrategy2_0.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.jpa2.context.MapsIdDerivedIdentityStrategy2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmMapsIdDerivedIdentityStrategy2_0 - extends XmlContextNode, MapsIdDerivedIdentityStrategy2_0 -{ - void initializeFrom(OrmMapsIdDerivedIdentityStrategy2_0 oldStrategy); - - void update(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmNamedQuery2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmNamedQuery2_0.java deleted file mode 100644 index 5ce46d2e71..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmNamedQuery2_0.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmNamedQuery; -import org.eclipse.jpt.core.jpa2.context.NamedQuery2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmNamedQuery2_0 - extends OrmNamedQuery, NamedQuery2_0 -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToManyMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToManyMapping2_0.java deleted file mode 100644 index b3e1159d39..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToManyMapping2_0.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmOneToManyMapping; -import org.eclipse.jpt.core.jpa2.context.OneToManyMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOneToManyMapping2_0 - extends OrmOneToManyMapping, OneToManyMapping2_0 -{ - OrmOneToManyRelationshipReference2_0 getRelationshipReference(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToManyRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToManyRelationshipReference2_0.java deleted file mode 100644 index 820ad16a3a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToManyRelationshipReference2_0.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.RelationshipReference; -import org.eclipse.jpt.core.context.orm.OrmJoinColumnEnabledRelationshipReference; -import org.eclipse.jpt.core.context.orm.OrmOneToManyRelationshipReference; -import org.eclipse.jpt.core.jpa2.context.OneToManyRelationshipReference2_0; - -/** - * Represents the {@link RelationshipReference} of an {@link OrmOneToManyMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOneToManyRelationshipReference2_0 - extends - OrmOneToManyRelationshipReference, - OrmJoinColumnEnabledRelationshipReference, - OneToManyRelationshipReference2_0 -{ -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToOneMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToOneMapping2_0.java deleted file mode 100644 index f193471638..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToOneMapping2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmOneToOneMapping; -import org.eclipse.jpt.core.jpa2.context.OneToOneMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOneToOneMapping2_0 - extends OrmOneToOneMapping, OneToOneMapping2_0, OrmSingleRelationshipMapping2_0 -{ - OrmOneToOneRelationshipReference2_0 getRelationshipReference(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToOneRelationshipReference2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToOneRelationshipReference2_0.java deleted file mode 100644 index b3a5611f93..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOneToOneRelationshipReference2_0.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.RelationshipReference; -import org.eclipse.jpt.core.context.orm.OrmJoinTableEnabledRelationshipReference; -import org.eclipse.jpt.core.context.orm.OrmOneToOneRelationshipReference; -import org.eclipse.jpt.core.jpa2.context.OneToOneRelationshipReference2_0; - -/** - * Represents the {@link RelationshipReference} of a {@link JavaOneToOneMapping} - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOneToOneRelationshipReference2_0 - extends - OrmOneToOneRelationshipReference, - OneToOneRelationshipReference2_0, - OrmJoinTableEnabledRelationshipReference -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrderColumn2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrderColumn2_0.java deleted file mode 100644 index 02b875ec8a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrderColumn2_0.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmNamedColumn; -import org.eclipse.jpt.core.jpa2.context.OrderColumn2_0; -import org.eclipse.jpt.core.resource.orm.v2_0.XmlOrderable_2_0; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOrderColumn2_0 - extends OrderColumn2_0, OrmNamedColumn -{ - void initialize(XmlOrderable_2_0 orderable); - - /** - * Update the OrmOrderColumn2_0 context model object to match the XmlOrderable2_0 - * resource model object. see {@link org.eclipse.jpt.core.JpaProject#update()} - */ - void update(XmlOrderable_2_0 orderable); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrderable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrderable2_0.java deleted file mode 100644 index ed33af4b6e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrderable2_0.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmAttributeMapping; -import org.eclipse.jpt.core.context.orm.OrmOrderable; -import org.eclipse.jpt.core.jpa2.context.Orderable2_0; - -/** - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOrderable2_0 - extends Orderable2_0, OrmOrderable -{ - OrmAttributeMapping getParent(); - - OrmOrderColumn2_0 getOrderColumn(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrphanRemovable2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrphanRemovable2_0.java deleted file mode 100644 index 5cf44f6555..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrphanRemovable2_0.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.jpa2.context.OrphanRemovable2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOrphanRemovable2_0 - extends XmlContextNode, OrphanRemovable2_0 -{ - /** - * Update model, throwing events as necessary - */ - void update(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrphanRemovalHolder2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrphanRemovalHolder2_0.java deleted file mode 100644 index 130df31d81..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmOrphanRemovalHolder2_0.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.XmlContextNode; -import org.eclipse.jpt.core.jpa2.context.OrphanRemovalHolder2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmOrphanRemovalHolder2_0 - extends OrphanRemovalHolder2_0, XmlContextNode -{ - OrmOrphanRemovable2_0 getOrphanRemoval(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistenceUnitDefaults2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistenceUnitDefaults2_0.java deleted file mode 100644 index 9d6fff8ace..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistenceUnitDefaults2_0.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmPersistenceUnitDefaults; -import org.eclipse.jpt.core.jpa2.context.MappingFilePersistenceUnitDefaults2_0; - -/** - * Context <code>orm.xml</code> persistence unit defaults. - * Context model corresponding to the - * XML resource model {@link XmlPersistenceUnitDefaults}, - * which corresponds to the <code>persistence-unit-defaults</code> element - * in the <code>orm.xml</code> file. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmPersistenceUnitDefaults2_0 - extends MappingFilePersistenceUnitDefaults2_0, OrmPersistenceUnitDefaults -{ - boolean isDelimitedIdentifiers(); - void setDelimitedIdentifiers(boolean value); - String DELIMITED_IDENTIFIERS_PROPERTY = "delimitedIdentifiers"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistentAttribute2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistentAttribute2_0.java deleted file mode 100644 index dc145e929e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistentAttribute2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmPersistentAttribute; -import org.eclipse.jpt.core.jpa2.context.PersistentAttribute2_0; - -/** - * JPA 2.0 context orm persistent attribute (field or property) - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmPersistentAttribute2_0 - extends OrmPersistentAttribute, PersistentAttribute2_0 -{ - // nothing yet... -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistentType2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistentType2_0.java deleted file mode 100644 index 16447aee9c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmPersistentType2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmPersistentType; -import org.eclipse.jpt.core.jpa2.context.PersistentType2_0; - -/** - * JPA 2.0 context <code>orm.xml</code> persistent type. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmPersistentType2_0 - extends OrmPersistentType, PersistentType2_0 -{ - // nothing yet -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmSequenceGenerator2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmSequenceGenerator2_0.java deleted file mode 100644 index c7deb1a29d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmSequenceGenerator2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmSequenceGenerator; -import org.eclipse.jpt.core.jpa2.context.SequenceGenerator2_0; - -/** - * JPA 2.0 context <code>orm.xml</code> sequence generator. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmSequenceGenerator2_0 - extends SequenceGenerator2_0, OrmSequenceGenerator -{ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmSingleRelationshipMapping2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmSingleRelationshipMapping2_0.java deleted file mode 100644 index e92f61ab9f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmSingleRelationshipMapping2_0.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.orm.OrmSingleRelationshipMapping; -import org.eclipse.jpt.core.jpa2.context.SingleRelationshipMapping2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmSingleRelationshipMapping2_0 - extends OrmSingleRelationshipMapping, SingleRelationshipMapping2_0 -{ - public OrmDerivedIdentity2_0 getDerivedIdentity(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmXml2_0ContextNodeFactory.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmXml2_0ContextNodeFactory.java deleted file mode 100644 index 4413df2f21..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/orm/OrmXml2_0ContextNodeFactory.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.orm; - -import org.eclipse.jpt.core.context.Orderable; -import org.eclipse.jpt.core.context.Table; -import org.eclipse.jpt.core.context.orm.OrmAssociationOverrideContainer; -import org.eclipse.jpt.core.context.orm.OrmAttributeMapping; -import org.eclipse.jpt.core.context.orm.OrmNamedColumn; -import org.eclipse.jpt.core.context.orm.OrmPersistentAttribute; -import org.eclipse.jpt.core.context.orm.OrmTypeMapping; -import org.eclipse.jpt.core.context.orm.OrmXmlContextNodeFactory; -import org.eclipse.jpt.core.jpa2.context.java.JavaElementCollectionMapping2_0; -import org.eclipse.jpt.core.resource.orm.XmlCollectionTable; -import org.eclipse.jpt.core.resource.orm.XmlElementCollection; -import org.eclipse.jpt.core.resource.orm.v2_0.XmlCacheable_2_0; -import org.eclipse.jpt.core.resource.orm.v2_0.XmlOrphanRemovable_2_0; -import org.eclipse.jpt.core.resource.orm.v2_0.XmlSingleRelationshipMapping_2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrmXml2_0ContextNodeFactory - extends OrmXmlContextNodeFactory -{ - // ********** ORM Context Model ********** - - //overloaded because the 2.0 JPA spec supports association overrides on an embedded mapping while the 1.0 spec did not - OrmAssociationOverrideContainer buildOrmAssociationOverrideContainer( - OrmEmbeddedMapping2_0 parent, - OrmAssociationOverrideContainer.Owner owner); - - OrmDerivedIdentity2_0 buildOrmDerivedIdentity( - OrmSingleRelationshipMapping2_0 parent, XmlSingleRelationshipMapping_2_0 resource); - - OrmElementCollectionMapping2_0 buildOrmElementCollectionMapping2_0( - OrmPersistentAttribute parent, XmlElementCollection resourceMapping); - - XmlElementCollection buildVirtualXmlElementCollection2_0( - OrmTypeMapping ormTypeMapping, JavaElementCollectionMapping2_0 javaMapping); - - OrmCacheable2_0 buildOrmCacheable(OrmCacheableHolder2_0 parent, XmlCacheable_2_0 resource); - - OrmOrphanRemovable2_0 buildOrmOrphanRemoval(OrmOrphanRemovalHolder2_0 parent, XmlOrphanRemovable_2_0 resource); - - OrmOrderable2_0 buildOrmOrderable(OrmAttributeMapping parent, Orderable.Owner owner); - - OrmOrderColumn2_0 buildOrmOrderColumn(OrmOrderable2_0 parent, OrmNamedColumn.Owner owner); - - OrmCollectionTable2_0 buildOrmCollectionTable(OrmElementCollectionMapping2_0 parent, Table.Owner owner, XmlCollectionTable resource); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/Persistence2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/Persistence2_0.java deleted file mode 100644 index f7bcddf4dd..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/Persistence2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.persistence; - -import org.eclipse.jpt.core.context.persistence.Persistence; -import org.eclipse.jpt.core.jpa2.MetamodelSynchronizer; - -/** - * The <code>persistence</code> element in the JPA 2.0 <code>persistence.xml</code> file. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface Persistence2_0 - extends Persistence, MetamodelSynchronizer -{ - // nothing yet... -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/PersistenceUnit2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/PersistenceUnit2_0.java deleted file mode 100644 index bc407cc1eb..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/PersistenceUnit2_0.java +++ /dev/null @@ -1,127 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.persistence; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnit; -import org.eclipse.jpt.core.jpa2.MetamodelSynchronizer; -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; -import org.eclipse.jpt.core.jpa2.context.persistence.options.SharedCacheMode; -import org.eclipse.jpt.core.jpa2.context.persistence.options.ValidationMode; - -/** - * JPA 2.0 <code>persistence-unit</code> - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface PersistenceUnit2_0 - extends PersistenceUnit, MetamodelSynchronizer -{ - // ********** shared cache mode ********** - - /** - * Return the persistence unit's shared cache mode, - * whether specified or defaulted. - */ - SharedCacheMode getSharedCacheMode(); - - /** - * String constant associated with changes to the persistence unit's - * specified shared cache mode - */ - String SPECIFIED_SHARED_CACHE_MODE_PROPERTY = "specifiedSharedCacheMode"; //$NON-NLS-1$ - - /** - * Return the persistence unit's specified shared cache mode. - */ - SharedCacheMode getSpecifiedSharedCacheMode(); - - /** - * Set the persistence unit's specified shared cache mode. - */ - void setSpecifiedSharedCacheMode(SharedCacheMode sharedCacheMode); - - /** - * String constant associated with changes to the persistence unit's - * default shared cache mode (not typically changed). - */ - String DEFAULT_SHARED_CACHE_MODE_PROPERTY = "defaultSharedCacheMode"; //$NON-NLS-1$ - - /** - * Return the persistence unit's default shared cache mode. - */ - SharedCacheMode getDefaultSharedCacheMode(); - - boolean calculateDefaultCacheable(); - - // ********** validation mode ********** - - /** - * Return the persistence unit's validation mode, - * whether specified or defaulted. - */ - ValidationMode getValidationMode(); - - /** - * String constant associated with changes to the persistence unit's - * specified validation mode - */ - String SPECIFIED_VALIDATION_MODE_PROPERTY = "specifiedValidationMode"; //$NON-NLS-1$ - - /** - * Return the persistence unit's specified validation mode. - */ - ValidationMode getSpecifiedValidationMode(); - - /** - * Set the persistence unit's specified validation mode. - */ - void setSpecifiedValidationMode(ValidationMode validationMode); - - /** - * String constant associated with changes to the persistence unit's - * default validation mode (not typically changed). - */ - String DEFAULT_VALIDATION_MODE_PROPERTY = "defaultValidationMode"; //$NON-NLS-1$ - - /** - * Return the persistence unit's default validation mode. - */ - ValidationMode getDefaultValidationMode(); - - ValidationMode DEFAULT_VALIDATION_MODE = ValidationMode.AUTO; - - // ********** properties ********** - - PersistenceUnitProperties getConnection(); - - PersistenceUnitProperties getOptions(); - - // ********** ORM persistence unit defaults ********** - - /** - * String constant associated with changes to the persistence unit's - * default "delimited identifiers" flag. - */ - String DEFAULT_DELIMITED_IDENTIFIERS_PROPERTY = "defaultDelimitedIdentifiers"; //$NON-NLS-1$ - - /** - * Return the default "delimited identifiers" flag from the first persistence unit defaults - * found in the persistence unit's list of mapping files. - */ - boolean getDefaultDelimitedIdentifiers(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/PersistenceXml2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/PersistenceXml2_0.java deleted file mode 100644 index 28815f82ba..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/PersistenceXml2_0.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.context.persistence; - -import org.eclipse.jpt.core.context.persistence.PersistenceXml; -import org.eclipse.jpt.core.jpa2.MetamodelSynchronizer; - -/** - * JPA 2.0 <code>persistence.xml</code> file. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface PersistenceXml2_0 - extends PersistenceXml, MetamodelSynchronizer -{ - // nothing yet... -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/connection/JpaConnection2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/connection/JpaConnection2_0.java deleted file mode 100644 index 0b9223ce62..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/connection/JpaConnection2_0.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.persistence.connection; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JpaConnection2_0 - extends PersistenceUnitProperties -{ - String getDefaultDriver(); - String getDriver(); - void setDriver(String newDriver); - static final String DRIVER_PROPERTY = "driver"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_JDBC_DRIVER = "javax.persistence.jdbc.driver"; //$NON-NLS-1$ - static final String DEFAULT_JDBC_DRIVER = ""; //$NON-NLS-1$ - - String getDefaultUrl(); - String getUrl(); - void setUrl(String newUrl); - static final String URL_PROPERTY = "url"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_JDBC_URL = "javax.persistence.jdbc.url"; //$NON-NLS-1$ - static final String DEFAULT_JDBC_URL = ""; //$NON-NLS-1$ - - String getDefaultUser(); - String getUser(); - void setUser(String newUser); - static final String USER_PROPERTY = "user"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_JDBC_USER = "javax.persistence.jdbc.user"; //$NON-NLS-1$ - static final String DEFAULT_JDBC_USER = ""; //$NON-NLS-1$ - - String getDefaultPassword(); - String getPassword(); - void setPassword(String newPassword); - static final String PASSWORD_PROPERTY = "password"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_JDBC_PASSWORD = "javax.persistence.jdbc.password"; //$NON-NLS-1$ - static final String DEFAULT_JDBC_PASSWORD = ""; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/JpaOptions2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/JpaOptions2_0.java deleted file mode 100644 index 7399b3773b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/JpaOptions2_0.java +++ /dev/null @@ -1,74 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.persistence.options; - -import java.util.ListIterator; - -import org.eclipse.jpt.core.context.persistence.PersistenceUnitProperties; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JpaOptions2_0 - extends PersistenceUnitProperties -{ - Integer getDefaultLockTimeout(); - Integer getLockTimeout(); - void setLockTimeout(Integer newLockTimeout); - static final String LOCK_TIMEOUT_PROPERTY = "lockTimeout"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_LOCK_TIMEOUT = "javax.persistence.lock.timeout"; //$NON-NLS-1$ - static final Integer DEFAULT_LOCK_TIMEOUT = Integer.valueOf(5); - - Integer getDefaultQueryTimeout(); - Integer getQueryTimeout(); - void setQueryTimeout(Integer newQueryTimeout); - static final String QUERY_TIMEOUT_PROPERTY = "queryTimeout"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_QUERY_TIMEOUT = "javax.persistence.query.timeout"; //$NON-NLS-1$ - static final Integer DEFAULT_QUERY_TIMEOUT = Integer.valueOf(5); - - ListIterator<String> validationGroupPrePersists(); - int validationGroupPrePersistsSize(); - boolean validationGroupPrePersistExists(String validationGroupPrePersistClassName); - String addValidationGroupPrePersist(String newValidationGroupPrePersistClassName); - void removeValidationGroupPrePersist(String validationGroupPrePersistClassName); - static final String VALIDATION_GROUP_PRE_PERSIST_LIST = "validationGroupPrePersists"; //$NON-NLS-1$ - static final String VALIDATION_GROUP_PRE_PERSIST_PROPERTY = "validationGroupPrePersist"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_VALIDATION_GROUP_PRE_PERSIST = "javax.persistence.validation.group.pre-persist"; //$NON-NLS-1$ - - ListIterator<String> validationGroupPreUpdates(); - int validationGroupPreUpdatesSize(); - boolean validationGroupPreUpdateExists(String validationGroupPreUpdateClassName); - String addValidationGroupPreUpdate(String newValidationGroupPreUpdateClassName); - void removeValidationGroupPreUpdate(String validationGroupPreUpdateClassName); - static final String VALIDATION_GROUP_PRE_UPDATE_LIST = "validationGroupPreUpdates"; //$NON-NLS-1$ - static final String VALIDATION_GROUP_PRE_UPDATE_PROPERTY = "validationGroupPreUpdate"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_VALIDATION_GROUP_PRE_UPDATE = "javax.persistence.validation.group.pre-update"; //$NON-NLS-1$ - - ListIterator<String> validationGroupPreRemoves(); - int validationGroupPreRemovesSize(); - boolean validationGroupPreRemoveExists(String validationGroupPreRemoveClassName); - String addValidationGroupPreRemove(String newValidationGroupPreRemoveClassName); - void removeValidationGroupPreRemove(String validationGroupPreRemoveClassName); - static final String VALIDATION_GROUP_PRE_REMOVE_LIST = "validationGroupPreRemoves"; //$NON-NLS-1$ - static final String VALIDATION_GROUP_PRE_REMOVE_PROPERTY = "validationGroupPreRemove"; //$NON-NLS-1$ - // Property key - static final String PERSISTENCE_VALIDATION_GROUP_PRE_REMOVE = "javax.persistence.validation.group.pre-remove"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/SharedCacheMode.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/SharedCacheMode.java deleted file mode 100644 index 0ea73f0d07..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/SharedCacheMode.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.persistence.options; - -import org.eclipse.jpt.core.resource.persistence.v2_0.XmlPersistenceUnitCachingType_2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public enum SharedCacheMode -{ - ALL, - NONE, - ENABLE_SELECTIVE, - DISABLE_SELECTIVE, - UNSPECIFIED; - - - public static SharedCacheMode fromXmlResourceModel(XmlPersistenceUnitCachingType_2_0 sharedCacheMode) { - if (sharedCacheMode == null) { - return null; - } - switch (sharedCacheMode) { - case ALL: - return ALL; - case NONE: - return NONE; - case ENABLE_SELECTIVE: - return ENABLE_SELECTIVE; - case DISABLE_SELECTIVE: - return DISABLE_SELECTIVE; - case UNSPECIFIED: - return UNSPECIFIED; - default: - throw new IllegalArgumentException("unknown validation mode: " + sharedCacheMode); //$NON-NLS-1$ - } - } - - public static XmlPersistenceUnitCachingType_2_0 toXmlResourceModel(SharedCacheMode sharedCacheMode) { - if (sharedCacheMode == null) { - return null; - } - switch (sharedCacheMode) { - case ALL: - return XmlPersistenceUnitCachingType_2_0.ALL; - case NONE: - return XmlPersistenceUnitCachingType_2_0.NONE; - case ENABLE_SELECTIVE: - return XmlPersistenceUnitCachingType_2_0.ENABLE_SELECTIVE; - case DISABLE_SELECTIVE: - return XmlPersistenceUnitCachingType_2_0.DISABLE_SELECTIVE; - case UNSPECIFIED: - return XmlPersistenceUnitCachingType_2_0.UNSPECIFIED; - default: - throw new IllegalArgumentException("unknown shared cache mode: " + sharedCacheMode); //$NON-NLS-1$ - } - } -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/ValidationMode.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/ValidationMode.java deleted file mode 100644 index d3b08c63e1..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/context/persistence/options/ValidationMode.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.context.persistence.options; - -import org.eclipse.jpt.core.resource.persistence.v2_0.XmlPersistenceUnitValidationModeType_2_0; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public enum ValidationMode -{ - AUTO(XmlPersistenceUnitValidationModeType_2_0.AUTO), - CALLBACK(XmlPersistenceUnitValidationModeType_2_0.CALLBACK), - NONE(XmlPersistenceUnitValidationModeType_2_0.NONE); - - private XmlPersistenceUnitValidationModeType_2_0 xmlEnumValue; - - ValidationMode(XmlPersistenceUnitValidationModeType_2_0 xmlEnumValue) { - if (xmlEnumValue == null) { - throw new NullPointerException(); - } - this.xmlEnumValue = xmlEnumValue; - } - - public XmlPersistenceUnitValidationModeType_2_0 getXmlEnumValue() { - return this.xmlEnumValue; - } - - - // ********** static methods ********** - - public static ValidationMode fromXmlResourceModel(XmlPersistenceUnitValidationModeType_2_0 xmlValidationMode) { - return (xmlValidationMode == null) ? null : fromXmlResourceModel_(xmlValidationMode); - } - - private static ValidationMode fromXmlResourceModel_(XmlPersistenceUnitValidationModeType_2_0 xmlValidationMode) { - for (ValidationMode validationMode : ValidationMode.values()) { - if (validationMode.getXmlEnumValue().equals(xmlValidationMode)) { - return validationMode; - } - } - return null; - } - - public static XmlPersistenceUnitValidationModeType_2_0 toXmlResourceModel(ValidationMode validationMode) { - return (validationMode == null) ? null : validationMode.getXmlEnumValue(); - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/Access2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/Access2_0Annotation.java deleted file mode 100644 index ca47cf6614..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/Access2_0Annotation.java +++ /dev/null @@ -1,55 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.AccessType; -import org.eclipse.jpt.core.resource.java.Annotation; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.Access - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface Access2_0Annotation - extends Annotation -{ - - String ANNOTATION_NAME = JPA2_0.ACCESS; - - /** - * Corresponds to the 'value' element of the Access annotation. - * Returns null if the element does not exist in Java. - */ - AccessType getValue(); - String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - - /** - * Corresponds to the 'value' element of the Access annotation. - * Set to null to remove the element. - */ - void setValue(AccessType access); - - /** - * Return the {@link TextRange} for the 'value' element. If the element - * does not exist return the {@link TextRange} for the Access annotation. - */ - TextRange getValueTextRange(CompilationUnit astRoot); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/AssociationOverride2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/AssociationOverride2_0Annotation.java deleted file mode 100644 index 35e61f5c78..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/AssociationOverride2_0Annotation.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.AssociationOverrideAnnotation; -import org.eclipse.jpt.core.resource.java.JoinTableAnnotation; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.AssociationOverride - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface AssociationOverride2_0Annotation - extends AssociationOverrideAnnotation -{ - - /** - * Corresponds to the 'joinTable' element of the AssociationOverride annotation. - * Return null if the element does not exist in Java. - */ - JoinTableAnnotation getJoinTable(); - String JOIN_TABLE_PROPERTY = "joinTable"; //$NON-NLS-1$ - - JoinTableAnnotation getNonNullJoinTable(); - - /** - * Add the 'joinTable' element to the AssociationOverride annotation. - */ - JoinTableAnnotation addJoinTable(); - - /** - * Remove the 'joinTable' element from the AssociationOverride annotation. - */ - void removeJoinTable(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/Cacheable2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/Cacheable2_0Annotation.java deleted file mode 100644 index a5ad1823a2..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/Cacheable2_0Annotation.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.Annotation; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.Cacheable - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface Cacheable2_0Annotation - extends Annotation -{ - String ANNOTATION_NAME = JPA2_0.CACHEABLE; - - /** - * Corresponds to the 'value' element of the Cacheable annotation. - * Return null if the element does not exist in Java. - */ - Boolean getValue(); - String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - - /** - * Corresponds to the 'value' element of the Cacheable annotation. - * Set to null to remove the element. - */ - void setValue(Boolean value); - - /** - * Return the {@link TextRange} for the 'value' element. If the element - * does not exist return the {@link TextRange} for the Cacheable annotation. - */ - TextRange getValueTextRange(CompilationUnit astRoot); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/CollectionTable2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/CollectionTable2_0Annotation.java deleted file mode 100644 index 1e785f6855..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/CollectionTable2_0Annotation.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.ReferenceTableAnnotation; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.CollectionTable - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface CollectionTable2_0Annotation - extends ReferenceTableAnnotation -{ - String ANNOTATION_NAME = JPA2_0.COLLECTION_TABLE; - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ElementCollection2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ElementCollection2_0Annotation.java deleted file mode 100644 index e850473da4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ElementCollection2_0Annotation.java +++ /dev/null @@ -1,93 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.Annotation; -import org.eclipse.jpt.core.resource.java.FetchType; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.ElementCollection - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface ElementCollection2_0Annotation - extends Annotation -{ - String ANNOTATION_NAME = JPA2_0.ELEMENT_COLLECTION; - - /** - * Corresponds to the 'targetClass' element of the element collection - * annotation. - * Return null if the element does not exist in Java. - * Return the portion of the value preceding ".class". - * <pre> - * @ElementCollection(targetClass=Employee.class) - * </pre> - * will return "Employee" - */ - String getTargetClass(); - String TARGET_CLASS_PROPERTY = "targetClass"; //$NON-NLS-1$ - - /** - * Corresponds to the 'targetClass' element of the element collection - * annotation. - * Set to null to remove the element. - */ - void setTargetClass(String targetClass); - - /** - * Return the {@link TextRange} for the 'targetClass' element. If the element - * does not exist return the {@link TextRange} for the element collection annotation. - */ - TextRange getTargetClassTextRange(CompilationUnit astRoot); - - /** - * Return the fully-qualified target class name as resolved by the AST's bindings. - * <pre> - * @ElementCollection(targetClass=Employee.class) - * </pre> - * will return "model.Employee" if there is an import for model.Employee. - * @return - */ - String getFullyQualifiedTargetClassName(); - String FULLY_QUALIFIED_TARGET_CLASS_NAME_PROPERTY = "fullyQualifiedTargetClassName"; //$NON-NLS-1$ - - - /** - * Corresponds to the 'fetch' element of the element collection annotation. - * Return null if the element does not exist in Java. - */ - FetchType getFetch(); - String FETCH_PROPERTY = "fetch"; //$NON-NLS-1$ - - /** - * Corresponds to the 'fetch' element of the element collection annotation. - * Set to null to remove the element. - */ - void setFetch(FetchType fetch); - - /** - * Return the {@link TextRange} for the 'fetch' element. If the element - * does not exist return the {@link TextRange} for the element collection annotation. - */ - TextRange getFetchTextRange(CompilationUnit astRoot); - - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/GeneratedAnnotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/GeneratedAnnotation.java deleted file mode 100644 index 382a0635ae..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/GeneratedAnnotation.java +++ /dev/null @@ -1,117 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import java.util.ListIterator; - -import org.eclipse.jpt.core.resource.java.Annotation; - -/** - * Corresponds to the Java 6 annotation - * <code>javax.annotation.Generated</code> - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface GeneratedAnnotation - extends Annotation -{ - String ANNOTATION_NAME = "javax.annotation.Generated"; // requires JRE 1.6 //$NON-NLS-1$ - String VALUE_ELEMENT_NAME = "value"; //$NON-NLS-1$ - String DATE_ELEMENT_NAME = "date"; //$NON-NLS-1$ - String COMMENTS_ELEMENT_NAME = "comments"; //$NON-NLS-1$ - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - * Return <code>null</code> if the element does not exist in the annotation. - */ - ListIterator<String> values(); - String VALUES_LIST = "values"; //$NON-NLS-1$ - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - */ - int valuesSize(); - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - */ - String getValue(int index); - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - */ - void addValue(String value); - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - */ - void addValue(int index, String value); - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - */ - void moveValue(int targetIndex, int sourceIndex); - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - */ - void removeValue(String value); - - /** - * Corresponds to the <code>value<code> element of the <code>Generated</code> - * annotation. - */ - void removeValue(int index); - - /** - * Corresponds to the <code>date</code> element of the <code>Generated</code> - * annotation. - * Return <code>null</code> if the element does not exist in the annotation. - */ - String getDate(); - String DATE_PROPERTY = "date"; //$NON-NLS-1$ - - /** - * Corresponds to the <code>date</code> element of the <code>Generated</code> - * annotation. - * Set to <code>null</code> to remove the element. - */ - void setDate(String date); - - /** - * Corresponds to the <code>comments</code> element of the <code>Generated</code> - * annotation. - * Return <code>null</code> if the element does not exist in the annotation. - */ - String getComments(); - String COMMENTS_PROPERTY = "comments"; //$NON-NLS-1$ - - /** - * Corresponds to the <code>comments</code> element of the <code>Generated</code> - * annotation. - * Set to <code>null</code> to remove the element. - */ - void setComments(String comments); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/JPA2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/JPA2_0.java deleted file mode 100644 index ebd061471b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/JPA2_0.java +++ /dev/null @@ -1,147 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.JPA; - -/** - * JPA 2.0 Java-related stuff (annotations etc.) - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -@SuppressWarnings("nls") -public interface JPA2_0 -{ - // JPA package - String PACKAGE = "javax.persistence"; - String PACKAGE_ = PACKAGE + '.'; - - - // ********** API ********** - - // JPA 2.0 annotations - String ACCESS = PACKAGE_ + "Access"; - String ACCESS__VALUE = "value"; - - // ASSOCIATION_OVERRIDE - String ASSOCIATION_OVERRIDE__JOIN_TABLE = "joinTable"; - - String CACHEABLE = PACKAGE_ + "Cacheable"; - String CACHEABLE__VALUE = "value"; - - String CASCADE_TYPE__DETACH = JPA.CASCADE_TYPE_ + "DETACH"; - - String COLLECTION_TABLE = PACKAGE_ + "CollectionTable"; - String COLLECTION_TABLE__NAME = "name"; - String COLLECTION_TABLE__SCHEMA = "schema"; - String COLLECTION_TABLE__CATALOG = "catalog"; - String COLLECTION_TABLE__JOIN_COLUMNS = "joinColumns"; - String COLLECTION_TABLE__UNIQUE_CONSTRAINTS = "uniqueConstraints"; - - String ELEMENT_COLLECTION = PACKAGE_ + "ElementCollection"; - String ELEMENT_COLLECTION__FETCH = "fetch"; - String ELEMENT_COLLECTION__TARGET_CLASS = "targetClass"; - - String MAP_KEY_CLASS = PACKAGE_ + "MapKeyClass"; - String MAP_KEY_CLASS__VALUE = "value"; - - String MAP_KEY_COLUMN = PACKAGE_ + "MapKeyColumn"; - String MAP_KEY_COLUMN__NAME = "name"; - String MAP_KEY_COLUMN__UNIQUE = "unique"; - String MAP_KEY_COLUMN__NULLABLE = "nullable"; - String MAP_KEY_COLUMN__INSERTABLE = "insertable"; - String MAP_KEY_COLUMN__UPDATABLE = "updatable"; - String MAP_KEY_COLUMN__COLUMN_DEFINITION = "columnDefinition"; - String MAP_KEY_COLUMN__TABLE = "table"; - String MAP_KEY_COLUMN__LENGTH = "length"; - String MAP_KEY_COLUMN__PRECISION = "precision"; - String MAP_KEY_COLUMN__SCALE = "scale"; - - String MAP_KEY_ENUMERATED = PACKAGE_ + "MapKeyEnumerated"; - String MAP_KEY_ENUMERATED__VALUE = "value"; - - String MAP_KEY_JOIN_COLUMN = PACKAGE_ + "MapKeyJoinColumn"; - String MAP_KEY_JOIN_COLUMN__NAME = "name"; - String MAP_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME = "referencedColumnName"; - String MAP_KEY_JOIN_COLUMN__UNIQUE = "unique"; - String MAP_KEY_JOIN_COLUMN__NULLABLE = "nullable"; - String MAP_KEY_JOIN_COLUMN__INSERTABLE = "insertable"; - String MAP_KEY_JOIN_COLUMN__UPDATABLE = "updatable"; - String MAP_KEY_JOIN_COLUMN__COLUMN_DEFINITION = "columnDefinition"; - String MAP_KEY_JOIN_COLUMN__TABLE = "table"; - - String MAP_KEY_JOIN_COLUMNS = PACKAGE_ + "MapKeyJoinColumns"; - String MAP_KEY_JOIN_COLUMNS__VALUE = "value"; - - String MAP_KEY_TEMPORAL = PACKAGE_ + "MapKeyTemporal"; - String MAP_KEY_TEMPORAL__VALUE = "value"; - - String MAPS_ID = PACKAGE_ + "MapsId"; - String MAPS_ID__VALUE = "value"; - - // NAMED_QUERY - String NAMED_QUERY__LOCK_MODE = "lockMode"; - - // ONE_TO_MANY - String ONE_TO_MANY__ORPHAN_REMOVAL = "orphanRemoval"; - - // ONE_TO_ONE - String ONE_TO_ONE__ORPHAN_REMOVAL = "orphanRemoval"; - - String ORDER_COLUMN = PACKAGE_ + "OrderColumn"; - String ORDER_COLUMN__NAME = "name"; - String ORDER_COLUMN__NULLABLE = "nullable"; - String ORDER_COLUMN__INSERTABLE = "insertable"; - String ORDER_COLUMN__UPDATABLE = "updatable"; - String ORDER_COLUMN__COLUMN_DEFINITION = "columnDefinition"; - - // SEQUENCE_GENERATOR - String SEQUENCE_GENERATOR__CATALOG = "catalog"; - String SEQUENCE_GENERATOR__SCHEMA = "schema"; - - - // JPA 2.0 enums - String ACCESS_TYPE = PACKAGE_ + "AccessType"; - String ACCESS_TYPE_ = ACCESS_TYPE + '.'; - String ACCESS_TYPE__FIELD = ACCESS_TYPE_ + "FIELD"; - String ACCESS_TYPE__PROPERTY = ACCESS_TYPE_ + "PROPERTY"; - - String LOCK_MODE_TYPE = PACKAGE_ + "LockModeType"; - String LOCK_MODE_TYPE_ = LOCK_MODE_TYPE + '.'; - String LOCK_MODE_TYPE__READ = LOCK_MODE_TYPE_ + "READ"; - String LOCK_MODE_TYPE__WRITE = LOCK_MODE_TYPE_ + "WRITE"; - String LOCK_MODE_TYPE__OPTIMISTIC = LOCK_MODE_TYPE_ + "OPTIMISTIC"; - String LOCK_MODE_TYPE__OPTIMISTIC_FORCE_INCREMENT = LOCK_MODE_TYPE_ + "OPTIMISTIC_FORCE_INCREMENT"; - String LOCK_MODE_TYPE__PESSIMISTIC_READ = LOCK_MODE_TYPE_ + "PESSIMISTIC_READ"; - String LOCK_MODE_TYPE__PESSIMISTIC_WRITE = LOCK_MODE_TYPE_ + "PESSIMISTIC_WRITE"; - String LOCK_MODE_TYPE__PESSIMISTIC_FORCE_INCREMENT = LOCK_MODE_TYPE_ + "PESSIMISTIC_FORCE_INCREMENT"; - String LOCK_MODE_TYPE__NONE = LOCK_MODE_TYPE_ + "NONE"; - - // JPA 2.0 metamodel - String METAMODEL_PACKAGE = PACKAGE_ + "metamodel"; - String METAMODEL_PACKAGE_ = METAMODEL_PACKAGE + '.'; - - String STATIC_METAMODEL = METAMODEL_PACKAGE_ + "StaticMetamodel"; - String STATIC_METAMODEL__VALUE = "value"; - - String SINGULAR_ATTRIBUTE = METAMODEL_PACKAGE_ + "SingularAttribute"; - - String COLLECTION_ATTRIBUTE = METAMODEL_PACKAGE_ + "CollectionAttribute"; - String LIST_ATTRIBUTE = METAMODEL_PACKAGE_ + "ListAttribute"; - String MAP_ATTRIBUTE = METAMODEL_PACKAGE_ + "MapAttribute"; - String SET_ATTRIBUTE = METAMODEL_PACKAGE_ + "SetAttribute"; -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/JavaResourcePersistentType2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/JavaResourcePersistentType2_0.java deleted file mode 100644 index b00ba0b4c8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/JavaResourcePersistentType2_0.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.IPackageFragmentRoot; -import org.eclipse.jpt.core.resource.java.JavaResourcePersistentType; - -/** - * JPA 2.0 Java source code or binary persistent type. - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface JavaResourcePersistentType2_0 - extends JavaResourcePersistentType -{ - - // ********** metamodel ********** - - /** - * Return the <code>javax.annotation.Generated</code> annotation. - */ - GeneratedAnnotation getGeneratedAnnotation(); - - /** - * Return whether the type is a metamodel top-level type generated in the - * specified source folder. - */ - boolean isGeneratedMetamodelTopLevelType(IPackageFragmentRoot sourceFolder); - - /** - * Return whether the type is a generated metamodel top-level type. - * The type is generated and either it or one of its nested types is a - * metamodel type. - */ - boolean isGeneratedMetamodelTopLevelType(); - - /** - * Return whether the type is a metamodel type. - */ - boolean isMetamodel(); - - /** - * The value used to tag a generated type: - * <pre> - * @javax.annotation.Generated(value="Dali", date="2009-11-23T13:56:06.171-0500") - * </pre> - */ - String METAMODEL_GENERATED_ANNOTATION_VALUE = "Dali"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/LockModeType_2_0.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/LockModeType_2_0.java deleted file mode 100644 index c03bb3b07a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/LockModeType_2_0.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.jpa2.resource.java.JPA2_0; - -/** - * Corresponds to the JPA 2.0 enum - * javax.persistence.LockModeType - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public enum LockModeType_2_0 { - - READ(JPA2_0.LOCK_MODE_TYPE__READ), - WRITE(JPA2_0.LOCK_MODE_TYPE__WRITE), - OPTIMISTIC(JPA2_0.LOCK_MODE_TYPE__OPTIMISTIC), - OPTIMISTIC_FORCE_INCREMENT(JPA2_0.LOCK_MODE_TYPE__OPTIMISTIC_FORCE_INCREMENT), - PESSIMISTIC_READ(JPA2_0.LOCK_MODE_TYPE__PESSIMISTIC_READ), - PESSIMISTIC_WRITE(JPA2_0.LOCK_MODE_TYPE__PESSIMISTIC_WRITE), - PESSIMISTIC_FORCE_INCREMENT(JPA2_0.LOCK_MODE_TYPE__PESSIMISTIC_FORCE_INCREMENT), - NONE(JPA2_0.LOCK_MODE_TYPE__NONE); - - - private String javaAnnotationValue; - - LockModeType_2_0(String javaAnnotationValue) { - if (javaAnnotationValue == null) { - throw new NullPointerException(); - } - this.javaAnnotationValue = javaAnnotationValue; - } - - public String getJavaAnnotationValue() { - return this.javaAnnotationValue; - } - - - // ********** static methods ********** - - public static LockModeType_2_0 fromJavaAnnotationValue(Object javaAnnotationValue) { - return (javaAnnotationValue == null) ? null : fromJavaAnnotationValue_(javaAnnotationValue); - } - - private static LockModeType_2_0 fromJavaAnnotationValue_(Object javaAnnotationValue) { - for (LockModeType_2_0 lockModeType : LockModeType_2_0.values()) { - if (lockModeType.getJavaAnnotationValue().equals(javaAnnotationValue)) { - return lockModeType; - } - } - return null; - } - - public static String toJavaAnnotationValue(LockModeType_2_0 lockModeType) { - return (lockModeType == null) ? null : lockModeType.getJavaAnnotationValue(); - } - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ManyToMany2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ManyToMany2_0Annotation.java deleted file mode 100644 index 0ed9d313a3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ManyToMany2_0Annotation.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.ManyToManyAnnotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface ManyToMany2_0Annotation - extends ManyToManyAnnotation, RelationshipMapping2_0Annotation -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ManyToOne2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ManyToOne2_0Annotation.java deleted file mode 100644 index 10acfe788f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/ManyToOne2_0Annotation.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.ManyToOneAnnotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface ManyToOne2_0Annotation - extends ManyToOneAnnotation, RelationshipMapping2_0Annotation -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyClass2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyClass2_0Annotation.java deleted file mode 100644 index 94d11ad6a4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyClass2_0Annotation.java +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.Annotation; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.MapKeyClass - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapKeyClass2_0Annotation - extends Annotation -{ - String ANNOTATION_NAME = JPA2_0.MAP_KEY_CLASS; - - /** - * Corresponds to the 'value' element of the MapKeyClass annotation. - * Return null if the element does not exist in Java. - * Return the portion of the value preceding ".class". - * <pre> - * @MapKeyClass(value=Employee.class) - * </pre> - * will return "Employee" - */ - String getValue(); - String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - - /** - * Corresponds to the 'value' element of the MapKeyClass annotation. - * Set to null to remove the element. - * This will also remove the MapKeyClass annotation itself. - */ - void setValue(String value); - - /** - * Return the {@link TextRange} for the 'value' element. If the element - * does not exist return the {@link TextRange} for the IdClass annotation. - */ - TextRange getValueTextRange(CompilationUnit astRoot); - - /** - * Return the fully-qualified MapKeyClass name as resolved by the AST's bindings. - * <pre> - * @IdClass(Employee.class) - * </pre> - * will return "model.Employee" if there is an import for model.Employee. - */ - String getFullyQualifiedClassName(); - String FULLY_QUALIFIED_CLASS_NAME_PROPERTY = "fullyQualifiedClassName"; //$NON-NLS-1$ - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyColumn2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyColumn2_0Annotation.java deleted file mode 100644 index e552856ef0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyColumn2_0Annotation.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.ColumnAnnotation; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.MapKeyColumn - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapKeyColumn2_0Annotation - extends ColumnAnnotation -{ - String ANNOTATION_NAME = JPA2_0.MAP_KEY_COLUMN; -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyEnumerated2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyEnumerated2_0Annotation.java deleted file mode 100644 index 592a145dae..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyEnumerated2_0Annotation.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.EnumeratedAnnotation; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.MapKeyEnumerated - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapKeyEnumerated2_0Annotation - extends EnumeratedAnnotation -{ - String ANNOTATION_NAME = JPA2_0.MAP_KEY_ENUMERATED; - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyJoinColumn2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyJoinColumn2_0Annotation.java deleted file mode 100644 index db2a43e815..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyJoinColumn2_0Annotation.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.BaseJoinColumnAnnotation; - -/** - * Corresponds to the JPA annotation - * javax.persistence.MapKeyJoinColumn - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapKeyJoinColumn2_0Annotation - extends BaseJoinColumnAnnotation -{ - String ANNOTATION_NAME = JPA2_0.MAP_KEY_JOIN_COLUMN; - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyJoinColumns2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyJoinColumns2_0Annotation.java deleted file mode 100644 index 7937a8ce0f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyJoinColumns2_0Annotation.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.ContainerAnnotation; - -/** - * Corresponds to the JPA annotation - * javax.persistence.MapKeyJoinColumns - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapKeyJoinColumns2_0Annotation - extends ContainerAnnotation<NestableMapKeyJoinColumnAnnotation> -{ - String ANNOTATION_NAME = JPA2_0.MAP_KEY_JOIN_COLUMNS; - - String MAP_KEY_JOIN_COLUMNS_LIST = "mapKeyJoinColumns"; //$NON-NLS-1$ -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyTemporal2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyTemporal2_0Annotation.java deleted file mode 100644 index bc7396a353..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapKeyTemporal2_0Annotation.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.TemporalAnnotation; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.MapKeyTemporal - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapKeyTemporal2_0Annotation - extends TemporalAnnotation -{ - String ANNOTATION_NAME = JPA2_0.MAP_KEY_TEMPORAL; - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapsId2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapsId2_0Annotation.java deleted file mode 100644 index 6e34f37dcc..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/MapsId2_0Annotation.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.Annotation; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.MapsId - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface MapsId2_0Annotation - extends Annotation -{ - String ANNOTATION_NAME = JPA2_0.MAPS_ID; - - /** - * Corresponds to the 'value' element of the MapsId annotation. - * Returns null if the element does not exist in Java. - */ - String getValue(); - String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - - /** - * Corresponds to the 'value' element of the MapsId annotation. - * Set to null to remove the element. - */ - void setValue(String newValue); - - /** - * Return the {@link TextRange} for the 'value' element. If the element - * does not exist return the {@link TextRange} for the MapsId annotation. - */ - TextRange getValueTextRange(CompilationUnit astRoot); - - /** - * Return whether the specified position touches the 'value' element. - * Return false if the element does not exist. - */ - boolean valueTouches(int pos, CompilationUnit astRoot); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/NamedQuery2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/NamedQuery2_0Annotation.java deleted file mode 100644 index 73bb8aa536..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/NamedQuery2_0Annotation.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.NamedQueryAnnotation; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.NamedQuery - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface NamedQuery2_0Annotation - extends NamedQueryAnnotation -{ - // ********** lockMode ********** - /** - * Corresponds to the 'lockMode' element of the NamedQuery annotation. - * Return null if the element does not exist in Java. - */ - LockModeType_2_0 getLockMode(); - String LOCK_MODE_PROPERTY = "lockMode"; //$NON-NLS-1$ - - /** - * Corresponds to the 'lockMode' element of the NamedQuery annotation. - * Set to null to remove the element. If no other elements exist - * the NamedQuery annotation will be removed as well. - */ - void setLockMode(LockModeType_2_0 lockMode); - - /** - * Return the {@link TextRange} for the 'lockMode' element. If the element - * does not exist return the {@link TextRange} for the NamedQuery annotation. - */ - TextRange getLockModeTextRange(CompilationUnit astRoot); - - /** - * Return whether the specified position touches the 'lockMode' element. - * Return false if the element does not exist. - */ - boolean lockModeTouches(int pos, CompilationUnit astRoot); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/NestableMapKeyJoinColumnAnnotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/NestableMapKeyJoinColumnAnnotation.java deleted file mode 100644 index a099578e8e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/NestableMapKeyJoinColumnAnnotation.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.NestableAnnotation; - -/** - * Corresponds to the JPA annotation - * javax.persistence.MapKeyJoinColumn - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface NestableMapKeyJoinColumnAnnotation - extends MapKeyJoinColumn2_0Annotation, NestableAnnotation -{ - // combine two interfaces -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OneToMany2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OneToMany2_0Annotation.java deleted file mode 100644 index 856ddece4c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OneToMany2_0Annotation.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.OneToManyAnnotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OneToMany2_0Annotation - extends OneToManyAnnotation, OrphanRemovable2_0Annotation, RelationshipMapping2_0Annotation -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OneToOne2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OneToOne2_0Annotation.java deleted file mode 100644 index 769a5243bb..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OneToOne2_0Annotation.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.OneToOneAnnotation; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OneToOne2_0Annotation - extends OneToOneAnnotation, OrphanRemovable2_0Annotation, RelationshipMapping2_0Annotation -{} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OrderColumn2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OrderColumn2_0Annotation.java deleted file mode 100644 index ae46d2adbf..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OrderColumn2_0Annotation.java +++ /dev/null @@ -1,94 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.NamedColumnAnnotation; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.OrderColumn - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrderColumn2_0Annotation - extends NamedColumnAnnotation -{ - - String ANNOTATION_NAME = JPA2_0.ORDER_COLUMN; - - /** - * Corresponds to the 'nullable' element of the OrderColumn annotation. - * Return null if the element does not exist in Java. - */ - Boolean getNullable(); - String NULLABLE_PROPERTY = "nullable"; //$NON-NLS-1$ - - /** - * Corresponds to the 'nullable' element of the OrderColumn annotation. - * Set to null to remove the element. - */ - void setNullable(Boolean nullable); - - /** - * Return the {@link TextRange} for the 'nullable' element. If the element - * does not exist return the {@link TextRange} for the OrderColumn annotation. - */ - TextRange getNullableTextRange(CompilationUnit astRoot); - - - /** - * Corresponds to the 'insertable' element of the OrderColumn annotation. - * Return null if the element does not exist in Java. - */ - Boolean getInsertable(); - String INSERTABLE_PROPERTY = "insertable"; //$NON-NLS-1$ - - /** - * Corresponds to the 'insertable' element of the OrderColumn annotation. - * Set to null to remove the element. - */ - void setInsertable(Boolean insertable); - - /** - * Return the {@link TextRange} for the 'insertable' element. If the element - * does not exist return the {@link TextRange} for the OrderColumn annotation. - */ - TextRange getInsertableTextRange(CompilationUnit astRoot); - - - /** - * Corresponds to the 'updatable' element of the OrderColumn annotation. - * Return null if the element does not exist in Java. - */ - Boolean getUpdatable(); - String UPDATABLE_PROPERTY = "updatable"; //$NON-NLS-1$ - - /** - * Corresponds to the 'updatable' element of the OrderColumn annotation. - * Set to null to remove the element. - */ - void setUpdatable(Boolean updatable); - - /** - * Return the {@link TextRange} for the 'updatable' element. If the element - * does not exist return the {@link TextRange} for the OrderColumn annotation. - */ - TextRange getUpdatableTextRange(CompilationUnit astRoot); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OrphanRemovable2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OrphanRemovable2_0Annotation.java deleted file mode 100644 index c9a9e786f8..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/OrphanRemovable2_0Annotation.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface OrphanRemovable2_0Annotation -{ - // ********** orphan removal ********** - /** - * Corresponds to the orphanRemoval element of the OneToMany annotation. - * Returns null if the orphanRemoval element does not exist in java. - */ - Boolean getOrphanRemoval(); - String ORPHAN_REMOVAL_PROPERTY = "orphanRemoval"; //$NON-NLS-1$ - - /** - * Corresponds to the orphanRemoval element of the OneToMany annotation. - * Set to null to remove the orphanRemoval element. - */ - void setOrphanRemoval(Boolean orphanRemoval); - - /** - * Return the {@link TextRange} for the orphanRemoval element. If the orphanRemoval element - * does not exist return the {@link TextRange} for the OneToMany annotation. - */ - TextRange getOrphanRemovalTextRange(CompilationUnit astRoot); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/RelationshipMapping2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/RelationshipMapping2_0Annotation.java deleted file mode 100644 index 7afcf1c3ec..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/RelationshipMapping2_0Annotation.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.RelationshipMappingAnnotation; - -/** - * Common protocol among 2.0 - * javax.persistence.ManyToOne - * javax.persistence.ManyToMany - * javax.persistence.OneToMany - * javax.persistence.OneToOne - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface RelationshipMapping2_0Annotation - extends RelationshipMappingAnnotation -{ - - - /** - * Corresponds to the 'cascade' element of the relationship annotations. - */ - boolean isCascadeDetach(); - String CASCADE_DETACH_PROPERTY = "cascadeDetach"; //$NON-NLS-1$ - - /** - * Corresponds to the 'cascade' element of the relationship annotations. - */ - void setCascadeDetach(boolean detach); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/SequenceGenerator2_0Annotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/SequenceGenerator2_0Annotation.java deleted file mode 100644 index 84aa0622bb..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/SequenceGenerator2_0Annotation.java +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jdt.core.dom.CompilationUnit; -import org.eclipse.jpt.core.resource.java.SequenceGeneratorAnnotation; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * Corresponds to the JPA 2.0 annotation - * javax.persistence.SequenceGenerator - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface SequenceGenerator2_0Annotation - extends SequenceGeneratorAnnotation -{ - // ********** catalog ********** - /** - * Corresponds to the 'catalog' element of the TableGenerator annotation. - * Return null if the element does not exist in Java. - */ - String getCatalog(); - String CATALOG_PROPERTY = "catalog"; //$NON-NLS-1$ - - /** - * Corresponds to the 'catalog' element of the TableGenerator annotation. - * Set to null to remove the element. If no other elements exist - * the TableGenerator annotation will be removed as well. - */ - void setCatalog(String catalog); - - /** - * Return the {@link TextRange} for the 'catalog' element. If the element - * does not exist return the {@link TextRange} for the TableGenerator annotation. - */ - TextRange getCatalogTextRange(CompilationUnit astRoot); - - /** - * Return whether the specified position touches the 'catalog' element. - * Return false if the element does not exist. - */ - boolean catalogTouches(int pos, CompilationUnit astRoot); - - - // ********** schema ********** - - /** - * Corresponds to the 'schema' element of the TableGenerator annotation. - * Return null if the element does not exist in Java. - */ - String getSchema(); - String SCHEMA_PROPERTY = "schema"; //$NON-NLS-1$ - - /** - * Corresponds to the 'schema' element of the TableGenerator annotation. - * Set to null to remove the element. If no other elements exist - * the TableGenerator annotation will be removed as well. - */ - void setSchema(String schema); - - /** - * Return the {@link TextRange} for the 'schema' element. If the element - * does not exist return the {@link TextRange} for the TableGenerator annotation. - */ - TextRange getSchemaTextRange(CompilationUnit astRoot); - - /** - * Return whether the specified position touches the 'schema' element. - * Return false if the element does not exist. - */ - boolean schemaTouches(int pos, CompilationUnit astRoot); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/StaticMetamodelAnnotation.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/StaticMetamodelAnnotation.java deleted file mode 100644 index fdb3c2771a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/jpa2/resource/java/StaticMetamodelAnnotation.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2010 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.core.jpa2.resource.java; - -import org.eclipse.jpt.core.resource.java.Annotation; - -/** - * Corresponds to the JPA 2.0 annotation - * <code>javax.persistence.metamodel.StaticMetamodel</code> - * <p> - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * - * @version 2.3 - * @since 2.3 - */ -public interface StaticMetamodelAnnotation - extends Annotation -{ - String ANNOTATION_NAME = JPA2_0.STATIC_METAMODEL; - - /** - * Corresponds to the <code>value</code> element of the <code>StaticMetamodel</code> annotation. - * Return <code>null</code> if the element does not exist in Java. - * Return the portion of the value preceding <code>".class"</code>. - * <pre> - * @StaticMetamodel(value=Employee.class) - * </pre> - * will return <code>"Employee"</code>. - */ - String getValue(); - String VALUE_PROPERTY = "value"; //$NON-NLS-1$ - - /** - * Corresponds to the <code>value</code> element of the <code>StaticMetamodel</code> annotation. - * Set to <code>null</code> to remove the element. - */ - void setValue(String value); - - /** - * Return the <code>StaticMetamodel</code>'s fully-qualified class name as resolved by - * the AST's bindings. - * <pre> - * @StaticMetamodel(Employee.class) - * </pre> - * will return <code>"model.Employee"</code> if there is an import for <code>model.Employee</code>. - */ - String getFullyQualifiedClassName(); - String FULLY_QUALIFIED_CLASS_NAME_PROPERTY = "fullyQualifiedClassName"; //$NON-NLS-1$ - -} |