diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource')
12 files changed, 1369 insertions, 7 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/BasicCollectionAnnotation.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/BasicCollectionAnnotation.java new file mode 100644 index 0000000000..5fa7bc7e0d --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/BasicCollectionAnnotation.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.java; + +import org.eclipse.jpt.core.resource.java.JavaResourceNode; + +/** + * Java resource model interface that corresponds to the Eclipselink + * annotation org.eclipse.persistence.annotations.Transformation + * + * 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.1 + * @since 2.1 + */ +public interface BasicCollectionAnnotation extends JavaResourceNode +{ + String ANNOTATION_NAME = EclipseLinkJPA.BASIC_COLLECTION; +} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/BasicMapAnnotation.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/BasicMapAnnotation.java new file mode 100644 index 0000000000..795c7c19ba --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/BasicMapAnnotation.java @@ -0,0 +1,30 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.java; + +import org.eclipse.jpt.core.resource.java.JavaResourceNode; + +/** + * Java resource model interface that corresponds to the Eclipselink + * annotation org.eclipse.persistence.annotations.BasicMap + * + * 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.1 + * @since 2.1 + */ +public interface BasicMapAnnotation extends JavaResourceNode +{ + String ANNOTATION_NAME = EclipseLinkJPA.BASIC_MAP; +} diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/EclipseLinkJPA.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/EclipseLinkJPA.java index fe8eda3acc..99aa7f2d7f 100644 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/EclipseLinkJPA.java +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/java/EclipseLinkJPA.java @@ -33,6 +33,10 @@ public interface EclipseLinkJPA { // ********** API ********** // JPA annotations + String BASIC_COLLECTION = PACKAGE_ + "BasicCollection"; + + String BASIC_MAP = PACKAGE_ + "BasicMap"; + String CACHE = PACKAGE_ + "Cache"; String CACHE__SHARED = "shared"; String CACHE__EXPIRY = "expiry"; diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/Attributes.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/Attributes.java new file mode 100644 index 0000000000..5497fe6f6c --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/Attributes.java @@ -0,0 +1,351 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.orm; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.ListIterator; +import org.eclipse.emf.common.notify.NotificationChain; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.jpt.core.resource.orm.XmlAttributeMapping; +import org.eclipse.jpt.core.resource.orm.XmlBasic; +import org.eclipse.jpt.core.resource.orm.XmlEmbedded; +import org.eclipse.jpt.core.resource.orm.XmlEmbeddedId; +import org.eclipse.jpt.core.resource.orm.XmlId; +import org.eclipse.jpt.core.resource.orm.XmlManyToMany; +import org.eclipse.jpt.core.resource.orm.XmlManyToOne; +import org.eclipse.jpt.core.resource.orm.XmlOneToMany; +import org.eclipse.jpt.core.resource.orm.XmlOneToOne; +import org.eclipse.jpt.core.resource.orm.XmlTransient; +import org.eclipse.jpt.core.resource.orm.XmlVersion; +import org.eclipse.jpt.utility.internal.CollectionTools; +import org.eclipse.jpt.utility.internal.iterators.CloneListIterator; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Attributes</b></em>'. + * <!-- end-user-doc --> + * + * 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. + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getBasicCollections <em>Basic Collections</em>}</li> + * <li>{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getBasicMaps <em>Basic Maps</em>}</li> + * <li>{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getTransformations <em>Transformations</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getAttributes() + * @model kind="class" + * @generated + */ +public class Attributes extends org.eclipse.jpt.core.resource.orm.Attributes +{ + /** + * The cached value of the '{@link #getBasicCollections() <em>Basic Collections</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBasicCollections() + * @generated + * @ordered + */ + protected EList<XmlBasicCollection> basicCollections; + + /** + * The cached value of the '{@link #getBasicMaps() <em>Basic Maps</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBasicMaps() + * @generated + * @ordered + */ + protected EList<XmlBasicMap> basicMaps; + + /** + * The cached value of the '{@link #getTransformations() <em>Transformations</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTransformations() + * @generated + * @ordered + */ + protected EList<XmlTransformation> transformations; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected Attributes() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.ATTRIBUTES; + } + + /** + * Returns the value of the '<em><b>Basic Collections</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollection}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Basic Collections</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Basic Collections</em>' containment reference list. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getAttributes_BasicCollections() + * @model containment="true" + * @generated + */ + public EList<XmlBasicCollection> getBasicCollections() + { + if (basicCollections == null) + { + basicCollections = new EObjectContainmentEList<XmlBasicCollection>(XmlBasicCollection.class, this, EclipseLinkOrmPackage.ATTRIBUTES__BASIC_COLLECTIONS); + } + return basicCollections; + } + + /** + * Returns the value of the '<em><b>Basic Maps</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMap}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Basic Maps</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Basic Maps</em>' containment reference list. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getAttributes_BasicMaps() + * @model containment="true" + * @generated + */ + public EList<XmlBasicMap> getBasicMaps() + { + if (basicMaps == null) + { + basicMaps = new EObjectContainmentEList<XmlBasicMap>(XmlBasicMap.class, this, EclipseLinkOrmPackage.ATTRIBUTES__BASIC_MAPS); + } + return basicMaps; + } + + /** + * Returns the value of the '<em><b>Transformations</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformation}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Transformations</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Transformations</em>' containment reference list. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getAttributes_Transformations() + * @model containment="true" + * @generated + */ + public EList<XmlTransformation> getTransformations() + { + if (transformations == null) + { + transformations = new EObjectContainmentEList<XmlTransformation>(XmlTransformation.class, this, EclipseLinkOrmPackage.ATTRIBUTES__TRANSFORMATIONS); + } + return transformations; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_COLLECTIONS: + return ((InternalEList<?>)getBasicCollections()).basicRemove(otherEnd, msgs); + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_MAPS: + return ((InternalEList<?>)getBasicMaps()).basicRemove(otherEnd, msgs); + case EclipseLinkOrmPackage.ATTRIBUTES__TRANSFORMATIONS: + return ((InternalEList<?>)getTransformations()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_COLLECTIONS: + return getBasicCollections(); + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_MAPS: + return getBasicMaps(); + case EclipseLinkOrmPackage.ATTRIBUTES__TRANSFORMATIONS: + return getTransformations(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_COLLECTIONS: + getBasicCollections().clear(); + getBasicCollections().addAll((Collection<? extends XmlBasicCollection>)newValue); + return; + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_MAPS: + getBasicMaps().clear(); + getBasicMaps().addAll((Collection<? extends XmlBasicMap>)newValue); + return; + case EclipseLinkOrmPackage.ATTRIBUTES__TRANSFORMATIONS: + getTransformations().clear(); + getTransformations().addAll((Collection<? extends XmlTransformation>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_COLLECTIONS: + getBasicCollections().clear(); + return; + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_MAPS: + getBasicMaps().clear(); + return; + case EclipseLinkOrmPackage.ATTRIBUTES__TRANSFORMATIONS: + getTransformations().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_COLLECTIONS: + return basicCollections != null && !basicCollections.isEmpty(); + case EclipseLinkOrmPackage.ATTRIBUTES__BASIC_MAPS: + return basicMaps != null && !basicMaps.isEmpty(); + case EclipseLinkOrmPackage.ATTRIBUTES__TRANSFORMATIONS: + return transformations != null && !transformations.isEmpty(); + } + return super.eIsSet(featureID); + } + + @Override + public List<XmlAttributeMapping> getAttributeMappings() { + List<XmlAttributeMapping> attributeMappings = new ArrayList<XmlAttributeMapping>(); + ListIterator<XmlId> ids = new CloneListIterator<XmlId>(this.getIds());//prevent ConcurrentModificiationException + for (XmlId mapping : CollectionTools.iterable(ids)) { + attributeMappings.add(mapping); + } + ListIterator<XmlEmbeddedId> embeddedIds = new CloneListIterator<XmlEmbeddedId>(this.getEmbeddedIds());//prevent ConcurrentModificiationException + for (XmlEmbeddedId mapping : CollectionTools.iterable(embeddedIds)) { + attributeMappings.add(mapping); + } + ListIterator<XmlBasic> basics = new CloneListIterator<XmlBasic>(this.getBasics());//prevent ConcurrentModificiationException + for (XmlBasic mapping : CollectionTools.iterable(basics)) { + attributeMappings.add(mapping); + } + ListIterator<XmlBasicCollection> basicCollections = new CloneListIterator<XmlBasicCollection>(this.getBasicCollections());//prevent ConcurrentModificiationException + for (XmlBasicCollection mapping : CollectionTools.iterable(basicCollections)) { + attributeMappings.add(mapping); + } + ListIterator<XmlBasicMap> basicMaps = new CloneListIterator<XmlBasicMap>(this.getBasicMaps());//prevent ConcurrentModificiationException + for (XmlBasicMap mapping : CollectionTools.iterable(basicMaps)) { + attributeMappings.add(mapping); + } + ListIterator<XmlVersion> versions = new CloneListIterator<XmlVersion>(this.getVersions());//prevent ConcurrentModificiationException + for (XmlVersion mapping : CollectionTools.iterable(versions)) { + attributeMappings.add(mapping); + } + ListIterator<XmlManyToOne> manyToOnes = new CloneListIterator<XmlManyToOne>(this.getManyToOnes());//prevent ConcurrentModificiationException + for (XmlManyToOne mapping : CollectionTools.iterable(manyToOnes)) { + attributeMappings.add(mapping); + } + ListIterator<XmlOneToMany> oneToManys = new CloneListIterator<XmlOneToMany>(this.getOneToManys());//prevent ConcurrentModificiationException + for (XmlOneToMany mapping : CollectionTools.iterable(oneToManys)) { + attributeMappings.add(mapping); + } + ListIterator<XmlOneToOne> oneToOnes = new CloneListIterator<XmlOneToOne>(this.getOneToOnes());//prevent ConcurrentModificiationException + for (XmlOneToOne mapping : CollectionTools.iterable(oneToOnes)) { + attributeMappings.add(mapping); + } + ListIterator<XmlManyToMany> manyToManys = new CloneListIterator<XmlManyToMany>(this.getManyToManys());//prevent ConcurrentModificiationException + for (XmlManyToMany mapping : CollectionTools.iterable(manyToManys)) { + attributeMappings.add(mapping); + } + ListIterator<XmlEmbedded> embeddeds = new CloneListIterator<XmlEmbedded>(this.getEmbeddeds());//prevent ConcurrentModificiationException + for (XmlEmbedded mapping : CollectionTools.iterable(embeddeds)) { + attributeMappings.add(mapping); + } + ListIterator<XmlTransformation> transformations = new CloneListIterator<XmlTransformation>(this.getTransformations());//prevent ConcurrentModificiationException + for (XmlTransformation mapping : CollectionTools.iterable(transformations)) { + attributeMappings.add(mapping); + } + ListIterator<XmlTransient> transients = new CloneListIterator<XmlTransient>(this.getTransients());//prevent ConcurrentModificiationException + for (XmlTransient mapping : CollectionTools.iterable(transients)) { + attributeMappings.add(mapping); + } + return attributeMappings; + } + + +} // Attributes diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java index d933b91805..12a0232351 100644 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java @@ -30,7 +30,6 @@ import org.eclipse.emf.ecore.plugin.EcorePlugin; * @since 2.1 * * <!-- end-user-doc --> - * * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage * @generated */ @@ -108,6 +107,10 @@ public class EclipseLinkOrmFactory extends EFactoryImpl case EclipseLinkOrmPackage.XML_ONE_TO_MANY_IMPL: return (EObject)createXmlOneToManyImpl(); case EclipseLinkOrmPackage.XML_MANY_TO_ONE_IMPL: return (EObject)createXmlManyToOneImpl(); case EclipseLinkOrmPackage.XML_MANY_TO_MANY_IMPL: return (EObject)createXmlManyToManyImpl(); + case EclipseLinkOrmPackage.ATTRIBUTES: return (EObject)createAttributes(); + case EclipseLinkOrmPackage.XML_BASIC_COLLECTION_IMPL: return (EObject)createXmlBasicCollectionImpl(); + case EclipseLinkOrmPackage.XML_BASIC_MAP_IMPL: return (EObject)createXmlBasicMapImpl(); + case EclipseLinkOrmPackage.XML_TRANSFORMATION_IMPL: return (EObject)createXmlTransformationImpl(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } @@ -366,6 +369,50 @@ public class EclipseLinkOrmFactory extends EFactoryImpl * <!-- end-user-doc --> * @generated */ + public Attributes createAttributes() + { + Attributes attributes = new Attributes(); + return attributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlBasicCollectionImpl createXmlBasicCollectionImpl() + { + XmlBasicCollectionImpl xmlBasicCollectionImpl = new XmlBasicCollectionImpl(); + return xmlBasicCollectionImpl; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlBasicMapImpl createXmlBasicMapImpl() + { + XmlBasicMapImpl xmlBasicMapImpl = new XmlBasicMapImpl(); + return xmlBasicMapImpl; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlTransformationImpl createXmlTransformationImpl() + { + XmlTransformationImpl xmlTransformationImpl = new XmlTransformationImpl(); + return xmlTransformationImpl; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public XmlChangeTrackingType createXmlChangeTrackingTypeFromString(EDataType eDataType, String initialValue) { XmlChangeTrackingType result = XmlChangeTrackingType.get(initialValue); diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java index 59b99cc126..309db2551e 100644 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java @@ -40,7 +40,6 @@ import org.eclipse.jpt.core.resource.orm.OrmPackage; * @since 2.1 * * <!-- end-user-doc --> - * * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmFactory * @model kind="package" * @generated @@ -3741,6 +3740,310 @@ public class EclipseLinkOrmPackage extends EPackageImpl public static final int XML_MANY_TO_MANY_IMPL_FEATURE_COUNT = OrmPackage.XML_MANY_TO_MANY_IMPL_FEATURE_COUNT + 1; /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes <em>Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.Attributes + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getAttributes() + * @generated + */ + public static final int ATTRIBUTES = 43; + + /** + * The feature id for the '<em><b>Ids</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__IDS = OrmPackage.ATTRIBUTES__IDS; + + /** + * The feature id for the '<em><b>Embedded Ids</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__EMBEDDED_IDS = OrmPackage.ATTRIBUTES__EMBEDDED_IDS; + + /** + * The feature id for the '<em><b>Basics</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__BASICS = OrmPackage.ATTRIBUTES__BASICS; + + /** + * The feature id for the '<em><b>Versions</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__VERSIONS = OrmPackage.ATTRIBUTES__VERSIONS; + + /** + * The feature id for the '<em><b>Many To Ones</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__MANY_TO_ONES = OrmPackage.ATTRIBUTES__MANY_TO_ONES; + + /** + * The feature id for the '<em><b>One To Manys</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__ONE_TO_MANYS = OrmPackage.ATTRIBUTES__ONE_TO_MANYS; + + /** + * The feature id for the '<em><b>One To Ones</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__ONE_TO_ONES = OrmPackage.ATTRIBUTES__ONE_TO_ONES; + + /** + * The feature id for the '<em><b>Many To Manys</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__MANY_TO_MANYS = OrmPackage.ATTRIBUTES__MANY_TO_MANYS; + + /** + * The feature id for the '<em><b>Embeddeds</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__EMBEDDEDS = OrmPackage.ATTRIBUTES__EMBEDDEDS; + + /** + * The feature id for the '<em><b>Transients</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__TRANSIENTS = OrmPackage.ATTRIBUTES__TRANSIENTS; + + /** + * The feature id for the '<em><b>Basic Collections</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__BASIC_COLLECTIONS = OrmPackage.ATTRIBUTES_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Basic Maps</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__BASIC_MAPS = OrmPackage.ATTRIBUTES_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Transformations</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES__TRANSFORMATIONS = OrmPackage.ATTRIBUTES_FEATURE_COUNT + 2; + + /** + * The number of structural features of the '<em>Attributes</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int ATTRIBUTES_FEATURE_COUNT = OrmPackage.ATTRIBUTES_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollection <em>Xml Basic Collection</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollection + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicCollection() + * @generated + */ + public static final int XML_BASIC_COLLECTION = 44; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_COLLECTION__NAME = OrmPackage.XML_ATTRIBUTE_MAPPING__NAME; + + /** + * The number of structural features of the '<em>Xml Basic Collection</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_COLLECTION_FEATURE_COUNT = OrmPackage.XML_ATTRIBUTE_MAPPING_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollectionImpl <em>Xml Basic Collection Impl</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollectionImpl + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicCollectionImpl() + * @generated + */ + public static final int XML_BASIC_COLLECTION_IMPL = 45; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_COLLECTION_IMPL__NAME = OrmPackage.ABSTRACT_XML_ATTRIBUTE_MAPPING__NAME; + + /** + * The number of structural features of the '<em>Xml Basic Collection Impl</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_COLLECTION_IMPL_FEATURE_COUNT = OrmPackage.ABSTRACT_XML_ATTRIBUTE_MAPPING_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMap <em>Xml Basic Map</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMap + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicMap() + * @generated + */ + public static final int XML_BASIC_MAP = 46; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_MAP__NAME = OrmPackage.XML_ATTRIBUTE_MAPPING__NAME; + + /** + * The number of structural features of the '<em>Xml Basic Map</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_MAP_FEATURE_COUNT = OrmPackage.XML_ATTRIBUTE_MAPPING_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMapImpl <em>Xml Basic Map Impl</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMapImpl + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicMapImpl() + * @generated + */ + public static final int XML_BASIC_MAP_IMPL = 47; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_MAP_IMPL__NAME = OrmPackage.ABSTRACT_XML_ATTRIBUTE_MAPPING__NAME; + + /** + * The number of structural features of the '<em>Xml Basic Map Impl</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_MAP_IMPL_FEATURE_COUNT = OrmPackage.ABSTRACT_XML_ATTRIBUTE_MAPPING_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformation <em>Xml Transformation</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformation + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlTransformation() + * @generated + */ + public static final int XML_TRANSFORMATION = 48; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_TRANSFORMATION__NAME = OrmPackage.XML_ATTRIBUTE_MAPPING__NAME; + + /** + * The number of structural features of the '<em>Xml Transformation</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_TRANSFORMATION_FEATURE_COUNT = OrmPackage.XML_ATTRIBUTE_MAPPING_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformationImpl <em>Xml Transformation Impl</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformationImpl + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlTransformationImpl() + * @generated + */ + public static final int XML_TRANSFORMATION_IMPL = 49; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_TRANSFORMATION_IMPL__NAME = OrmPackage.ABSTRACT_XML_ATTRIBUTE_MAPPING__NAME; + + /** + * The number of structural features of the '<em>Xml Transformation Impl</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_TRANSFORMATION_IMPL_FEATURE_COUNT = OrmPackage.ABSTRACT_XML_ATTRIBUTE_MAPPING_FEATURE_COUNT + 0; + + /** * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlChangeTrackingType <em>Xml Change Tracking Type</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -3748,7 +4051,7 @@ public class EclipseLinkOrmPackage extends EPackageImpl * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlChangeTrackingType() * @generated */ - public static final int XML_CHANGE_TRACKING_TYPE = 43; + public static final int XML_CHANGE_TRACKING_TYPE = 50; /** * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.CacheType <em>Cache Type</em>}' enum. @@ -3758,7 +4061,7 @@ public class EclipseLinkOrmPackage extends EPackageImpl * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getCacheType() * @generated */ - public static final int CACHE_TYPE = 44; + public static final int CACHE_TYPE = 51; /** * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.CacheCoordinationType <em>Cache Coordination Type</em>}' enum. @@ -3768,7 +4071,7 @@ public class EclipseLinkOrmPackage extends EPackageImpl * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getCacheCoordinationType() * @generated */ - public static final int CACHE_COORDINATION_TYPE = 45; + public static final int CACHE_COORDINATION_TYPE = 52; /** * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType <em>Xml Join Fetch Type</em>}' enum. @@ -3778,7 +4081,7 @@ public class EclipseLinkOrmPackage extends EPackageImpl * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetchType() * @generated */ - public static final int XML_JOIN_FETCH_TYPE = 47; + public static final int XML_JOIN_FETCH_TYPE = 54; /** * <!-- begin-user-doc --> @@ -3795,7 +4098,7 @@ public class EclipseLinkOrmPackage extends EPackageImpl * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getExistenceType() * @generated */ - public static final int EXISTENCE_TYPE = 46; + public static final int EXISTENCE_TYPE = 53; /** * <!-- begin-user-doc --> @@ -4019,6 +4322,55 @@ public class EclipseLinkOrmPackage extends EPackageImpl * <!-- end-user-doc --> * @generated */ + private EClass attributesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlBasicCollectionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlBasicCollectionImplEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlBasicMapEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlBasicMapImplEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlTransformationEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlTransformationImplEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ private EEnum xmlChangeTrackingTypeEEnum = null; /** @@ -5046,6 +5398,149 @@ public class EclipseLinkOrmPackage extends EPackageImpl /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes <em>Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Attributes</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.Attributes + * @generated + */ + public EClass getAttributes() + { + return attributesEClass; + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getBasicCollections <em>Basic Collections</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Basic Collections</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getBasicCollections() + * @see #getAttributes() + * @generated + */ + public EReference getAttributes_BasicCollections() + { + return (EReference)attributesEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getBasicMaps <em>Basic Maps</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Basic Maps</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getBasicMaps() + * @see #getAttributes() + * @generated + */ + public EReference getAttributes_BasicMaps() + { + return (EReference)attributesEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getTransformations <em>Transformations</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Transformations</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.Attributes#getTransformations() + * @see #getAttributes() + * @generated + */ + public EReference getAttributes_Transformations() + { + return (EReference)attributesEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollection <em>Xml Basic Collection</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Basic Collection</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollection + * @generated + */ + public EClass getXmlBasicCollection() + { + return xmlBasicCollectionEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollectionImpl <em>Xml Basic Collection Impl</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Basic Collection Impl</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollectionImpl + * @generated + */ + public EClass getXmlBasicCollectionImpl() + { + return xmlBasicCollectionImplEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMap <em>Xml Basic Map</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Basic Map</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMap + * @generated + */ + public EClass getXmlBasicMap() + { + return xmlBasicMapEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMapImpl <em>Xml Basic Map Impl</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Basic Map Impl</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMapImpl + * @generated + */ + public EClass getXmlBasicMapImpl() + { + return xmlBasicMapImplEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformation <em>Xml Transformation</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Transformation</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformation + * @generated + */ + public EClass getXmlTransformation() + { + return xmlTransformationEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformationImpl <em>Xml Transformation Impl</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Transformation Impl</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformationImpl + * @generated + */ + public EClass getXmlTransformationImpl() + { + return xmlTransformationImplEClass; + } + + + /** * Returns the meta object for enum '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlChangeTrackingType <em>Xml Change Tracking Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -5636,6 +6131,23 @@ public class EclipseLinkOrmPackage extends EPackageImpl xmlManyToManyImplEClass = createEClass(XML_MANY_TO_MANY_IMPL); + attributesEClass = createEClass(ATTRIBUTES); + createEReference(attributesEClass, ATTRIBUTES__BASIC_COLLECTIONS); + createEReference(attributesEClass, ATTRIBUTES__BASIC_MAPS); + createEReference(attributesEClass, ATTRIBUTES__TRANSFORMATIONS); + + xmlBasicCollectionEClass = createEClass(XML_BASIC_COLLECTION); + + xmlBasicCollectionImplEClass = createEClass(XML_BASIC_COLLECTION_IMPL); + + xmlBasicMapEClass = createEClass(XML_BASIC_MAP); + + xmlBasicMapImplEClass = createEClass(XML_BASIC_MAP_IMPL); + + xmlTransformationEClass = createEClass(XML_TRANSFORMATION); + + xmlTransformationImplEClass = createEClass(XML_TRANSFORMATION_IMPL); + // Create enums xmlChangeTrackingTypeEEnum = createEEnum(XML_CHANGE_TRACKING_TYPE); cacheTypeEEnum = createEEnum(CACHE_TYPE); @@ -5739,6 +6251,16 @@ public class EclipseLinkOrmPackage extends EPackageImpl xmlManyToManyEClass.getESuperTypes().add(this.getXmlJoinFetch()); xmlManyToManyImplEClass.getESuperTypes().add(theOrmPackage.getXmlManyToManyImpl()); xmlManyToManyImplEClass.getESuperTypes().add(this.getXmlManyToMany()); + attributesEClass.getESuperTypes().add(theOrmPackage.getAttributes()); + xmlBasicCollectionEClass.getESuperTypes().add(theOrmPackage.getXmlAttributeMapping()); + xmlBasicCollectionImplEClass.getESuperTypes().add(theOrmPackage.getAbstractXmlAttributeMapping()); + xmlBasicCollectionImplEClass.getESuperTypes().add(this.getXmlBasicCollection()); + xmlBasicMapEClass.getESuperTypes().add(theOrmPackage.getXmlAttributeMapping()); + xmlBasicMapImplEClass.getESuperTypes().add(theOrmPackage.getAbstractXmlAttributeMapping()); + xmlBasicMapImplEClass.getESuperTypes().add(this.getXmlBasicMap()); + xmlTransformationEClass.getESuperTypes().add(theOrmPackage.getXmlAttributeMapping()); + xmlTransformationImplEClass.getESuperTypes().add(theOrmPackage.getAbstractXmlAttributeMapping()); + xmlTransformationImplEClass.getESuperTypes().add(this.getXmlTransformation()); // Initialize classes and features; add operations and parameters initEClass(xmlNamedConverterEClass, XmlNamedConverter.class, "XmlNamedConverter", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); @@ -5870,6 +6392,23 @@ public class EclipseLinkOrmPackage extends EPackageImpl initEClass(xmlManyToManyImplEClass, XmlManyToManyImpl.class, "XmlManyToManyImpl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEClass(attributesEClass, Attributes.class, "Attributes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAttributes_BasicCollections(), this.getXmlBasicCollection(), null, "basicCollections", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_BasicMaps(), this.getXmlBasicMap(), null, "basicMaps", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_Transformations(), this.getXmlTransformation(), null, "transformations", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(xmlBasicCollectionEClass, XmlBasicCollection.class, "XmlBasicCollection", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlBasicCollectionImplEClass, XmlBasicCollectionImpl.class, "XmlBasicCollectionImpl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlBasicMapEClass, XmlBasicMap.class, "XmlBasicMap", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlBasicMapImplEClass, XmlBasicMapImpl.class, "XmlBasicMapImpl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlTransformationEClass, XmlTransformation.class, "XmlTransformation", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlTransformationImplEClass, XmlTransformationImpl.class, "XmlTransformationImpl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + // Initialize enums and add enum literals initEEnum(xmlChangeTrackingTypeEEnum, XmlChangeTrackingType.class, "XmlChangeTrackingType"); addEEnumLiteral(xmlChangeTrackingTypeEEnum, XmlChangeTrackingType.ATTRIBUTE); @@ -6473,6 +7012,100 @@ public class EclipseLinkOrmPackage extends EPackageImpl public static final EClass XML_MANY_TO_MANY_IMPL = eINSTANCE.getXmlManyToManyImpl(); /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.Attributes <em>Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.Attributes + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getAttributes() + * @generated + */ + public static final EClass ATTRIBUTES = eINSTANCE.getAttributes(); + + /** + * The meta object literal for the '<em><b>Basic Collections</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final EReference ATTRIBUTES__BASIC_COLLECTIONS = eINSTANCE.getAttributes_BasicCollections(); + + /** + * The meta object literal for the '<em><b>Basic Maps</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final EReference ATTRIBUTES__BASIC_MAPS = eINSTANCE.getAttributes_BasicMaps(); + + /** + * The meta object literal for the '<em><b>Transformations</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final EReference ATTRIBUTES__TRANSFORMATIONS = eINSTANCE.getAttributes_Transformations(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollection <em>Xml Basic Collection</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollection + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicCollection() + * @generated + */ + public static final EClass XML_BASIC_COLLECTION = eINSTANCE.getXmlBasicCollection(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollectionImpl <em>Xml Basic Collection Impl</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicCollectionImpl + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicCollectionImpl() + * @generated + */ + public static final EClass XML_BASIC_COLLECTION_IMPL = eINSTANCE.getXmlBasicCollectionImpl(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMap <em>Xml Basic Map</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMap + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicMap() + * @generated + */ + public static final EClass XML_BASIC_MAP = eINSTANCE.getXmlBasicMap(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMapImpl <em>Xml Basic Map Impl</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasicMapImpl + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicMapImpl() + * @generated + */ + public static final EClass XML_BASIC_MAP_IMPL = eINSTANCE.getXmlBasicMapImpl(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformation <em>Xml Transformation</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformation + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlTransformation() + * @generated + */ + public static final EClass XML_TRANSFORMATION = eINSTANCE.getXmlTransformation(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformationImpl <em>Xml Transformation Impl</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlTransformationImpl + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlTransformationImpl() + * @generated + */ + public static final EClass XML_TRANSFORMATION_IMPL = eINSTANCE.getXmlTransformationImpl(); + + /** * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlChangeTrackingType <em>Xml Change Tracking Type</em>}' enum. * <!-- begin-user-doc --> * <!-- end-user-doc --> diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicCollection.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicCollection.java new file mode 100644 index 0000000000..d35828bc92 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicCollection.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.orm; + +import org.eclipse.jpt.core.resource.orm.XmlAttributeMapping; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Basic Collection</b></em>'. + * <!-- end-user-doc --> + * + * 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.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicCollection() + * @model kind="class" interface="true" abstract="true" + * @generated + */ +public interface XmlBasicCollection extends XmlAttributeMapping +{ +} // XmlBasicCollection diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicCollectionImpl.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicCollectionImpl.java new file mode 100644 index 0000000000..62720305d9 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicCollectionImpl.java @@ -0,0 +1,58 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.orm; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.jpt.core.resource.orm.AbstractXmlAttributeMapping; +import org.eclipse.jpt.eclipselink.core.EclipseLinkMappingKeys; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Basic Collection Impl</b></em>'. + * <!-- end-user-doc --> + * + * 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.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicCollectionImpl() + * @model kind="class" + * @generated + */ +public class XmlBasicCollectionImpl extends AbstractXmlAttributeMapping implements XmlBasicCollection +{ + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlBasicCollectionImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_BASIC_COLLECTION_IMPL; + } + + public String getMappingKey() { + return EclipseLinkMappingKeys.BASIC_COLLECTION_ATTRIBUTE_MAPPING_KEY; + } +} // XmlBasicCollectionImpl diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicMap.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicMap.java new file mode 100644 index 0000000000..4777c01676 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicMap.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.orm; + +import org.eclipse.jpt.core.resource.orm.XmlAttributeMapping; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Basic Map</b></em>'. + * <!-- end-user-doc --> + * + * 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.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicMap() + * @model kind="class" interface="true" abstract="true" + * @generated + */ +public interface XmlBasicMap extends XmlAttributeMapping +{ +} // XmlBasicMap diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicMapImpl.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicMapImpl.java new file mode 100644 index 0000000000..3cbdcb520b --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasicMapImpl.java @@ -0,0 +1,58 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.orm; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.jpt.core.resource.orm.AbstractXmlAttributeMapping; +import org.eclipse.jpt.eclipselink.core.EclipseLinkMappingKeys; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Basic Map Impl</b></em>'. + * <!-- end-user-doc --> + * + * 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.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasicMapImpl() + * @model kind="class" + * @generated + */ +public class XmlBasicMapImpl extends AbstractXmlAttributeMapping implements XmlBasicMap +{ + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlBasicMapImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_BASIC_MAP_IMPL; + } + + public String getMappingKey() { + return EclipseLinkMappingKeys.BASIC_MAP_ATTRIBUTE_MAPPING_KEY; + } +} // XmlBasicMapImpl diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlTransformation.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlTransformation.java new file mode 100644 index 0000000000..de24874091 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlTransformation.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.orm; + +import org.eclipse.jpt.core.resource.orm.XmlAttributeMapping; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Transformation</b></em>'. + * <!-- end-user-doc --> + * + * 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.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlTransformation() + * @model kind="class" interface="true" abstract="true" + * @generated + */ +public interface XmlTransformation extends XmlAttributeMapping +{ +} // XmlTransformation diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlTransformationImpl.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlTransformationImpl.java new file mode 100644 index 0000000000..5145ba6396 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlTransformationImpl.java @@ -0,0 +1,58 @@ +/******************************************************************************* + * Copyright (c) 2008 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * 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.eclipselink.core.resource.orm; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.jpt.core.resource.orm.AbstractXmlAttributeMapping; +import org.eclipse.jpt.eclipselink.core.EclipseLinkMappingKeys; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Transformation Impl</b></em>'. + * <!-- end-user-doc --> + * + * 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.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlTransformationImpl() + * @model kind="class" + * @generated + */ +public class XmlTransformationImpl extends AbstractXmlAttributeMapping implements XmlTransformation +{ + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlTransformationImpl() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_TRANSFORMATION_IMPL; + } + + public String getMappingKey() { + return EclipseLinkMappingKeys.TRANSFORMATION_ATTRIBUTE_MAPPING_KEY; + } +} // XmlTransformationImpl |