You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2005/08/24 23:36:53 UTC

svn commit: r239937 [61/73] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.core/src/org/apache/geronimo/core/operations/ org.apache.geronimo.deployment.model/src/org/apac...

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,306 +1,306 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.openejb.xml.ns.openejb.jar.impl;
-
-import java.util.Collection;
-
-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.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-
-import org.openejb.xml.ns.openejb.jar.CmpFieldGroupMappingType;
-import org.openejb.xml.ns.openejb.jar.CmrFieldGroupMappingType;
-import org.openejb.xml.ns.openejb.jar.EntityGroupMappingType;
-import org.openejb.xml.ns.openejb.jar.GroupType;
-import org.openejb.xml.ns.openejb.jar.JarPackage;
-import org.openejb.xml.ns.openejb.jar.PrefetchGroupType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Prefetch Group Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getGroup <em>Group</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getEntityGroupMapping <em>Entity Group Mapping</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getCmpFieldGroupMapping <em>Cmp Field Group Mapping</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getCmrFieldGroupMapping <em>Cmr Field Group Mapping</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class PrefetchGroupTypeImpl extends EObjectImpl implements PrefetchGroupType {
-    /**
-     * The cached value of the '{@link #getGroup() <em>Group</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getGroup()
-     * @generated
-     * @ordered
-     */
-    protected EList group = null;
-
-    /**
-     * The cached value of the '{@link #getEntityGroupMapping() <em>Entity Group Mapping</em>}' containment reference.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getEntityGroupMapping()
-     * @generated
-     * @ordered
-     */
-    protected EntityGroupMappingType entityGroupMapping = null;
-
-    /**
-     * The cached value of the '{@link #getCmpFieldGroupMapping() <em>Cmp Field Group Mapping</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getCmpFieldGroupMapping()
-     * @generated
-     * @ordered
-     */
-    protected EList cmpFieldGroupMapping = null;
-
-    /**
-     * The cached value of the '{@link #getCmrFieldGroupMapping() <em>Cmr Field Group Mapping</em>}' containment reference list.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getCmrFieldGroupMapping()
-     * @generated
-     * @ordered
-     */
-    protected EList cmrFieldGroupMapping = null;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected PrefetchGroupTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return JarPackage.eINSTANCE.getPrefetchGroupType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getGroup() {
-        if (group == null) {
-            group = new EObjectContainmentEList(GroupType.class, this, JarPackage.PREFETCH_GROUP_TYPE__GROUP);
-        }
-        return group;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EntityGroupMappingType getEntityGroupMapping() {
-        return entityGroupMapping;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetEntityGroupMapping(EntityGroupMappingType newEntityGroupMapping, NotificationChain msgs) {
-        EntityGroupMappingType oldEntityGroupMapping = entityGroupMapping;
-        entityGroupMapping = newEntityGroupMapping;
-        if (eNotificationRequired()) {
-            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, oldEntityGroupMapping, newEntityGroupMapping);
-            if (msgs == null) msgs = notification; else msgs.add(notification);
-        }
-        return msgs;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setEntityGroupMapping(EntityGroupMappingType newEntityGroupMapping) {
-        if (newEntityGroupMapping != entityGroupMapping) {
-            NotificationChain msgs = null;
-            if (entityGroupMapping != null)
-                msgs = ((InternalEObject)entityGroupMapping).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, null, msgs);
-            if (newEntityGroupMapping != null)
-                msgs = ((InternalEObject)newEntityGroupMapping).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, null, msgs);
-            msgs = basicSetEntityGroupMapping(newEntityGroupMapping, msgs);
-            if (msgs != null) msgs.dispatch();
-        }
-        else if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, newEntityGroupMapping, newEntityGroupMapping));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getCmpFieldGroupMapping() {
-        if (cmpFieldGroupMapping == null) {
-            cmpFieldGroupMapping = new EObjectContainmentEList(CmpFieldGroupMappingType.class, this, JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING);
-        }
-        return cmpFieldGroupMapping;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EList getCmrFieldGroupMapping() {
-        if (cmrFieldGroupMapping == null) {
-            cmrFieldGroupMapping = new EObjectContainmentEList(CmrFieldGroupMappingType.class, this, JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING);
-        }
-        return cmrFieldGroupMapping;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-        if (featureID >= 0) {
-            switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-                case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
-                    return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs);
-                case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
-                    return basicSetEntityGroupMapping(null, msgs);
-                case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
-                    return ((InternalEList)getCmpFieldGroupMapping()).basicRemove(otherEnd, msgs);
-                case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
-                    return ((InternalEList)getCmrFieldGroupMapping()).basicRemove(otherEnd, msgs);
-                default:
-                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-            }
-        }
-        return eBasicSetContainer(null, featureID, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
-                return getGroup();
-            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
-                return getEntityGroupMapping();
-            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
-                return getCmpFieldGroupMapping();
-            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
-                return getCmrFieldGroupMapping();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
-                getGroup().clear();
-                getGroup().addAll((Collection)newValue);
-                return;
-            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
-                setEntityGroupMapping((EntityGroupMappingType)newValue);
-                return;
-            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
-                getCmpFieldGroupMapping().clear();
-                getCmpFieldGroupMapping().addAll((Collection)newValue);
-                return;
-            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
-                getCmrFieldGroupMapping().clear();
-                getCmrFieldGroupMapping().addAll((Collection)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
-                getGroup().clear();
-                return;
-            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
-                setEntityGroupMapping((EntityGroupMappingType)null);
-                return;
-            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
-                getCmpFieldGroupMapping().clear();
-                return;
-            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
-                getCmrFieldGroupMapping().clear();
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
-                return group != null && !group.isEmpty();
-            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
-                return entityGroupMapping != null;
-            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
-                return cmpFieldGroupMapping != null && !cmpFieldGroupMapping.isEmpty();
-            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
-                return cmrFieldGroupMapping != null && !cmrFieldGroupMapping.isEmpty();
-        }
-        return eDynamicIsSet(eFeature);
-    }
-
-} //PrefetchGroupTypeImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.openejb.jar.impl;
+
+import java.util.Collection;
+
+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.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.openejb.xml.ns.openejb.jar.CmpFieldGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.CmrFieldGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.EntityGroupMappingType;
+import org.openejb.xml.ns.openejb.jar.GroupType;
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.PrefetchGroupType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Prefetch Group Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getGroup <em>Group</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getEntityGroupMapping <em>Entity Group Mapping</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getCmpFieldGroupMapping <em>Cmp Field Group Mapping</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.PrefetchGroupTypeImpl#getCmrFieldGroupMapping <em>Cmr Field Group Mapping</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PrefetchGroupTypeImpl extends EObjectImpl implements PrefetchGroupType {
+    /**
+     * The cached value of the '{@link #getGroup() <em>Group</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGroup()
+     * @generated
+     * @ordered
+     */
+    protected EList group = null;
+
+    /**
+     * The cached value of the '{@link #getEntityGroupMapping() <em>Entity Group Mapping</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEntityGroupMapping()
+     * @generated
+     * @ordered
+     */
+    protected EntityGroupMappingType entityGroupMapping = null;
+
+    /**
+     * The cached value of the '{@link #getCmpFieldGroupMapping() <em>Cmp Field Group Mapping</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCmpFieldGroupMapping()
+     * @generated
+     * @ordered
+     */
+    protected EList cmpFieldGroupMapping = null;
+
+    /**
+     * The cached value of the '{@link #getCmrFieldGroupMapping() <em>Cmr Field Group Mapping</em>}' containment reference list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCmrFieldGroupMapping()
+     * @generated
+     * @ordered
+     */
+    protected EList cmrFieldGroupMapping = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected PrefetchGroupTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getPrefetchGroupType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getGroup() {
+        if (group == null) {
+            group = new EObjectContainmentEList(GroupType.class, this, JarPackage.PREFETCH_GROUP_TYPE__GROUP);
+        }
+        return group;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EntityGroupMappingType getEntityGroupMapping() {
+        return entityGroupMapping;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetEntityGroupMapping(EntityGroupMappingType newEntityGroupMapping, NotificationChain msgs) {
+        EntityGroupMappingType oldEntityGroupMapping = entityGroupMapping;
+        entityGroupMapping = newEntityGroupMapping;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, oldEntityGroupMapping, newEntityGroupMapping);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEntityGroupMapping(EntityGroupMappingType newEntityGroupMapping) {
+        if (newEntityGroupMapping != entityGroupMapping) {
+            NotificationChain msgs = null;
+            if (entityGroupMapping != null)
+                msgs = ((InternalEObject)entityGroupMapping).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, null, msgs);
+            if (newEntityGroupMapping != null)
+                msgs = ((InternalEObject)newEntityGroupMapping).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, null, msgs);
+            msgs = basicSetEntityGroupMapping(newEntityGroupMapping, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING, newEntityGroupMapping, newEntityGroupMapping));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getCmpFieldGroupMapping() {
+        if (cmpFieldGroupMapping == null) {
+            cmpFieldGroupMapping = new EObjectContainmentEList(CmpFieldGroupMappingType.class, this, JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING);
+        }
+        return cmpFieldGroupMapping;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getCmrFieldGroupMapping() {
+        if (cmrFieldGroupMapping == null) {
+            cmrFieldGroupMapping = new EObjectContainmentEList(CmrFieldGroupMappingType.class, this, JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING);
+        }
+        return cmrFieldGroupMapping;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
+        if (featureID >= 0) {
+            switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
+                case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                    return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs);
+                case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                    return basicSetEntityGroupMapping(null, msgs);
+                case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                    return ((InternalEList)getCmpFieldGroupMapping()).basicRemove(otherEnd, msgs);
+                case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                    return ((InternalEList)getCmrFieldGroupMapping()).basicRemove(otherEnd, msgs);
+                default:
+                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+            }
+        }
+        return eBasicSetContainer(null, featureID, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                return getGroup();
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                return getEntityGroupMapping();
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                return getCmpFieldGroupMapping();
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                return getCmrFieldGroupMapping();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                getGroup().clear();
+                getGroup().addAll((Collection)newValue);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                setEntityGroupMapping((EntityGroupMappingType)newValue);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                getCmpFieldGroupMapping().clear();
+                getCmpFieldGroupMapping().addAll((Collection)newValue);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                getCmrFieldGroupMapping().clear();
+                getCmrFieldGroupMapping().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                getGroup().clear();
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                setEntityGroupMapping((EntityGroupMappingType)null);
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                getCmpFieldGroupMapping().clear();
+                return;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                getCmrFieldGroupMapping().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.PREFETCH_GROUP_TYPE__GROUP:
+                return group != null && !group.isEmpty();
+            case JarPackage.PREFETCH_GROUP_TYPE__ENTITY_GROUP_MAPPING:
+                return entityGroupMapping != null;
+            case JarPackage.PREFETCH_GROUP_TYPE__CMP_FIELD_GROUP_MAPPING:
+                return cmpFieldGroupMapping != null && !cmpFieldGroupMapping.isEmpty();
+            case JarPackage.PREFETCH_GROUP_TYPE__CMR_FIELD_GROUP_MAPPING:
+                return cmrFieldGroupMapping != null && !cmrFieldGroupMapping.isEmpty();
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+} //PrefetchGroupTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/PrefetchGroupTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,255 +1,255 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.openejb.xml.ns.openejb.jar.impl;
-
-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.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.openejb.xml.ns.openejb.jar.JarPackage;
-import org.openejb.xml.ns.openejb.jar.MethodParamsType;
-import org.openejb.xml.ns.openejb.jar.QueryMethodType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Query Method Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryMethodTypeImpl#getMethodName <em>Method Name</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryMethodTypeImpl#getMethodParams <em>Method Params</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class QueryMethodTypeImpl extends EObjectImpl implements QueryMethodType {
-    /**
-     * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getMethodName()
-     * @generated
-     * @ordered
-     */
-    protected static final String METHOD_NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getMethodName()
-     * @generated
-     * @ordered
-     */
-    protected String methodName = METHOD_NAME_EDEFAULT;
-
-    /**
-     * The cached value of the '{@link #getMethodParams() <em>Method Params</em>}' containment reference.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getMethodParams()
-     * @generated
-     * @ordered
-     */
-    protected MethodParamsType methodParams = null;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected QueryMethodTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return JarPackage.eINSTANCE.getQueryMethodType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getMethodName() {
-        return methodName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setMethodName(String newMethodName) {
-        String oldMethodName = methodName;
-        methodName = newMethodName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_NAME, oldMethodName, methodName));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public MethodParamsType getMethodParams() {
-        return methodParams;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetMethodParams(MethodParamsType newMethodParams, NotificationChain msgs) {
-        MethodParamsType oldMethodParams = methodParams;
-        methodParams = newMethodParams;
-        if (eNotificationRequired()) {
-            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, oldMethodParams, newMethodParams);
-            if (msgs == null) msgs = notification; else msgs.add(notification);
-        }
-        return msgs;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setMethodParams(MethodParamsType newMethodParams) {
-        if (newMethodParams != methodParams) {
-            NotificationChain msgs = null;
-            if (methodParams != null)
-                msgs = ((InternalEObject)methodParams).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, null, msgs);
-            if (newMethodParams != null)
-                msgs = ((InternalEObject)newMethodParams).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, null, msgs);
-            msgs = basicSetMethodParams(newMethodParams, msgs);
-            if (msgs != null) msgs.dispatch();
-        }
-        else if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, newMethodParams, newMethodParams));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-        if (featureID >= 0) {
-            switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-                case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
-                    return basicSetMethodParams(null, msgs);
-                default:
-                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-            }
-        }
-        return eBasicSetContainer(null, featureID, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
-                return getMethodName();
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
-                return getMethodParams();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
-                setMethodName((String)newValue);
-                return;
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
-                setMethodParams((MethodParamsType)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
-                setMethodName(METHOD_NAME_EDEFAULT);
-                return;
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
-                setMethodParams((MethodParamsType)null);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
-                return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName);
-            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
-                return methodParams != null;
-        }
-        return eDynamicIsSet(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String toString() {
-        if (eIsProxy()) return super.toString();
-
-        StringBuffer result = new StringBuffer(super.toString());
-        result.append(" (methodName: ");
-        result.append(methodName);
-        result.append(')');
-        return result.toString();
-    }
-
-} //QueryMethodTypeImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.openejb.jar.impl;
+
+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.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.MethodParamsType;
+import org.openejb.xml.ns.openejb.jar.QueryMethodType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Query Method Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryMethodTypeImpl#getMethodName <em>Method Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryMethodTypeImpl#getMethodParams <em>Method Params</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class QueryMethodTypeImpl extends EObjectImpl implements QueryMethodType {
+    /**
+     * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMethodName()
+     * @generated
+     * @ordered
+     */
+    protected static final String METHOD_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMethodName()
+     * @generated
+     * @ordered
+     */
+    protected String methodName = METHOD_NAME_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getMethodParams() <em>Method Params</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMethodParams()
+     * @generated
+     * @ordered
+     */
+    protected MethodParamsType methodParams = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected QueryMethodTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getQueryMethodType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getMethodName() {
+        return methodName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setMethodName(String newMethodName) {
+        String oldMethodName = methodName;
+        methodName = newMethodName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_NAME, oldMethodName, methodName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public MethodParamsType getMethodParams() {
+        return methodParams;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetMethodParams(MethodParamsType newMethodParams, NotificationChain msgs) {
+        MethodParamsType oldMethodParams = methodParams;
+        methodParams = newMethodParams;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, oldMethodParams, newMethodParams);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setMethodParams(MethodParamsType newMethodParams) {
+        if (newMethodParams != methodParams) {
+            NotificationChain msgs = null;
+            if (methodParams != null)
+                msgs = ((InternalEObject)methodParams).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, null, msgs);
+            if (newMethodParams != null)
+                msgs = ((InternalEObject)newMethodParams).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, null, msgs);
+            msgs = basicSetMethodParams(newMethodParams, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS, newMethodParams, newMethodParams));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
+        if (featureID >= 0) {
+            switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
+                case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                    return basicSetMethodParams(null, msgs);
+                default:
+                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+            }
+        }
+        return eBasicSetContainer(null, featureID, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                return getMethodName();
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                return getMethodParams();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                setMethodName((String)newValue);
+                return;
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                setMethodParams((MethodParamsType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                setMethodName(METHOD_NAME_EDEFAULT);
+                return;
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                setMethodParams((MethodParamsType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_NAME:
+                return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName);
+            case JarPackage.QUERY_METHOD_TYPE__METHOD_PARAMS:
+                return methodParams != null;
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (methodName: ");
+        result.append(methodName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //QueryMethodTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryMethodTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryTypeImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,430 +1,430 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.openejb.xml.ns.openejb.jar.impl;
-
-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.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.openejb.xml.ns.openejb.jar.JarPackage;
-import org.openejb.xml.ns.openejb.jar.QueryMethodType;
-import org.openejb.xml.ns.openejb.jar.QueryType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Query Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getQueryMethod <em>Query Method</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getResultTypeMapping <em>Result Type Mapping</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getEjbQl <em>Ejb Ql</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getNoCacheFlush <em>No Cache Flush</em>}</li>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getGroupName <em>Group Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class QueryTypeImpl extends EObjectImpl implements QueryType {
-    /**
-     * The cached value of the '{@link #getQueryMethod() <em>Query Method</em>}' containment reference.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getQueryMethod()
-     * @generated
-     * @ordered
-     */
-    protected QueryMethodType queryMethod = null;
-
-    /**
-     * The default value of the '{@link #getResultTypeMapping() <em>Result Type Mapping</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getResultTypeMapping()
-     * @generated
-     * @ordered
-     */
-    protected static final String RESULT_TYPE_MAPPING_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getResultTypeMapping() <em>Result Type Mapping</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getResultTypeMapping()
-     * @generated
-     * @ordered
-     */
-    protected String resultTypeMapping = RESULT_TYPE_MAPPING_EDEFAULT;
-
-    /**
-     * The default value of the '{@link #getEjbQl() <em>Ejb Ql</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getEjbQl()
-     * @generated
-     * @ordered
-     */
-    protected static final String EJB_QL_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getEjbQl() <em>Ejb Ql</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getEjbQl()
-     * @generated
-     * @ordered
-     */
-    protected String ejbQl = EJB_QL_EDEFAULT;
-
-    /**
-     * The cached value of the '{@link #getNoCacheFlush() <em>No Cache Flush</em>}' containment reference.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getNoCacheFlush()
-     * @generated
-     * @ordered
-     */
-    protected EObject noCacheFlush = null;
-
-    /**
-     * The default value of the '{@link #getGroupName() <em>Group Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getGroupName()
-     * @generated
-     * @ordered
-     */
-    protected static final String GROUP_NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getGroupName() <em>Group Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getGroupName()
-     * @generated
-     * @ordered
-     */
-    protected String groupName = GROUP_NAME_EDEFAULT;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected QueryTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return JarPackage.eINSTANCE.getQueryType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public QueryMethodType getQueryMethod() {
-        return queryMethod;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetQueryMethod(QueryMethodType newQueryMethod, NotificationChain msgs) {
-        QueryMethodType oldQueryMethod = queryMethod;
-        queryMethod = newQueryMethod;
-        if (eNotificationRequired()) {
-            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__QUERY_METHOD, oldQueryMethod, newQueryMethod);
-            if (msgs == null) msgs = notification; else msgs.add(notification);
-        }
-        return msgs;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setQueryMethod(QueryMethodType newQueryMethod) {
-        if (newQueryMethod != queryMethod) {
-            NotificationChain msgs = null;
-            if (queryMethod != null)
-                msgs = ((InternalEObject)queryMethod).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__QUERY_METHOD, null, msgs);
-            if (newQueryMethod != null)
-                msgs = ((InternalEObject)newQueryMethod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__QUERY_METHOD, null, msgs);
-            msgs = basicSetQueryMethod(newQueryMethod, msgs);
-            if (msgs != null) msgs.dispatch();
-        }
-        else if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__QUERY_METHOD, newQueryMethod, newQueryMethod));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getResultTypeMapping() {
-        return resultTypeMapping;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setResultTypeMapping(String newResultTypeMapping) {
-        String oldResultTypeMapping = resultTypeMapping;
-        resultTypeMapping = newResultTypeMapping;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING, oldResultTypeMapping, resultTypeMapping));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getEjbQl() {
-        return ejbQl;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setEjbQl(String newEjbQl) {
-        String oldEjbQl = ejbQl;
-        ejbQl = newEjbQl;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__EJB_QL, oldEjbQl, ejbQl));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public EObject getNoCacheFlush() {
-        return noCacheFlush;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain basicSetNoCacheFlush(EObject newNoCacheFlush, NotificationChain msgs) {
-        EObject oldNoCacheFlush = noCacheFlush;
-        noCacheFlush = newNoCacheFlush;
-        if (eNotificationRequired()) {
-            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, oldNoCacheFlush, newNoCacheFlush);
-            if (msgs == null) msgs = notification; else msgs.add(notification);
-        }
-        return msgs;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setNoCacheFlush(EObject newNoCacheFlush) {
-        if (newNoCacheFlush != noCacheFlush) {
-            NotificationChain msgs = null;
-            if (noCacheFlush != null)
-                msgs = ((InternalEObject)noCacheFlush).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, null, msgs);
-            if (newNoCacheFlush != null)
-                msgs = ((InternalEObject)newNoCacheFlush).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, null, msgs);
-            msgs = basicSetNoCacheFlush(newNoCacheFlush, msgs);
-            if (msgs != null) msgs.dispatch();
-        }
-        else if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, newNoCacheFlush, newNoCacheFlush));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getGroupName() {
-        return groupName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setGroupName(String newGroupName) {
-        String oldGroupName = groupName;
-        groupName = newGroupName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__GROUP_NAME, oldGroupName, groupName));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-        if (featureID >= 0) {
-            switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-                case JarPackage.QUERY_TYPE__QUERY_METHOD:
-                    return basicSetQueryMethod(null, msgs);
-                case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
-                    return basicSetNoCacheFlush(null, msgs);
-                default:
-                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-            }
-        }
-        return eBasicSetContainer(null, featureID, msgs);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_TYPE__QUERY_METHOD:
-                return getQueryMethod();
-            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
-                return getResultTypeMapping();
-            case JarPackage.QUERY_TYPE__EJB_QL:
-                return getEjbQl();
-            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
-                return getNoCacheFlush();
-            case JarPackage.QUERY_TYPE__GROUP_NAME:
-                return getGroupName();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_TYPE__QUERY_METHOD:
-                setQueryMethod((QueryMethodType)newValue);
-                return;
-            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
-                setResultTypeMapping((String)newValue);
-                return;
-            case JarPackage.QUERY_TYPE__EJB_QL:
-                setEjbQl((String)newValue);
-                return;
-            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
-                setNoCacheFlush((EObject)newValue);
-                return;
-            case JarPackage.QUERY_TYPE__GROUP_NAME:
-                setGroupName((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_TYPE__QUERY_METHOD:
-                setQueryMethod((QueryMethodType)null);
-                return;
-            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
-                setResultTypeMapping(RESULT_TYPE_MAPPING_EDEFAULT);
-                return;
-            case JarPackage.QUERY_TYPE__EJB_QL:
-                setEjbQl(EJB_QL_EDEFAULT);
-                return;
-            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
-                setNoCacheFlush((EObject)null);
-                return;
-            case JarPackage.QUERY_TYPE__GROUP_NAME:
-                setGroupName(GROUP_NAME_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.QUERY_TYPE__QUERY_METHOD:
-                return queryMethod != null;
-            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
-                return RESULT_TYPE_MAPPING_EDEFAULT == null ? resultTypeMapping != null : !RESULT_TYPE_MAPPING_EDEFAULT.equals(resultTypeMapping);
-            case JarPackage.QUERY_TYPE__EJB_QL:
-                return EJB_QL_EDEFAULT == null ? ejbQl != null : !EJB_QL_EDEFAULT.equals(ejbQl);
-            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
-                return noCacheFlush != null;
-            case JarPackage.QUERY_TYPE__GROUP_NAME:
-                return GROUP_NAME_EDEFAULT == null ? groupName != null : !GROUP_NAME_EDEFAULT.equals(groupName);
-        }
-        return eDynamicIsSet(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String toString() {
-        if (eIsProxy()) return super.toString();
-
-        StringBuffer result = new StringBuffer(super.toString());
-        result.append(" (resultTypeMapping: ");
-        result.append(resultTypeMapping);
-        result.append(", ejbQl: ");
-        result.append(ejbQl);
-        result.append(", groupName: ");
-        result.append(groupName);
-        result.append(')');
-        return result.toString();
-    }
-
-} //QueryTypeImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.openejb.jar.impl;
+
+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.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.QueryMethodType;
+import org.openejb.xml.ns.openejb.jar.QueryType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Query Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getQueryMethod <em>Query Method</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getResultTypeMapping <em>Result Type Mapping</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getEjbQl <em>Ejb Ql</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getNoCacheFlush <em>No Cache Flush</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.QueryTypeImpl#getGroupName <em>Group Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class QueryTypeImpl extends EObjectImpl implements QueryType {
+    /**
+     * The cached value of the '{@link #getQueryMethod() <em>Query Method</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getQueryMethod()
+     * @generated
+     * @ordered
+     */
+    protected QueryMethodType queryMethod = null;
+
+    /**
+     * The default value of the '{@link #getResultTypeMapping() <em>Result Type Mapping</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getResultTypeMapping()
+     * @generated
+     * @ordered
+     */
+    protected static final String RESULT_TYPE_MAPPING_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getResultTypeMapping() <em>Result Type Mapping</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getResultTypeMapping()
+     * @generated
+     * @ordered
+     */
+    protected String resultTypeMapping = RESULT_TYPE_MAPPING_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getEjbQl() <em>Ejb Ql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbQl()
+     * @generated
+     * @ordered
+     */
+    protected static final String EJB_QL_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getEjbQl() <em>Ejb Ql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbQl()
+     * @generated
+     * @ordered
+     */
+    protected String ejbQl = EJB_QL_EDEFAULT;
+
+    /**
+     * The cached value of the '{@link #getNoCacheFlush() <em>No Cache Flush</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getNoCacheFlush()
+     * @generated
+     * @ordered
+     */
+    protected EObject noCacheFlush = null;
+
+    /**
+     * The default value of the '{@link #getGroupName() <em>Group Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGroupName()
+     * @generated
+     * @ordered
+     */
+    protected static final String GROUP_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getGroupName() <em>Group Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGroupName()
+     * @generated
+     * @ordered
+     */
+    protected String groupName = GROUP_NAME_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected QueryTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getQueryType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public QueryMethodType getQueryMethod() {
+        return queryMethod;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetQueryMethod(QueryMethodType newQueryMethod, NotificationChain msgs) {
+        QueryMethodType oldQueryMethod = queryMethod;
+        queryMethod = newQueryMethod;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__QUERY_METHOD, oldQueryMethod, newQueryMethod);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setQueryMethod(QueryMethodType newQueryMethod) {
+        if (newQueryMethod != queryMethod) {
+            NotificationChain msgs = null;
+            if (queryMethod != null)
+                msgs = ((InternalEObject)queryMethod).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__QUERY_METHOD, null, msgs);
+            if (newQueryMethod != null)
+                msgs = ((InternalEObject)newQueryMethod).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__QUERY_METHOD, null, msgs);
+            msgs = basicSetQueryMethod(newQueryMethod, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__QUERY_METHOD, newQueryMethod, newQueryMethod));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getResultTypeMapping() {
+        return resultTypeMapping;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setResultTypeMapping(String newResultTypeMapping) {
+        String oldResultTypeMapping = resultTypeMapping;
+        resultTypeMapping = newResultTypeMapping;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING, oldResultTypeMapping, resultTypeMapping));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEjbQl() {
+        return ejbQl;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjbQl(String newEjbQl) {
+        String oldEjbQl = ejbQl;
+        ejbQl = newEjbQl;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__EJB_QL, oldEjbQl, ejbQl));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EObject getNoCacheFlush() {
+        return noCacheFlush;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetNoCacheFlush(EObject newNoCacheFlush, NotificationChain msgs) {
+        EObject oldNoCacheFlush = noCacheFlush;
+        noCacheFlush = newNoCacheFlush;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, oldNoCacheFlush, newNoCacheFlush);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setNoCacheFlush(EObject newNoCacheFlush) {
+        if (newNoCacheFlush != noCacheFlush) {
+            NotificationChain msgs = null;
+            if (noCacheFlush != null)
+                msgs = ((InternalEObject)noCacheFlush).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, null, msgs);
+            if (newNoCacheFlush != null)
+                msgs = ((InternalEObject)newNoCacheFlush).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, null, msgs);
+            msgs = basicSetNoCacheFlush(newNoCacheFlush, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__NO_CACHE_FLUSH, newNoCacheFlush, newNoCacheFlush));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getGroupName() {
+        return groupName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setGroupName(String newGroupName) {
+        String oldGroupName = groupName;
+        groupName = newGroupName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.QUERY_TYPE__GROUP_NAME, oldGroupName, groupName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
+        if (featureID >= 0) {
+            switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
+                case JarPackage.QUERY_TYPE__QUERY_METHOD:
+                    return basicSetQueryMethod(null, msgs);
+                case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
+                    return basicSetNoCacheFlush(null, msgs);
+                default:
+                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+            }
+        }
+        return eBasicSetContainer(null, featureID, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_TYPE__QUERY_METHOD:
+                return getQueryMethod();
+            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
+                return getResultTypeMapping();
+            case JarPackage.QUERY_TYPE__EJB_QL:
+                return getEjbQl();
+            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
+                return getNoCacheFlush();
+            case JarPackage.QUERY_TYPE__GROUP_NAME:
+                return getGroupName();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_TYPE__QUERY_METHOD:
+                setQueryMethod((QueryMethodType)newValue);
+                return;
+            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
+                setResultTypeMapping((String)newValue);
+                return;
+            case JarPackage.QUERY_TYPE__EJB_QL:
+                setEjbQl((String)newValue);
+                return;
+            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
+                setNoCacheFlush((EObject)newValue);
+                return;
+            case JarPackage.QUERY_TYPE__GROUP_NAME:
+                setGroupName((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_TYPE__QUERY_METHOD:
+                setQueryMethod((QueryMethodType)null);
+                return;
+            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
+                setResultTypeMapping(RESULT_TYPE_MAPPING_EDEFAULT);
+                return;
+            case JarPackage.QUERY_TYPE__EJB_QL:
+                setEjbQl(EJB_QL_EDEFAULT);
+                return;
+            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
+                setNoCacheFlush((EObject)null);
+                return;
+            case JarPackage.QUERY_TYPE__GROUP_NAME:
+                setGroupName(GROUP_NAME_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.QUERY_TYPE__QUERY_METHOD:
+                return queryMethod != null;
+            case JarPackage.QUERY_TYPE__RESULT_TYPE_MAPPING:
+                return RESULT_TYPE_MAPPING_EDEFAULT == null ? resultTypeMapping != null : !RESULT_TYPE_MAPPING_EDEFAULT.equals(resultTypeMapping);
+            case JarPackage.QUERY_TYPE__EJB_QL:
+                return EJB_QL_EDEFAULT == null ? ejbQl != null : !EJB_QL_EDEFAULT.equals(ejbQl);
+            case JarPackage.QUERY_TYPE__NO_CACHE_FLUSH:
+                return noCacheFlush != null;
+            case JarPackage.QUERY_TYPE__GROUP_NAME:
+                return GROUP_NAME_EDEFAULT == null ? groupName != null : !GROUP_NAME_EDEFAULT.equals(groupName);
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (resultTypeMapping: ");
+        result.append(resultTypeMapping);
+        result.append(", ejbQl: ");
+        result.append(ejbQl);
+        result.append(", groupName: ");
+        result.append(groupName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //QueryTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/QueryTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/RelationshipRoleSourceTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/RelationshipRoleSourceTypeImpl.java?rev=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/RelationshipRoleSourceTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/RelationshipRoleSourceTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,171 +1,171 @@
-/**
- * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- */
-package org.openejb.xml.ns.openejb.jar.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-
-import org.openejb.xml.ns.openejb.jar.JarPackage;
-import org.openejb.xml.ns.openejb.jar.RelationshipRoleSourceType;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Relationship Role Source Type</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.RelationshipRoleSourceTypeImpl#getEjbName <em>Ejb Name</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class RelationshipRoleSourceTypeImpl extends EObjectImpl implements RelationshipRoleSourceType {
-    /**
-     * The default value of the '{@link #getEjbName() <em>Ejb Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getEjbName()
-     * @generated
-     * @ordered
-     */
-    protected static final String EJB_NAME_EDEFAULT = null;
-
-    /**
-     * The cached value of the '{@link #getEjbName() <em>Ejb Name</em>}' attribute.
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @see #getEjbName()
-     * @generated
-     * @ordered
-     */
-    protected String ejbName = EJB_NAME_EDEFAULT;
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected RelationshipRoleSourceTypeImpl() {
-        super();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    protected EClass eStaticClass() {
-        return JarPackage.eINSTANCE.getRelationshipRoleSourceType();
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String getEjbName() {
-        return ejbName;
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void setEjbName(String newEjbName) {
-        String oldEjbName = ejbName;
-        ejbName = newEjbName;
-        if (eNotificationRequired())
-            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME, oldEjbName, ejbName));
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
-                return getEjbName();
-        }
-        return eDynamicGet(eFeature, resolve);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eSet(EStructuralFeature eFeature, Object newValue) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
-                setEjbName((String)newValue);
-                return;
-        }
-        eDynamicSet(eFeature, newValue);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public void eUnset(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
-                setEjbName(EJB_NAME_EDEFAULT);
-                return;
-        }
-        eDynamicUnset(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public boolean eIsSet(EStructuralFeature eFeature) {
-        switch (eDerivedStructuralFeatureID(eFeature)) {
-            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
-                return EJB_NAME_EDEFAULT == null ? ejbName != null : !EJB_NAME_EDEFAULT.equals(ejbName);
-        }
-        return eDynamicIsSet(eFeature);
-    }
-
-    /**
-     * <!-- begin-user-doc -->
-     * <!-- end-user-doc -->
-     * @generated
-     */
-    public String toString() {
-        if (eIsProxy()) return super.toString();
-
-        StringBuffer result = new StringBuffer(super.toString());
-        result.append(" (ejbName: ");
-        result.append(ejbName);
-        result.append(')');
-        return result.toString();
-    }
-
-} //RelationshipRoleSourceTypeImpl
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.openejb.jar.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+import org.openejb.xml.ns.openejb.jar.RelationshipRoleSourceType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Relationship Role Source Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.openejb.jar.impl.RelationshipRoleSourceTypeImpl#getEjbName <em>Ejb Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RelationshipRoleSourceTypeImpl extends EObjectImpl implements RelationshipRoleSourceType {
+    /**
+     * The default value of the '{@link #getEjbName() <em>Ejb Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbName()
+     * @generated
+     * @ordered
+     */
+    protected static final String EJB_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getEjbName() <em>Ejb Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getEjbName()
+     * @generated
+     * @ordered
+     */
+    protected String ejbName = EJB_NAME_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected RelationshipRoleSourceTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return JarPackage.eINSTANCE.getRelationshipRoleSourceType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getEjbName() {
+        return ejbName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setEjbName(String newEjbName) {
+        String oldEjbName = ejbName;
+        ejbName = newEjbName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME, oldEjbName, ejbName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
+                return getEjbName();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
+                setEjbName((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
+                setEjbName(EJB_NAME_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case JarPackage.RELATIONSHIP_ROLE_SOURCE_TYPE__EJB_NAME:
+                return EJB_NAME_EDEFAULT == null ? ejbName != null : !EJB_NAME_EDEFAULT.equals(ejbName);
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (ejbName: ");
+        result.append(ejbName);
+        result.append(')');
+        return result.toString();
+    }
+
+} //RelationshipRoleSourceTypeImpl

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/openejb/jar/impl/RelationshipRoleSourceTypeImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native