Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2013-12-12 06:00:22 -0500
committerMartin Taal2013-12-12 06:00:22 -0500
commite0b97acede0e691a8bc67286dfd203841862d54e (patch)
tree1dca6ad1a8639025cf22c2f795b1b036076970f3 /generator/org.eclipse.emf.texo.orm
parent1033dcc0d2de4bd836a747b8cd55864e17415177 (diff)
downloadorg.eclipse.emf.texo-e0b97acede0e691a8bc67286dfd203841862d54e.tar.gz
org.eclipse.emf.texo-e0b97acede0e691a8bc67286dfd203841862d54e.tar.xz
org.eclipse.emf.texo-e0b97acede0e691a8bc67286dfd203841862d54e.zip
[423844] Texo generates JPA annotations on interface whereas it
Diffstat (limited to 'generator/org.eclipse.emf.texo.orm')
-rw-r--r--generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMUtils.java17
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EAttributeORMAnnotation.java1450
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EClassORMAnnotation.java845
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EDataTypeORMAnnotation.java850
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EEnumORMAnnotation.java1150
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java2119
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EReferenceORMAnnotation.java3105
7 files changed, 5275 insertions, 4261 deletions
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMUtils.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMUtils.java
index 1ac14f8f..be67ea15 100644
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMUtils.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMUtils.java
@@ -19,12 +19,15 @@ package org.eclipse.emf.texo.orm.annotator;
import java.util.Properties;
import org.eclipse.core.resources.IProject;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.texo.component.ComponentProvider;
import org.eclipse.emf.texo.eclipse.ProjectPropertyUtil;
import org.eclipse.emf.texo.orm.annotations.model.orm.Converter;
import org.eclipse.emf.texo.orm.annotations.model.orm.OrmFactory;
import org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation;
+import org.eclipse.emf.texo.utils.ModelUtils;
/**
* ORM utility methods
@@ -42,6 +45,20 @@ public class ORMUtils {
public static final String QNAME_CONVERTER_NAME = "TexoTestQNameConverter";
/**
+ * ORM Annotations are not generated on interfaces or emap classes.
+ */
+ public static boolean isValidForContext(ENamedElement eNamedElement) {
+ if (eNamedElement instanceof EClass) {
+ final EClass eClass = (EClass) eNamedElement;
+ if (ModelUtils.isEMap(eClass)) {
+ return false;
+ }
+ return !eClass.isInterface();
+ }
+ return true;
+ }
+
+ /**
* Creates the default converter used to convert Objects to String and back.
*
* @see #OBJECT_CONVERTER_CLASS
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EAttributeORMAnnotation.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EAttributeORMAnnotation.java
index d9949ace..c640612e 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EAttributeORMAnnotation.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EAttributeORMAnnotation.java
@@ -12,6 +12,7 @@ import java.util.List;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.InternalEObject;
@@ -30,36 +31,38 @@ import org.eclipse.emf.texo.orm.annotations.model.orm.OneToMany;
import org.eclipse.emf.texo.orm.annotations.model.orm.Transient;
import org.eclipse.emf.texo.orm.annotations.model.orm.Version;
import org.eclipse.emf.texo.orm.annotator.ORMGenerator;
+import org.eclipse.emf.texo.orm.annotator.ORMUtils;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EAttribute ORM Annotation</b></em>'. <!--
* end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getBasic <em>Basic</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getVersion <em>Version</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getOneToMany <em>One To Many</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getFeatureMapEntity <em>Feature Map Entity</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getManyToOne <em>Many To One</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getBasic <em>Basic</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getVersion <em>Version</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getOneToMany <em>One To Many</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getFeatureMapEntity <em>Feature Map Entity
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getManyToOne <em>Many To One</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation()
* @model kind="class"
* @generated
*/
public class EAttributeORMAnnotation extends EAttributeAnnotation implements EStructuralFeatureORMAnnotation {
/**
- * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getTransient()
- * @generated
- * @ordered
- */
+ *
+ * @see #getTransient()
+ * @generated
+ * @ordered
+ */
protected Transient transient_;
/**
@@ -83,43 +86,43 @@ public class EAttributeORMAnnotation extends EAttributeAnnotation implements ESt
protected ElementCollection elementCollection;
/**
- * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getBasic()
- * @generated
- * @ordered
- */
+ *
+ * @see #getBasic()
+ * @generated
+ * @ordered
+ */
protected Basic basic;
/**
- * The cached value of the '{@link #getId() <em>Id</em>}' containment reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getId() <em>Id</em>}' containment reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getId()
- * @generated
- * @ordered
- */
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
protected Id id;
/**
- * The cached value of the '{@link #getVersion() <em>Version</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
protected Version version;
/**
- * The cached value of the '{@link #getOneToMany() <em>One To Many</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getOneToMany() <em>One To Many</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getOneToMany()
- * @generated
- * @ordered
- */
+ *
+ * @see #getOneToMany()
+ * @generated
+ * @ordered
+ */
protected OneToMany oneToMany;
/**
@@ -133,726 +136,884 @@ public class EAttributeORMAnnotation extends EAttributeAnnotation implements ESt
protected Entity featureMapEntity;
/**
- * The cached value of the '{@link #getManyToOne() <em>Many To One</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getManyToOne() <em>Many To One</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getManyToOne()
- * @generated
- * @ordered
- */
+ *
+ * @see #getManyToOne()
+ * @generated
+ * @ordered
+ */
protected ManyToOne manyToOne;
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected EAttributeORMAnnotation() {
- super();
- }
+ super();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmannotationsPackage.Literals.EATTRIBUTE_ORM_ANNOTATION;
- }
+ return OrmannotationsPackage.Literals.EATTRIBUTE_ORM_ANNOTATION;
+ }
/**
- * Returns the value of the '<em><b>Transient</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Transient</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Transient</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Transient</em>' containment reference.
- * @see #setTransient(Transient)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Transient</em>' containment reference.
+ * @see #setTransient(Transient)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
+ * @model containment="true"
+ * @generated
+ */
public Transient getTransient() {
- return transient_;
- }
+ return transient_;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetTransient(Transient newTransient, NotificationChain msgs) {
- Transient oldTransient = transient_;
- transient_ = newTransient;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getTransient <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Transient</em>' containment reference.
- * @see #getTransient()
- * @generated
- */
+ Transient oldTransient = transient_;
+ transient_ = newTransient;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getTransient
+ * <em>Transient</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Transient</em>' containment reference.
+ * @see #getTransient()
+ * @generated
+ */
public void setTransient(Transient newTransient) {
- if (newTransient != transient_) {
- NotificationChain msgs = null;
- if (transient_ != null)
- msgs = ((InternalEObject)transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT, null, msgs);
- if (newTransient != null)
- msgs = ((InternalEObject)newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT, null, msgs);
- msgs = basicSetTransient(newTransient, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT, newTransient, newTransient));
- }
-
- /**
- * Returns the value of the '<em><b>Collection Table</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newTransient != transient_) {
+ NotificationChain msgs = null;
+ if (transient_ != null) {
+ msgs = ((InternalEObject) transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ if (newTransient != null) {
+ msgs = ((InternalEObject) newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ msgs = basicSetTransient(newTransient, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT,
+ newTransient, newTransient));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Collection Table</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Collection Table</em>' containment reference isn't clear, there really should be more of
* a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Collection Table</em>' containment reference.
- * @see #setCollectionTable(CollectionTable)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_CollectionTable()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Collection Table</em>' containment reference.
+ * @see #setCollectionTable(CollectionTable)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_CollectionTable()
+ * @model containment="true"
+ * @generated
+ */
public CollectionTable getCollectionTable() {
- return collectionTable;
- }
+ return collectionTable;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetCollectionTable(CollectionTable newCollectionTable, NotificationChain msgs) {
- CollectionTable oldCollectionTable = collectionTable;
- collectionTable = newCollectionTable;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, oldCollectionTable, newCollectionTable);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getCollectionTable <em>Collection Table</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Collection Table</em>' containment reference.
- * @see #getCollectionTable()
- * @generated
- */
+ CollectionTable oldCollectionTable = collectionTable;
+ collectionTable = newCollectionTable;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, oldCollectionTable, newCollectionTable);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getCollectionTable
+ * <em>Collection Table</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Collection Table</em>' containment reference.
+ * @see #getCollectionTable()
+ * @generated
+ */
public void setCollectionTable(CollectionTable newCollectionTable) {
- if (newCollectionTable != collectionTable) {
- NotificationChain msgs = null;
- if (collectionTable != null)
- msgs = ((InternalEObject)collectionTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
- if (newCollectionTable != null)
- msgs = ((InternalEObject)newCollectionTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
- msgs = basicSetCollectionTable(newCollectionTable, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, newCollectionTable, newCollectionTable));
- }
-
- /**
- * Returns the value of the '<em><b>Element Collection</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newCollectionTable != collectionTable) {
+ NotificationChain msgs = null;
+ if (collectionTable != null) {
+ msgs = ((InternalEObject) collectionTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
+ }
+ if (newCollectionTable != null) {
+ msgs = ((InternalEObject) newCollectionTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
+ }
+ msgs = basicSetCollectionTable(newCollectionTable, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE, newCollectionTable, newCollectionTable));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Element Collection</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Element Collection</em>' containment reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Element Collection</em>' containment reference.
- * @see #setElementCollection(ElementCollection)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_ElementCollection()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Element Collection</em>' containment reference.
+ * @see #setElementCollection(ElementCollection)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_ElementCollection()
+ * @model containment="true"
+ * @generated
+ */
public ElementCollection getElementCollection() {
- return elementCollection;
- }
+ return elementCollection;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetElementCollection(ElementCollection newElementCollection, NotificationChain msgs) {
- ElementCollection oldElementCollection = elementCollection;
- elementCollection = newElementCollection;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection, newElementCollection);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getElementCollection <em>Element Collection</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Element Collection</em>' containment reference.
- * @see #getElementCollection()
- * @generated
- */
+ ElementCollection oldElementCollection = elementCollection;
+ elementCollection = newElementCollection;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection,
+ newElementCollection);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getElementCollection
+ * <em>Element Collection</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element Collection</em>' containment reference.
+ * @see #getElementCollection()
+ * @generated
+ */
public void setElementCollection(ElementCollection newElementCollection) {
- if (newElementCollection != elementCollection) {
- NotificationChain msgs = null;
- if (elementCollection != null)
- msgs = ((InternalEObject)elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- if (newElementCollection != null)
- msgs = ((InternalEObject)newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- msgs = basicSetElementCollection(newElementCollection, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection, newElementCollection));
- }
-
- /**
- * Returns the value of the '<em><b>Basic</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newElementCollection != elementCollection) {
+ NotificationChain msgs = null;
+ if (elementCollection != null) {
+ msgs = ((InternalEObject) elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ if (newElementCollection != null) {
+ msgs = ((InternalEObject) newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ msgs = basicSetElementCollection(newElementCollection, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection,
+ newElementCollection));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Basic</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Basic</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Basic</em>' containment reference.
- * @see #setBasic(Basic)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_Basic()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Basic</em>' containment reference.
+ * @see #setBasic(Basic)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_Basic()
+ * @model containment="true"
+ * @generated
+ */
public Basic getBasic() {
- return basic;
- }
+ return basic;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetBasic(Basic newBasic, NotificationChain msgs) {
- Basic oldBasic = basic;
- basic = newBasic;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getBasic <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Basic</em>' containment reference.
- * @see #getBasic()
- * @generated
- */
+ Basic oldBasic = basic;
+ basic = newBasic;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getBasic
+ * <em>Basic</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Basic</em>' containment reference.
+ * @see #getBasic()
+ * @generated
+ */
public void setBasic(Basic newBasic) {
- if (newBasic != basic) {
- NotificationChain msgs = null;
- if (basic != null)
- msgs = ((InternalEObject)basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC, null, msgs);
- if (newBasic != null)
- msgs = ((InternalEObject)newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC, null, msgs);
- msgs = basicSetBasic(newBasic, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC, newBasic, newBasic));
- }
-
- /**
- * Returns the value of the '<em><b>Id</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newBasic != basic) {
+ NotificationChain msgs = null;
+ if (basic != null) {
+ msgs = ((InternalEObject) basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ if (newBasic != null) {
+ msgs = ((InternalEObject) newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ msgs = basicSetBasic(newBasic, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC,
+ newBasic, newBasic));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Id</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Id</em>' containment reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Id</em>' containment reference.
- * @see #setId(Id)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_Id()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Id</em>' containment reference.
+ * @see #setId(Id)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_Id()
+ * @model containment="true"
+ * @generated
+ */
public Id getId() {
- return id;
- }
+ return id;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetId(Id newId, NotificationChain msgs) {
- Id oldId = id;
- id = newId;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, oldId, newId);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getId <em>Id</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Id</em>' containment reference.
- * @see #getId()
- * @generated
- */
+ Id oldId = id;
+ id = newId;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, oldId, newId);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getId <em>Id</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Id</em>' containment reference.
+ * @see #getId()
+ * @generated
+ */
public void setId(Id newId) {
- if (newId != id) {
- NotificationChain msgs = null;
- if (id != null)
- msgs = ((InternalEObject)id).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, null, msgs);
- if (newId != null)
- msgs = ((InternalEObject)newId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, null, msgs);
- msgs = basicSetId(newId, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, newId, newId));
- }
-
- /**
- * Returns the value of the '<em><b>Version</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newId != id) {
+ NotificationChain msgs = null;
+ if (id != null) {
+ msgs = ((InternalEObject) id).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, null, msgs);
+ }
+ if (newId != null) {
+ msgs = ((InternalEObject) newId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, null, msgs);
+ }
+ msgs = basicSetId(newId, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID, newId,
+ newId));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Version</em>' reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Version</em>' containment reference.
- * @see #setVersion(Version)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_Version()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Version</em>' containment reference.
+ * @see #setVersion(Version)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_Version()
+ * @model containment="true"
+ * @generated
+ */
public Version getVersion() {
- return version;
- }
+ return version;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetVersion(Version newVersion, NotificationChain msgs) {
- Version oldVersion = version;
- version = newVersion;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION, oldVersion, newVersion);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getVersion <em>Version</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Version</em>' containment reference.
- * @see #getVersion()
- * @generated
- */
+ Version oldVersion = version;
+ version = newVersion;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION, oldVersion, newVersion);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getVersion
+ * <em>Version</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Version</em>' containment reference.
+ * @see #getVersion()
+ * @generated
+ */
public void setVersion(Version newVersion) {
- if (newVersion != version) {
- NotificationChain msgs = null;
- if (version != null)
- msgs = ((InternalEObject)version).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION, null, msgs);
- if (newVersion != null)
- msgs = ((InternalEObject)newVersion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION, null, msgs);
- msgs = basicSetVersion(newVersion, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION, newVersion, newVersion));
- }
-
- /**
- * Returns the value of the '<em><b>One To Many</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newVersion != version) {
+ NotificationChain msgs = null;
+ if (version != null) {
+ msgs = ((InternalEObject) version).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION, null, msgs);
+ }
+ if (newVersion != null) {
+ msgs = ((InternalEObject) newVersion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION, null, msgs);
+ }
+ msgs = basicSetVersion(newVersion, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION,
+ newVersion, newVersion));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>One To Many</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>One To Many</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>One To Many</em>' containment reference.
- * @see #setOneToMany(OneToMany)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_OneToMany()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>One To Many</em>' containment reference.
+ * @see #setOneToMany(OneToMany)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_OneToMany()
+ * @model containment="true"
+ * @generated
+ */
public OneToMany getOneToMany() {
- return oneToMany;
- }
+ return oneToMany;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetOneToMany(OneToMany newOneToMany, NotificationChain msgs) {
- OneToMany oldOneToMany = oneToMany;
- oneToMany = newOneToMany;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, oldOneToMany, newOneToMany);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getOneToMany <em>One To Many</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>One To Many</em>' containment reference.
- * @see #getOneToMany()
- * @generated
- */
+ OneToMany oldOneToMany = oneToMany;
+ oneToMany = newOneToMany;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, oldOneToMany, newOneToMany);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getOneToMany
+ * <em>One To Many</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>One To Many</em>' containment reference.
+ * @see #getOneToMany()
+ * @generated
+ */
public void setOneToMany(OneToMany newOneToMany) {
- if (newOneToMany != oneToMany) {
- NotificationChain msgs = null;
- if (oneToMany != null)
- msgs = ((InternalEObject)oneToMany).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
- if (newOneToMany != null)
- msgs = ((InternalEObject)newOneToMany).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
- msgs = basicSetOneToMany(newOneToMany, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, newOneToMany, newOneToMany));
- }
-
- /**
- * Returns the value of the '<em><b>Feature Map Entity</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newOneToMany != oneToMany) {
+ NotificationChain msgs = null;
+ if (oneToMany != null) {
+ msgs = ((InternalEObject) oneToMany).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
+ }
+ if (newOneToMany != null) {
+ msgs = ((InternalEObject) newOneToMany).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
+ }
+ msgs = basicSetOneToMany(newOneToMany, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY, newOneToMany, newOneToMany));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Feature Map Entity</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Feature Map Entity</em>' containment reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Feature Map Entity</em>' containment reference.
- * @see #setFeatureMapEntity(Entity)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_FeatureMapEntity()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Feature Map Entity</em>' containment reference.
+ * @see #setFeatureMapEntity(Entity)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_FeatureMapEntity()
+ * @model containment="true"
+ * @generated
+ */
public Entity getFeatureMapEntity() {
- return featureMapEntity;
- }
+ return featureMapEntity;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetFeatureMapEntity(Entity newFeatureMapEntity, NotificationChain msgs) {
- Entity oldFeatureMapEntity = featureMapEntity;
- featureMapEntity = newFeatureMapEntity;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, oldFeatureMapEntity, newFeatureMapEntity);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getFeatureMapEntity <em>Feature Map Entity</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Feature Map Entity</em>' containment reference.
- * @see #getFeatureMapEntity()
- * @generated
- */
+ Entity oldFeatureMapEntity = featureMapEntity;
+ featureMapEntity = newFeatureMapEntity;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, oldFeatureMapEntity, newFeatureMapEntity);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getFeatureMapEntity
+ * <em>Feature Map Entity</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Feature Map Entity</em>' containment reference.
+ * @see #getFeatureMapEntity()
+ * @generated
+ */
public void setFeatureMapEntity(Entity newFeatureMapEntity) {
- if (newFeatureMapEntity != featureMapEntity) {
- NotificationChain msgs = null;
- if (featureMapEntity != null)
- msgs = ((InternalEObject)featureMapEntity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, null, msgs);
- if (newFeatureMapEntity != null)
- msgs = ((InternalEObject)newFeatureMapEntity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, null, msgs);
- msgs = basicSetFeatureMapEntity(newFeatureMapEntity, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, newFeatureMapEntity, newFeatureMapEntity));
- }
-
- /**
- * Returns the value of the '<em><b>Many To One</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newFeatureMapEntity != featureMapEntity) {
+ NotificationChain msgs = null;
+ if (featureMapEntity != null) {
+ msgs = ((InternalEObject) featureMapEntity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, null, msgs);
+ }
+ if (newFeatureMapEntity != null) {
+ msgs = ((InternalEObject) newFeatureMapEntity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, null, msgs);
+ }
+ msgs = basicSetFeatureMapEntity(newFeatureMapEntity, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY, newFeatureMapEntity, newFeatureMapEntity));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Many To One</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Many To One</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Many To One</em>' containment reference.
- * @see #setManyToOne(ManyToOne)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_ManyToOne()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Many To One</em>' containment reference.
+ * @see #setManyToOne(ManyToOne)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEAttributeORMAnnotation_ManyToOne()
+ * @model containment="true"
+ * @generated
+ */
public ManyToOne getManyToOne() {
- return manyToOne;
- }
+ return manyToOne;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetManyToOne(ManyToOne newManyToOne, NotificationChain msgs) {
- ManyToOne oldManyToOne = manyToOne;
- manyToOne = newManyToOne;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, oldManyToOne, newManyToOne);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getManyToOne <em>Many To One</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Many To One</em>' containment reference.
- * @see #getManyToOne()
- * @generated
- */
+ ManyToOne oldManyToOne = manyToOne;
+ manyToOne = newManyToOne;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, oldManyToOne, newManyToOne);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EAttributeORMAnnotation#getManyToOne
+ * <em>Many To One</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Many To One</em>' containment reference.
+ * @see #getManyToOne()
+ * @generated
+ */
public void setManyToOne(ManyToOne newManyToOne) {
- if (newManyToOne != manyToOne) {
- NotificationChain msgs = null;
- if (manyToOne != null)
- msgs = ((InternalEObject)manyToOne).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
- if (newManyToOne != null)
- msgs = ((InternalEObject)newManyToOne).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
- msgs = basicSetManyToOne(newManyToOne, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, newManyToOne, newManyToOne));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (newManyToOne != manyToOne) {
+ NotificationChain msgs = null;
+ if (manyToOne != null) {
+ msgs = ((InternalEObject) manyToOne).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
+ }
+ if (newManyToOne != null) {
+ msgs = ((InternalEObject) newManyToOne).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
+ }
+ msgs = basicSetManyToOne(newManyToOne, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE, newManyToOne, newManyToOne));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
- return basicSetTransient(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
- return basicSetCollectionTable(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return basicSetElementCollection(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
- return basicSetBasic(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
- return basicSetId(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
- return basicSetVersion(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
- return basicSetOneToMany(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
- return basicSetFeatureMapEntity(null, msgs);
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
- return basicSetManyToOne(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
+ return basicSetTransient(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return basicSetCollectionTable(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return basicSetElementCollection(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
+ return basicSetBasic(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
+ return basicSetId(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
+ return basicSetVersion(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
+ return basicSetOneToMany(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
+ return basicSetFeatureMapEntity(null, msgs);
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
+ return basicSetManyToOne(null, 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 OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
- return getTransient();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
- return getCollectionTable();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return getElementCollection();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
- return getBasic();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
- return getId();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
- return getVersion();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
- return getOneToMany();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
- return getFeatureMapEntity();
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
- return getManyToOne();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
+ return getTransient();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return getCollectionTable();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return getElementCollection();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
+ return getBasic();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
+ return getId();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
+ return getVersion();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
+ return getOneToMany();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
+ return getFeatureMapEntity();
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
+ return getManyToOne();
+ }
+ 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 OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
- setCollectionTable((CollectionTable)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
- setBasic((Basic)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
- setId((Id)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
- setVersion((Version)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
- setOneToMany((OneToMany)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
- setFeatureMapEntity((Entity)newValue);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
- setManyToOne((ManyToOne)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
+ setCollectionTable((CollectionTable) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
+ setId((Id) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
+ setVersion((Version) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
+ setOneToMany((OneToMany) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
+ setFeatureMapEntity((Entity) newValue);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
+ setManyToOne((ManyToOne) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
- setCollectionTable((CollectionTable)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
- setBasic((Basic)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
- setId((Id)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
- setVersion((Version)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
- setOneToMany((OneToMany)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
- setFeatureMapEntity((Entity)null);
- return;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
- setManyToOne((ManyToOne)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
+ setCollectionTable((CollectionTable) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
+ setId((Id) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
+ setVersion((Version) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
+ setOneToMany((OneToMany) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
+ setFeatureMapEntity((Entity) null);
+ return;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
+ setManyToOne((ManyToOne) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
- return transient_ != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
- return collectionTable != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return elementCollection != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
- return basic != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
- return id != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
- return version != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
- return oneToMany != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
- return featureMapEntity != null;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
- return manyToOne != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
+ return transient_ != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return collectionTable != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return elementCollection != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__BASIC:
+ return basic != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ID:
+ return id != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__VERSION:
+ return version != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ONE_TO_MANY:
+ return oneToMany != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__FEATURE_MAP_ENTITY:
+ return featureMapEntity != null;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__MANY_TO_ONE:
+ return manyToOne != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EStructuralFeatureORMAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE: return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE;
- case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION: return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION;
- default: return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EStructuralFeatureORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE;
+ case OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION;
+ default:
+ return -1;
+ }
+ }
+ return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (baseFeatureID) {
- case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EStructuralFeatureORMAnnotation.class) {
- switch (baseFeatureID) {
- case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE: return OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE;
- case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION: return OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION;
- default: return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EStructuralFeatureORMAnnotation.class) {
+ switch (baseFeatureID) {
+ case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__COLLECTION_TABLE;
+ case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return OrmannotationsPackage.EATTRIBUTE_ORM_ANNOTATION__ELEMENT_COLLECTION;
+ default:
+ return -1;
+ }
+ }
+ return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
+ }
@Override
public String getJavaAnnotation(AnnotationProvider annotationProvider, String identifier) {
@@ -898,4 +1059,9 @@ public class EAttributeORMAnnotation extends EAttributeAnnotation implements ESt
return ORMGenerator.generateJavaAnnotations(this, null, typeAnnotation, identifier);
}
+ @Override
+ public boolean isValidForContext(ENamedElement eNamedElement) {
+ return ORMUtils.isValidForContext(eNamedElement);
+ }
+
} // EAttributeORMAnnotation
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EClassORMAnnotation.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EClassORMAnnotation.java
index ffbe6bd9..b969b241 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EClassORMAnnotation.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EClassORMAnnotation.java
@@ -9,6 +9,7 @@ package org.eclipse.emf.texo.orm.ormannotations;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.ExtendedMetaData;
@@ -20,54 +21,56 @@ import org.eclipse.emf.texo.orm.annotations.model.orm.Inheritance;
import org.eclipse.emf.texo.orm.annotations.model.orm.MappedSuperclass;
import org.eclipse.emf.texo.orm.annotations.model.orm.Transient;
import org.eclipse.emf.texo.orm.annotator.ORMGenerator;
+import org.eclipse.emf.texo.orm.annotator.ORMUtils;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EClass ORM Annotation</b></em>'. <!--
* end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEntity <em>Entity</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEmbeddable <em>Embeddable</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getMappedSuperclass <em>Mapped Superclass</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getInheritance <em>Inheritance</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEntity <em>Entity</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEmbeddable <em>Embeddable</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getMappedSuperclass <em>Mapped Superclass
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getInheritance <em>Inheritance</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation()
* @model kind="class"
* @generated
*/
public class EClassORMAnnotation extends EClassAnnotation implements EClassifierORMAnnotation {
/**
- * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getTransient()
- * @generated
- * @ordered
- */
+ *
+ * @see #getTransient()
+ * @generated
+ * @ordered
+ */
protected Transient transient_;
/**
- * The cached value of the '{@link #getEntity() <em>Entity</em>}' containment reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getEntity() <em>Entity</em>}' containment reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getEntity()
- * @generated
- * @ordered
- */
+ *
+ * @see #getEntity()
+ * @generated
+ * @ordered
+ */
protected Entity entity;
/**
- * The cached value of the '{@link #getEmbeddable() <em>Embeddable</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getEmbeddable() <em>Embeddable</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getEmbeddable()
- * @generated
- * @ordered
- */
+ *
+ * @see #getEmbeddable()
+ * @generated
+ * @ordered
+ */
protected Embeddable embeddable;
/**
@@ -81,462 +84,554 @@ public class EClassORMAnnotation extends EClassAnnotation implements EClassifier
protected MappedSuperclass mappedSuperclass;
/**
- * The cached value of the '{@link #getInheritance() <em>Inheritance</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getInheritance() <em>Inheritance</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getInheritance()
- * @generated
- * @ordered
- */
+ *
+ * @see #getInheritance()
+ * @generated
+ * @ordered
+ */
protected Inheritance inheritance;
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected EClassORMAnnotation() {
- super();
- }
+ super();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmannotationsPackage.Literals.ECLASS_ORM_ANNOTATION;
- }
+ return OrmannotationsPackage.Literals.ECLASS_ORM_ANNOTATION;
+ }
/**
- * Returns the value of the '<em><b>Transient</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Transient</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Transient</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Transient</em>' containment reference.
- * @see #setTransient(Transient)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Transient</em>' containment reference.
+ * @see #setTransient(Transient)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
+ * @model containment="true"
+ * @generated
+ */
public Transient getTransient() {
- return transient_;
- }
+ return transient_;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetTransient(Transient newTransient, NotificationChain msgs) {
- Transient oldTransient = transient_;
- transient_ = newTransient;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Transient oldTransient = transient_;
+ transient_ = newTransient;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getTransient <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Transient</em>' containment reference.
- * @see #getTransient()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getTransient
+ * <em>Transient</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Transient</em>' containment reference.
+ * @see #getTransient()
+ * @generated
+ */
public void setTransient(Transient newTransient) {
- if (newTransient != transient_) {
- NotificationChain msgs = null;
- if (transient_ != null)
- msgs = ((InternalEObject)transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT, null, msgs);
- if (newTransient != null)
- msgs = ((InternalEObject)newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT, null, msgs);
- msgs = basicSetTransient(newTransient, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT, newTransient, newTransient));
- }
+ if (newTransient != transient_) {
+ NotificationChain msgs = null;
+ if (transient_ != null) {
+ msgs = ((InternalEObject) transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ if (newTransient != null) {
+ msgs = ((InternalEObject) newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ msgs = basicSetTransient(newTransient, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT,
+ newTransient, newTransient));
+ }
+ }
/**
- * Returns the value of the '<em><b>Entity</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Entity</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Entity</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Entity</em>' containment reference.
- * @see #setEntity(Entity)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_Entity()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Entity</em>' containment reference.
+ * @see #setEntity(Entity)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_Entity()
+ * @model containment="true"
+ * @generated
+ */
public Entity getEntity() {
- return entity;
- }
+ return entity;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetEntity(Entity newEntity, NotificationChain msgs) {
- Entity oldEntity = entity;
- entity = newEntity;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY, oldEntity, newEntity);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Entity oldEntity = entity;
+ entity = newEntity;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY, oldEntity, newEntity);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEntity <em>Entity</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Entity</em>' containment reference.
- * @see #getEntity()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEntity
+ * <em>Entity</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Entity</em>' containment reference.
+ * @see #getEntity()
+ * @generated
+ */
public void setEntity(Entity newEntity) {
- if (newEntity != entity) {
- NotificationChain msgs = null;
- if (entity != null)
- msgs = ((InternalEObject)entity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY, null, msgs);
- if (newEntity != null)
- msgs = ((InternalEObject)newEntity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY, null, msgs);
- msgs = basicSetEntity(newEntity, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY, newEntity, newEntity));
- }
+ if (newEntity != entity) {
+ NotificationChain msgs = null;
+ if (entity != null) {
+ msgs = ((InternalEObject) entity).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY, null, msgs);
+ }
+ if (newEntity != null) {
+ msgs = ((InternalEObject) newEntity).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY, null, msgs);
+ }
+ msgs = basicSetEntity(newEntity, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY,
+ newEntity, newEntity));
+ }
+ }
/**
- * Returns the value of the '<em><b>Embeddable</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Embeddable</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Embeddable</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Embeddable</em>' containment reference.
- * @see #setEmbeddable(Embeddable)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_Embeddable()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Embeddable</em>' containment reference.
+ * @see #setEmbeddable(Embeddable)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_Embeddable()
+ * @model containment="true"
+ * @generated
+ */
public Embeddable getEmbeddable() {
- return embeddable;
- }
+ return embeddable;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetEmbeddable(Embeddable newEmbeddable, NotificationChain msgs) {
- Embeddable oldEmbeddable = embeddable;
- embeddable = newEmbeddable;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE, oldEmbeddable, newEmbeddable);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Embeddable oldEmbeddable = embeddable;
+ embeddable = newEmbeddable;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE, oldEmbeddable, newEmbeddable);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEmbeddable <em>Embeddable</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Embeddable</em>' containment reference.
- * @see #getEmbeddable()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getEmbeddable
+ * <em>Embeddable</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Embeddable</em>' containment reference.
+ * @see #getEmbeddable()
+ * @generated
+ */
public void setEmbeddable(Embeddable newEmbeddable) {
- if (newEmbeddable != embeddable) {
- NotificationChain msgs = null;
- if (embeddable != null)
- msgs = ((InternalEObject)embeddable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE, null, msgs);
- if (newEmbeddable != null)
- msgs = ((InternalEObject)newEmbeddable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE, null, msgs);
- msgs = basicSetEmbeddable(newEmbeddable, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE, newEmbeddable, newEmbeddable));
- }
+ if (newEmbeddable != embeddable) {
+ NotificationChain msgs = null;
+ if (embeddable != null) {
+ msgs = ((InternalEObject) embeddable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE, null, msgs);
+ }
+ if (newEmbeddable != null) {
+ msgs = ((InternalEObject) newEmbeddable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE, null, msgs);
+ }
+ msgs = basicSetEmbeddable(newEmbeddable, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE,
+ newEmbeddable, newEmbeddable));
+ }
+ }
/**
- * Returns the value of the '<em><b>Mapped Superclass</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Mapped Superclass</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Mapped Superclass</em>' containment reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Mapped Superclass</em>' containment reference.
- * @see #setMappedSuperclass(MappedSuperclass)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_MappedSuperclass()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Mapped Superclass</em>' containment reference.
+ * @see #setMappedSuperclass(MappedSuperclass)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_MappedSuperclass()
+ * @model containment="true"
+ * @generated
+ */
public MappedSuperclass getMappedSuperclass() {
- return mappedSuperclass;
- }
+ return mappedSuperclass;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetMappedSuperclass(MappedSuperclass newMappedSuperclass, NotificationChain msgs) {
- MappedSuperclass oldMappedSuperclass = mappedSuperclass;
- mappedSuperclass = newMappedSuperclass;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, oldMappedSuperclass, newMappedSuperclass);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ MappedSuperclass oldMappedSuperclass = mappedSuperclass;
+ mappedSuperclass = newMappedSuperclass;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, oldMappedSuperclass, newMappedSuperclass);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getMappedSuperclass <em>Mapped Superclass</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Mapped Superclass</em>' containment reference.
- * @see #getMappedSuperclass()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getMappedSuperclass
+ * <em>Mapped Superclass</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Mapped Superclass</em>' containment reference.
+ * @see #getMappedSuperclass()
+ * @generated
+ */
public void setMappedSuperclass(MappedSuperclass newMappedSuperclass) {
- if (newMappedSuperclass != mappedSuperclass) {
- NotificationChain msgs = null;
- if (mappedSuperclass != null)
- msgs = ((InternalEObject)mappedSuperclass).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, null, msgs);
- if (newMappedSuperclass != null)
- msgs = ((InternalEObject)newMappedSuperclass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, null, msgs);
- msgs = basicSetMappedSuperclass(newMappedSuperclass, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, newMappedSuperclass, newMappedSuperclass));
- }
+ if (newMappedSuperclass != mappedSuperclass) {
+ NotificationChain msgs = null;
+ if (mappedSuperclass != null) {
+ msgs = ((InternalEObject) mappedSuperclass).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, null, msgs);
+ }
+ if (newMappedSuperclass != null) {
+ msgs = ((InternalEObject) newMappedSuperclass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, null, msgs);
+ }
+ msgs = basicSetMappedSuperclass(newMappedSuperclass, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS, newMappedSuperclass, newMappedSuperclass));
+ }
+ }
/**
- * Returns the value of the '<em><b>Inheritance</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Inheritance</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Inheritance</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Inheritance</em>' containment reference.
- * @see #setInheritance(Inheritance)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_Inheritance()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Inheritance</em>' containment reference.
+ * @see #setInheritance(Inheritance)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEClassORMAnnotation_Inheritance()
+ * @model containment="true"
+ * @generated
+ */
public Inheritance getInheritance() {
- return inheritance;
- }
+ return inheritance;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetInheritance(Inheritance newInheritance, NotificationChain msgs) {
- Inheritance oldInheritance = inheritance;
- inheritance = newInheritance;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE, oldInheritance, newInheritance);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Inheritance oldInheritance = inheritance;
+ inheritance = newInheritance;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE, oldInheritance, newInheritance);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getInheritance <em>Inheritance</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Inheritance</em>' containment reference.
- * @see #getInheritance()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EClassORMAnnotation#getInheritance
+ * <em>Inheritance</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Inheritance</em>' containment reference.
+ * @see #getInheritance()
+ * @generated
+ */
public void setInheritance(Inheritance newInheritance) {
- if (newInheritance != inheritance) {
- NotificationChain msgs = null;
- if (inheritance != null)
- msgs = ((InternalEObject)inheritance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE, null, msgs);
- if (newInheritance != null)
- msgs = ((InternalEObject)newInheritance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE, null, msgs);
- msgs = basicSetInheritance(newInheritance, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE, newInheritance, newInheritance));
- }
+ if (newInheritance != inheritance) {
+ NotificationChain msgs = null;
+ if (inheritance != null) {
+ msgs = ((InternalEObject) inheritance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE, null, msgs);
+ }
+ if (newInheritance != null) {
+ msgs = ((InternalEObject) newInheritance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE, null, msgs);
+ }
+ msgs = basicSetInheritance(newInheritance, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE,
+ newInheritance, newInheritance));
+ }
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
- return basicSetTransient(null, msgs);
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
- return basicSetEntity(null, msgs);
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
- return basicSetEmbeddable(null, msgs);
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
- return basicSetMappedSuperclass(null, msgs);
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
- return basicSetInheritance(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
+ return basicSetTransient(null, msgs);
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
+ return basicSetEntity(null, msgs);
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
+ return basicSetEmbeddable(null, msgs);
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
+ return basicSetMappedSuperclass(null, msgs);
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
+ return basicSetInheritance(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
- return getTransient();
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
- return getEntity();
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
- return getEmbeddable();
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
- return getMappedSuperclass();
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
- return getInheritance();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
+ return getTransient();
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
+ return getEntity();
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
+ return getEmbeddable();
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
+ return getMappedSuperclass();
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
+ return getInheritance();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)newValue);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
- setEntity((Entity)newValue);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
- setEmbeddable((Embeddable)newValue);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
- setMappedSuperclass((MappedSuperclass)newValue);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
- setInheritance((Inheritance)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) newValue);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
+ setEntity((Entity) newValue);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
+ setEmbeddable((Embeddable) newValue);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
+ setMappedSuperclass((MappedSuperclass) newValue);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
+ setInheritance((Inheritance) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)null);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
- setEntity((Entity)null);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
- setEmbeddable((Embeddable)null);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
- setMappedSuperclass((MappedSuperclass)null);
- return;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
- setInheritance((Inheritance)null);
- return;
- }
- super.eUnset(featureID);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) null);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
+ setEntity((Entity) null);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
+ setEmbeddable((Embeddable) null);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
+ setMappedSuperclass((MappedSuperclass) null);
+ return;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
+ setInheritance((Inheritance) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
- return transient_ != null;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
- return entity != null;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
- return embeddable != null;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
- return mappedSuperclass != null;
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
- return inheritance != null;
- }
- return super.eIsSet(featureID);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
+ return transient_ != null;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__ENTITY:
+ return entity != null;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__EMBEDDABLE:
+ return embeddable != null;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__MAPPED_SUPERCLASS:
+ return mappedSuperclass != null;
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__INHERITANCE:
+ return inheritance != null;
+ }
+ return super.eIsSet(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EClassifierORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EClassifierORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (baseFeatureID) {
- case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EClassifierORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.ECLASS_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EClassifierORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
+ }
@Override
public String getJavaAnnotation(AnnotationProvider annotationProvider, String identifier) {
@@ -551,4 +646,10 @@ public class EClassORMAnnotation extends EClassAnnotation implements EClassifier
}
return ORMGenerator.generateJavaAnnotations(this, null, null, identifier);
}
+
+ @Override
+ public boolean isValidForContext(ENamedElement eNamedElement) {
+ return ORMUtils.isValidForContext(eNamedElement);
+ }
+
} // EClassORMAnnotation
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EDataTypeORMAnnotation.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EDataTypeORMAnnotation.java
index e9c11ee3..998b9764 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EDataTypeORMAnnotation.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EDataTypeORMAnnotation.java
@@ -9,6 +9,7 @@ package org.eclipse.emf.texo.orm.ormannotations;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
@@ -18,63 +19,65 @@ import org.eclipse.emf.texo.orm.annotations.model.orm.ElementCollection;
import org.eclipse.emf.texo.orm.annotations.model.orm.Id;
import org.eclipse.emf.texo.orm.annotations.model.orm.Transient;
import org.eclipse.emf.texo.orm.annotations.model.orm.Version;
+import org.eclipse.emf.texo.orm.annotator.ORMUtils;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EData Type ORM Annotation</b></em>'. <!--
* end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getBasic <em>Basic</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getId <em>Id</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getVersion <em>Version</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getElementCollection <em>Element Collection</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getBasic <em>Basic</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getVersion <em>Version</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getElementCollection <em>Element Collection
+ * </em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation()
* @model kind="class"
* @generated
*/
public class EDataTypeORMAnnotation extends EDataTypeAnnotation implements EDataTypeORMAnnotationDefinition {
/**
- * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getTransient()
- * @generated
- * @ordered
- */
+ *
+ * @see #getTransient()
+ * @generated
+ * @ordered
+ */
protected Transient transient_;
/**
- * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getBasic()
- * @generated
- * @ordered
- */
+ *
+ * @see #getBasic()
+ * @generated
+ * @ordered
+ */
protected Basic basic;
/**
- * The cached value of the '{@link #getId() <em>Id</em>}' containment reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getId() <em>Id</em>}' containment reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getId()
- * @generated
- * @ordered
- */
+ *
+ * @see #getId()
+ * @generated
+ * @ordered
+ */
protected Id id;
/**
- * The cached value of the '{@link #getVersion() <em>Version</em>}' reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
protected Version version;
/**
* The cached value of the '{@link #getElementCollection() <em>Element Collection</em>}' containment reference. <!--
@@ -87,455 +90,550 @@ public class EDataTypeORMAnnotation extends EDataTypeAnnotation implements EData
protected ElementCollection elementCollection;
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected EDataTypeORMAnnotation() {
- super();
- }
+ super();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmannotationsPackage.Literals.EDATA_TYPE_ORM_ANNOTATION;
- }
+ return OrmannotationsPackage.Literals.EDATA_TYPE_ORM_ANNOTATION;
+ }
/**
- * Returns the value of the '<em><b>Transient</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Transient</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Transient</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Transient</em>' containment reference.
- * @see #setTransient(Transient)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Transient</em>' containment reference.
+ * @see #setTransient(Transient)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
+ * @model containment="true"
+ * @generated
+ */
public Transient getTransient() {
- return transient_;
- }
+ return transient_;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetTransient(Transient newTransient, NotificationChain msgs) {
- Transient oldTransient = transient_;
- transient_ = newTransient;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Transient oldTransient = transient_;
+ transient_ = newTransient;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getTransient <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Transient</em>' containment reference.
- * @see #getTransient()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getTransient
+ * <em>Transient</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Transient</em>' containment reference.
+ * @see #getTransient()
+ * @generated
+ */
public void setTransient(Transient newTransient) {
- if (newTransient != transient_) {
- NotificationChain msgs = null;
- if (transient_ != null)
- msgs = ((InternalEObject)transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT, null, msgs);
- if (newTransient != null)
- msgs = ((InternalEObject)newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT, null, msgs);
- msgs = basicSetTransient(newTransient, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT, newTransient, newTransient));
- }
+ if (newTransient != transient_) {
+ NotificationChain msgs = null;
+ if (transient_ != null) {
+ msgs = ((InternalEObject) transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ if (newTransient != null) {
+ msgs = ((InternalEObject) newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ msgs = basicSetTransient(newTransient, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT,
+ newTransient, newTransient));
+ }
+ }
/**
- * Returns the value of the '<em><b>Basic</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Basic</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Basic</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Basic</em>' containment reference.
- * @see #setBasic(Basic)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_Basic()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Basic</em>' containment reference.
+ * @see #setBasic(Basic)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_Basic()
+ * @model containment="true"
+ * @generated
+ */
public Basic getBasic() {
- return basic;
- }
+ return basic;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetBasic(Basic newBasic, NotificationChain msgs) {
- Basic oldBasic = basic;
- basic = newBasic;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Basic oldBasic = basic;
+ basic = newBasic;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getBasic <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Basic</em>' containment reference.
- * @see #getBasic()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getBasic
+ * <em>Basic</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Basic</em>' containment reference.
+ * @see #getBasic()
+ * @generated
+ */
public void setBasic(Basic newBasic) {
- if (newBasic != basic) {
- NotificationChain msgs = null;
- if (basic != null)
- msgs = ((InternalEObject)basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC, null, msgs);
- if (newBasic != null)
- msgs = ((InternalEObject)newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC, null, msgs);
- msgs = basicSetBasic(newBasic, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC, newBasic, newBasic));
- }
+ if (newBasic != basic) {
+ NotificationChain msgs = null;
+ if (basic != null) {
+ msgs = ((InternalEObject) basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ if (newBasic != null) {
+ msgs = ((InternalEObject) newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ msgs = basicSetBasic(newBasic, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC,
+ newBasic, newBasic));
+ }
+ }
/**
- * Returns the value of the '<em><b>Id</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Id</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Id</em>' containment reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Id</em>' containment reference.
- * @see #setId(Id)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_Id()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Id</em>' containment reference.
+ * @see #setId(Id)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_Id()
+ * @model containment="true"
+ * @generated
+ */
public Id getId() {
- return id;
- }
+ return id;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetId(Id newId, NotificationChain msgs) {
- Id oldId = id;
- id = newId;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, oldId, newId);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ Id oldId = id;
+ id = newId;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, oldId, newId);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getId <em>Id</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Id</em>' containment reference.
- * @see #getId()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getId <em>Id</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Id</em>' containment reference.
+ * @see #getId()
+ * @generated
+ */
public void setId(Id newId) {
- if (newId != id) {
- NotificationChain msgs = null;
- if (id != null)
- msgs = ((InternalEObject)id).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, null, msgs);
- if (newId != null)
- msgs = ((InternalEObject)newId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, null, msgs);
- msgs = basicSetId(newId, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, newId, newId));
- }
+ if (newId != id) {
+ NotificationChain msgs = null;
+ if (id != null) {
+ msgs = ((InternalEObject) id).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, null, msgs);
+ }
+ if (newId != null) {
+ msgs = ((InternalEObject) newId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, null, msgs);
+ }
+ msgs = basicSetId(newId, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID, newId,
+ newId));
+ }
+ }
/**
- * Returns the value of the '<em><b>Version</b></em>' reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Version</b></em>' reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Version</em>' reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Version</em>' reference.
- * @see #setVersion(Version)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_Version()
- * @model
- * @generated
- */
+ *
+ * @return the value of the '<em>Version</em>' reference.
+ * @see #setVersion(Version)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_Version()
+ * @model
+ * @generated
+ */
public Version getVersion() {
- if (version != null && ((EObject)version).eIsProxy()) {
- InternalEObject oldVersion = (InternalEObject)version;
- version = (Version)eResolveProxy(oldVersion);
- if (version != oldVersion) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION, oldVersion, version));
- }
- }
- return version;
- }
+ if (version != null && ((EObject) version).eIsProxy()) {
+ InternalEObject oldVersion = (InternalEObject) version;
+ version = (Version) eResolveProxy(oldVersion);
+ if (version != oldVersion) {
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE,
+ OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION, oldVersion, version));
+ }
+ }
+ }
+ return version;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public Version basicGetVersion() {
- return version;
- }
+ return version;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getVersion <em>Version</em>}' reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Version</em>' reference.
- * @see #getVersion()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getVersion
+ * <em>Version</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Version</em>' reference.
+ * @see #getVersion()
+ * @generated
+ */
public void setVersion(Version newVersion) {
- Version oldVersion = version;
- version = newVersion;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION, oldVersion, version));
- }
+ Version oldVersion = version;
+ version = newVersion;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION,
+ oldVersion, version));
+ }
+ }
/**
- * Returns the value of the '<em><b>Element Collection</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Element Collection</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Element Collection</em>' containment reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Element Collection</em>' containment reference.
- * @see #setElementCollection(ElementCollection)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_ElementCollection()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Element Collection</em>' containment reference.
+ * @see #setElementCollection(ElementCollection)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeORMAnnotation_ElementCollection()
+ * @model containment="true"
+ * @generated
+ */
public ElementCollection getElementCollection() {
- return elementCollection;
- }
+ return elementCollection;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetElementCollection(ElementCollection newElementCollection, NotificationChain msgs) {
- ElementCollection oldElementCollection = elementCollection;
- elementCollection = newElementCollection;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection, newElementCollection);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
+ ElementCollection oldElementCollection = elementCollection;
+ elementCollection = newElementCollection;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection,
+ newElementCollection);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getElementCollection <em>Element Collection</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Element Collection</em>' containment reference.
- * @see #getElementCollection()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EDataTypeORMAnnotation#getElementCollection
+ * <em>Element Collection</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element Collection</em>' containment reference.
+ * @see #getElementCollection()
+ * @generated
+ */
public void setElementCollection(ElementCollection newElementCollection) {
- if (newElementCollection != elementCollection) {
- NotificationChain msgs = null;
- if (elementCollection != null)
- msgs = ((InternalEObject)elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- if (newElementCollection != null)
- msgs = ((InternalEObject)newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- msgs = basicSetElementCollection(newElementCollection, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection, newElementCollection));
- }
+ if (newElementCollection != elementCollection) {
+ NotificationChain msgs = null;
+ if (elementCollection != null) {
+ msgs = ((InternalEObject) elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ if (newElementCollection != null) {
+ msgs = ((InternalEObject) newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ msgs = basicSetElementCollection(newElementCollection, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection,
+ newElementCollection));
+ }
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
- return basicSetTransient(null, msgs);
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
- return basicSetBasic(null, msgs);
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
- return basicSetId(null, msgs);
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return basicSetElementCollection(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
+ return basicSetTransient(null, msgs);
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
+ return basicSetBasic(null, msgs);
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
+ return basicSetId(null, msgs);
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return basicSetElementCollection(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
- return getTransient();
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
- return getBasic();
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
- return getId();
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
- if (resolve) return getVersion();
- return basicGetVersion();
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return getElementCollection();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
+ return getTransient();
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
+ return getBasic();
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
+ return getId();
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
+ if (resolve) {
+ return getVersion();
+ }
+ return basicGetVersion();
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return getElementCollection();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)newValue);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
- setBasic((Basic)newValue);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
- setId((Id)newValue);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
- setVersion((Version)newValue);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) newValue);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) newValue);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
+ setId((Id) newValue);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
+ setVersion((Version) newValue);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)null);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
- setBasic((Basic)null);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
- setId((Id)null);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
- setVersion((Version)null);
- return;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)null);
- return;
- }
- super.eUnset(featureID);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) null);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) null);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
+ setId((Id) null);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
+ setVersion((Version) null);
+ return;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
- return transient_ != null;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
- return basic != null;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
- return id != null;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
- return version != null;
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return elementCollection != null;
- }
- return super.eIsSet(featureID);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
+ return transient_ != null;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__BASIC:
+ return basic != null;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ID:
+ return id != null;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__VERSION:
+ return version != null;
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return elementCollection != null;
+ }
+ return super.eIsSet(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EClassifierORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == EDataTypeORMAnnotationDefinition.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EClassifierORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EDataTypeORMAnnotationDefinition.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (baseFeatureID) {
- case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EClassifierORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == EDataTypeORMAnnotationDefinition.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.EDATA_TYPE_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EClassifierORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EDataTypeORMAnnotationDefinition.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
+ }
+
+ @Override
+ public boolean isValidForContext(ENamedElement eNamedElement) {
+ return ORMUtils.isValidForContext(eNamedElement);
+ }
} // EDataTypeORMAnnotation
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EEnumORMAnnotation.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EEnumORMAnnotation.java
index c981b6b5..f6f3fd5d 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EEnumORMAnnotation.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EEnumORMAnnotation.java
@@ -10,6 +10,7 @@ import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EcoreUtil;
@@ -22,74 +23,76 @@ import org.eclipse.emf.texo.orm.annotations.model.orm.ElementCollection;
import org.eclipse.emf.texo.orm.annotations.model.orm.EnumType;
import org.eclipse.emf.texo.orm.annotations.model.orm.Transient;
import org.eclipse.emf.texo.orm.annotations.model.orm.Version;
+import org.eclipse.emf.texo.orm.annotator.ORMUtils;
/**
* <!-- begin-user-doc --> A representation of the model object ' <em><b>EEnum ORM Annotation</b></em>'. <!--
* end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getEnumerated <em>Enumerated</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getBasic <em>Basic</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getVersion <em>Version</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getElementCollection <em>Element Collection</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getEnumerated <em>Enumerated</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getBasic <em>Basic</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getVersion <em>Version</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getElementCollection <em>Element Collection
+ * </em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation()
* @model kind="class"
* @generated
*/
public class EEnumORMAnnotation extends EEnumAnnotation implements EDataTypeORMAnnotationDefinition {
/**
- * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getTransient()
- * @generated
- * @ordered
- */
+ *
+ * @see #getTransient()
+ * @generated
+ * @ordered
+ */
protected Transient transient_;
/**
- * The default value of the '{@link #getEnumerated() <em>Enumerated</em>}' attribute.
- * <!-- begin-user-doc --> <!--
+ * The default value of the '{@link #getEnumerated() <em>Enumerated</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getEnumerated()
- * @generated
- * @ordered
- */
+ *
+ * @see #getEnumerated()
+ * @generated
+ * @ordered
+ */
protected static final EnumType ENUMERATED_EDEFAULT = null;
/**
- * The cached value of the '{@link #getEnumerated() <em>Enumerated</em>}' attribute.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getEnumerated() <em>Enumerated</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getEnumerated()
- * @generated
- * @ordered
- */
+ *
+ * @see #getEnumerated()
+ * @generated
+ * @ordered
+ */
protected EnumType enumerated = ENUMERATED_EDEFAULT;
/**
- * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getBasic()
- * @generated
- * @ordered
- */
+ *
+ * @see #getBasic()
+ * @generated
+ * @ordered
+ */
protected Basic basic;
/**
- * The cached value of the '{@link #getVersion() <em>Version</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getVersion() <em>Version</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getVersion()
- * @generated
- * @ordered
- */
+ *
+ * @see #getVersion()
+ * @generated
+ * @ordered
+ */
protected Version version;
/**
@@ -103,92 +106,112 @@ public class EEnumORMAnnotation extends EEnumAnnotation implements EDataTypeORMA
protected ElementCollection elementCollection;
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected EEnumORMAnnotation() {
- super();
- }
+ super();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmannotationsPackage.Literals.EENUM_ORM_ANNOTATION;
- }
+ return OrmannotationsPackage.Literals.EENUM_ORM_ANNOTATION;
+ }
/**
- * Returns the value of the '<em><b>Annotated EData Type</b></em>' container reference.
- * It is bidirectional and its opposite is '{@link org.eclipse.emf.texo.annotations.annotationsmodel.AnnotatedEDataType#getEDataTypeAnnotations <em>EData Type Annotations</em>}'.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Annotated EData Type</b></em>' container reference. It is bidirectional and its
+ * opposite is '{@link org.eclipse.emf.texo.annotations.annotationsmodel.AnnotatedEDataType#getEDataTypeAnnotations
+ * <em>EData Type Annotations</em>}'. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Annotated EData Type</em>' container reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Annotated EData Type</em>' container reference.
- * @see #setAnnotatedEDataType(AnnotatedEDataType)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeAnnotation_AnnotatedEDataType()
- * @see org.eclipse.emf.texo.annotations.annotationsmodel.AnnotatedEDataType#getEDataTypeAnnotations
- * @model opposite="eDataTypeAnnotations" transient="false"
- * @generated
- */
+ *
+ * @return the value of the '<em>Annotated EData Type</em>' container reference.
+ * @see #setAnnotatedEDataType(AnnotatedEDataType)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeAnnotation_AnnotatedEDataType()
+ * @see org.eclipse.emf.texo.annotations.annotationsmodel.AnnotatedEDataType#getEDataTypeAnnotations
+ * @model opposite="eDataTypeAnnotations" transient="false"
+ * @generated
+ */
public AnnotatedEDataType getAnnotatedEDataType() {
- if (eContainerFeatureID() != OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE) return null;
- return (AnnotatedEDataType)eContainer();
- }
+ if (eContainerFeatureID() != OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE) {
+ return null;
+ }
+ return (AnnotatedEDataType) eContainer();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetAnnotatedEDataType(AnnotatedEDataType newAnnotatedEDataType, NotificationChain msgs) {
- msgs = eBasicSetContainer((InternalEObject)newAnnotatedEDataType, OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE, msgs);
- return msgs;
- }
+ msgs = eBasicSetContainer(newAnnotatedEDataType, OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE,
+ msgs);
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getAnnotatedEDataType <em>Annotated EData Type</em>}' container reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Annotated EData Type</em>' container reference.
- * @see #getAnnotatedEDataType()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getAnnotatedEDataType
+ * <em>Annotated EData Type</em>}' container reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Annotated EData Type</em>' container reference.
+ * @see #getAnnotatedEDataType()
+ * @generated
+ */
public void setAnnotatedEDataType(AnnotatedEDataType newAnnotatedEDataType) {
- if (newAnnotatedEDataType != eInternalContainer() || (eContainerFeatureID() != OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE && newAnnotatedEDataType != null)) {
- if (EcoreUtil.isAncestor(this, newAnnotatedEDataType))
- throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
- NotificationChain msgs = null;
- if (eInternalContainer() != null)
- msgs = eBasicRemoveFromContainer(msgs);
- if (newAnnotatedEDataType != null)
- msgs = ((InternalEObject)newAnnotatedEDataType).eInverseAdd(this, AnnotationsmodelPackage.ANNOTATED_EDATA_TYPE__EDATA_TYPE_ANNOTATIONS, AnnotatedEDataType.class, msgs);
- msgs = basicSetAnnotatedEDataType(newAnnotatedEDataType, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE, newAnnotatedEDataType, newAnnotatedEDataType));
- }
-
- /**
- * Returns the value of the '<em><b>EData Type</b></em>' reference.
- * <!-- begin-user-doc -->
+ if (newAnnotatedEDataType != eInternalContainer()
+ || eContainerFeatureID() != OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE
+ && newAnnotatedEDataType != null) {
+ if (EcoreUtil.isAncestor(this, newAnnotatedEDataType)) {
+ throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
+ }
+ NotificationChain msgs = null;
+ if (eInternalContainer() != null) {
+ msgs = eBasicRemoveFromContainer(msgs);
+ }
+ if (newAnnotatedEDataType != null) {
+ msgs = ((InternalEObject) newAnnotatedEDataType).eInverseAdd(this,
+ AnnotationsmodelPackage.ANNOTATED_EDATA_TYPE__EDATA_TYPE_ANNOTATIONS, AnnotatedEDataType.class, msgs);
+ }
+ msgs = basicSetAnnotatedEDataType(newAnnotatedEDataType, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE, newAnnotatedEDataType,
+ newAnnotatedEDataType));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>EData Type</b></em>' reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>EData Type</em>' reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>EData Type</em>' reference.
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeAnnotation_EDataType()
- * @model required="true" transient="true" changeable="false" volatile="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>EData Type</em>' reference.
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEDataTypeAnnotation_EDataType()
+ * @model required="true" transient="true" changeable="false" volatile="true"
+ * @generated
+ */
public EDataType getEDataType() {
- EDataType eDataType = basicGetEDataType();
- return eDataType != null && eDataType.eIsProxy() ? (EDataType)eResolveProxy((InternalEObject)eDataType) : eDataType;
- }
+ EDataType eDataType = basicGetEDataType();
+ return eDataType != null && eDataType.eIsProxy() ? (EDataType) eResolveProxy((InternalEObject) eDataType)
+ : eDataType;
+ }
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -200,495 +223,596 @@ public class EEnumORMAnnotation extends EEnumAnnotation implements EDataTypeORMA
}
/**
- * Returns the value of the '<em><b>Transient</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Transient</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Transient</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Transient</em>' containment reference.
- * @see #setTransient(Transient)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Transient</em>' containment reference.
+ * @see #setTransient(Transient)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
+ * @model containment="true"
+ * @generated
+ */
public Transient getTransient() {
- return transient_;
- }
+ return transient_;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetTransient(Transient newTransient, NotificationChain msgs) {
- Transient oldTransient = transient_;
- transient_ = newTransient;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getTransient <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Transient</em>' containment reference.
- * @see #getTransient()
- * @generated
- */
+ Transient oldTransient = transient_;
+ transient_ = newTransient;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getTransient
+ * <em>Transient</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Transient</em>' containment reference.
+ * @see #getTransient()
+ * @generated
+ */
public void setTransient(Transient newTransient) {
- if (newTransient != transient_) {
- NotificationChain msgs = null;
- if (transient_ != null)
- msgs = ((InternalEObject)transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT, null, msgs);
- if (newTransient != null)
- msgs = ((InternalEObject)newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT, null, msgs);
- msgs = basicSetTransient(newTransient, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT, newTransient, newTransient));
- }
-
- /**
- * Returns the value of the '<em><b>Enumerated</b></em>' attribute.
- * <!-- begin-user-doc -->
+ if (newTransient != transient_) {
+ NotificationChain msgs = null;
+ if (transient_ != null) {
+ msgs = ((InternalEObject) transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ if (newTransient != null) {
+ msgs = ((InternalEObject) newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ msgs = basicSetTransient(newTransient, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT,
+ newTransient, newTransient));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Enumerated</b></em>' attribute. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Enumerated</em>' attribute isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Enumerated</em>' attribute.
- * @see #setEnumerated(EnumType)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_Enumerated()
- * @model dataType="org.eclipse.emf.texo.orm.annotations.model.orm.Enumerated"
- * @generated
- */
+ *
+ * @return the value of the '<em>Enumerated</em>' attribute.
+ * @see #setEnumerated(EnumType)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_Enumerated()
+ * @model dataType="org.eclipse.emf.texo.orm.annotations.model.orm.Enumerated"
+ * @generated
+ */
public EnumType getEnumerated() {
- return enumerated;
- }
+ return enumerated;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getEnumerated <em>Enumerated</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Enumerated</em>' attribute.
- * @see #getEnumerated()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getEnumerated
+ * <em>Enumerated</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Enumerated</em>' attribute.
+ * @see #getEnumerated()
+ * @generated
+ */
public void setEnumerated(EnumType newEnumerated) {
- EnumType oldEnumerated = enumerated;
- enumerated = newEnumerated;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED, oldEnumerated, enumerated));
- }
+ EnumType oldEnumerated = enumerated;
+ enumerated = newEnumerated;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED,
+ oldEnumerated, enumerated));
+ }
+ }
/**
- * Returns the value of the '<em><b>Basic</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Basic</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Basic</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Basic</em>' containment reference.
- * @see #setBasic(Basic)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_Basic()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Basic</em>' containment reference.
+ * @see #setBasic(Basic)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_Basic()
+ * @model containment="true"
+ * @generated
+ */
public Basic getBasic() {
- return basic;
- }
+ return basic;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetBasic(Basic newBasic, NotificationChain msgs) {
- Basic oldBasic = basic;
- basic = newBasic;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getBasic <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Basic</em>' containment reference.
- * @see #getBasic()
- * @generated
- */
+ Basic oldBasic = basic;
+ basic = newBasic;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getBasic <em>Basic</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Basic</em>' containment reference.
+ * @see #getBasic()
+ * @generated
+ */
public void setBasic(Basic newBasic) {
- if (newBasic != basic) {
- NotificationChain msgs = null;
- if (basic != null)
- msgs = ((InternalEObject)basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC, null, msgs);
- if (newBasic != null)
- msgs = ((InternalEObject)newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC, null, msgs);
- msgs = basicSetBasic(newBasic, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC, newBasic, newBasic));
- }
-
- /**
- * Returns the value of the '<em><b>Version</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newBasic != basic) {
+ NotificationChain msgs = null;
+ if (basic != null) {
+ msgs = ((InternalEObject) basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ if (newBasic != null) {
+ msgs = ((InternalEObject) newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ msgs = basicSetBasic(newBasic, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC,
+ newBasic, newBasic));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Version</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Version</em>' reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Version</em>' containment reference.
- * @see #setVersion(Version)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_Version()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Version</em>' containment reference.
+ * @see #setVersion(Version)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_Version()
+ * @model containment="true"
+ * @generated
+ */
public Version getVersion() {
- return version;
- }
+ return version;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetVersion(Version newVersion, NotificationChain msgs) {
- Version oldVersion = version;
- version = newVersion;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION, oldVersion, newVersion);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getVersion <em>Version</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Version</em>' containment reference.
- * @see #getVersion()
- * @generated
- */
+ Version oldVersion = version;
+ version = newVersion;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION, oldVersion, newVersion);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getVersion
+ * <em>Version</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Version</em>' containment reference.
+ * @see #getVersion()
+ * @generated
+ */
public void setVersion(Version newVersion) {
- if (newVersion != version) {
- NotificationChain msgs = null;
- if (version != null)
- msgs = ((InternalEObject)version).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION, null, msgs);
- if (newVersion != null)
- msgs = ((InternalEObject)newVersion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION, null, msgs);
- msgs = basicSetVersion(newVersion, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION, newVersion, newVersion));
- }
-
- /**
- * Returns the value of the '<em><b>Element Collection</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newVersion != version) {
+ NotificationChain msgs = null;
+ if (version != null) {
+ msgs = ((InternalEObject) version).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION, null, msgs);
+ }
+ if (newVersion != null) {
+ msgs = ((InternalEObject) newVersion).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION, null, msgs);
+ }
+ msgs = basicSetVersion(newVersion, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION,
+ newVersion, newVersion));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Element Collection</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Element Collection</em>' containment reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Element Collection</em>' containment reference.
- * @see #setElementCollection(ElementCollection)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_ElementCollection()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Element Collection</em>' containment reference.
+ * @see #setElementCollection(ElementCollection)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEEnumORMAnnotation_ElementCollection()
+ * @model containment="true"
+ * @generated
+ */
public ElementCollection getElementCollection() {
- return elementCollection;
- }
+ return elementCollection;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetElementCollection(ElementCollection newElementCollection, NotificationChain msgs) {
- ElementCollection oldElementCollection = elementCollection;
- elementCollection = newElementCollection;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection, newElementCollection);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getElementCollection <em>Element Collection</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Element Collection</em>' containment reference.
- * @see #getElementCollection()
- * @generated
- */
+ ElementCollection oldElementCollection = elementCollection;
+ elementCollection = newElementCollection;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection, newElementCollection);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EEnumORMAnnotation#getElementCollection
+ * <em>Element Collection</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element Collection</em>' containment reference.
+ * @see #getElementCollection()
+ * @generated
+ */
public void setElementCollection(ElementCollection newElementCollection) {
- if (newElementCollection != elementCollection) {
- NotificationChain msgs = null;
- if (elementCollection != null)
- msgs = ((InternalEObject)elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- if (newElementCollection != null)
- msgs = ((InternalEObject)newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- msgs = basicSetElementCollection(newElementCollection, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection, newElementCollection));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (newElementCollection != elementCollection) {
+ NotificationChain msgs = null;
+ if (elementCollection != null) {
+ msgs = ((InternalEObject) elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ if (newElementCollection != null) {
+ msgs = ((InternalEObject) newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ msgs = basicSetElementCollection(newElementCollection, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection, newElementCollection));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
- if (eInternalContainer() != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return basicSetAnnotatedEDataType((AnnotatedEDataType)otherEnd, msgs);
- }
- return super.eInverseAdd(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ if (eInternalContainer() != null) {
+ msgs = eBasicRemoveFromContainer(msgs);
+ }
+ return basicSetAnnotatedEDataType((AnnotatedEDataType) otherEnd, msgs);
+ }
+ return super.eInverseAdd(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
- return basicSetAnnotatedEDataType(null, msgs);
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
- return basicSetTransient(null, msgs);
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
- return basicSetBasic(null, msgs);
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
- return basicSetVersion(null, msgs);
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return basicSetElementCollection(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ return basicSetAnnotatedEDataType(null, msgs);
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
+ return basicSetTransient(null, msgs);
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
+ return basicSetBasic(null, msgs);
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
+ return basicSetVersion(null, msgs);
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return basicSetElementCollection(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) {
- switch (eContainerFeatureID()) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
- return eInternalContainer().eInverseRemove(this, AnnotationsmodelPackage.ANNOTATED_EDATA_TYPE__EDATA_TYPE_ANNOTATIONS, AnnotatedEDataType.class, msgs);
- }
- return super.eBasicRemoveFromContainerFeature(msgs);
- }
+ switch (eContainerFeatureID()) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ return eInternalContainer().eInverseRemove(this,
+ AnnotationsmodelPackage.ANNOTATED_EDATA_TYPE__EDATA_TYPE_ANNOTATIONS, AnnotatedEDataType.class, msgs);
+ }
+ return super.eBasicRemoveFromContainerFeature(msgs);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
- return getAnnotatedEDataType();
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE:
- if (resolve) return getEDataType();
- return basicGetEDataType();
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
- return getTransient();
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
- return getEnumerated();
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
- return getBasic();
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
- return getVersion();
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return getElementCollection();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ return getAnnotatedEDataType();
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE:
+ if (resolve) {
+ return getEDataType();
+ }
+ return basicGetEDataType();
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
+ return getTransient();
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
+ return getEnumerated();
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
+ return getBasic();
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
+ return getVersion();
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return getElementCollection();
+ }
+ 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 OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
- setAnnotatedEDataType((AnnotatedEDataType)newValue);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)newValue);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
- setEnumerated((EnumType)newValue);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
- setBasic((Basic)newValue);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
- setVersion((Version)newValue);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ setAnnotatedEDataType((AnnotatedEDataType) newValue);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) newValue);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
+ setEnumerated((EnumType) newValue);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) newValue);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
+ setVersion((Version) newValue);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
- setAnnotatedEDataType((AnnotatedEDataType)null);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)null);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
- setEnumerated(ENUMERATED_EDEFAULT);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
- setBasic((Basic)null);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
- setVersion((Version)null);
- return;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ setAnnotatedEDataType((AnnotatedEDataType) null);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) null);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
+ setEnumerated(ENUMERATED_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) null);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
+ setVersion((Version) null);
+ return;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
- return getAnnotatedEDataType() != null;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE:
- return basicGetEDataType() != null;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
- return transient_ != null;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
- return ENUMERATED_EDEFAULT == null ? enumerated != null : !ENUMERATED_EDEFAULT.equals(enumerated);
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
- return basic != null;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
- return version != null;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return elementCollection != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ return getAnnotatedEDataType() != null;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE:
+ return basicGetEDataType() != null;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
+ return transient_ != null;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ENUMERATED:
+ return ENUMERATED_EDEFAULT == null ? enumerated != null : !ENUMERATED_EDEFAULT.equals(enumerated);
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__BASIC:
+ return basic != null;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__VERSION:
+ return version != null;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return elementCollection != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == EDataTypeAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE: return AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__ANNOTATED_EDATA_TYPE;
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE: return AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__EDATA_TYPE;
- default: return -1;
- }
- }
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EClassifierORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == EDataTypeORMAnnotationDefinition.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (baseClass == EDataTypeAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ return AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__ANNOTATED_EDATA_TYPE;
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE:
+ return AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__EDATA_TYPE;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EClassifierORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EDataTypeORMAnnotationDefinition.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == EDataTypeAnnotation.class) {
- switch (baseFeatureID) {
- case AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__ANNOTATED_EDATA_TYPE: return OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE;
- case AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__EDATA_TYPE: return OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE;
- default: return -1;
- }
- }
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (baseFeatureID) {
- case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EClassifierORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == EDataTypeORMAnnotationDefinition.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (baseClass == EDataTypeAnnotation.class) {
+ switch (baseFeatureID) {
+ case AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__ANNOTATED_EDATA_TYPE:
+ return OrmannotationsPackage.EENUM_ORM_ANNOTATION__ANNOTATED_EDATA_TYPE;
+ case AnnotationsmodelPackage.EDATA_TYPE_ANNOTATION__EDATA_TYPE:
+ return OrmannotationsPackage.EENUM_ORM_ANNOTATION__EDATA_TYPE;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.EENUM_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EClassifierORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EDataTypeORMAnnotationDefinition.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (enumerated: ");
- result.append(enumerated);
- result.append(')');
- return result.toString();
- }
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (enumerated: ");
+ result.append(enumerated);
+ result.append(')');
+ return result.toString();
+ }
+
+ @Override
+ public boolean isValidForContext(ENamedElement eNamedElement) {
+ return ORMUtils.isValidForContext(eNamedElement);
+ }
} // EEnumORMAnnotation
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java
index 82e7e928..9b8a957c 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java
@@ -9,6 +9,7 @@ package org.eclipse.emf.texo.orm.ormannotations;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
@@ -20,36 +21,54 @@ import org.eclipse.emf.texo.orm.annotations.model.orm.Inheritance;
import org.eclipse.emf.texo.orm.annotator.ORMMappingOptions;
import org.eclipse.emf.texo.orm.annotator.ORMNamingStrategy;
import org.eclipse.emf.texo.orm.annotator.ORMNamingStrategyProvider;
+import org.eclipse.emf.texo.orm.annotator.ORMUtils;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EPackage ORM Annotation</b></em>'. <!--
* end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames <em>Generate Full Db Schema Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile <em>Name Dictionary Property File</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix <em>Table Name Prefix</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix <em>Column Name Prefix</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength <em>Maximum Sql Name Length</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames <em>Lower Cased Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames <em>Upper Cased Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames <em>Enforce Unique Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment <em>Use Join Tables For Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment <em>Use Join Tables For Non Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment <em>Default Cascade Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment <em>Default Cascade Non Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings <em>Entity Mappings</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations <em>Generate Java Annotations</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings <em>Add Order Column To List Mappings</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames <em>Rename SQL Reserved Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance <em>Inheritance</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames <em>Unique Entity Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isSetDelimitedIdentifierTagInORM <em>Set Delimited Identifier Tag In ORM</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames <em>Generate
+ * Full Db Schema Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile <em>Name
+ * Dictionary Property File</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix <em>Table Name Prefix
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix <em>Column Name Prefix
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength <em>Maximum Sql Name
+ * Length</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames <em>Lower Cased Names
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames <em>Upper Cased Names
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames <em>Enforce Unique
+ * Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment <em>Use Join
+ * Tables For Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment <em>Use
+ * Join Tables For Non Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment <em>Default
+ * Cascade Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment <em>Default
+ * Cascade Non Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings <em>Entity Mappings</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations <em>Generate Java
+ * Annotations</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings <em>Add Order
+ * Column To List Mappings</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames <em>Rename SQL
+ * Reserved Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance <em>Inheritance</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames <em>Unique Entity Names
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isSetDelimitedIdentifierTagInORM <em>Set
+ * Delimited Identifier Tag In ORM</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation()
* @model kind="class"
* @generated
@@ -57,54 +76,58 @@ import org.eclipse.emf.texo.orm.annotator.ORMNamingStrategyProvider;
public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedElementORMAnnotation {
/**
- * The default value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isGenerateFullDbSchemaNames()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isGenerateFullDbSchemaNames()
+ * @generated
+ * @ordered
+ */
protected static final boolean GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT = true;
/**
- * The cached value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isGenerateFullDbSchemaNames()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isGenerateFullDbSchemaNames()
+ * @generated
+ * @ordered
+ */
protected boolean generateFullDbSchemaNames = GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT;
/**
- * The default value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getNameDictionaryPropertyFile()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getNameDictionaryPropertyFile()
+ * @generated
+ * @ordered
+ */
protected static final String NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT = null;
/**
- * The cached value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getNameDictionaryPropertyFile()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getNameDictionaryPropertyFile()
+ * @generated
+ * @ordered
+ */
protected String nameDictionaryPropertyFile = NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT;
/**
- * The default value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute.
- * <!-- begin-user-doc
+ * The default value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getTableNamePrefix()
- * @generated
- * @ordered
- */
+ *
+ * @see #getTableNamePrefix()
+ * @generated
+ * @ordered
+ */
protected static final String TABLE_NAME_PREFIX_EDEFAULT = null;
/**
- * The cached value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getTableNamePrefix()
- * @generated
- * @ordered
- */
+ *
+ * @see #getTableNamePrefix()
+ * @generated
+ * @ordered
+ */
protected String tableNamePrefix = TABLE_NAME_PREFIX_EDEFAULT;
/**
* The default value of the '{@link #getColumnNamePrefix() <em>Column Name Prefix</em>}' attribute. <!--
@@ -116,13 +139,13 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected static final String COLUMN_NAME_PREFIX_EDEFAULT = null;
/**
- * The cached value of the '{@link #getColumnNamePrefix() <em>Column Name Prefix</em>}' attribute.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getColumnNamePrefix() <em>Column Name Prefix</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getColumnNamePrefix()
- * @generated
- * @ordered
- */
+ *
+ * @see #getColumnNamePrefix()
+ * @generated
+ * @ordered
+ */
protected String columnNamePrefix = COLUMN_NAME_PREFIX_EDEFAULT;
/**
* The default value of the '{@link #getMaximumSqlNameLength() <em>Maximum Sql Name Length</em>}' attribute. <!--
@@ -143,40 +166,40 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected int maximumSqlNameLength = MAXIMUM_SQL_NAME_LENGTH_EDEFAULT;
/**
- * The default value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute.
- * <!-- begin-user-doc
+ * The default value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #isLowerCasedNames()
- * @generated
- * @ordered
- */
+ *
+ * @see #isLowerCasedNames()
+ * @generated
+ * @ordered
+ */
protected static final boolean LOWER_CASED_NAMES_EDEFAULT = false;
/**
- * The cached value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #isLowerCasedNames()
- * @generated
- * @ordered
- */
+ *
+ * @see #isLowerCasedNames()
+ * @generated
+ * @ordered
+ */
protected boolean lowerCasedNames = LOWER_CASED_NAMES_EDEFAULT;
/**
- * The default value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute.
- * <!-- begin-user-doc
+ * The default value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #isUpperCasedNames()
- * @generated
- * @ordered
- */
+ *
+ * @see #isUpperCasedNames()
+ * @generated
+ * @ordered
+ */
protected static final boolean UPPER_CASED_NAMES_EDEFAULT = false;
/**
- * The cached value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #isUpperCasedNames()
- * @generated
- * @ordered
- */
+ *
+ * @see #isUpperCasedNames()
+ * @generated
+ * @ordered
+ */
protected boolean upperCasedNames = UPPER_CASED_NAMES_EDEFAULT;
/**
@@ -198,52 +221,58 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected boolean enforceUniqueNames = ENFORCE_UNIQUE_NAMES_EDEFAULT;
/**
- * The default value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isUseJoinTablesForContainment()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isUseJoinTablesForContainment()
+ * @generated
+ * @ordered
+ */
protected static final boolean USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT = false;
/**
- * The cached value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isUseJoinTablesForContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isUseJoinTablesForContainment()
+ * @generated
+ * @ordered
+ */
protected boolean useJoinTablesForContainment = USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT;
/**
- * The default value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isUseJoinTablesForNonContainment()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isUseJoinTablesForNonContainment()
+ * @generated
+ * @ordered
+ */
protected static final boolean USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT = true;
/**
- * The cached value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isUseJoinTablesForNonContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isUseJoinTablesForNonContainment()
+ * @generated
+ * @ordered
+ */
protected boolean useJoinTablesForNonContainment = USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT;
/**
- * The cached value of the '{@link #getDefaultCascadeContainment() <em>Default Cascade Containment</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getDefaultCascadeContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getDefaultCascadeContainment() <em>Default Cascade Containment</em>}' containment
+ * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDefaultCascadeContainment()
+ * @generated
+ * @ordered
+ */
protected CascadeType defaultCascadeContainment;
/**
- * The cached value of the '{@link #getDefaultCascadeNonContainment() <em>Default Cascade Non Containment</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getDefaultCascadeNonContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getDefaultCascadeNonContainment() <em>Default Cascade Non Containment</em>}'
+ * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getDefaultCascadeNonContainment()
+ * @generated
+ * @ordered
+ */
protected CascadeType defaultCascadeNonContainment;
/**
@@ -275,20 +304,22 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected boolean generateJavaAnnotations = GENERATE_JAVA_ANNOTATIONS_EDEFAULT;
/**
- * The default value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isAddOrderColumnToListMappings()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isAddOrderColumnToListMappings()
+ * @generated
+ * @ordered
+ */
protected static final boolean ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT = false;
/**
- * The cached value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isAddOrderColumnToListMappings()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isAddOrderColumnToListMappings()
+ * @generated
+ * @ordered
+ */
protected boolean addOrderColumnToListMappings = ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT;
/**
* The default value of the '{@link #isRenameSQLReservedNames() <em>Rename SQL Reserved Names</em>}' attribute. <!--
@@ -310,51 +341,51 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
protected boolean renameSQLReservedNames = RENAME_SQL_RESERVED_NAMES_EDEFAULT;
/**
- * The cached value of the '{@link #getInheritance() <em>Inheritance</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getInheritance() <em>Inheritance</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getInheritance()
- * @generated
- * @ordered
- */
+ *
+ * @see #getInheritance()
+ * @generated
+ * @ordered
+ */
protected Inheritance inheritance;
/**
- * The default value of the '{@link #isUniqueEntityNames() <em>Unique Entity Names</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isUniqueEntityNames()
- * @generated
- * @ordered
- */
- protected static final boolean UNIQUE_ENTITY_NAMES_EDEFAULT = true;
- /**
- * The cached value of the '{@link #isUniqueEntityNames() <em>Unique Entity Names</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isUniqueEntityNames()
- * @generated
- * @ordered
- */
- protected boolean uniqueEntityNames = UNIQUE_ENTITY_NAMES_EDEFAULT;
- /**
- * The default value of the '{@link #isSetDelimitedIdentifierTagInORM() <em>Set Delimited Identifier Tag In ORM</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetDelimitedIdentifierTagInORM()
- * @generated
- * @ordered
- */
- protected static final boolean SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT = true;
- /**
- * The cached value of the '{@link #isSetDelimitedIdentifierTagInORM() <em>Set Delimited Identifier Tag In ORM</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #isSetDelimitedIdentifierTagInORM()
- * @generated
- * @ordered
- */
- protected boolean setDelimitedIdentifierTagInORM = SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT;
- private final ORMNamingStrategy namingStrategy;
+ * The default value of the '{@link #isUniqueEntityNames() <em>Unique Entity Names</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isUniqueEntityNames()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean UNIQUE_ENTITY_NAMES_EDEFAULT = true;
+ /**
+ * The cached value of the '{@link #isUniqueEntityNames() <em>Unique Entity Names</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isUniqueEntityNames()
+ * @generated
+ * @ordered
+ */
+ protected boolean uniqueEntityNames = UNIQUE_ENTITY_NAMES_EDEFAULT;
+ /**
+ * The default value of the '{@link #isSetDelimitedIdentifierTagInORM() <em>Set Delimited Identifier Tag In ORM</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDelimitedIdentifierTagInORM()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT = true;
+ /**
+ * The cached value of the '{@link #isSetDelimitedIdentifierTagInORM() <em>Set Delimited Identifier Tag In ORM</em>}'
+ * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetDelimitedIdentifierTagInORM()
+ * @generated
+ * @ordered
+ */
+ protected boolean setDelimitedIdentifierTagInORM = SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT;
+ private final ORMNamingStrategy namingStrategy;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -401,395 +432,465 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
}
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmannotationsPackage.Literals.EPACKAGE_ORM_ANNOTATION;
- }
+ return OrmannotationsPackage.Literals.EPACKAGE_ORM_ANNOTATION;
+ }
/**
- * Returns the value of the '<em><b>Generate Full Db Schema Names</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Generate Full Db Schema Names</b></em>' attribute. The default value is
+ * <code>"true"</code>. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Generate Full Db Schema Names</em>' attribute isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Generate Full Db Schema Names</em>' attribute.
- * @see #setGenerateFullDbSchemaNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_GenerateFullDbSchemaNames()
- * @model default="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Generate Full Db Schema Names</em>' attribute.
+ * @see #setGenerateFullDbSchemaNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_GenerateFullDbSchemaNames()
+ * @model default="true"
+ * @generated
+ */
public boolean isGenerateFullDbSchemaNames() {
- return generateFullDbSchemaNames;
- }
+ return generateFullDbSchemaNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames <em>Generate Full Db Schema Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Generate Full Db Schema Names</em>' attribute.
- * @see #isGenerateFullDbSchemaNames()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames
+ * <em>Generate Full Db Schema Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Generate Full Db Schema Names</em>' attribute.
+ * @see #isGenerateFullDbSchemaNames()
+ * @generated
+ */
public void setGenerateFullDbSchemaNames(boolean newGenerateFullDbSchemaNames) {
- boolean oldGenerateFullDbSchemaNames = generateFullDbSchemaNames;
- generateFullDbSchemaNames = newGenerateFullDbSchemaNames;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES, oldGenerateFullDbSchemaNames, generateFullDbSchemaNames));
- }
+ boolean oldGenerateFullDbSchemaNames = generateFullDbSchemaNames;
+ generateFullDbSchemaNames = newGenerateFullDbSchemaNames;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES, oldGenerateFullDbSchemaNames,
+ generateFullDbSchemaNames));
+ }
+ }
/**
- * Returns the value of the '<em><b>Name Dictionary Property File</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Name Dictionary Property File</b></em>' attribute. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name Dictionary Property File</em>' attribute isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Name Dictionary Property File</em>' attribute.
- * @see #setNameDictionaryPropertyFile(String)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_NameDictionaryPropertyFile()
- * @model
- * @generated
- */
+ *
+ * @return the value of the '<em>Name Dictionary Property File</em>' attribute.
+ * @see #setNameDictionaryPropertyFile(String)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_NameDictionaryPropertyFile()
+ * @model
+ * @generated
+ */
public String getNameDictionaryPropertyFile() {
- return nameDictionaryPropertyFile;
- }
+ return nameDictionaryPropertyFile;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile <em>Name Dictionary Property File</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Name Dictionary Property File</em>' attribute.
- * @see #getNameDictionaryPropertyFile()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile
+ * <em>Name Dictionary Property File</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Name Dictionary Property File</em>' attribute.
+ * @see #getNameDictionaryPropertyFile()
+ * @generated
+ */
public void setNameDictionaryPropertyFile(String newNameDictionaryPropertyFile) {
- String oldNameDictionaryPropertyFile = nameDictionaryPropertyFile;
- nameDictionaryPropertyFile = newNameDictionaryPropertyFile;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE, oldNameDictionaryPropertyFile, nameDictionaryPropertyFile));
- }
+ String oldNameDictionaryPropertyFile = nameDictionaryPropertyFile;
+ nameDictionaryPropertyFile = newNameDictionaryPropertyFile;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE, oldNameDictionaryPropertyFile,
+ nameDictionaryPropertyFile));
+ }
+ }
/**
- * Returns the value of the '<em><b>Table Name Prefix</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Table Name Prefix</b></em>' attribute. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Table Name Prefix</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Table Name Prefix</em>' attribute.
- * @see #setTableNamePrefix(String)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_TableNamePrefix()
- * @model
- * @generated
- */
+ *
+ * @return the value of the '<em>Table Name Prefix</em>' attribute.
+ * @see #setTableNamePrefix(String)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_TableNamePrefix()
+ * @model
+ * @generated
+ */
public String getTableNamePrefix() {
- return tableNamePrefix;
- }
+ return tableNamePrefix;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix <em>Table Name Prefix</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Table Name Prefix</em>' attribute.
- * @see #getTableNamePrefix()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix
+ * <em>Table Name Prefix</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Table Name Prefix</em>' attribute.
+ * @see #getTableNamePrefix()
+ * @generated
+ */
public void setTableNamePrefix(String newTableNamePrefix) {
- String oldTableNamePrefix = tableNamePrefix;
- tableNamePrefix = newTableNamePrefix;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX, oldTableNamePrefix, tableNamePrefix));
- }
+ String oldTableNamePrefix = tableNamePrefix;
+ tableNamePrefix = newTableNamePrefix;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX, oldTableNamePrefix, tableNamePrefix));
+ }
+ }
/**
- * Returns the value of the '<em><b>Column Name Prefix</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Column Name Prefix</b></em>' attribute. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Column Name Prefix</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Column Name Prefix</em>' attribute.
- * @see #setColumnNamePrefix(String)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_ColumnNamePrefix()
- * @model
- * @generated
- */
+ *
+ * @return the value of the '<em>Column Name Prefix</em>' attribute.
+ * @see #setColumnNamePrefix(String)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_ColumnNamePrefix()
+ * @model
+ * @generated
+ */
public String getColumnNamePrefix() {
- return columnNamePrefix;
- }
+ return columnNamePrefix;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix <em>Column Name Prefix</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Column Name Prefix</em>' attribute.
- * @see #getColumnNamePrefix()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix
+ * <em>Column Name Prefix</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Column Name Prefix</em>' attribute.
+ * @see #getColumnNamePrefix()
+ * @generated
+ */
public void setColumnNamePrefix(String newColumnNamePrefix) {
- String oldColumnNamePrefix = columnNamePrefix;
- columnNamePrefix = newColumnNamePrefix;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX, oldColumnNamePrefix, columnNamePrefix));
- }
+ String oldColumnNamePrefix = columnNamePrefix;
+ columnNamePrefix = newColumnNamePrefix;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX, oldColumnNamePrefix, columnNamePrefix));
+ }
+ }
/**
- * Returns the value of the '<em><b>Maximum Sql Name Length</b></em>' attribute.
- * The default value is <code>"255"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Maximum Sql Name Length</b></em>' attribute. The default value is
+ * <code>"255"</code>. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Maximum Sql Name Length</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Maximum Sql Name Length</em>' attribute.
- * @see #setMaximumSqlNameLength(int)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_MaximumSqlNameLength()
- * @model default="255"
- * @generated
- */
+ *
+ * @return the value of the '<em>Maximum Sql Name Length</em>' attribute.
+ * @see #setMaximumSqlNameLength(int)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_MaximumSqlNameLength()
+ * @model default="255"
+ * @generated
+ */
public int getMaximumSqlNameLength() {
- return maximumSqlNameLength;
- }
+ return maximumSqlNameLength;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength <em>Maximum Sql Name Length</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Maximum Sql Name Length</em>' attribute.
- * @see #getMaximumSqlNameLength()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength
+ * <em>Maximum Sql Name Length</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Maximum Sql Name Length</em>' attribute.
+ * @see #getMaximumSqlNameLength()
+ * @generated
+ */
public void setMaximumSqlNameLength(int newMaximumSqlNameLength) {
- int oldMaximumSqlNameLength = maximumSqlNameLength;
- maximumSqlNameLength = newMaximumSqlNameLength;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH, oldMaximumSqlNameLength, maximumSqlNameLength));
- }
+ int oldMaximumSqlNameLength = maximumSqlNameLength;
+ maximumSqlNameLength = newMaximumSqlNameLength;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH, oldMaximumSqlNameLength,
+ maximumSqlNameLength));
+ }
+ }
/**
- * Returns the value of the '<em><b>Lower Cased Names</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Lower Cased Names</b></em>' attribute. The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Lower Cased Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Lower Cased Names</em>' attribute.
- * @see #setLowerCasedNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_LowerCasedNames()
- * @model default="false"
- * @generated
- */
+ *
+ * @return the value of the '<em>Lower Cased Names</em>' attribute.
+ * @see #setLowerCasedNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_LowerCasedNames()
+ * @model default="false"
+ * @generated
+ */
public boolean isLowerCasedNames() {
- return lowerCasedNames;
- }
+ return lowerCasedNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames <em>Lower Cased Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Lower Cased Names</em>' attribute.
- * @see #isLowerCasedNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames
+ * <em>Lower Cased Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Lower Cased Names</em>' attribute.
+ * @see #isLowerCasedNames()
+ * @generated
+ */
public void setLowerCasedNames(boolean newLowerCasedNames) {
- boolean oldLowerCasedNames = lowerCasedNames;
- lowerCasedNames = newLowerCasedNames;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES, oldLowerCasedNames, lowerCasedNames));
- }
+ boolean oldLowerCasedNames = lowerCasedNames;
+ lowerCasedNames = newLowerCasedNames;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES, oldLowerCasedNames, lowerCasedNames));
+ }
+ }
/**
- * Returns the value of the '<em><b>Upper Cased Names</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Upper Cased Names</b></em>' attribute. The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Upper Cased Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Upper Cased Names</em>' attribute.
- * @see #setUpperCasedNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UpperCasedNames()
- * @model default="false"
- * @generated
- */
+ *
+ * @return the value of the '<em>Upper Cased Names</em>' attribute.
+ * @see #setUpperCasedNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UpperCasedNames()
+ * @model default="false"
+ * @generated
+ */
public boolean isUpperCasedNames() {
- return upperCasedNames;
- }
+ return upperCasedNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames <em>Upper Cased Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Upper Cased Names</em>' attribute.
- * @see #isUpperCasedNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames
+ * <em>Upper Cased Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Upper Cased Names</em>' attribute.
+ * @see #isUpperCasedNames()
+ * @generated
+ */
public void setUpperCasedNames(boolean newUpperCasedNames) {
- boolean oldUpperCasedNames = upperCasedNames;
- upperCasedNames = newUpperCasedNames;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES, oldUpperCasedNames, upperCasedNames));
- }
+ boolean oldUpperCasedNames = upperCasedNames;
+ upperCasedNames = newUpperCasedNames;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES, oldUpperCasedNames, upperCasedNames));
+ }
+ }
/**
- * Returns the value of the '<em><b>Enforce Unique Names</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Enforce Unique Names</b></em>' attribute. The default value is <code>"true"</code>
+ * . <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Enforce Unique Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Enforce Unique Names</em>' attribute.
- * @see #setEnforceUniqueNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EnforceUniqueNames()
- * @model default="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Enforce Unique Names</em>' attribute.
+ * @see #setEnforceUniqueNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EnforceUniqueNames()
+ * @model default="true"
+ * @generated
+ */
public boolean isEnforceUniqueNames() {
- return enforceUniqueNames;
- }
+ return enforceUniqueNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames <em>Enforce Unique Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Enforce Unique Names</em>' attribute.
- * @see #isEnforceUniqueNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames
+ * <em>Enforce Unique Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Enforce Unique Names</em>' attribute.
+ * @see #isEnforceUniqueNames()
+ * @generated
+ */
public void setEnforceUniqueNames(boolean newEnforceUniqueNames) {
- boolean oldEnforceUniqueNames = enforceUniqueNames;
- enforceUniqueNames = newEnforceUniqueNames;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES, oldEnforceUniqueNames, enforceUniqueNames));
- }
+ boolean oldEnforceUniqueNames = enforceUniqueNames;
+ enforceUniqueNames = newEnforceUniqueNames;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES, oldEnforceUniqueNames,
+ enforceUniqueNames));
+ }
+ }
/**
- * Returns the value of the '<em><b>Use Join Tables For Containment</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Use Join Tables For Containment</b></em>' attribute. The default value is
+ * <code>"false"</code>. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Use Join Tables For Containment</em>' attribute isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Use Join Tables For Containment</em>' attribute.
- * @see #setUseJoinTablesForContainment(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForContainment()
- * @model default="false"
- * @generated
- */
+ *
+ * @return the value of the '<em>Use Join Tables For Containment</em>' attribute.
+ * @see #setUseJoinTablesForContainment(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForContainment()
+ * @model default="false"
+ * @generated
+ */
public boolean isUseJoinTablesForContainment() {
- return useJoinTablesForContainment;
- }
+ return useJoinTablesForContainment;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment <em>Use Join Tables For Containment</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Use Join Tables For Containment</em>' attribute.
- * @see #isUseJoinTablesForContainment()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment
+ * <em>Use Join Tables For Containment</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Use Join Tables For Containment</em>' attribute.
+ * @see #isUseJoinTablesForContainment()
+ * @generated
+ */
public void setUseJoinTablesForContainment(boolean newUseJoinTablesForContainment) {
- boolean oldUseJoinTablesForContainment = useJoinTablesForContainment;
- useJoinTablesForContainment = newUseJoinTablesForContainment;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT, oldUseJoinTablesForContainment, useJoinTablesForContainment));
- }
+ boolean oldUseJoinTablesForContainment = useJoinTablesForContainment;
+ useJoinTablesForContainment = newUseJoinTablesForContainment;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT,
+ oldUseJoinTablesForContainment, useJoinTablesForContainment));
+ }
+ }
/**
- * Returns the value of the '<em><b>Use Join Tables For Non Containment</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Use Join Tables For Non Containment</b></em>' attribute. The default value is
+ * <code>"true"</code>. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Use Join Tables For Non Containment</em>' attribute isn't clear, there really should be
* more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Use Join Tables For Non Containment</em>' attribute.
- * @see #setUseJoinTablesForNonContainment(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForNonContainment()
- * @model default="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Use Join Tables For Non Containment</em>' attribute.
+ * @see #setUseJoinTablesForNonContainment(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForNonContainment()
+ * @model default="true"
+ * @generated
+ */
public boolean isUseJoinTablesForNonContainment() {
- return useJoinTablesForNonContainment;
- }
+ return useJoinTablesForNonContainment;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment <em>Use Join Tables For Non Containment</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Use Join Tables For Non Containment</em>' attribute.
- * @see #isUseJoinTablesForNonContainment()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment
+ * <em>Use Join Tables For Non Containment</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Use Join Tables For Non Containment</em>' attribute.
+ * @see #isUseJoinTablesForNonContainment()
+ * @generated
+ */
public void setUseJoinTablesForNonContainment(boolean newUseJoinTablesForNonContainment) {
- boolean oldUseJoinTablesForNonContainment = useJoinTablesForNonContainment;
- useJoinTablesForNonContainment = newUseJoinTablesForNonContainment;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT, oldUseJoinTablesForNonContainment, useJoinTablesForNonContainment));
- }
+ boolean oldUseJoinTablesForNonContainment = useJoinTablesForNonContainment;
+ useJoinTablesForNonContainment = newUseJoinTablesForNonContainment;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT,
+ oldUseJoinTablesForNonContainment, useJoinTablesForNonContainment));
+ }
+ }
/**
- * Returns the value of the '<em><b>Default Cascade Containment</b></em>' containment reference.
- * <!-- begin-user-doc
+ * Returns the value of the '<em><b>Default Cascade Containment</b></em>' containment reference. <!-- begin-user-doc
* -->
* <p>
* If the meaning of the '<em>Default Cascade Containment</em>' containment reference isn't clear, there really should
* be more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Default Cascade Containment</em>' containment reference.
- * @see #setDefaultCascadeContainment(CascadeType)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_DefaultCascadeContainment()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Default Cascade Containment</em>' containment reference.
+ * @see #setDefaultCascadeContainment(CascadeType)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_DefaultCascadeContainment()
+ * @model containment="true"
+ * @generated
+ */
public CascadeType getDefaultCascadeContainment() {
- return defaultCascadeContainment;
- }
+ return defaultCascadeContainment;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetDefaultCascadeContainment(CascadeType newDefaultCascadeContainment,
NotificationChain msgs) {
- CascadeType oldDefaultCascadeContainment = defaultCascadeContainment;
- defaultCascadeContainment = newDefaultCascadeContainment;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, oldDefaultCascadeContainment, newDefaultCascadeContainment);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment <em>Default Cascade Containment</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Default Cascade Containment</em>' containment reference.
- * @see #getDefaultCascadeContainment()
- * @generated
- */
+ CascadeType oldDefaultCascadeContainment = defaultCascadeContainment;
+ defaultCascadeContainment = newDefaultCascadeContainment;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, oldDefaultCascadeContainment,
+ newDefaultCascadeContainment);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment
+ * <em>Default Cascade Containment</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Default Cascade Containment</em>' containment reference.
+ * @see #getDefaultCascadeContainment()
+ * @generated
+ */
public void setDefaultCascadeContainment(CascadeType newDefaultCascadeContainment) {
- if (newDefaultCascadeContainment != defaultCascadeContainment) {
- NotificationChain msgs = null;
- if (defaultCascadeContainment != null)
- msgs = ((InternalEObject)defaultCascadeContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
- if (newDefaultCascadeContainment != null)
- msgs = ((InternalEObject)newDefaultCascadeContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
- msgs = basicSetDefaultCascadeContainment(newDefaultCascadeContainment, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, newDefaultCascadeContainment, newDefaultCascadeContainment));
- }
+ if (newDefaultCascadeContainment != defaultCascadeContainment) {
+ NotificationChain msgs = null;
+ if (defaultCascadeContainment != null) {
+ msgs = ((InternalEObject) defaultCascadeContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
+ }
+ if (newDefaultCascadeContainment != null) {
+ msgs = ((InternalEObject) newDefaultCascadeContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
+ }
+ msgs = basicSetDefaultCascadeContainment(newDefaultCascadeContainment, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, newDefaultCascadeContainment,
+ newDefaultCascadeContainment));
+ }
+ }
/**
* Returns the value of the '<em><b>Default Cascade Non Containment</b></em>' containment reference. <!--
@@ -807,97 +908,130 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
* @generated
*/
public CascadeType getDefaultCascadeNonContainment() {
- return defaultCascadeNonContainment;
- }
+ return defaultCascadeNonContainment;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetDefaultCascadeNonContainment(CascadeType newDefaultCascadeNonContainment,
NotificationChain msgs) {
- CascadeType oldDefaultCascadeNonContainment = defaultCascadeNonContainment;
- defaultCascadeNonContainment = newDefaultCascadeNonContainment;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, oldDefaultCascadeNonContainment, newDefaultCascadeNonContainment);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment <em>Default Cascade Non Containment</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Default Cascade Non Containment</em>' containment reference.
- * @see #getDefaultCascadeNonContainment()
- * @generated
- */
+ CascadeType oldDefaultCascadeNonContainment = defaultCascadeNonContainment;
+ defaultCascadeNonContainment = newDefaultCascadeNonContainment;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT,
+ oldDefaultCascadeNonContainment, newDefaultCascadeNonContainment);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment
+ * <em>Default Cascade Non Containment</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Default Cascade Non Containment</em>' containment reference.
+ * @see #getDefaultCascadeNonContainment()
+ * @generated
+ */
public void setDefaultCascadeNonContainment(CascadeType newDefaultCascadeNonContainment) {
- if (newDefaultCascadeNonContainment != defaultCascadeNonContainment) {
- NotificationChain msgs = null;
- if (defaultCascadeNonContainment != null)
- msgs = ((InternalEObject)defaultCascadeNonContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
- if (newDefaultCascadeNonContainment != null)
- msgs = ((InternalEObject)newDefaultCascadeNonContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
- msgs = basicSetDefaultCascadeNonContainment(newDefaultCascadeNonContainment, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, newDefaultCascadeNonContainment, newDefaultCascadeNonContainment));
- }
-
- /**
- * Returns the value of the '<em><b>Entity Mappings</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newDefaultCascadeNonContainment != defaultCascadeNonContainment) {
+ NotificationChain msgs = null;
+ if (defaultCascadeNonContainment != null) {
+ msgs = ((InternalEObject) defaultCascadeNonContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
+ }
+ if (newDefaultCascadeNonContainment != null) {
+ msgs = ((InternalEObject) newDefaultCascadeNonContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
+ }
+ msgs = basicSetDefaultCascadeNonContainment(newDefaultCascadeNonContainment, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT,
+ newDefaultCascadeNonContainment, newDefaultCascadeNonContainment));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Entity Mappings</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Entity Mappings</em>' containment reference isn't clear, there really should be more of
* a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Entity Mappings</em>' containment reference.
- * @see #setEntityMappings(EntityMappingsType)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EntityMappings()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Entity Mappings</em>' containment reference.
+ * @see #setEntityMappings(EntityMappingsType)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EntityMappings()
+ * @model containment="true"
+ * @generated
+ */
public EntityMappingsType getEntityMappings() {
- return entityMappings;
- }
+ return entityMappings;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetEntityMappings(EntityMappingsType newEntityMappings, NotificationChain msgs) {
- EntityMappingsType oldEntityMappings = entityMappings;
- entityMappings = newEntityMappings;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, oldEntityMappings, newEntityMappings);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings <em>Entity Mappings</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Entity Mappings</em>' containment reference.
- * @see #getEntityMappings()
- * @generated
- */
+ EntityMappingsType oldEntityMappings = entityMappings;
+ entityMappings = newEntityMappings;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, oldEntityMappings, newEntityMappings);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings
+ * <em>Entity Mappings</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Entity Mappings</em>' containment reference.
+ * @see #getEntityMappings()
+ * @generated
+ */
public void setEntityMappings(EntityMappingsType newEntityMappings) {
- if (newEntityMappings != entityMappings) {
- NotificationChain msgs = null;
- if (entityMappings != null)
- msgs = ((InternalEObject)entityMappings).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
- if (newEntityMappings != null)
- msgs = ((InternalEObject)newEntityMappings).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
- msgs = basicSetEntityMappings(newEntityMappings, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, newEntityMappings, newEntityMappings));
- }
+ if (newEntityMappings != entityMappings) {
+ NotificationChain msgs = null;
+ if (entityMappings != null) {
+ msgs = ((InternalEObject) entityMappings).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
+ }
+ if (newEntityMappings != null) {
+ msgs = ((InternalEObject) newEntityMappings).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
+ }
+ msgs = basicSetEntityMappings(newEntityMappings, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, newEntityMappings, newEntityMappings));
+ }
+ }
/**
* Returns the value of the '<em><b>Generate Java Annotations</b></em>' attribute. The default value is
@@ -921,501 +1055,553 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
}
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations <em>Generate Java Annotations</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Generate Java Annotations</em>' attribute.
- * @see #isGenerateJavaAnnotations()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations
+ * <em>Generate Java Annotations</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Generate Java Annotations</em>' attribute.
+ * @see #isGenerateJavaAnnotations()
+ * @generated
+ */
public void setGenerateJavaAnnotations(boolean newGenerateJavaAnnotations) {
- boolean oldGenerateJavaAnnotations = generateJavaAnnotations;
- generateJavaAnnotations = newGenerateJavaAnnotations;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS, oldGenerateJavaAnnotations, generateJavaAnnotations));
- }
+ boolean oldGenerateJavaAnnotations = generateJavaAnnotations;
+ generateJavaAnnotations = newGenerateJavaAnnotations;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS, oldGenerateJavaAnnotations,
+ generateJavaAnnotations));
+ }
+ }
/**
- * Returns the value of the '<em><b>Add Order Column To List Mappings</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Add Order Column To List Mappings</b></em>' attribute. The default value is
+ * <code>"false"</code>. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Add Order Column To List Mappings</em>' attribute isn't clear, there really should be
* more of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Add Order Column To List Mappings</em>' attribute.
- * @see #setAddOrderColumnToListMappings(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_AddOrderColumnToListMappings()
- * @model default="false"
- * @generated
- */
+ *
+ * @return the value of the '<em>Add Order Column To List Mappings</em>' attribute.
+ * @see #setAddOrderColumnToListMappings(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_AddOrderColumnToListMappings()
+ * @model default="false"
+ * @generated
+ */
public boolean isAddOrderColumnToListMappings() {
- return addOrderColumnToListMappings;
- }
+ return addOrderColumnToListMappings;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings <em>Add Order Column To List Mappings</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Add Order Column To List Mappings</em>' attribute.
- * @see #isAddOrderColumnToListMappings()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings
+ * <em>Add Order Column To List Mappings</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Add Order Column To List Mappings</em>' attribute.
+ * @see #isAddOrderColumnToListMappings()
+ * @generated
+ */
public void setAddOrderColumnToListMappings(boolean newAddOrderColumnToListMappings) {
- boolean oldAddOrderColumnToListMappings = addOrderColumnToListMappings;
- addOrderColumnToListMappings = newAddOrderColumnToListMappings;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS, oldAddOrderColumnToListMappings, addOrderColumnToListMappings));
- }
+ boolean oldAddOrderColumnToListMappings = addOrderColumnToListMappings;
+ addOrderColumnToListMappings = newAddOrderColumnToListMappings;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS,
+ oldAddOrderColumnToListMappings, addOrderColumnToListMappings));
+ }
+ }
/**
- * Returns the value of the '<em><b>Rename SQL Reserved Names</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Rename SQL Reserved Names</b></em>' attribute. The default value is
+ * <code>"true"</code>. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Rename SQL Reserved Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Rename SQL Reserved Names</em>' attribute.
- * @see #setRenameSQLReservedNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_RenameSQLReservedNames()
- * @model default="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Rename SQL Reserved Names</em>' attribute.
+ * @see #setRenameSQLReservedNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_RenameSQLReservedNames()
+ * @model default="true"
+ * @generated
+ */
public boolean isRenameSQLReservedNames() {
- return renameSQLReservedNames;
- }
+ return renameSQLReservedNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames <em>Rename SQL Reserved Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Rename SQL Reserved Names</em>' attribute.
- * @see #isRenameSQLReservedNames()
- * @generated
- */
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames
+ * <em>Rename SQL Reserved Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Rename SQL Reserved Names</em>' attribute.
+ * @see #isRenameSQLReservedNames()
+ * @generated
+ */
public void setRenameSQLReservedNames(boolean newRenameSQLReservedNames) {
- boolean oldRenameSQLReservedNames = renameSQLReservedNames;
- renameSQLReservedNames = newRenameSQLReservedNames;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES, oldRenameSQLReservedNames, renameSQLReservedNames));
- }
+ boolean oldRenameSQLReservedNames = renameSQLReservedNames;
+ renameSQLReservedNames = newRenameSQLReservedNames;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES, oldRenameSQLReservedNames,
+ renameSQLReservedNames));
+ }
+ }
/**
- * Returns the value of the '<em><b>Inheritance</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Inheritance</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Inheritance</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Inheritance</em>' containment reference.
- * @see #setInheritance(Inheritance)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_Inheritance()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Inheritance</em>' containment reference.
+ * @see #setInheritance(Inheritance)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_Inheritance()
+ * @model containment="true"
+ * @generated
+ */
public Inheritance getInheritance() {
- return inheritance;
- }
+ return inheritance;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetInheritance(Inheritance newInheritance, NotificationChain msgs) {
- Inheritance oldInheritance = inheritance;
- inheritance = newInheritance;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, oldInheritance, newInheritance);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance <em>Inheritance</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Inheritance</em>' containment reference.
- * @see #getInheritance()
- * @generated
- */
+ Inheritance oldInheritance = inheritance;
+ inheritance = newInheritance;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, oldInheritance, newInheritance);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance
+ * <em>Inheritance</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Inheritance</em>' containment reference.
+ * @see #getInheritance()
+ * @generated
+ */
public void setInheritance(Inheritance newInheritance) {
- if (newInheritance != inheritance) {
- NotificationChain msgs = null;
- if (inheritance != null)
- msgs = ((InternalEObject)inheritance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
- if (newInheritance != null)
- msgs = ((InternalEObject)newInheritance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
- msgs = basicSetInheritance(newInheritance, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, newInheritance, newInheritance));
- }
-
- /**
- * Returns the value of the '<em><b>Unique Entity Names</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Unique Entity Names</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Unique Entity Names</em>' attribute.
- * @see #setUniqueEntityNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UniqueEntityNames()
- * @model default="true"
- * @generated
- */
- public boolean isUniqueEntityNames() {
- return uniqueEntityNames;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames <em>Unique Entity Names</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Unique Entity Names</em>' attribute.
- * @see #isUniqueEntityNames()
- * @generated
- */
- public void setUniqueEntityNames(boolean newUniqueEntityNames) {
- boolean oldUniqueEntityNames = uniqueEntityNames;
- uniqueEntityNames = newUniqueEntityNames;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES, oldUniqueEntityNames, uniqueEntityNames));
- }
-
- /**
- * Returns the value of the '<em><b>Set Delimited Identifier Tag In ORM</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Set Delimited Identifier Tag In ORM</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Set Delimited Identifier Tag In ORM</em>' attribute.
- * @see #setSetDelimitedIdentifierTagInORM(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_SetDelimitedIdentifierTagInORM()
- * @model default="true"
- * @generated
- */
- public boolean isSetDelimitedIdentifierTagInORM() {
- return setDelimitedIdentifierTagInORM;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isSetDelimitedIdentifierTagInORM <em>Set Delimited Identifier Tag In ORM</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Set Delimited Identifier Tag In ORM</em>' attribute.
- * @see #isSetDelimitedIdentifierTagInORM()
- * @generated
- */
- public void setSetDelimitedIdentifierTagInORM(boolean newSetDelimitedIdentifierTagInORM) {
- boolean oldSetDelimitedIdentifierTagInORM = setDelimitedIdentifierTagInORM;
- setDelimitedIdentifierTagInORM = newSetDelimitedIdentifierTagInORM;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM, oldSetDelimitedIdentifierTagInORM, setDelimitedIdentifierTagInORM));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (newInheritance != inheritance) {
+ NotificationChain msgs = null;
+ if (inheritance != null) {
+ msgs = ((InternalEObject) inheritance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
+ }
+ if (newInheritance != null) {
+ msgs = ((InternalEObject) newInheritance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
+ }
+ msgs = basicSetInheritance(newInheritance, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE,
+ newInheritance, newInheritance));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Unique Entity Names</b></em>' attribute. The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Unique Entity Names</em>' attribute isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Unique Entity Names</em>' attribute.
+ * @see #setUniqueEntityNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UniqueEntityNames()
+ * @model default="true"
+ * @generated
+ */
+ public boolean isUniqueEntityNames() {
+ return uniqueEntityNames;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames
+ * <em>Unique Entity Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Unique Entity Names</em>' attribute.
+ * @see #isUniqueEntityNames()
+ * @generated
+ */
+ public void setUniqueEntityNames(boolean newUniqueEntityNames) {
+ boolean oldUniqueEntityNames = uniqueEntityNames;
+ uniqueEntityNames = newUniqueEntityNames;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES, oldUniqueEntityNames, uniqueEntityNames));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Set Delimited Identifier Tag In ORM</b></em>' attribute. The default value is
+ * <code>"true"</code>. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Set Delimited Identifier Tag In ORM</em>' attribute isn't clear, there really should be
+ * more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Set Delimited Identifier Tag In ORM</em>' attribute.
+ * @see #setSetDelimitedIdentifierTagInORM(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_SetDelimitedIdentifierTagInORM()
+ * @model default="true"
+ * @generated
+ */
+ public boolean isSetDelimitedIdentifierTagInORM() {
+ return setDelimitedIdentifierTagInORM;
+ }
+
+ /**
+ * Sets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isSetDelimitedIdentifierTagInORM
+ * <em>Set Delimited Identifier Tag In ORM</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Set Delimited Identifier Tag In ORM</em>' attribute.
+ * @see #isSetDelimitedIdentifierTagInORM()
+ * @generated
+ */
+ public void setSetDelimitedIdentifierTagInORM(boolean newSetDelimitedIdentifierTagInORM) {
+ boolean oldSetDelimitedIdentifierTagInORM = setDelimitedIdentifierTagInORM;
+ setDelimitedIdentifierTagInORM = newSetDelimitedIdentifierTagInORM;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM,
+ oldSetDelimitedIdentifierTagInORM, setDelimitedIdentifierTagInORM));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- return basicSetDefaultCascadeContainment(null, msgs);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- return basicSetDefaultCascadeNonContainment(null, msgs);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- return basicSetEntityMappings(null, msgs);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- return basicSetInheritance(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ return basicSetDefaultCascadeContainment(null, msgs);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ return basicSetDefaultCascadeNonContainment(null, msgs);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ return basicSetEntityMappings(null, msgs);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ return basicSetInheritance(null, 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 OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- return isGenerateFullDbSchemaNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- return getNameDictionaryPropertyFile();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- return getTableNamePrefix();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- return getColumnNamePrefix();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- return getMaximumSqlNameLength();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- return isLowerCasedNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- return isUpperCasedNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- return isEnforceUniqueNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- return isUseJoinTablesForContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- return isUseJoinTablesForNonContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- return getDefaultCascadeContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- return getDefaultCascadeNonContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- return getEntityMappings();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- return isGenerateJavaAnnotations();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- return isAddOrderColumnToListMappings();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- return isRenameSQLReservedNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- return getInheritance();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
- return isUniqueEntityNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
- return isSetDelimitedIdentifierTagInORM();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ return isGenerateFullDbSchemaNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ return getNameDictionaryPropertyFile();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ return getTableNamePrefix();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ return getColumnNamePrefix();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ return getMaximumSqlNameLength();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ return isLowerCasedNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ return isUpperCasedNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ return isEnforceUniqueNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ return isUseJoinTablesForContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ return isUseJoinTablesForNonContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ return getDefaultCascadeContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ return getDefaultCascadeNonContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ return getEntityMappings();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ return isGenerateJavaAnnotations();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ return isAddOrderColumnToListMappings();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ return isRenameSQLReservedNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ return getInheritance();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ return isUniqueEntityNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
+ return isSetDelimitedIdentifierTagInORM();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- setGenerateFullDbSchemaNames((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- setNameDictionaryPropertyFile((String)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- setTableNamePrefix((String)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- setColumnNamePrefix((String)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- setMaximumSqlNameLength((Integer)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- setLowerCasedNames((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- setUpperCasedNames((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- setEnforceUniqueNames((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- setUseJoinTablesForContainment((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- setUseJoinTablesForNonContainment((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- setDefaultCascadeContainment((CascadeType)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- setDefaultCascadeNonContainment((CascadeType)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- setEntityMappings((EntityMappingsType)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- setGenerateJavaAnnotations((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- setAddOrderColumnToListMappings((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- setRenameSQLReservedNames((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- setInheritance((Inheritance)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
- setUniqueEntityNames((Boolean)newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
- setSetDelimitedIdentifierTagInORM((Boolean)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ setGenerateFullDbSchemaNames((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ setNameDictionaryPropertyFile((String) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ setTableNamePrefix((String) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ setColumnNamePrefix((String) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ setMaximumSqlNameLength((Integer) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ setLowerCasedNames((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ setUpperCasedNames((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ setEnforceUniqueNames((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ setUseJoinTablesForContainment((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ setUseJoinTablesForNonContainment((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ setDefaultCascadeContainment((CascadeType) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ setDefaultCascadeNonContainment((CascadeType) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ setEntityMappings((EntityMappingsType) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ setGenerateJavaAnnotations((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ setAddOrderColumnToListMappings((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ setRenameSQLReservedNames((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ setInheritance((Inheritance) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ setUniqueEntityNames((Boolean) newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
+ setSetDelimitedIdentifierTagInORM((Boolean) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- setGenerateFullDbSchemaNames(GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- setNameDictionaryPropertyFile(NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- setTableNamePrefix(TABLE_NAME_PREFIX_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- setColumnNamePrefix(COLUMN_NAME_PREFIX_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- setMaximumSqlNameLength(MAXIMUM_SQL_NAME_LENGTH_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- setLowerCasedNames(LOWER_CASED_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- setUpperCasedNames(UPPER_CASED_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- setEnforceUniqueNames(ENFORCE_UNIQUE_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- setUseJoinTablesForContainment(USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- setUseJoinTablesForNonContainment(USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- setDefaultCascadeContainment((CascadeType)null);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- setDefaultCascadeNonContainment((CascadeType)null);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- setEntityMappings((EntityMappingsType)null);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- setGenerateJavaAnnotations(GENERATE_JAVA_ANNOTATIONS_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- setAddOrderColumnToListMappings(ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- setRenameSQLReservedNames(RENAME_SQL_RESERVED_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- setInheritance((Inheritance)null);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
- setUniqueEntityNames(UNIQUE_ENTITY_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
- setSetDelimitedIdentifierTagInORM(SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ setGenerateFullDbSchemaNames(GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ setNameDictionaryPropertyFile(NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ setTableNamePrefix(TABLE_NAME_PREFIX_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ setColumnNamePrefix(COLUMN_NAME_PREFIX_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ setMaximumSqlNameLength(MAXIMUM_SQL_NAME_LENGTH_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ setLowerCasedNames(LOWER_CASED_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ setUpperCasedNames(UPPER_CASED_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ setEnforceUniqueNames(ENFORCE_UNIQUE_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ setUseJoinTablesForContainment(USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ setUseJoinTablesForNonContainment(USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ setDefaultCascadeContainment((CascadeType) null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ setDefaultCascadeNonContainment((CascadeType) null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ setEntityMappings((EntityMappingsType) null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ setGenerateJavaAnnotations(GENERATE_JAVA_ANNOTATIONS_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ setAddOrderColumnToListMappings(ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ setRenameSQLReservedNames(RENAME_SQL_RESERVED_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ setInheritance((Inheritance) null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ setUniqueEntityNames(UNIQUE_ENTITY_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
+ setSetDelimitedIdentifierTagInORM(SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- return generateFullDbSchemaNames != GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- return NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT == null ? nameDictionaryPropertyFile != null : !NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT.equals(nameDictionaryPropertyFile);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- return TABLE_NAME_PREFIX_EDEFAULT == null ? tableNamePrefix != null : !TABLE_NAME_PREFIX_EDEFAULT.equals(tableNamePrefix);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- return COLUMN_NAME_PREFIX_EDEFAULT == null ? columnNamePrefix != null : !COLUMN_NAME_PREFIX_EDEFAULT.equals(columnNamePrefix);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- return maximumSqlNameLength != MAXIMUM_SQL_NAME_LENGTH_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- return lowerCasedNames != LOWER_CASED_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- return upperCasedNames != UPPER_CASED_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- return enforceUniqueNames != ENFORCE_UNIQUE_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- return useJoinTablesForContainment != USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- return useJoinTablesForNonContainment != USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- return defaultCascadeContainment != null;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- return defaultCascadeNonContainment != null;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- return entityMappings != null;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- return generateJavaAnnotations != GENERATE_JAVA_ANNOTATIONS_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- return addOrderColumnToListMappings != ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- return renameSQLReservedNames != RENAME_SQL_RESERVED_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- return inheritance != null;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
- return uniqueEntityNames != UNIQUE_ENTITY_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
- return setDelimitedIdentifierTagInORM != SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ return generateFullDbSchemaNames != GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ return NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT == null ? nameDictionaryPropertyFile != null
+ : !NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT.equals(nameDictionaryPropertyFile);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ return TABLE_NAME_PREFIX_EDEFAULT == null ? tableNamePrefix != null : !TABLE_NAME_PREFIX_EDEFAULT
+ .equals(tableNamePrefix);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ return COLUMN_NAME_PREFIX_EDEFAULT == null ? columnNamePrefix != null : !COLUMN_NAME_PREFIX_EDEFAULT
+ .equals(columnNamePrefix);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ return maximumSqlNameLength != MAXIMUM_SQL_NAME_LENGTH_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ return lowerCasedNames != LOWER_CASED_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ return upperCasedNames != UPPER_CASED_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ return enforceUniqueNames != ENFORCE_UNIQUE_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ return useJoinTablesForContainment != USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ return useJoinTablesForNonContainment != USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ return defaultCascadeContainment != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ return defaultCascadeNonContainment != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ return entityMappings != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ return generateJavaAnnotations != GENERATE_JAVA_ANNOTATIONS_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ return addOrderColumnToListMappings != ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ return renameSQLReservedNames != RENAME_SQL_RESERVED_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ return inheritance != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ return uniqueEntityNames != UNIQUE_ENTITY_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__SET_DELIMITED_IDENTIFIER_TAG_IN_ORM:
+ return setDelimitedIdentifierTagInORM != SET_DELIMITED_IDENTIFIER_TAG_IN_ORM_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (generateFullDbSchemaNames: ");
- result.append(generateFullDbSchemaNames);
- result.append(", nameDictionaryPropertyFile: ");
- result.append(nameDictionaryPropertyFile);
- result.append(", tableNamePrefix: ");
- result.append(tableNamePrefix);
- result.append(", columnNamePrefix: ");
- result.append(columnNamePrefix);
- result.append(", maximumSqlNameLength: ");
- result.append(maximumSqlNameLength);
- result.append(", lowerCasedNames: ");
- result.append(lowerCasedNames);
- result.append(", upperCasedNames: ");
- result.append(upperCasedNames);
- result.append(", enforceUniqueNames: ");
- result.append(enforceUniqueNames);
- result.append(", useJoinTablesForContainment: ");
- result.append(useJoinTablesForContainment);
- result.append(", useJoinTablesForNonContainment: ");
- result.append(useJoinTablesForNonContainment);
- result.append(", generateJavaAnnotations: ");
- result.append(generateJavaAnnotations);
- result.append(", addOrderColumnToListMappings: ");
- result.append(addOrderColumnToListMappings);
- result.append(", renameSQLReservedNames: ");
- result.append(renameSQLReservedNames);
- result.append(", uniqueEntityNames: ");
- result.append(uniqueEntityNames);
- result.append(", setDelimitedIdentifierTagInORM: ");
- result.append(setDelimitedIdentifierTagInORM);
- result.append(')');
- return result.toString();
- }
+ if (eIsProxy()) {
+ return super.toString();
+ }
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (generateFullDbSchemaNames: ");
+ result.append(generateFullDbSchemaNames);
+ result.append(", nameDictionaryPropertyFile: ");
+ result.append(nameDictionaryPropertyFile);
+ result.append(", tableNamePrefix: ");
+ result.append(tableNamePrefix);
+ result.append(", columnNamePrefix: ");
+ result.append(columnNamePrefix);
+ result.append(", maximumSqlNameLength: ");
+ result.append(maximumSqlNameLength);
+ result.append(", lowerCasedNames: ");
+ result.append(lowerCasedNames);
+ result.append(", upperCasedNames: ");
+ result.append(upperCasedNames);
+ result.append(", enforceUniqueNames: ");
+ result.append(enforceUniqueNames);
+ result.append(", useJoinTablesForContainment: ");
+ result.append(useJoinTablesForContainment);
+ result.append(", useJoinTablesForNonContainment: ");
+ result.append(useJoinTablesForNonContainment);
+ result.append(", generateJavaAnnotations: ");
+ result.append(generateJavaAnnotations);
+ result.append(", addOrderColumnToListMappings: ");
+ result.append(addOrderColumnToListMappings);
+ result.append(", renameSQLReservedNames: ");
+ result.append(renameSQLReservedNames);
+ result.append(", uniqueEntityNames: ");
+ result.append(uniqueEntityNames);
+ result.append(", setDelimitedIdentifierTagInORM: ");
+ result.append(setDelimitedIdentifierTagInORM);
+ result.append(')');
+ return result.toString();
+ }
@Override
// in the constructor to support testcases certain members are
@@ -1425,4 +1611,9 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
return true;
}
+ @Override
+ public boolean isValidForContext(ENamedElement eNamedElement) {
+ return ORMUtils.isValidForContext(eNamedElement);
+ }
+
} // EPackageORMAnnotation
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EReferenceORMAnnotation.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EReferenceORMAnnotation.java
index 71ae614c..d461e4c9 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EReferenceORMAnnotation.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EReferenceORMAnnotation.java
@@ -12,6 +12,7 @@ import org.eclipse.emf.common.notify.Notification;
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.ENamedElement;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
@@ -42,50 +43,56 @@ import org.eclipse.emf.texo.orm.annotations.model.orm.OrderColumn;
import org.eclipse.emf.texo.orm.annotations.model.orm.PrimaryKeyJoinColumn;
import org.eclipse.emf.texo.orm.annotations.model.orm.Transient;
import org.eclipse.emf.texo.orm.annotator.ORMGenerator;
+import org.eclipse.emf.texo.orm.annotator.ORMUtils;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EReference ORM Annotation</b></em>'. <!--
* end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbedded <em>Embedded</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbeddedId <em>Embedded Id</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getJoinColumn <em>Join Column</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getJoinTable <em>Join Table</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToMany <em>Many To Many</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToOne <em>Many To One</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToMany <em>One To Many</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToOne <em>One To One</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKey <em>Map Key</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyClass <em>Map Key Class</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyColumn <em>Map Key Column</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyJoinColumn <em>Map Key Join Column</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderBy <em>Order By</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderColumn <em>Order Column</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicCollection <em>Basic Collection</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicMap <em>Basic Map</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAssociationOverride <em>Association Override</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAttributeOverride <em>Attribute Override</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasic <em>Basic</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbedded <em>Embedded</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbeddedId <em>Embedded Id</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getJoinColumn <em>Join Column</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getJoinTable <em>Join Table</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToMany <em>Many To Many</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToOne <em>Many To One</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToMany <em>One To Many</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToOne <em>One To One</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKey <em>Map Key</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyClass <em>Map Key Class</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyColumn <em>Map Key Column</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyJoinColumn <em>Map Key Join
+ * Column</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderBy <em>Order By</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderColumn <em>Order Column</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicCollection <em>Basic Collection
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicMap <em>Basic Map</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAssociationOverride <em>Association
+ * Override</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAttributeOverride <em>Attribute
+ * Override</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getPrimaryKeyJoinColumn <em>Primary Key
+ * Join Column</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasic <em>Basic</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation()
* @model kind="class"
* @generated
*/
public class EReferenceORMAnnotation extends EReferenceAnnotation implements EStructuralFeatureORMAnnotation {
/**
- * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getTransient()
- * @generated
- * @ordered
- */
+ *
+ * @see #getTransient()
+ * @generated
+ * @ordered
+ */
protected Transient transient_;
/**
@@ -109,23 +116,23 @@ public class EReferenceORMAnnotation extends EReferenceAnnotation implements ESt
protected ElementCollection elementCollection;
/**
- * The cached value of the '{@link #getEmbedded() <em>Embedded</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getEmbedded() <em>Embedded</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getEmbedded()
- * @generated
- * @ordered
- */
+ *
+ * @see #getEmbedded()
+ * @generated
+ * @ordered
+ */
protected Embedded embedded;
/**
- * The cached value of the '{@link #getEmbeddedId() <em>Embedded Id</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getEmbeddedId() <em>Embedded Id</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getEmbeddedId()
- * @generated
- * @ordered
- */
+ *
+ * @see #getEmbeddedId()
+ * @generated
+ * @ordered
+ */
protected EmbeddedId embeddedId;
/**
@@ -139,63 +146,63 @@ public class EReferenceORMAnnotation extends EReferenceAnnotation implements ESt
protected EList<JoinColumn> joinColumn;
/**
- * The cached value of the '{@link #getJoinTable() <em>Join Table</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getJoinTable() <em>Join Table</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getJoinTable()
- * @generated
- * @ordered
- */
+ *
+ * @see #getJoinTable()
+ * @generated
+ * @ordered
+ */
protected JoinTable joinTable;
/**
- * The cached value of the '{@link #getManyToMany() <em>Many To Many</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getManyToMany() <em>Many To Many</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getManyToMany()
- * @generated
- * @ordered
- */
+ *
+ * @see #getManyToMany()
+ * @generated
+ * @ordered
+ */
protected ManyToMany manyToMany;
/**
- * The cached value of the '{@link #getManyToOne() <em>Many To One</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getManyToOne() <em>Many To One</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getManyToOne()
- * @generated
- * @ordered
- */
+ *
+ * @see #getManyToOne()
+ * @generated
+ * @ordered
+ */
protected ManyToOne manyToOne;
/**
- * The cached value of the '{@link #getOneToMany() <em>One To Many</em>}' containment reference.
- * <!-- begin-user-doc
+ * The cached value of the '{@link #getOneToMany() <em>One To Many</em>}' containment reference. <!-- begin-user-doc
* --> <!-- end-user-doc -->
- * @see #getOneToMany()
- * @generated
- * @ordered
- */
+ *
+ * @see #getOneToMany()
+ * @generated
+ * @ordered
+ */
protected OneToMany oneToMany;
/**
- * The cached value of the '{@link #getOneToOne() <em>One To One</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getOneToOne() <em>One To One</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getOneToOne()
- * @generated
- * @ordered
- */
+ *
+ * @see #getOneToOne()
+ * @generated
+ * @ordered
+ */
protected OneToOne oneToOne;
/**
- * The cached value of the '{@link #getMapKey() <em>Map Key</em>}' containment reference.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getMapKey() <em>Map Key</em>}' containment reference. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getMapKey()
- * @generated
- * @ordered
- */
+ *
+ * @see #getMapKey()
+ * @generated
+ * @ordered
+ */
protected MapKey mapKey;
/**
@@ -219,32 +226,33 @@ public class EReferenceORMAnnotation extends EReferenceAnnotation implements ESt
protected MapKeyColumn mapKeyColumn;
/**
- * The cached value of the '{@link #getMapKeyJoinColumn() <em>Map Key Join Column</em>}' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getMapKeyJoinColumn()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getMapKeyJoinColumn() <em>Map Key Join Column</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getMapKeyJoinColumn()
+ * @generated
+ * @ordered
+ */
protected EList<MapKeyJoinColumn> mapKeyJoinColumn;
/**
- * The default value of the '{@link #getOrderBy() <em>Order By</em>}' attribute.
- * <!-- begin-user-doc --> <!--
+ * The default value of the '{@link #getOrderBy() <em>Order By</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getOrderBy()
- * @generated
- * @ordered
- */
+ *
+ * @see #getOrderBy()
+ * @generated
+ * @ordered
+ */
protected static final String ORDER_BY_EDEFAULT = null;
/**
- * The cached value of the '{@link #getOrderBy() <em>Order By</em>}' attribute.
- * <!-- begin-user-doc --> <!--
+ * The cached value of the '{@link #getOrderBy() <em>Order By</em>}' attribute. <!-- begin-user-doc --> <!--
* end-user-doc -->
- * @see #getOrderBy()
- * @generated
- * @ordered
- */
+ *
+ * @see #getOrderBy()
+ * @generated
+ * @ordered
+ */
protected String orderBy = ORDER_BY_EDEFAULT;
/**
@@ -268,1562 +276,1865 @@ public class EReferenceORMAnnotation extends EReferenceAnnotation implements ESt
protected BasicCollection basicCollection;
/**
- * The cached value of the '{@link #getBasicMap() <em>Basic Map</em>}' containment reference.
- * <!-- begin-user-doc -->
+ * The cached value of the '{@link #getBasicMap() <em>Basic Map</em>}' containment reference. <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @see #getBasicMap()
- * @generated
- * @ordered
- */
+ *
+ * @see #getBasicMap()
+ * @generated
+ * @ordered
+ */
protected BasicMap basicMap;
/**
- * The cached value of the '{@link #getAssociationOverride() <em>Association Override</em>}' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getAssociationOverride()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getAssociationOverride() <em>Association Override</em>}' containment reference
+ * list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getAssociationOverride()
+ * @generated
+ * @ordered
+ */
protected EList<AssociationOverride> associationOverride;
/**
- * The cached value of the '{@link #getAttributeOverride() <em>Attribute Override</em>}' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getAttributeOverride()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getAttributeOverride() <em>Attribute Override</em>}' containment reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getAttributeOverride()
+ * @generated
+ * @ordered
+ */
protected EList<AttributeOverride> attributeOverride;
/**
- * The cached value of the '{@link #getPrimaryKeyJoinColumn() <em>Primary Key Join Column</em>}' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #getPrimaryKeyJoinColumn()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getPrimaryKeyJoinColumn() <em>Primary Key Join Column</em>}' containment reference
+ * list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getPrimaryKeyJoinColumn()
+ * @generated
+ * @ordered
+ */
protected EList<PrimaryKeyJoinColumn> primaryKeyJoinColumn;
/**
- * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getBasic()
- * @generated
- * @ordered
- */
- protected Basic basic;
+ * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @see #getBasic()
+ * @generated
+ * @ordered
+ */
+ protected Basic basic;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
protected EReferenceORMAnnotation() {
- super();
- }
+ super();
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmannotationsPackage.Literals.EREFERENCE_ORM_ANNOTATION;
- }
+ return OrmannotationsPackage.Literals.EREFERENCE_ORM_ANNOTATION;
+ }
/**
- * Returns the value of the '<em><b>Association Override</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.AssociationOverride}.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Association Override</b></em>' containment reference list. The list contents are
+ * of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.AssociationOverride}. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Association Override</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>Association Override</em>' containment reference list.
- * @see #isSetAssociationOverride()
- * @see #unsetAssociationOverride()
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_AssociationOverride()
- * @model containment="true" unsettable="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Association Override</em>' containment reference list.
+ * @see #isSetAssociationOverride()
+ * @see #unsetAssociationOverride()
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_AssociationOverride()
+ * @model containment="true" unsettable="true"
+ * @generated
+ */
public EList<AssociationOverride> getAssociationOverride() {
- if (associationOverride == null) {
- associationOverride = new EObjectContainmentEList.Unsettable<AssociationOverride>(AssociationOverride.class, this, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE);
- }
- return associationOverride;
- }
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAssociationOverride <em>Association Override</em>}' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isSetAssociationOverride()
- * @see #getAssociationOverride()
- * @generated
- */
+ if (associationOverride == null) {
+ associationOverride = new EObjectContainmentEList.Unsettable<AssociationOverride>(AssociationOverride.class,
+ this, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE);
+ }
+ return associationOverride;
+ }
+
+ /**
+ * Unsets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAssociationOverride
+ * <em>Association Override</em>}' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetAssociationOverride()
+ * @see #getAssociationOverride()
+ * @generated
+ */
public void unsetAssociationOverride() {
- if (associationOverride != null) ((InternalEList.Unsettable<?>)associationOverride).unset();
- }
+ if (associationOverride != null) {
+ ((InternalEList.Unsettable<?>) associationOverride).unset();
+ }
+ }
/**
- * Returns whether the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAssociationOverride <em>Association Override</em>}' containment reference list is set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return whether the value of the '<em>Association Override</em>' containment reference list is set.
- * @see #unsetAssociationOverride()
- * @see #getAssociationOverride()
- * @generated
- */
+ * Returns whether the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAssociationOverride
+ * <em>Association Override</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Association Override</em>' containment reference list is set.
+ * @see #unsetAssociationOverride()
+ * @see #getAssociationOverride()
+ * @generated
+ */
public boolean isSetAssociationOverride() {
- return associationOverride != null && ((InternalEList.Unsettable<?>)associationOverride).isSet();
- }
+ return associationOverride != null && ((InternalEList.Unsettable<?>) associationOverride).isSet();
+ }
/**
- * Returns the value of the '<em><b>Attribute Override</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.AttributeOverride}.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Attribute Override</b></em>' containment reference list. The list contents are of
+ * type {@link org.eclipse.emf.texo.orm.annotations.model.orm.AttributeOverride}. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Attribute Override</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>Attribute Override</em>' containment reference list.
- * @see #isSetAttributeOverride()
- * @see #unsetAttributeOverride()
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_AttributeOverride()
- * @model containment="true" unsettable="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Attribute Override</em>' containment reference list.
+ * @see #isSetAttributeOverride()
+ * @see #unsetAttributeOverride()
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_AttributeOverride()
+ * @model containment="true" unsettable="true"
+ * @generated
+ */
public EList<AttributeOverride> getAttributeOverride() {
- if (attributeOverride == null) {
- attributeOverride = new EObjectContainmentEList.Unsettable<AttributeOverride>(AttributeOverride.class, this, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE);
- }
- return attributeOverride;
- }
-
- /**
- * Unsets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAttributeOverride <em>Attribute Override</em>}' containment reference list.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @see #isSetAttributeOverride()
- * @see #getAttributeOverride()
- * @generated
- */
+ if (attributeOverride == null) {
+ attributeOverride = new EObjectContainmentEList.Unsettable<AttributeOverride>(AttributeOverride.class, this,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE);
+ }
+ return attributeOverride;
+ }
+
+ /**
+ * Unsets the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAttributeOverride
+ * <em>Attribute Override</em>}' containment reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #isSetAttributeOverride()
+ * @see #getAttributeOverride()
+ * @generated
+ */
public void unsetAttributeOverride() {
- if (attributeOverride != null) ((InternalEList.Unsettable<?>)attributeOverride).unset();
- }
+ if (attributeOverride != null) {
+ ((InternalEList.Unsettable<?>) attributeOverride).unset();
+ }
+ }
/**
- * Returns whether the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAttributeOverride <em>Attribute Override</em>}' containment reference list is set.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @return whether the value of the '<em>Attribute Override</em>' containment reference list is set.
- * @see #unsetAttributeOverride()
- * @see #getAttributeOverride()
- * @generated
- */
+ * Returns whether the value of the '
+ * {@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getAttributeOverride
+ * <em>Attribute Override</em>}' containment reference list is set. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return whether the value of the '<em>Attribute Override</em>' containment reference list is set.
+ * @see #unsetAttributeOverride()
+ * @see #getAttributeOverride()
+ * @generated
+ */
public boolean isSetAttributeOverride() {
- return attributeOverride != null && ((InternalEList.Unsettable<?>)attributeOverride).isSet();
- }
+ return attributeOverride != null && ((InternalEList.Unsettable<?>) attributeOverride).isSet();
+ }
/**
- * Returns the value of the '<em><b>Primary Key Join Column</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.PrimaryKeyJoinColumn}.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Primary Key Join Column</b></em>' containment reference list. The list contents
+ * are of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.PrimaryKeyJoinColumn}. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Primary Key Join Column</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>Primary Key Join Column</em>' containment reference list.
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_PrimaryKeyJoinColumn()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Primary Key Join Column</em>' containment reference list.
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_PrimaryKeyJoinColumn()
+ * @model containment="true"
+ * @generated
+ */
public EList<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn() {
- if (primaryKeyJoinColumn == null) {
- primaryKeyJoinColumn = new EObjectContainmentEList<PrimaryKeyJoinColumn>(PrimaryKeyJoinColumn.class, this, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN);
- }
- return primaryKeyJoinColumn;
- }
-
- /**
- * Returns the value of the '<em><b>Basic</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Basic</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Basic</em>' containment reference.
- * @see #setBasic(Basic)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_Basic()
- * @model containment="true"
- * @generated
- */
- public Basic getBasic() {
- return basic;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain basicSetBasic(Basic newBasic, NotificationChain msgs) {
- Basic oldBasic = basic;
- basic = newBasic;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasic <em>Basic</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Basic</em>' containment reference.
- * @see #getBasic()
- * @generated
- */
- public void setBasic(Basic newBasic) {
- if (newBasic != basic) {
- NotificationChain msgs = null;
- if (basic != null)
- msgs = ((InternalEObject)basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC, null, msgs);
- if (newBasic != null)
- msgs = ((InternalEObject)newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC, null, msgs);
- msgs = basicSetBasic(newBasic, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC, newBasic, newBasic));
- }
-
- /**
- * Returns the value of the '<em><b>Transient</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (primaryKeyJoinColumn == null) {
+ primaryKeyJoinColumn = new EObjectContainmentEList<PrimaryKeyJoinColumn>(PrimaryKeyJoinColumn.class, this,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN);
+ }
+ return primaryKeyJoinColumn;
+ }
+
+ /**
+ * Returns the value of the '<em><b>Basic</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Basic</em>' containment reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Basic</em>' containment reference.
+ * @see #setBasic(Basic)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_Basic()
+ * @model containment="true"
+ * @generated
+ */
+ public Basic getBasic() {
+ return basic;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetBasic(Basic newBasic, NotificationChain msgs) {
+ Basic oldBasic = basic;
+ basic = newBasic;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC, oldBasic, newBasic);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasic
+ * <em>Basic</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Basic</em>' containment reference.
+ * @see #getBasic()
+ * @generated
+ */
+ public void setBasic(Basic newBasic) {
+ if (newBasic != basic) {
+ NotificationChain msgs = null;
+ if (basic != null) {
+ msgs = ((InternalEObject) basic).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ if (newBasic != null) {
+ msgs = ((InternalEObject) newBasic).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC, null, msgs);
+ }
+ msgs = basicSetBasic(newBasic, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC,
+ newBasic, newBasic));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Transient</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Transient</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Transient</em>' containment reference.
- * @see #setTransient(Transient)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Transient</em>' containment reference.
+ * @see #setTransient(Transient)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getETypeElementORMAnnotation_Transient()
+ * @model containment="true"
+ * @generated
+ */
public Transient getTransient() {
- return transient_;
- }
+ return transient_;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetTransient(Transient newTransient, NotificationChain msgs) {
- Transient oldTransient = transient_;
- transient_ = newTransient;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getTransient <em>Transient</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Transient</em>' containment reference.
- * @see #getTransient()
- * @generated
- */
+ Transient oldTransient = transient_;
+ transient_ = newTransient;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT, oldTransient, newTransient);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getTransient
+ * <em>Transient</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Transient</em>' containment reference.
+ * @see #getTransient()
+ * @generated
+ */
public void setTransient(Transient newTransient) {
- if (newTransient != transient_) {
- NotificationChain msgs = null;
- if (transient_ != null)
- msgs = ((InternalEObject)transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT, null, msgs);
- if (newTransient != null)
- msgs = ((InternalEObject)newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT, null, msgs);
- msgs = basicSetTransient(newTransient, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT, newTransient, newTransient));
- }
-
- /**
- * Returns the value of the '<em><b>Collection Table</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newTransient != transient_) {
+ NotificationChain msgs = null;
+ if (transient_ != null) {
+ msgs = ((InternalEObject) transient_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ if (newTransient != null) {
+ msgs = ((InternalEObject) newTransient).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT, null, msgs);
+ }
+ msgs = basicSetTransient(newTransient, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT,
+ newTransient, newTransient));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Collection Table</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Collection Table</em>' containment reference isn't clear, there really should be more of
* a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Collection Table</em>' containment reference.
- * @see #setCollectionTable(CollectionTable)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_CollectionTable()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Collection Table</em>' containment reference.
+ * @see #setCollectionTable(CollectionTable)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_CollectionTable()
+ * @model containment="true"
+ * @generated
+ */
public CollectionTable getCollectionTable() {
- return collectionTable;
- }
+ return collectionTable;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetCollectionTable(CollectionTable newCollectionTable, NotificationChain msgs) {
- CollectionTable oldCollectionTable = collectionTable;
- collectionTable = newCollectionTable;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, oldCollectionTable, newCollectionTable);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getCollectionTable <em>Collection Table</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Collection Table</em>' containment reference.
- * @see #getCollectionTable()
- * @generated
- */
+ CollectionTable oldCollectionTable = collectionTable;
+ collectionTable = newCollectionTable;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, oldCollectionTable, newCollectionTable);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getCollectionTable
+ * <em>Collection Table</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Collection Table</em>' containment reference.
+ * @see #getCollectionTable()
+ * @generated
+ */
public void setCollectionTable(CollectionTable newCollectionTable) {
- if (newCollectionTable != collectionTable) {
- NotificationChain msgs = null;
- if (collectionTable != null)
- msgs = ((InternalEObject)collectionTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
- if (newCollectionTable != null)
- msgs = ((InternalEObject)newCollectionTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
- msgs = basicSetCollectionTable(newCollectionTable, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, newCollectionTable, newCollectionTable));
- }
-
- /**
- * Returns the value of the '<em><b>Element Collection</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newCollectionTable != collectionTable) {
+ NotificationChain msgs = null;
+ if (collectionTable != null) {
+ msgs = ((InternalEObject) collectionTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
+ }
+ if (newCollectionTable != null) {
+ msgs = ((InternalEObject) newCollectionTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, null, msgs);
+ }
+ msgs = basicSetCollectionTable(newCollectionTable, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE, newCollectionTable, newCollectionTable));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Element Collection</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Element Collection</em>' containment reference isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Element Collection</em>' containment reference.
- * @see #setElementCollection(ElementCollection)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_ElementCollection()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Element Collection</em>' containment reference.
+ * @see #setElementCollection(ElementCollection)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEStructuralFeatureORMAnnotation_ElementCollection()
+ * @model containment="true"
+ * @generated
+ */
public ElementCollection getElementCollection() {
- return elementCollection;
- }
+ return elementCollection;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetElementCollection(ElementCollection newElementCollection, NotificationChain msgs) {
- ElementCollection oldElementCollection = elementCollection;
- elementCollection = newElementCollection;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection, newElementCollection);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getElementCollection <em>Element Collection</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Element Collection</em>' containment reference.
- * @see #getElementCollection()
- * @generated
- */
+ ElementCollection oldElementCollection = elementCollection;
+ elementCollection = newElementCollection;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, oldElementCollection,
+ newElementCollection);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getElementCollection
+ * <em>Element Collection</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Element Collection</em>' containment reference.
+ * @see #getElementCollection()
+ * @generated
+ */
public void setElementCollection(ElementCollection newElementCollection) {
- if (newElementCollection != elementCollection) {
- NotificationChain msgs = null;
- if (elementCollection != null)
- msgs = ((InternalEObject)elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- if (newElementCollection != null)
- msgs = ((InternalEObject)newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
- msgs = basicSetElementCollection(newElementCollection, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection, newElementCollection));
- }
-
- /**
- * Returns the value of the '<em><b>Embedded</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newElementCollection != elementCollection) {
+ NotificationChain msgs = null;
+ if (elementCollection != null) {
+ msgs = ((InternalEObject) elementCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ if (newElementCollection != null) {
+ msgs = ((InternalEObject) newElementCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, null, msgs);
+ }
+ msgs = basicSetElementCollection(newElementCollection, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION, newElementCollection,
+ newElementCollection));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Embedded</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Embedded</em>' reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Embedded</em>' containment reference.
- * @see #setEmbedded(Embedded)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_Embedded()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Embedded</em>' containment reference.
+ * @see #setEmbedded(Embedded)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_Embedded()
+ * @model containment="true"
+ * @generated
+ */
public Embedded getEmbedded() {
- return embedded;
- }
+ return embedded;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetEmbedded(Embedded newEmbedded, NotificationChain msgs) {
- Embedded oldEmbedded = embedded;
- embedded = newEmbedded;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED, oldEmbedded, newEmbedded);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbedded <em>Embedded</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Embedded</em>' containment reference.
- * @see #getEmbedded()
- * @generated
- */
+ Embedded oldEmbedded = embedded;
+ embedded = newEmbedded;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED, oldEmbedded, newEmbedded);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbedded
+ * <em>Embedded</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Embedded</em>' containment reference.
+ * @see #getEmbedded()
+ * @generated
+ */
public void setEmbedded(Embedded newEmbedded) {
- if (newEmbedded != embedded) {
- NotificationChain msgs = null;
- if (embedded != null)
- msgs = ((InternalEObject)embedded).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED, null, msgs);
- if (newEmbedded != null)
- msgs = ((InternalEObject)newEmbedded).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED, null, msgs);
- msgs = basicSetEmbedded(newEmbedded, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED, newEmbedded, newEmbedded));
- }
-
- /**
- * Returns the value of the '<em><b>Embedded Id</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newEmbedded != embedded) {
+ NotificationChain msgs = null;
+ if (embedded != null) {
+ msgs = ((InternalEObject) embedded).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED, null, msgs);
+ }
+ if (newEmbedded != null) {
+ msgs = ((InternalEObject) newEmbedded).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED, null, msgs);
+ }
+ msgs = basicSetEmbedded(newEmbedded, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED,
+ newEmbedded, newEmbedded));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Embedded Id</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Embedded Id</em>' reference isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Embedded Id</em>' containment reference.
- * @see #setEmbeddedId(EmbeddedId)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_EmbeddedId()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Embedded Id</em>' containment reference.
+ * @see #setEmbeddedId(EmbeddedId)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_EmbeddedId()
+ * @model containment="true"
+ * @generated
+ */
public EmbeddedId getEmbeddedId() {
- return embeddedId;
- }
+ return embeddedId;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetEmbeddedId(EmbeddedId newEmbeddedId, NotificationChain msgs) {
- EmbeddedId oldEmbeddedId = embeddedId;
- embeddedId = newEmbeddedId;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, oldEmbeddedId, newEmbeddedId);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbeddedId <em>Embedded Id</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Embedded Id</em>' containment reference.
- * @see #getEmbeddedId()
- * @generated
- */
+ EmbeddedId oldEmbeddedId = embeddedId;
+ embeddedId = newEmbeddedId;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, oldEmbeddedId, newEmbeddedId);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getEmbeddedId
+ * <em>Embedded Id</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Embedded Id</em>' containment reference.
+ * @see #getEmbeddedId()
+ * @generated
+ */
public void setEmbeddedId(EmbeddedId newEmbeddedId) {
- if (newEmbeddedId != embeddedId) {
- NotificationChain msgs = null;
- if (embeddedId != null)
- msgs = ((InternalEObject)embeddedId).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, null, msgs);
- if (newEmbeddedId != null)
- msgs = ((InternalEObject)newEmbeddedId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, null, msgs);
- msgs = basicSetEmbeddedId(newEmbeddedId, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, newEmbeddedId, newEmbeddedId));
- }
-
- /**
- * Returns the value of the '<em><b>Join Column</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.JoinColumn}.
- * <!-- begin-user-doc -->
+ if (newEmbeddedId != embeddedId) {
+ NotificationChain msgs = null;
+ if (embeddedId != null) {
+ msgs = ((InternalEObject) embeddedId).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, null, msgs);
+ }
+ if (newEmbeddedId != null) {
+ msgs = ((InternalEObject) newEmbeddedId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, null, msgs);
+ }
+ msgs = basicSetEmbeddedId(newEmbeddedId, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID, newEmbeddedId, newEmbeddedId));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Join Column</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.texo.orm.annotations.model.orm.JoinColumn}. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Join Column</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>Join Column</em>' containment reference list.
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_JoinColumn()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Join Column</em>' containment reference list.
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_JoinColumn()
+ * @model containment="true"
+ * @generated
+ */
public EList<JoinColumn> getJoinColumn() {
- if (joinColumn == null) {
- joinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN);
- }
- return joinColumn;
- }
+ if (joinColumn == null) {
+ joinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN);
+ }
+ return joinColumn;
+ }
/**
- * Returns the value of the '<em><b>Join Table</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Join Table</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Join Table</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Join Table</em>' containment reference.
- * @see #setJoinTable(JoinTable)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_JoinTable()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Join Table</em>' containment reference.
+ * @see #setJoinTable(JoinTable)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_JoinTable()
+ * @model containment="true"
+ * @generated
+ */
public JoinTable getJoinTable() {
- return joinTable;
- }
+ return joinTable;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetJoinTable(JoinTable newJoinTable, NotificationChain msgs) {
- JoinTable oldJoinTable = joinTable;
- joinTable = newJoinTable;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, oldJoinTable, newJoinTable);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getJoinTable <em>Join Table</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Join Table</em>' containment reference.
- * @see #getJoinTable()
- * @generated
- */
+ JoinTable oldJoinTable = joinTable;
+ joinTable = newJoinTable;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, oldJoinTable, newJoinTable);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getJoinTable
+ * <em>Join Table</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Join Table</em>' containment reference.
+ * @see #getJoinTable()
+ * @generated
+ */
public void setJoinTable(JoinTable newJoinTable) {
- if (newJoinTable != joinTable) {
- NotificationChain msgs = null;
- if (joinTable != null)
- msgs = ((InternalEObject)joinTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, null, msgs);
- if (newJoinTable != null)
- msgs = ((InternalEObject)newJoinTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, null, msgs);
- msgs = basicSetJoinTable(newJoinTable, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, newJoinTable, newJoinTable));
- }
-
- /**
- * Returns the value of the '<em><b>Many To Many</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newJoinTable != joinTable) {
+ NotificationChain msgs = null;
+ if (joinTable != null) {
+ msgs = ((InternalEObject) joinTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, null, msgs);
+ }
+ if (newJoinTable != null) {
+ msgs = ((InternalEObject) newJoinTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, null, msgs);
+ }
+ msgs = basicSetJoinTable(newJoinTable, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE, newJoinTable, newJoinTable));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Many To Many</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Many To Many</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Many To Many</em>' containment reference.
- * @see #setManyToMany(ManyToMany)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_ManyToMany()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Many To Many</em>' containment reference.
+ * @see #setManyToMany(ManyToMany)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_ManyToMany()
+ * @model containment="true"
+ * @generated
+ */
public ManyToMany getManyToMany() {
- return manyToMany;
- }
+ return manyToMany;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetManyToMany(ManyToMany newManyToMany, NotificationChain msgs) {
- ManyToMany oldManyToMany = manyToMany;
- manyToMany = newManyToMany;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, oldManyToMany, newManyToMany);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToMany <em>Many To Many</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Many To Many</em>' containment reference.
- * @see #getManyToMany()
- * @generated
- */
+ ManyToMany oldManyToMany = manyToMany;
+ manyToMany = newManyToMany;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, oldManyToMany, newManyToMany);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToMany
+ * <em>Many To Many</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Many To Many</em>' containment reference.
+ * @see #getManyToMany()
+ * @generated
+ */
public void setManyToMany(ManyToMany newManyToMany) {
- if (newManyToMany != manyToMany) {
- NotificationChain msgs = null;
- if (manyToMany != null)
- msgs = ((InternalEObject)manyToMany).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, null, msgs);
- if (newManyToMany != null)
- msgs = ((InternalEObject)newManyToMany).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, null, msgs);
- msgs = basicSetManyToMany(newManyToMany, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, newManyToMany, newManyToMany));
- }
-
- /**
- * Returns the value of the '<em><b>Many To One</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newManyToMany != manyToMany) {
+ NotificationChain msgs = null;
+ if (manyToMany != null) {
+ msgs = ((InternalEObject) manyToMany).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, null, msgs);
+ }
+ if (newManyToMany != null) {
+ msgs = ((InternalEObject) newManyToMany).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, null, msgs);
+ }
+ msgs = basicSetManyToMany(newManyToMany, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY, newManyToMany, newManyToMany));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Many To One</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Many To One</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Many To One</em>' containment reference.
- * @see #setManyToOne(ManyToOne)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_ManyToOne()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Many To One</em>' containment reference.
+ * @see #setManyToOne(ManyToOne)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_ManyToOne()
+ * @model containment="true"
+ * @generated
+ */
public ManyToOne getManyToOne() {
- return manyToOne;
- }
+ return manyToOne;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetManyToOne(ManyToOne newManyToOne, NotificationChain msgs) {
- ManyToOne oldManyToOne = manyToOne;
- manyToOne = newManyToOne;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, oldManyToOne, newManyToOne);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToOne <em>Many To One</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Many To One</em>' containment reference.
- * @see #getManyToOne()
- * @generated
- */
+ ManyToOne oldManyToOne = manyToOne;
+ manyToOne = newManyToOne;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, oldManyToOne, newManyToOne);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getManyToOne
+ * <em>Many To One</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Many To One</em>' containment reference.
+ * @see #getManyToOne()
+ * @generated
+ */
public void setManyToOne(ManyToOne newManyToOne) {
- if (newManyToOne != manyToOne) {
- NotificationChain msgs = null;
- if (manyToOne != null)
- msgs = ((InternalEObject)manyToOne).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
- if (newManyToOne != null)
- msgs = ((InternalEObject)newManyToOne).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
- msgs = basicSetManyToOne(newManyToOne, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, newManyToOne, newManyToOne));
- }
-
- /**
- * Returns the value of the '<em><b>One To Many</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newManyToOne != manyToOne) {
+ NotificationChain msgs = null;
+ if (manyToOne != null) {
+ msgs = ((InternalEObject) manyToOne).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
+ }
+ if (newManyToOne != null) {
+ msgs = ((InternalEObject) newManyToOne).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, null, msgs);
+ }
+ msgs = basicSetManyToOne(newManyToOne, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE, newManyToOne, newManyToOne));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>One To Many</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>One To Many</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>One To Many</em>' containment reference.
- * @see #setOneToMany(OneToMany)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OneToMany()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>One To Many</em>' containment reference.
+ * @see #setOneToMany(OneToMany)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OneToMany()
+ * @model containment="true"
+ * @generated
+ */
public OneToMany getOneToMany() {
- return oneToMany;
- }
+ return oneToMany;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetOneToMany(OneToMany newOneToMany, NotificationChain msgs) {
- OneToMany oldOneToMany = oneToMany;
- oneToMany = newOneToMany;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, oldOneToMany, newOneToMany);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToMany <em>One To Many</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>One To Many</em>' containment reference.
- * @see #getOneToMany()
- * @generated
- */
+ OneToMany oldOneToMany = oneToMany;
+ oneToMany = newOneToMany;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, oldOneToMany, newOneToMany);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToMany
+ * <em>One To Many</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>One To Many</em>' containment reference.
+ * @see #getOneToMany()
+ * @generated
+ */
public void setOneToMany(OneToMany newOneToMany) {
- if (newOneToMany != oneToMany) {
- NotificationChain msgs = null;
- if (oneToMany != null)
- msgs = ((InternalEObject)oneToMany).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
- if (newOneToMany != null)
- msgs = ((InternalEObject)newOneToMany).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
- msgs = basicSetOneToMany(newOneToMany, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, newOneToMany, newOneToMany));
- }
-
- /**
- * Returns the value of the '<em><b>One To One</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newOneToMany != oneToMany) {
+ NotificationChain msgs = null;
+ if (oneToMany != null) {
+ msgs = ((InternalEObject) oneToMany).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
+ }
+ if (newOneToMany != null) {
+ msgs = ((InternalEObject) newOneToMany).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, null, msgs);
+ }
+ msgs = basicSetOneToMany(newOneToMany, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY, newOneToMany, newOneToMany));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>One To One</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>One To One</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>One To One</em>' containment reference.
- * @see #setOneToOne(OneToOne)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OneToOne()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>One To One</em>' containment reference.
+ * @see #setOneToOne(OneToOne)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OneToOne()
+ * @model containment="true"
+ * @generated
+ */
public OneToOne getOneToOne() {
- return oneToOne;
- }
+ return oneToOne;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetOneToOne(OneToOne newOneToOne, NotificationChain msgs) {
- OneToOne oldOneToOne = oneToOne;
- oneToOne = newOneToOne;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, oldOneToOne, newOneToOne);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToOne <em>One To One</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>One To One</em>' containment reference.
- * @see #getOneToOne()
- * @generated
- */
+ OneToOne oldOneToOne = oneToOne;
+ oneToOne = newOneToOne;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, oldOneToOne, newOneToOne);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOneToOne
+ * <em>One To One</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>One To One</em>' containment reference.
+ * @see #getOneToOne()
+ * @generated
+ */
public void setOneToOne(OneToOne newOneToOne) {
- if (newOneToOne != oneToOne) {
- NotificationChain msgs = null;
- if (oneToOne != null)
- msgs = ((InternalEObject)oneToOne).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, null, msgs);
- if (newOneToOne != null)
- msgs = ((InternalEObject)newOneToOne).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, null, msgs);
- msgs = basicSetOneToOne(newOneToOne, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, newOneToOne, newOneToOne));
- }
-
- /**
- * Returns the value of the '<em><b>Map Key</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newOneToOne != oneToOne) {
+ NotificationChain msgs = null;
+ if (oneToOne != null) {
+ msgs = ((InternalEObject) oneToOne).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, null, msgs);
+ }
+ if (newOneToOne != null) {
+ msgs = ((InternalEObject) newOneToOne).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, null, msgs);
+ }
+ msgs = basicSetOneToOne(newOneToOne, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE, newOneToOne, newOneToOne));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Map Key</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Map Key</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Map Key</em>' containment reference.
- * @see #setMapKey(MapKey)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKey()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Map Key</em>' containment reference.
+ * @see #setMapKey(MapKey)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKey()
+ * @model containment="true"
+ * @generated
+ */
public MapKey getMapKey() {
- return mapKey;
- }
+ return mapKey;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetMapKey(MapKey newMapKey, NotificationChain msgs) {
- MapKey oldMapKey = mapKey;
- mapKey = newMapKey;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY, oldMapKey, newMapKey);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKey <em>Map Key</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Map Key</em>' containment reference.
- * @see #getMapKey()
- * @generated
- */
+ MapKey oldMapKey = mapKey;
+ mapKey = newMapKey;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY, oldMapKey, newMapKey);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKey
+ * <em>Map Key</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Map Key</em>' containment reference.
+ * @see #getMapKey()
+ * @generated
+ */
public void setMapKey(MapKey newMapKey) {
- if (newMapKey != mapKey) {
- NotificationChain msgs = null;
- if (mapKey != null)
- msgs = ((InternalEObject)mapKey).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY, null, msgs);
- if (newMapKey != null)
- msgs = ((InternalEObject)newMapKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY, null, msgs);
- msgs = basicSetMapKey(newMapKey, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY, newMapKey, newMapKey));
- }
-
- /**
- * Returns the value of the '<em><b>Map Key Class</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newMapKey != mapKey) {
+ NotificationChain msgs = null;
+ if (mapKey != null) {
+ msgs = ((InternalEObject) mapKey).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY, null, msgs);
+ }
+ if (newMapKey != null) {
+ msgs = ((InternalEObject) newMapKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY, null, msgs);
+ }
+ msgs = basicSetMapKey(newMapKey, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY,
+ newMapKey, newMapKey));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Map Key Class</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Map Key Class</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Map Key Class</em>' containment reference.
- * @see #setMapKeyClass(MapKeyClass)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKeyClass()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Map Key Class</em>' containment reference.
+ * @see #setMapKeyClass(MapKeyClass)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKeyClass()
+ * @model containment="true"
+ * @generated
+ */
public MapKeyClass getMapKeyClass() {
- return mapKeyClass;
- }
+ return mapKeyClass;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetMapKeyClass(MapKeyClass newMapKeyClass, NotificationChain msgs) {
- MapKeyClass oldMapKeyClass = mapKeyClass;
- mapKeyClass = newMapKeyClass;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, oldMapKeyClass, newMapKeyClass);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyClass <em>Map Key Class</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Map Key Class</em>' containment reference.
- * @see #getMapKeyClass()
- * @generated
- */
+ MapKeyClass oldMapKeyClass = mapKeyClass;
+ mapKeyClass = newMapKeyClass;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, oldMapKeyClass, newMapKeyClass);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyClass
+ * <em>Map Key Class</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Map Key Class</em>' containment reference.
+ * @see #getMapKeyClass()
+ * @generated
+ */
public void setMapKeyClass(MapKeyClass newMapKeyClass) {
- if (newMapKeyClass != mapKeyClass) {
- NotificationChain msgs = null;
- if (mapKeyClass != null)
- msgs = ((InternalEObject)mapKeyClass).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, null, msgs);
- if (newMapKeyClass != null)
- msgs = ((InternalEObject)newMapKeyClass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, null, msgs);
- msgs = basicSetMapKeyClass(newMapKeyClass, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, newMapKeyClass, newMapKeyClass));
- }
-
- /**
- * Returns the value of the '<em><b>Map Key Column</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newMapKeyClass != mapKeyClass) {
+ NotificationChain msgs = null;
+ if (mapKeyClass != null) {
+ msgs = ((InternalEObject) mapKeyClass).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, null, msgs);
+ }
+ if (newMapKeyClass != null) {
+ msgs = ((InternalEObject) newMapKeyClass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, null, msgs);
+ }
+ msgs = basicSetMapKeyClass(newMapKeyClass, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS, newMapKeyClass, newMapKeyClass));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Map Key Column</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Map Key Column</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Map Key Column</em>' containment reference.
- * @see #setMapKeyColumn(MapKeyColumn)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKeyColumn()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Map Key Column</em>' containment reference.
+ * @see #setMapKeyColumn(MapKeyColumn)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKeyColumn()
+ * @model containment="true"
+ * @generated
+ */
public MapKeyColumn getMapKeyColumn() {
- return mapKeyColumn;
- }
+ return mapKeyColumn;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetMapKeyColumn(MapKeyColumn newMapKeyColumn, NotificationChain msgs) {
- MapKeyColumn oldMapKeyColumn = mapKeyColumn;
- mapKeyColumn = newMapKeyColumn;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, oldMapKeyColumn, newMapKeyColumn);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyColumn <em>Map Key Column</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Map Key Column</em>' containment reference.
- * @see #getMapKeyColumn()
- * @generated
- */
+ MapKeyColumn oldMapKeyColumn = mapKeyColumn;
+ mapKeyColumn = newMapKeyColumn;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, oldMapKeyColumn, newMapKeyColumn);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getMapKeyColumn
+ * <em>Map Key Column</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Map Key Column</em>' containment reference.
+ * @see #getMapKeyColumn()
+ * @generated
+ */
public void setMapKeyColumn(MapKeyColumn newMapKeyColumn) {
- if (newMapKeyColumn != mapKeyColumn) {
- NotificationChain msgs = null;
- if (mapKeyColumn != null)
- msgs = ((InternalEObject)mapKeyColumn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, null, msgs);
- if (newMapKeyColumn != null)
- msgs = ((InternalEObject)newMapKeyColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, null, msgs);
- msgs = basicSetMapKeyColumn(newMapKeyColumn, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, newMapKeyColumn, newMapKeyColumn));
- }
-
- /**
- * Returns the value of the '<em><b>Map Key Join Column</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.texo.orm.annotations.model.orm.MapKeyJoinColumn}.
- * <!-- begin-user-doc -->
+ if (newMapKeyColumn != mapKeyColumn) {
+ NotificationChain msgs = null;
+ if (mapKeyColumn != null) {
+ msgs = ((InternalEObject) mapKeyColumn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, null, msgs);
+ }
+ if (newMapKeyColumn != null) {
+ msgs = ((InternalEObject) newMapKeyColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, null, msgs);
+ }
+ msgs = basicSetMapKeyColumn(newMapKeyColumn, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN, newMapKeyColumn, newMapKeyColumn));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Map Key Join Column</b></em>' containment reference list. The list contents are of
+ * type {@link org.eclipse.emf.texo.orm.annotations.model.orm.MapKeyJoinColumn}. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Map Key Join Column</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>Map Key Join Column</em>' containment reference list.
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKeyJoinColumn()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Map Key Join Column</em>' containment reference list.
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_MapKeyJoinColumn()
+ * @model containment="true"
+ * @generated
+ */
public EList<MapKeyJoinColumn> getMapKeyJoinColumn() {
- if (mapKeyJoinColumn == null) {
- mapKeyJoinColumn = new EObjectContainmentEList<MapKeyJoinColumn>(MapKeyJoinColumn.class, this, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN);
- }
- return mapKeyJoinColumn;
- }
+ if (mapKeyJoinColumn == null) {
+ mapKeyJoinColumn = new EObjectContainmentEList<MapKeyJoinColumn>(MapKeyJoinColumn.class, this,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN);
+ }
+ return mapKeyJoinColumn;
+ }
/**
- * Returns the value of the '<em><b>Order By</b></em>' attribute.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Order By</b></em>' attribute. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Order By</em>' attribute isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Order By</em>' attribute.
- * @see #setOrderBy(String)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OrderBy()
- * @model dataType="org.eclipse.emf.texo.orm.annotations.model.orm.OrderBy"
- * @generated
- */
+ *
+ * @return the value of the '<em>Order By</em>' attribute.
+ * @see #setOrderBy(String)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OrderBy()
+ * @model dataType="org.eclipse.emf.texo.orm.annotations.model.orm.OrderBy"
+ * @generated
+ */
public String getOrderBy() {
- return orderBy;
- }
+ return orderBy;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderBy <em>Order By</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Order By</em>' attribute.
- * @see #getOrderBy()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderBy
+ * <em>Order By</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Order By</em>' attribute.
+ * @see #getOrderBy()
+ * @generated
+ */
public void setOrderBy(String newOrderBy) {
- String oldOrderBy = orderBy;
- orderBy = newOrderBy;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY, oldOrderBy, orderBy));
- }
+ String oldOrderBy = orderBy;
+ orderBy = newOrderBy;
+ if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY,
+ oldOrderBy, orderBy));
+ }
+ }
/**
- * Returns the value of the '<em><b>Order Column</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Order Column</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Order Column</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Order Column</em>' containment reference.
- * @see #setOrderColumn(OrderColumn)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OrderColumn()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Order Column</em>' containment reference.
+ * @see #setOrderColumn(OrderColumn)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_OrderColumn()
+ * @model containment="true"
+ * @generated
+ */
public OrderColumn getOrderColumn() {
- return orderColumn;
- }
+ return orderColumn;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetOrderColumn(OrderColumn newOrderColumn, NotificationChain msgs) {
- OrderColumn oldOrderColumn = orderColumn;
- orderColumn = newOrderColumn;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, oldOrderColumn, newOrderColumn);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderColumn <em>Order Column</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Order Column</em>' containment reference.
- * @see #getOrderColumn()
- * @generated
- */
+ OrderColumn oldOrderColumn = orderColumn;
+ orderColumn = newOrderColumn;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, oldOrderColumn, newOrderColumn);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getOrderColumn
+ * <em>Order Column</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Order Column</em>' containment reference.
+ * @see #getOrderColumn()
+ * @generated
+ */
public void setOrderColumn(OrderColumn newOrderColumn) {
- if (newOrderColumn != orderColumn) {
- NotificationChain msgs = null;
- if (orderColumn != null)
- msgs = ((InternalEObject)orderColumn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, null, msgs);
- if (newOrderColumn != null)
- msgs = ((InternalEObject)newOrderColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, null, msgs);
- msgs = basicSetOrderColumn(newOrderColumn, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, newOrderColumn, newOrderColumn));
- }
-
- /**
- * Returns the value of the '<em><b>Basic Collection</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newOrderColumn != orderColumn) {
+ NotificationChain msgs = null;
+ if (orderColumn != null) {
+ msgs = ((InternalEObject) orderColumn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, null, msgs);
+ }
+ if (newOrderColumn != null) {
+ msgs = ((InternalEObject) newOrderColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, null, msgs);
+ }
+ msgs = basicSetOrderColumn(newOrderColumn, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN, newOrderColumn, newOrderColumn));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Basic Collection</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Basic Collection</em>' containment reference isn't clear, there really should be more of
* a description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Basic Collection</em>' containment reference.
- * @see #setBasicCollection(BasicCollection)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_BasicCollection()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Basic Collection</em>' containment reference.
+ * @see #setBasicCollection(BasicCollection)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_BasicCollection()
+ * @model containment="true"
+ * @generated
+ */
public BasicCollection getBasicCollection() {
- return basicCollection;
- }
+ return basicCollection;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetBasicCollection(BasicCollection newBasicCollection, NotificationChain msgs) {
- BasicCollection oldBasicCollection = basicCollection;
- basicCollection = newBasicCollection;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, oldBasicCollection, newBasicCollection);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicCollection <em>Basic Collection</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Basic Collection</em>' containment reference.
- * @see #getBasicCollection()
- * @generated
- */
+ BasicCollection oldBasicCollection = basicCollection;
+ basicCollection = newBasicCollection;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, oldBasicCollection, newBasicCollection);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicCollection
+ * <em>Basic Collection</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Basic Collection</em>' containment reference.
+ * @see #getBasicCollection()
+ * @generated
+ */
public void setBasicCollection(BasicCollection newBasicCollection) {
- if (newBasicCollection != basicCollection) {
- NotificationChain msgs = null;
- if (basicCollection != null)
- msgs = ((InternalEObject)basicCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, null, msgs);
- if (newBasicCollection != null)
- msgs = ((InternalEObject)newBasicCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, null, msgs);
- msgs = basicSetBasicCollection(newBasicCollection, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, newBasicCollection, newBasicCollection));
- }
-
- /**
- * Returns the value of the '<em><b>Basic Map</b></em>' containment reference.
- * <!-- begin-user-doc -->
+ if (newBasicCollection != basicCollection) {
+ NotificationChain msgs = null;
+ if (basicCollection != null) {
+ msgs = ((InternalEObject) basicCollection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, null, msgs);
+ }
+ if (newBasicCollection != null) {
+ msgs = ((InternalEObject) newBasicCollection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, null, msgs);
+ }
+ msgs = basicSetBasicCollection(newBasicCollection, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION, newBasicCollection, newBasicCollection));
+ }
+ }
+
+ /**
+ * Returns the value of the '<em><b>Basic Map</b></em>' containment reference. <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Basic Map</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- * @return the value of the '<em>Basic Map</em>' containment reference.
- * @see #setBasicMap(BasicMap)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_BasicMap()
- * @model containment="true"
- * @generated
- */
+ *
+ * @return the value of the '<em>Basic Map</em>' containment reference.
+ * @see #setBasicMap(BasicMap)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEReferenceORMAnnotation_BasicMap()
+ * @model containment="true"
+ * @generated
+ */
public BasicMap getBasicMap() {
- return basicMap;
- }
+ return basicMap;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public NotificationChain basicSetBasicMap(BasicMap newBasicMap, NotificationChain msgs) {
- BasicMap oldBasicMap = basicMap;
- basicMap = newBasicMap;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP, oldBasicMap, newBasicMap);
- if (msgs == null) msgs = notification; else msgs.add(notification);
- }
- return msgs;
- }
-
- /**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicMap <em>Basic Map</em>}' containment reference.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @param value the new value of the '<em>Basic Map</em>' containment reference.
- * @see #getBasicMap()
- * @generated
- */
+ BasicMap oldBasicMap = basicMap;
+ basicMap = newBasicMap;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP, oldBasicMap, newBasicMap);
+ if (msgs == null) {
+ msgs = notification;
+ } else {
+ msgs.add(notification);
+ }
+ }
+ return msgs;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EReferenceORMAnnotation#getBasicMap
+ * <em>Basic Map</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Basic Map</em>' containment reference.
+ * @see #getBasicMap()
+ * @generated
+ */
public void setBasicMap(BasicMap newBasicMap) {
- if (newBasicMap != basicMap) {
- NotificationChain msgs = null;
- if (basicMap != null)
- msgs = ((InternalEObject)basicMap).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP, null, msgs);
- if (newBasicMap != null)
- msgs = ((InternalEObject)newBasicMap).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP, null, msgs);
- msgs = basicSetBasicMap(newBasicMap, msgs);
- if (msgs != null) msgs.dispatch();
- }
- else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP, newBasicMap, newBasicMap));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (newBasicMap != basicMap) {
+ NotificationChain msgs = null;
+ if (basicMap != null) {
+ msgs = ((InternalEObject) basicMap).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP, null, msgs);
+ }
+ if (newBasicMap != null) {
+ msgs = ((InternalEObject) newBasicMap).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP, null, msgs);
+ }
+ msgs = basicSetBasicMap(newBasicMap, msgs);
+ if (msgs != null) {
+ msgs.dispatch();
+ }
+ } else if (eNotificationRequired()) {
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP,
+ newBasicMap, newBasicMap));
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
- return basicSetTransient(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
- return basicSetCollectionTable(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return basicSetElementCollection(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
- return basicSetEmbedded(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
- return basicSetEmbeddedId(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
- return ((InternalEList<?>)getJoinColumn()).basicRemove(otherEnd, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
- return basicSetJoinTable(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
- return basicSetManyToMany(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
- return basicSetManyToOne(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
- return basicSetOneToMany(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
- return basicSetOneToOne(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
- return basicSetMapKey(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
- return basicSetMapKeyClass(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
- return basicSetMapKeyColumn(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
- return ((InternalEList<?>)getMapKeyJoinColumn()).basicRemove(otherEnd, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
- return basicSetOrderColumn(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
- return basicSetBasicCollection(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
- return basicSetBasicMap(null, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
- return ((InternalEList<?>)getAssociationOverride()).basicRemove(otherEnd, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
- return ((InternalEList<?>)getAttributeOverride()).basicRemove(otherEnd, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
- return ((InternalEList<?>)getPrimaryKeyJoinColumn()).basicRemove(otherEnd, msgs);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
- return basicSetBasic(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
+ return basicSetTransient(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return basicSetCollectionTable(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return basicSetElementCollection(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
+ return basicSetEmbedded(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
+ return basicSetEmbeddedId(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
+ return ((InternalEList<?>) getJoinColumn()).basicRemove(otherEnd, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
+ return basicSetJoinTable(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
+ return basicSetManyToMany(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
+ return basicSetManyToOne(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
+ return basicSetOneToMany(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
+ return basicSetOneToOne(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
+ return basicSetMapKey(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
+ return basicSetMapKeyClass(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
+ return basicSetMapKeyColumn(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
+ return ((InternalEList<?>) getMapKeyJoinColumn()).basicRemove(otherEnd, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
+ return basicSetOrderColumn(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
+ return basicSetBasicCollection(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
+ return basicSetBasicMap(null, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
+ return ((InternalEList<?>) getAssociationOverride()).basicRemove(otherEnd, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
+ return ((InternalEList<?>) getAttributeOverride()).basicRemove(otherEnd, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
+ return ((InternalEList<?>) getPrimaryKeyJoinColumn()).basicRemove(otherEnd, msgs);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
+ return basicSetBasic(null, 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 OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
- return getTransient();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
- return getCollectionTable();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return getElementCollection();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
- return getEmbedded();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
- return getEmbeddedId();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
- return getJoinColumn();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
- return getJoinTable();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
- return getManyToMany();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
- return getManyToOne();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
- return getOneToMany();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
- return getOneToOne();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
- return getMapKey();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
- return getMapKeyClass();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
- return getMapKeyColumn();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
- return getMapKeyJoinColumn();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
- return getOrderBy();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
- return getOrderColumn();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
- return getBasicCollection();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
- return getBasicMap();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
- return getAssociationOverride();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
- return getAttributeOverride();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
- return getPrimaryKeyJoinColumn();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
- return getBasic();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
+ return getTransient();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return getCollectionTable();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return getElementCollection();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
+ return getEmbedded();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
+ return getEmbeddedId();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
+ return getJoinColumn();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
+ return getJoinTable();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
+ return getManyToMany();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
+ return getManyToOne();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
+ return getOneToMany();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
+ return getOneToOne();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
+ return getMapKey();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
+ return getMapKeyClass();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
+ return getMapKeyColumn();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
+ return getMapKeyJoinColumn();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
+ return getOrderBy();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
+ return getOrderColumn();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
+ return getBasicCollection();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
+ return getBasicMap();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
+ return getAssociationOverride();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
+ return getAttributeOverride();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
+ return getPrimaryKeyJoinColumn();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
+ return getBasic();
+ }
+ 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 OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
- setCollectionTable((CollectionTable)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
- setEmbedded((Embedded)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
- setEmbeddedId((EmbeddedId)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
- getJoinColumn().clear();
- getJoinColumn().addAll((Collection<? extends JoinColumn>)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
- setJoinTable((JoinTable)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
- setManyToMany((ManyToMany)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
- setManyToOne((ManyToOne)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
- setOneToMany((OneToMany)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
- setOneToOne((OneToOne)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
- setMapKey((MapKey)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
- setMapKeyClass((MapKeyClass)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
- setMapKeyColumn((MapKeyColumn)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
- getMapKeyJoinColumn().clear();
- getMapKeyJoinColumn().addAll((Collection<? extends MapKeyJoinColumn>)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
- setOrderBy((String)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
- setOrderColumn((OrderColumn)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
- setBasicCollection((BasicCollection)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
- setBasicMap((BasicMap)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
- getAssociationOverride().clear();
- getAssociationOverride().addAll((Collection<? extends AssociationOverride>)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
- getAttributeOverride().clear();
- getAttributeOverride().addAll((Collection<? extends AttributeOverride>)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
- getPrimaryKeyJoinColumn().clear();
- getPrimaryKeyJoinColumn().addAll((Collection<? extends PrimaryKeyJoinColumn>)newValue);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
- setBasic((Basic)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
+ setCollectionTable((CollectionTable) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
+ setEmbedded((Embedded) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
+ setEmbeddedId((EmbeddedId) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
+ getJoinColumn().clear();
+ getJoinColumn().addAll((Collection<? extends JoinColumn>) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
+ setJoinTable((JoinTable) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
+ setManyToMany((ManyToMany) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
+ setManyToOne((ManyToOne) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
+ setOneToMany((OneToMany) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
+ setOneToOne((OneToOne) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
+ setMapKey((MapKey) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
+ setMapKeyClass((MapKeyClass) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
+ setMapKeyColumn((MapKeyColumn) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
+ getMapKeyJoinColumn().clear();
+ getMapKeyJoinColumn().addAll((Collection<? extends MapKeyJoinColumn>) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
+ setOrderBy((String) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
+ setOrderColumn((OrderColumn) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
+ setBasicCollection((BasicCollection) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
+ setBasicMap((BasicMap) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
+ getAssociationOverride().clear();
+ getAssociationOverride().addAll((Collection<? extends AssociationOverride>) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
+ getAttributeOverride().clear();
+ getAttributeOverride().addAll((Collection<? extends AttributeOverride>) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
+ getPrimaryKeyJoinColumn().clear();
+ getPrimaryKeyJoinColumn().addAll((Collection<? extends PrimaryKeyJoinColumn>) newValue);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
- setTransient((Transient)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
- setCollectionTable((CollectionTable)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- setElementCollection((ElementCollection)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
- setEmbedded((Embedded)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
- setEmbeddedId((EmbeddedId)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
- getJoinColumn().clear();
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
- setJoinTable((JoinTable)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
- setManyToMany((ManyToMany)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
- setManyToOne((ManyToOne)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
- setOneToMany((OneToMany)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
- setOneToOne((OneToOne)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
- setMapKey((MapKey)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
- setMapKeyClass((MapKeyClass)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
- setMapKeyColumn((MapKeyColumn)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
- getMapKeyJoinColumn().clear();
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
- setOrderBy(ORDER_BY_EDEFAULT);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
- setOrderColumn((OrderColumn)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
- setBasicCollection((BasicCollection)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
- setBasicMap((BasicMap)null);
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
- unsetAssociationOverride();
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
- unsetAttributeOverride();
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
- getPrimaryKeyJoinColumn().clear();
- return;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
- setBasic((Basic)null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
+ setTransient((Transient) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
+ setCollectionTable((CollectionTable) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ setElementCollection((ElementCollection) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
+ setEmbedded((Embedded) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
+ setEmbeddedId((EmbeddedId) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
+ getJoinColumn().clear();
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
+ setJoinTable((JoinTable) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
+ setManyToMany((ManyToMany) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
+ setManyToOne((ManyToOne) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
+ setOneToMany((OneToMany) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
+ setOneToOne((OneToOne) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
+ setMapKey((MapKey) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
+ setMapKeyClass((MapKeyClass) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
+ setMapKeyColumn((MapKeyColumn) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
+ getMapKeyJoinColumn().clear();
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
+ setOrderBy(ORDER_BY_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
+ setOrderColumn((OrderColumn) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
+ setBasicCollection((BasicCollection) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
+ setBasicMap((BasicMap) null);
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
+ unsetAssociationOverride();
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
+ unsetAttributeOverride();
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
+ getPrimaryKeyJoinColumn().clear();
+ return;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
+ setBasic((Basic) null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
- return transient_ != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
- return collectionTable != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
- return elementCollection != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
- return embedded != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
- return embeddedId != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
- return joinColumn != null && !joinColumn.isEmpty();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
- return joinTable != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
- return manyToMany != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
- return manyToOne != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
- return oneToMany != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
- return oneToOne != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
- return mapKey != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
- return mapKeyClass != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
- return mapKeyColumn != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
- return mapKeyJoinColumn != null && !mapKeyJoinColumn.isEmpty();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
- return ORDER_BY_EDEFAULT == null ? orderBy != null : !ORDER_BY_EDEFAULT.equals(orderBy);
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
- return orderColumn != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
- return basicCollection != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
- return basicMap != null;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
- return isSetAssociationOverride();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
- return isSetAttributeOverride();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
- return primaryKeyJoinColumn != null && !primaryKeyJoinColumn.isEmpty();
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
- return basic != null;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ switch (featureID) {
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
+ return transient_ != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return collectionTable != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return elementCollection != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED:
+ return embedded != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__EMBEDDED_ID:
+ return embeddedId != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_COLUMN:
+ return joinColumn != null && !joinColumn.isEmpty();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__JOIN_TABLE:
+ return joinTable != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_MANY:
+ return manyToMany != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MANY_TO_ONE:
+ return manyToOne != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_MANY:
+ return oneToMany != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ONE_TO_ONE:
+ return oneToOne != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY:
+ return mapKey != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_CLASS:
+ return mapKeyClass != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_COLUMN:
+ return mapKeyColumn != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__MAP_KEY_JOIN_COLUMN:
+ return mapKeyJoinColumn != null && !mapKeyJoinColumn.isEmpty();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_BY:
+ return ORDER_BY_EDEFAULT == null ? orderBy != null : !ORDER_BY_EDEFAULT.equals(orderBy);
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ORDER_COLUMN:
+ return orderColumn != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_COLLECTION:
+ return basicCollection != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC_MAP:
+ return basicMap != null;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ASSOCIATION_OVERRIDE:
+ return isSetAssociationOverride();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ATTRIBUTE_OVERRIDE:
+ return isSetAttributeOverride();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__PRIMARY_KEY_JOIN_COLUMN:
+ return primaryKeyJoinColumn != null && !primaryKeyJoinColumn.isEmpty();
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__BASIC:
+ return basic != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EStructuralFeatureORMAnnotation.class) {
- switch (derivedFeatureID) {
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE: return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE;
- case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION: return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION;
- default: return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EStructuralFeatureORMAnnotation.class) {
+ switch (derivedFeatureID) {
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE;
+ case OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION;
+ default:
+ return -1;
+ }
+ }
+ return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == ENamedElementORMAnnotation.class) {
- switch (baseFeatureID) {
- default: return -1;
- }
- }
- if (baseClass == ETypeElementORMAnnotation.class) {
- switch (baseFeatureID) {
- case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT: return OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT;
- default: return -1;
- }
- }
- if (baseClass == EStructuralFeatureORMAnnotation.class) {
- switch (baseFeatureID) {
- case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE: return OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE;
- case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION: return OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION;
- default: return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- * @generated
- */
+ if (baseClass == ENamedElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == ETypeElementORMAnnotation.class) {
+ switch (baseFeatureID) {
+ case OrmannotationsPackage.ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT:
+ return OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__TRANSIENT;
+ default:
+ return -1;
+ }
+ }
+ if (baseClass == EStructuralFeatureORMAnnotation.class) {
+ switch (baseFeatureID) {
+ case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__COLLECTION_TABLE:
+ return OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__COLLECTION_TABLE;
+ case OrmannotationsPackage.ESTRUCTURAL_FEATURE_ORM_ANNOTATION__ELEMENT_COLLECTION:
+ return OrmannotationsPackage.EREFERENCE_ORM_ANNOTATION__ELEMENT_COLLECTION;
+ default:
+ return -1;
+ }
+ }
+ return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy()) {
+ return super.toString();
+ }
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (orderBy: ");
- result.append(orderBy);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (orderBy: ");
+ result.append(orderBy);
+ result.append(')');
+ return result.toString();
+ }
@Override
public String getJavaAnnotation(AnnotationProvider annotationProvider, String identifier) {
@@ -1839,4 +2150,10 @@ public class EReferenceORMAnnotation extends EReferenceAnnotation implements ESt
}
return ORMGenerator.generateJavaAnnotations(this, null, null, identifier);
}
+
+ @Override
+ public boolean isValidForContext(ENamedElement eNamedElement) {
+ return ORMUtils.isValidForContext(eNamedElement);
+ }
+
} // EReferenceORMAnnotation

Back to the top