tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwilli...@apache.org
Subject svn commit: r376322 [4/5] - in /incubator/tuscany/java/das/rdb/src: main/java/org/apache/tuscany/das/rdb/ main/java/org/apache/tuscany/das/rdb/generator/impl/ main/java/org/apache/tuscany/das/rdb/graphbuilder/impl/ main/java/org/apache/tuscany/das/rdb/...
Date Thu, 09 Feb 2006 15:33:01 GMT
Modified: incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/DepartmentTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/DepartmentTypeImpl.java?rev=376322&r1=376321&r2=376322&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/DepartmentTypeImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/DepartmentTypeImpl.java Thu Feb  9 07:32:58 2006
@@ -1,41 +1,29 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Copyright 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.
+ * $Id$
  */
 package org.apache.tuscany.das.rdb.test.company.impl;
 
 import java.util.Collection;
 import java.util.List;
 
-import org.apache.tuscany.das.rdb.test.company.CompanyPackage;
 import org.apache.tuscany.das.rdb.test.company.DepartmentType;
 import org.apache.tuscany.das.rdb.test.company.EmployeeType;
 
+import org.apache.tuscany.sdo.impl.DataObjectImpl;
+
 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.sdo.impl.EDataObjectImpl;
-
 import org.eclipse.emf.ecore.util.EObjectContainmentEList;
 import org.eclipse.emf.ecore.util.InternalEList;
 
@@ -55,323 +43,343 @@
  *
  * @generated
  */
-public class DepartmentTypeImpl extends EDataObjectImpl implements DepartmentType {
-	/**
-	 * The cached value of the '{@link #getEmployees() <em>Employees</em>}' containment reference list.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getEmployees()
-	 * @generated
-	 * @ordered
-	 */
-	protected EList employees = null;
-
-	/**
-	 * The default value of the '{@link #getLocation() <em>Location</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getLocation()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String LOCATION_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getLocation()
-	 * @generated
-	 * @ordered
-	 */
-	protected String location = LOCATION_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getName()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String NAME_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getName()
-	 * @generated
-	 * @ordered
-	 */
-	protected String name = NAME_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getNumber() <em>Number</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getNumber()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final int NUMBER_EDEFAULT = 0;
-
-	/**
-	 * The cached value of the '{@link #getNumber() <em>Number</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getNumber()
-	 * @generated
-	 * @ordered
-	 */
-	protected int number = NUMBER_EDEFAULT;
-
-	/**
-	 * This is true if the Number attribute has been set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean numberESet = false;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected DepartmentTypeImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return CompanyPackage.eINSTANCE.getDepartmentType();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public List getEmployees() {
-		if (employees == null) {
-			employees = new EObjectContainmentEList(EmployeeType.class, this, CompanyPackage.DEPARTMENT_TYPE__EMPLOYEES);
-		}
-		return employees;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getLocation() {
-		return location;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setLocation(String newLocation) {
-		String oldLocation = location;
-		location = newLocation;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackage.DEPARTMENT_TYPE__LOCATION, oldLocation, location));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getName() {
-		return name;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setName(String newName) {
-		String oldName = name;
-		name = newName;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackage.DEPARTMENT_TYPE__NAME, oldName, name));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public int getNumber() {
-		return number;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setNumber(int newNumber) {
-		int oldNumber = number;
-		number = newNumber;
-		boolean oldNumberESet = numberESet;
-		numberESet = true;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackage.DEPARTMENT_TYPE__NUMBER, oldNumber, number, !oldNumberESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void unsetNumber() {
-		int oldNumber = number;
-		boolean oldNumberESet = numberESet;
-		number = NUMBER_EDEFAULT;
-		numberESet = false;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.UNSET, CompanyPackage.DEPARTMENT_TYPE__NUMBER, oldNumber, NUMBER_EDEFAULT, oldNumberESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isSetNumber() {
-		return numberESet;
-	}
-
-	/**
-	 * <!-- 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 CompanyPackage.DEPARTMENT_TYPE__EMPLOYEES:
-					return ((InternalEList)getEmployees()).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 CompanyPackage.DEPARTMENT_TYPE__EMPLOYEES:
-				return getEmployees();
-			case CompanyPackage.DEPARTMENT_TYPE__LOCATION:
-				return getLocation();
-			case CompanyPackage.DEPARTMENT_TYPE__NAME:
-				return getName();
-			case CompanyPackage.DEPARTMENT_TYPE__NUMBER:
-				return new Integer(getNumber());
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CompanyPackage.DEPARTMENT_TYPE__EMPLOYEES:
-				getEmployees().clear();
-				getEmployees().addAll((Collection)newValue);
-				return;
-			case CompanyPackage.DEPARTMENT_TYPE__LOCATION:
-				setLocation((String)newValue);
-				return;
-			case CompanyPackage.DEPARTMENT_TYPE__NAME:
-				setName((String)newValue);
-				return;
-			case CompanyPackage.DEPARTMENT_TYPE__NUMBER:
-				setNumber(((Integer)newValue).intValue());
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CompanyPackage.DEPARTMENT_TYPE__EMPLOYEES:
-				getEmployees().clear();
-				return;
-			case CompanyPackage.DEPARTMENT_TYPE__LOCATION:
-				setLocation(LOCATION_EDEFAULT);
-				return;
-			case CompanyPackage.DEPARTMENT_TYPE__NAME:
-				setName(NAME_EDEFAULT);
-				return;
-			case CompanyPackage.DEPARTMENT_TYPE__NUMBER:
-				unsetNumber();
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CompanyPackage.DEPARTMENT_TYPE__EMPLOYEES:
-				return employees != null && !employees.isEmpty();
-			case CompanyPackage.DEPARTMENT_TYPE__LOCATION:
-				return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
-			case CompanyPackage.DEPARTMENT_TYPE__NAME:
-				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-			case CompanyPackage.DEPARTMENT_TYPE__NUMBER:
-				return isSetNumber();
-		}
-		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(" (location: ");
-		result.append(location);
-		result.append(", name: ");
-		result.append(name);
-		result.append(", number: ");
-		if (numberESet) result.append(number); else result.append("<unset>");
-		result.append(')');
-		return result.toString();
-	}
+public class DepartmentTypeImpl extends DataObjectImpl implements DepartmentType
+{
+  /**
+   * The cached value of the '{@link #getEmployees() <em>Employees</em>}' containment reference list.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getEmployees()
+   * @generated
+   * @ordered
+   */
+  protected EList employees = null;
+
+  /**
+   * The default value of the '{@link #getLocation() <em>Location</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getLocation()
+   * @generated
+   * @ordered
+   */
+  protected static final String LOCATION_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getLocation() <em>Location</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getLocation()
+   * @generated
+   * @ordered
+   */
+  protected String location = LOCATION_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected static final String NAME_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected String name = NAME_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getNumber() <em>Number</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getNumber()
+   * @generated
+   * @ordered
+   */
+  protected static final int NUMBER_EDEFAULT = 0;
+
+  /**
+   * The cached value of the '{@link #getNumber() <em>Number</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getNumber()
+   * @generated
+   * @ordered
+   */
+  protected int number = NUMBER_EDEFAULT;
+
+  /**
+   * This is true if the Number attribute has been set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  protected boolean numberESet = false;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected DepartmentTypeImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return CompanyPackageImpl.Literals.DEPARTMENT_TYPE;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public List getEmployees()
+  {
+    if (employees == null)
+    {
+      employees = new EObjectContainmentEList(EmployeeType.class, this, CompanyPackageImpl.DEPARTMENT_TYPE__EMPLOYEES);
+    }
+    return employees;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getLocation()
+  {
+    return location;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setLocation(String newLocation)
+  {
+    String oldLocation = location;
+    location = newLocation;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackageImpl.DEPARTMENT_TYPE__LOCATION, oldLocation, location));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getName()
+  {
+    return name;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setName(String newName)
+  {
+    String oldName = name;
+    name = newName;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackageImpl.DEPARTMENT_TYPE__NAME, oldName, name));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public int getNumber()
+  {
+    return number;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setNumber(int newNumber)
+  {
+    int oldNumber = number;
+    number = newNumber;
+    boolean oldNumberESet = numberESet;
+    numberESet = true;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackageImpl.DEPARTMENT_TYPE__NUMBER, oldNumber, number, !oldNumberESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void unsetNumber()
+  {
+    int oldNumber = number;
+    boolean oldNumberESet = numberESet;
+    number = NUMBER_EDEFAULT;
+    numberESet = false;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.UNSET, CompanyPackageImpl.DEPARTMENT_TYPE__NUMBER, oldNumber, NUMBER_EDEFAULT, oldNumberESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isSetNumber()
+  {
+    return numberESet;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.DEPARTMENT_TYPE__EMPLOYEES:
+        return ((InternalEList)getEmployees()).basicRemove(otherEnd, msgs);
+    }
+    return super.eInverseRemove(otherEnd, featureID, msgs);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.DEPARTMENT_TYPE__EMPLOYEES:
+        return getEmployees();
+      case CompanyPackageImpl.DEPARTMENT_TYPE__LOCATION:
+        return getLocation();
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NAME:
+        return getName();
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NUMBER:
+        return new Integer(getNumber());
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.DEPARTMENT_TYPE__EMPLOYEES:
+        getEmployees().clear();
+        getEmployees().addAll((Collection)newValue);
+        return;
+      case CompanyPackageImpl.DEPARTMENT_TYPE__LOCATION:
+        setLocation((String)newValue);
+        return;
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NAME:
+        setName((String)newValue);
+        return;
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NUMBER:
+        setNumber(((Integer)newValue).intValue());
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.DEPARTMENT_TYPE__EMPLOYEES:
+        getEmployees().clear();
+        return;
+      case CompanyPackageImpl.DEPARTMENT_TYPE__LOCATION:
+        setLocation(LOCATION_EDEFAULT);
+        return;
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NAME:
+        setName(NAME_EDEFAULT);
+        return;
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NUMBER:
+        unsetNumber();
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.DEPARTMENT_TYPE__EMPLOYEES:
+        return employees != null && !employees.isEmpty();
+      case CompanyPackageImpl.DEPARTMENT_TYPE__LOCATION:
+        return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location);
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NAME:
+        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+      case CompanyPackageImpl.DEPARTMENT_TYPE__NUMBER:
+        return isSetNumber();
+    }
+    return super.eIsSet(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String toString()
+  {
+    if (eIsProxy()) return super.toString();
+
+    StringBuffer result = new StringBuffer(super.toString());
+    result.append(" (location: ");
+    result.append(location);
+    result.append(", name: ");
+    result.append(name);
+    result.append(", number: ");
+    if (numberESet) result.append(number); else result.append("<unset>");
+    result.append(')');
+    return result.toString();
+  }
 
 } //DepartmentTypeImpl

Modified: incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/EmployeeTypeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/EmployeeTypeImpl.java?rev=376322&r1=376321&r2=376322&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/EmployeeTypeImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/company/impl/EmployeeTypeImpl.java Thu Feb  9 07:32:58 2006
@@ -1,33 +1,21 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Copyright 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.
+ * $Id$
  */
 package org.apache.tuscany.das.rdb.test.company.impl;
 
-import org.apache.tuscany.das.rdb.test.company.CompanyPackage;
 import org.apache.tuscany.das.rdb.test.company.EmployeeType;
 
+import org.apache.tuscany.sdo.impl.DataObjectImpl;
+
 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.sdo.impl.EDataObjectImpl;
-
 /**
  * <!-- begin-user-doc -->
  * An implementation of the model object '<em><b>Employee Type</b></em>'.
@@ -43,273 +31,293 @@
  *
  * @generated
  */
-public class EmployeeTypeImpl extends EDataObjectImpl implements EmployeeType {
-	/**
-	 * The default value of the '{@link #isManager() <em>Manager</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isManager()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final boolean MANAGER_EDEFAULT = false;
-
-	/**
-	 * The cached value of the '{@link #isManager() <em>Manager</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isManager()
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean manager = MANAGER_EDEFAULT;
-
-	/**
-	 * This is true if the Manager attribute has been set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean managerESet = false;
-
-	/**
-	 * The default value of the '{@link #getName() <em>Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getName()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String NAME_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getName()
-	 * @generated
-	 * @ordered
-	 */
-	protected String name = NAME_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getSN() <em>SN</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getSN()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String SN_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getSN() <em>SN</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getSN()
-	 * @generated
-	 * @ordered
-	 */
-	protected String sN = SN_EDEFAULT;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EmployeeTypeImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return CompanyPackage.eINSTANCE.getEmployeeType();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isManager() {
-		return manager;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setManager(boolean newManager) {
-		boolean oldManager = manager;
-		manager = newManager;
-		boolean oldManagerESet = managerESet;
-		managerESet = true;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackage.EMPLOYEE_TYPE__MANAGER, oldManager, manager, !oldManagerESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void unsetManager() {
-		boolean oldManager = manager;
-		boolean oldManagerESet = managerESet;
-		manager = MANAGER_EDEFAULT;
-		managerESet = false;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.UNSET, CompanyPackage.EMPLOYEE_TYPE__MANAGER, oldManager, MANAGER_EDEFAULT, oldManagerESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isSetManager() {
-		return managerESet;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getName() {
-		return name;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setName(String newName) {
-		String oldName = name;
-		name = newName;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackage.EMPLOYEE_TYPE__NAME, oldName, name));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getSN() {
-		return sN;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setSN(String newSN) {
-		String oldSN = sN;
-		sN = newSN;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackage.EMPLOYEE_TYPE__SN, oldSN, sN));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CompanyPackage.EMPLOYEE_TYPE__MANAGER:
-				return isManager() ? Boolean.TRUE : Boolean.FALSE;
-			case CompanyPackage.EMPLOYEE_TYPE__NAME:
-				return getName();
-			case CompanyPackage.EMPLOYEE_TYPE__SN:
-				return getSN();
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CompanyPackage.EMPLOYEE_TYPE__MANAGER:
-				setManager(((Boolean)newValue).booleanValue());
-				return;
-			case CompanyPackage.EMPLOYEE_TYPE__NAME:
-				setName((String)newValue);
-				return;
-			case CompanyPackage.EMPLOYEE_TYPE__SN:
-				setSN((String)newValue);
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CompanyPackage.EMPLOYEE_TYPE__MANAGER:
-				unsetManager();
-				return;
-			case CompanyPackage.EMPLOYEE_TYPE__NAME:
-				setName(NAME_EDEFAULT);
-				return;
-			case CompanyPackage.EMPLOYEE_TYPE__SN:
-				setSN(SN_EDEFAULT);
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CompanyPackage.EMPLOYEE_TYPE__MANAGER:
-				return isSetManager();
-			case CompanyPackage.EMPLOYEE_TYPE__NAME:
-				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-			case CompanyPackage.EMPLOYEE_TYPE__SN:
-				return SN_EDEFAULT == null ? sN != null : !SN_EDEFAULT.equals(sN);
-		}
-		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(" (manager: ");
-		if (managerESet) result.append(manager); else result.append("<unset>");
-		result.append(", name: ");
-		result.append(name);
-		result.append(", sN: ");
-		result.append(sN);
-		result.append(')');
-		return result.toString();
-	}
+public class EmployeeTypeImpl extends DataObjectImpl implements EmployeeType
+{
+  /**
+   * The default value of the '{@link #isManager() <em>Manager</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isManager()
+   * @generated
+   * @ordered
+   */
+  protected static final boolean MANAGER_EDEFAULT = false;
+
+  /**
+   * The cached value of the '{@link #isManager() <em>Manager</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isManager()
+   * @generated
+   * @ordered
+   */
+  protected boolean manager = MANAGER_EDEFAULT;
+
+  /**
+   * This is true if the Manager attribute has been set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  protected boolean managerESet = false;
+
+  /**
+   * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected static final String NAME_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getName()
+   * @generated
+   * @ordered
+   */
+  protected String name = NAME_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getSN() <em>SN</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getSN()
+   * @generated
+   * @ordered
+   */
+  protected static final String SN_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getSN() <em>SN</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getSN()
+   * @generated
+   * @ordered
+   */
+  protected String sN = SN_EDEFAULT;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EmployeeTypeImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return CompanyPackageImpl.Literals.EMPLOYEE_TYPE;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isManager()
+  {
+    return manager;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setManager(boolean newManager)
+  {
+    boolean oldManager = manager;
+    manager = newManager;
+    boolean oldManagerESet = managerESet;
+    managerESet = true;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackageImpl.EMPLOYEE_TYPE__MANAGER, oldManager, manager, !oldManagerESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void unsetManager()
+  {
+    boolean oldManager = manager;
+    boolean oldManagerESet = managerESet;
+    manager = MANAGER_EDEFAULT;
+    managerESet = false;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.UNSET, CompanyPackageImpl.EMPLOYEE_TYPE__MANAGER, oldManager, MANAGER_EDEFAULT, oldManagerESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isSetManager()
+  {
+    return managerESet;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getName()
+  {
+    return name;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setName(String newName)
+  {
+    String oldName = name;
+    name = newName;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackageImpl.EMPLOYEE_TYPE__NAME, oldName, name));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getSN()
+  {
+    return sN;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setSN(String newSN)
+  {
+    String oldSN = sN;
+    sN = newSN;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CompanyPackageImpl.EMPLOYEE_TYPE__SN, oldSN, sN));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.EMPLOYEE_TYPE__MANAGER:
+        return isManager() ? Boolean.TRUE : Boolean.FALSE;
+      case CompanyPackageImpl.EMPLOYEE_TYPE__NAME:
+        return getName();
+      case CompanyPackageImpl.EMPLOYEE_TYPE__SN:
+        return getSN();
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.EMPLOYEE_TYPE__MANAGER:
+        setManager(((Boolean)newValue).booleanValue());
+        return;
+      case CompanyPackageImpl.EMPLOYEE_TYPE__NAME:
+        setName((String)newValue);
+        return;
+      case CompanyPackageImpl.EMPLOYEE_TYPE__SN:
+        setSN((String)newValue);
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.EMPLOYEE_TYPE__MANAGER:
+        unsetManager();
+        return;
+      case CompanyPackageImpl.EMPLOYEE_TYPE__NAME:
+        setName(NAME_EDEFAULT);
+        return;
+      case CompanyPackageImpl.EMPLOYEE_TYPE__SN:
+        setSN(SN_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case CompanyPackageImpl.EMPLOYEE_TYPE__MANAGER:
+        return isSetManager();
+      case CompanyPackageImpl.EMPLOYEE_TYPE__NAME:
+        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+      case CompanyPackageImpl.EMPLOYEE_TYPE__SN:
+        return SN_EDEFAULT == null ? sN != null : !SN_EDEFAULT.equals(sN);
+    }
+    return super.eIsSet(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String toString()
+  {
+    if (eIsProxy()) return super.toString();
+
+    StringBuffer result = new StringBuffer(super.toString());
+    result.append(" (manager: ");
+    if (managerESet) result.append(manager); else result.append("<unset>");
+    result.append(", name: ");
+    result.append(name);
+    result.append(", sN: ");
+    result.append(sN);
+    result.append(')');
+    return result.toString();
+  }
 
 } //EmployeeTypeImpl

Modified: incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/AnOrder.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/AnOrder.java?rev=376322&r1=376321&r2=376322&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/AnOrder.java (original)
+++ incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/AnOrder.java Thu Feb  9 07:32:58 2006
@@ -1,18 +1,8 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Copyright 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.
+ * $Id$
  */
 package org.apache.tuscany.das.rdb.test.customer;
 
@@ -32,198 +22,185 @@
  * </ul>
  * </p>
  *
- * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getAnOrder()
- * @model extendedMetaData="name='AnOrder' kind='elementOnly'"
  * @generated
  */
-public interface AnOrder {
-	/**
-	 * Returns the value of the '<em><b>ID</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>ID</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>ID</em>' attribute.
-	 * @see #isSetID()
-	 * @see #unsetID()
-	 * @see #setID(int)
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getAnOrder_ID()
-	 * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true"
-	 *        extendedMetaData="kind='element' name='ID'"
-	 * @generated
-	 */
-	int getID();
-
-	/**
-	 * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getID <em>ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>ID</em>' attribute.
-	 * @see #isSetID()
-	 * @see #unsetID()
-	 * @see #getID()
-	 * @generated
-	 */
-	void setID(int value);
-
-	/**
-	 * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getID <em>ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isSetID()
-	 * @see #getID()
-	 * @see #setID(int)
-	 * @generated
-	 */
-	void unsetID();
-
-	/**
-	 * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getID <em>ID</em>}' attribute is set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return whether the value of the '<em>ID</em>' attribute is set.
-	 * @see #unsetID()
-	 * @see #getID()
-	 * @see #setID(int)
-	 * @generated
-	 */
-	boolean isSetID();
-
-	/**
-	 * Returns the value of the '<em><b>Product</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Product</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Product</em>' attribute.
-	 * @see #setProduct(String)
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getAnOrder_Product()
-	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
-	 *        extendedMetaData="kind='element' name='Product'"
-	 * @generated
-	 */
-	String getProduct();
-
-	/**
-	 * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getProduct <em>Product</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Product</em>' attribute.
-	 * @see #getProduct()
-	 * @generated
-	 */
-	void setProduct(String value);
-
-	/**
-	 * Returns the value of the '<em><b>Quantity</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Quantity</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Quantity</em>' attribute.
-	 * @see #isSetQuantity()
-	 * @see #unsetQuantity()
-	 * @see #setQuantity(int)
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getAnOrder_Quantity()
-	 * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true"
-	 *        extendedMetaData="kind='element' name='Quantity'"
-	 * @generated
-	 */
-	int getQuantity();
-
-	/**
-	 * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getQuantity <em>Quantity</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Quantity</em>' attribute.
-	 * @see #isSetQuantity()
-	 * @see #unsetQuantity()
-	 * @see #getQuantity()
-	 * @generated
-	 */
-	void setQuantity(int value);
-
-	/**
-	 * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getQuantity <em>Quantity</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isSetQuantity()
-	 * @see #getQuantity()
-	 * @see #setQuantity(int)
-	 * @generated
-	 */
-	void unsetQuantity();
-
-	/**
-	 * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getQuantity <em>Quantity</em>}' attribute is set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return whether the value of the '<em>Quantity</em>' attribute is set.
-	 * @see #unsetQuantity()
-	 * @see #getQuantity()
-	 * @see #setQuantity(int)
-	 * @generated
-	 */
-	boolean isSetQuantity();
-
-	/**
-	 * Returns the value of the '<em><b>Customer ID</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Customer ID</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Customer ID</em>' attribute.
-	 * @see #isSetCustomerID()
-	 * @see #unsetCustomerID()
-	 * @see #setCustomerID(int)
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getAnOrder_CustomerID()
-	 * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true"
-	 *        extendedMetaData="kind='element' name='Customer_ID'"
-	 * @generated
-	 */
-	int getCustomerID();
-
-	/**
-	 * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getCustomerID <em>Customer ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Customer ID</em>' attribute.
-	 * @see #isSetCustomerID()
-	 * @see #unsetCustomerID()
-	 * @see #getCustomerID()
-	 * @generated
-	 */
-	void setCustomerID(int value);
-
-	/**
-	 * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getCustomerID <em>Customer ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isSetCustomerID()
-	 * @see #getCustomerID()
-	 * @see #setCustomerID(int)
-	 * @generated
-	 */
-	void unsetCustomerID();
-
-	/**
-	 * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getCustomerID <em>Customer ID</em>}' attribute is set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return whether the value of the '<em>Customer ID</em>' attribute is set.
-	 * @see #unsetCustomerID()
-	 * @see #getCustomerID()
-	 * @see #setCustomerID(int)
-	 * @generated
-	 */
-	boolean isSetCustomerID();
+public interface AnOrder
+{
+  /**
+   * Returns the value of the '<em><b>ID</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>ID</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>ID</em>' attribute.
+   * @see #isSetID()
+   * @see #unsetID()
+   * @see #setID(int)
+   * @generated
+   */
+  int getID();
+
+  /**
+   * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getID <em>ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>ID</em>' attribute.
+   * @see #isSetID()
+   * @see #unsetID()
+   * @see #getID()
+   * @generated
+   */
+  void setID(int value);
+
+  /**
+   * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getID <em>ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isSetID()
+   * @see #getID()
+   * @see #setID(int)
+   * @generated
+   */
+  void unsetID();
+
+  /**
+   * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getID <em>ID</em>}' attribute is set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @return whether the value of the '<em>ID</em>' attribute is set.
+   * @see #unsetID()
+   * @see #getID()
+   * @see #setID(int)
+   * @generated
+   */
+  boolean isSetID();
+
+  /**
+   * Returns the value of the '<em><b>Product</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Product</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Product</em>' attribute.
+   * @see #setProduct(String)
+   * @generated
+   */
+  String getProduct();
+
+  /**
+   * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getProduct <em>Product</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Product</em>' attribute.
+   * @see #getProduct()
+   * @generated
+   */
+  void setProduct(String value);
+
+  /**
+   * Returns the value of the '<em><b>Quantity</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Quantity</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Quantity</em>' attribute.
+   * @see #isSetQuantity()
+   * @see #unsetQuantity()
+   * @see #setQuantity(int)
+   * @generated
+   */
+  int getQuantity();
+
+  /**
+   * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getQuantity <em>Quantity</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Quantity</em>' attribute.
+   * @see #isSetQuantity()
+   * @see #unsetQuantity()
+   * @see #getQuantity()
+   * @generated
+   */
+  void setQuantity(int value);
+
+  /**
+   * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getQuantity <em>Quantity</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isSetQuantity()
+   * @see #getQuantity()
+   * @see #setQuantity(int)
+   * @generated
+   */
+  void unsetQuantity();
+
+  /**
+   * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getQuantity <em>Quantity</em>}' attribute is set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @return whether the value of the '<em>Quantity</em>' attribute is set.
+   * @see #unsetQuantity()
+   * @see #getQuantity()
+   * @see #setQuantity(int)
+   * @generated
+   */
+  boolean isSetQuantity();
+
+  /**
+   * Returns the value of the '<em><b>Customer ID</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Customer ID</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Customer ID</em>' attribute.
+   * @see #isSetCustomerID()
+   * @see #unsetCustomerID()
+   * @see #setCustomerID(int)
+   * @generated
+   */
+  int getCustomerID();
+
+  /**
+   * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getCustomerID <em>Customer ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Customer ID</em>' attribute.
+   * @see #isSetCustomerID()
+   * @see #unsetCustomerID()
+   * @see #getCustomerID()
+   * @generated
+   */
+  void setCustomerID(int value);
+
+  /**
+   * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getCustomerID <em>Customer ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isSetCustomerID()
+   * @see #getCustomerID()
+   * @see #setCustomerID(int)
+   * @generated
+   */
+  void unsetCustomerID();
+
+  /**
+   * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.AnOrder#getCustomerID <em>Customer ID</em>}' attribute is set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @return whether the value of the '<em>Customer ID</em>' attribute is set.
+   * @see #unsetCustomerID()
+   * @see #getCustomerID()
+   * @see #setCustomerID(int)
+   * @generated
+   */
+  boolean isSetCustomerID();
 
 } // AnOrder

Modified: incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/Customer.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/Customer.java?rev=376322&r1=376321&r2=376322&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/Customer.java (original)
+++ incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/Customer.java Thu Feb  9 07:32:58 2006
@@ -1,18 +1,8 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Copyright 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.
+ * $Id$
  */
 package org.apache.tuscany.das.rdb.test.customer;
 
@@ -33,134 +23,121 @@
  * </ul>
  * </p>
  *
- * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getCustomer()
- * @model extendedMetaData="name='Customer' kind='elementOnly'"
  * @generated
  */
-public interface Customer {
-	/**
-	 * Returns the value of the '<em><b>ID</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>ID</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>ID</em>' attribute.
-	 * @see #isSetID()
-	 * @see #unsetID()
-	 * @see #setID(int)
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getCustomer_ID()
-	 * @model unique="false" unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" required="true"
-	 *        extendedMetaData="kind='element' name='ID'"
-	 * @generated
-	 */
-	int getID();
-
-	/**
-	 * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getID <em>ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>ID</em>' attribute.
-	 * @see #isSetID()
-	 * @see #unsetID()
-	 * @see #getID()
-	 * @generated
-	 */
-	void setID(int value);
-
-	/**
-	 * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getID <em>ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #isSetID()
-	 * @see #getID()
-	 * @see #setID(int)
-	 * @generated
-	 */
-	void unsetID();
-
-	/**
-	 * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getID <em>ID</em>}' attribute is set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return whether the value of the '<em>ID</em>' attribute is set.
-	 * @see #unsetID()
-	 * @see #getID()
-	 * @see #setID(int)
-	 * @generated
-	 */
-	boolean isSetID();
-
-	/**
-	 * Returns the value of the '<em><b>Last Name</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Last Name</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Last Name</em>' attribute.
-	 * @see #setLastName(String)
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getCustomer_LastName()
-	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
-	 *        extendedMetaData="kind='element' name='lastName'"
-	 * @generated
-	 */
-	String getLastName();
-
-	/**
-	 * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getLastName <em>Last Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Last Name</em>' attribute.
-	 * @see #getLastName()
-	 * @generated
-	 */
-	void setLastName(String value);
-
-	/**
-	 * Returns the value of the '<em><b>Address</b></em>' attribute.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Address</em>' attribute isn't clear,
-	 * there really should be more of a description here...
-	 * </p>
-	 * <!-- end-user-doc -->
-	 * @return the value of the '<em>Address</em>' attribute.
-	 * @see #setAddress(String)
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getCustomer_Address()
-	 * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
-	 *        extendedMetaData="kind='element' name='address'"
-	 * @generated
-	 */
-	String getAddress();
-
-	/**
-	 * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getAddress <em>Address</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @param value the new value of the '<em>Address</em>' attribute.
-	 * @see #getAddress()
-	 * @generated
-	 */
-	void setAddress(String value);
-
-	/**
-	 * Returns the value of the '<em><b>Orders</b></em>' containment reference list.
-	 * The list contents are of type {@link org.apache.tuscany.das.rdb.test.customer.AnOrder}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Orders</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>Orders</em>' containment reference list.
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getCustomer_Orders()
-	 * @model type="org.apache.tuscany.das.rdb.test.customer.AnOrder" containment="true" resolveProxies="false" required="true"
-	 *        extendedMetaData="kind='element' name='orders'"
-	 * @generated
-	 */
-	List getOrders();
+public interface Customer
+{
+  /**
+   * Returns the value of the '<em><b>ID</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>ID</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>ID</em>' attribute.
+   * @see #isSetID()
+   * @see #unsetID()
+   * @see #setID(int)
+   * @generated
+   */
+  int getID();
+
+  /**
+   * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getID <em>ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>ID</em>' attribute.
+   * @see #isSetID()
+   * @see #unsetID()
+   * @see #getID()
+   * @generated
+   */
+  void setID(int value);
+
+  /**
+   * Unsets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getID <em>ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #isSetID()
+   * @see #getID()
+   * @see #setID(int)
+   * @generated
+   */
+  void unsetID();
+
+  /**
+   * Returns whether the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getID <em>ID</em>}' attribute is set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @return whether the value of the '<em>ID</em>' attribute is set.
+   * @see #unsetID()
+   * @see #getID()
+   * @see #setID(int)
+   * @generated
+   */
+  boolean isSetID();
+
+  /**
+   * Returns the value of the '<em><b>Last Name</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Last Name</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Last Name</em>' attribute.
+   * @see #setLastName(String)
+   * @generated
+   */
+  String getLastName();
+
+  /**
+   * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getLastName <em>Last Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Last Name</em>' attribute.
+   * @see #getLastName()
+   * @generated
+   */
+  void setLastName(String value);
+
+  /**
+   * Returns the value of the '<em><b>Address</b></em>' attribute.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Address</em>' attribute isn't clear,
+   * there really should be more of a description here...
+   * </p>
+   * <!-- end-user-doc -->
+   * @return the value of the '<em>Address</em>' attribute.
+   * @see #setAddress(String)
+   * @generated
+   */
+  String getAddress();
+
+  /**
+   * Sets the value of the '{@link org.apache.tuscany.das.rdb.test.customer.Customer#getAddress <em>Address</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @param value the new value of the '<em>Address</em>' attribute.
+   * @see #getAddress()
+   * @generated
+   */
+  void setAddress(String value);
+
+  /**
+   * Returns the value of the '<em><b>Orders</b></em>' containment reference list.
+   * The list contents are of type {@link org.apache.tuscany.das.rdb.test.customer.AnOrder}.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Orders</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>Orders</em>' containment reference list.
+   * @generated
+   */
+  List getOrders();
 
 } // Customer

Modified: incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/CustomerFactory.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/CustomerFactory.java?rev=376322&r1=376321&r2=376322&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/CustomerFactory.java (original)
+++ incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/CustomerFactory.java Thu Feb  9 07:32:58 2006
@@ -1,74 +1,54 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Copyright 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.
+ * $Id$
  */
 package org.apache.tuscany.das.rdb.test.customer;
 
-import org.eclipse.emf.ecore.EFactory;
 
 /**
  * <!-- begin-user-doc -->
  * The <b>Factory</b> for the model.
  * It provides a create method for each non-abstract class of the model.
  * <!-- end-user-doc -->
- * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage
  * @generated
  */
-public interface CustomerFactory extends EFactory {
-	/**
-	 * The singleton instance of the factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	CustomerFactory eINSTANCE = new org.apache.tuscany.das.rdb.test.customer.impl.CustomerFactoryImpl();
-
-	/**
-	 * Returns a new object of class '<em>An Order</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>An Order</em>'.
-	 * @generated
-	 */
-	AnOrder createAnOrder();
-
-	/**
-	 * Returns a new object of class '<em>Customer</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Customer</em>'.
-	 * @generated
-	 */
-	Customer createCustomer();
-
-	/**
-	 * Returns a new object of class '<em>Data Graph Root</em>'.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return a new object of class '<em>Data Graph Root</em>'.
-	 * @generated
-	 */
-	DataGraphRoot createDataGraphRoot();
-
-	/**
-	 * Returns the package supported by this factory.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @return the package supported by this factory.
-	 * @generated
-	 */
-	CustomerPackage getCustomerPackage();
+public interface CustomerFactory
+{
+  /**
+   * The singleton instance of the factory.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  CustomerFactory INSTANCE = org.apache.tuscany.das.rdb.test.customer.impl.CustomerFactoryImpl.eINSTANCE;
+
+  /**
+   * Returns a new object of class '<em>An Order</em>'.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @return a new object of class '<em>An Order</em>'.
+   * @generated
+   */
+  AnOrder createAnOrder();
+
+  /**
+   * Returns a new object of class '<em>Customer</em>'.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @return a new object of class '<em>Customer</em>'.
+   * @generated
+   */
+  Customer createCustomer();
+
+  /**
+   * Returns a new object of class '<em>Data Graph Root</em>'.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @return a new object of class '<em>Data Graph Root</em>'.
+   * @generated
+   */
+  DataGraphRoot createDataGraphRoot();
 
 } //CustomerFactory

Modified: incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/DataGraphRoot.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/DataGraphRoot.java?rev=376322&r1=376321&r2=376322&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/DataGraphRoot.java (original)
+++ incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/DataGraphRoot.java Thu Feb  9 07:32:58 2006
@@ -1,18 +1,8 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Copyright 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.
+ * $Id$
  */
 package org.apache.tuscany.das.rdb.test.customer;
 
@@ -31,43 +21,36 @@
  * </ul>
  * </p>
  *
- * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getDataGraphRoot()
- * @model extendedMetaData="name='DataGraphRoot' kind='elementOnly'"
  * @generated
  */
-public interface DataGraphRoot {
-	/**
-	 * Returns the value of the '<em><b>Customers</b></em>' containment reference list.
-	 * The list contents are of type {@link org.apache.tuscany.das.rdb.test.customer.Customer}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Customers</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>Customers</em>' containment reference list.
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getDataGraphRoot_Customers()
-	 * @model type="org.apache.tuscany.das.rdb.test.customer.Customer" containment="true" resolveProxies="false"
-	 *        extendedMetaData="kind='element' name='customers'"
-	 * @generated
-	 */
-	List getCustomers();
+public interface DataGraphRoot
+{
+  /**
+   * Returns the value of the '<em><b>Customers</b></em>' containment reference list.
+   * The list contents are of type {@link org.apache.tuscany.das.rdb.test.customer.Customer}.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Customers</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>Customers</em>' containment reference list.
+   * @generated
+   */
+  List getCustomers();
 
-	/**
-	 * Returns the value of the '<em><b>Orders</b></em>' containment reference list.
-	 * The list contents are of type {@link org.apache.tuscany.das.rdb.test.customer.AnOrder}.
-	 * <!-- begin-user-doc -->
-	 * <p>
-	 * If the meaning of the '<em>Orders</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>Orders</em>' containment reference list.
-	 * @see org.apache.tuscany.das.rdb.test.customer.CustomerPackage#getDataGraphRoot_Orders()
-	 * @model type="org.apache.tuscany.das.rdb.test.customer.AnOrder" containment="true" resolveProxies="false"
-	 *        extendedMetaData="kind='element' name='orders'"
-	 * @generated
-	 */
-	List getOrders();
+  /**
+   * Returns the value of the '<em><b>Orders</b></em>' containment reference list.
+   * The list contents are of type {@link org.apache.tuscany.das.rdb.test.customer.AnOrder}.
+   * <!-- begin-user-doc -->
+   * <p>
+   * If the meaning of the '<em>Orders</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>Orders</em>' containment reference list.
+   * @generated
+   */
+  List getOrders();
 
 } // DataGraphRoot

Modified: incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/impl/AnOrderImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/impl/AnOrderImpl.java?rev=376322&r1=376321&r2=376322&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/impl/AnOrderImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/test/java/org/apache/tuscany/das/rdb/test/customer/impl/AnOrderImpl.java Thu Feb  9 07:32:58 2006
@@ -1,33 +1,21 @@
 /**
+ * <copyright>
+ * </copyright>
  *
- *  Copyright 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.
+ * $Id$
  */
 package org.apache.tuscany.das.rdb.test.customer.impl;
 
 import org.apache.tuscany.das.rdb.test.customer.AnOrder;
-import org.apache.tuscany.das.rdb.test.customer.CustomerPackage;
+
+import org.apache.tuscany.sdo.impl.DataObjectImpl;
 
 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.sdo.impl.EDataObjectImpl;
-
 /**
  * <!-- begin-user-doc -->
  * An implementation of the model object '<em><b>An Order</b></em>'.
@@ -44,394 +32,420 @@
  *
  * @generated
  */
-public class AnOrderImpl extends EDataObjectImpl implements AnOrder {
-	/**
-	 * The default value of the '{@link #getID() <em>ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getID()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final int ID_EDEFAULT = 0;
-
-	/**
-	 * The cached value of the '{@link #getID() <em>ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getID()
-	 * @generated
-	 * @ordered
-	 */
-	protected int iD = ID_EDEFAULT;
-
-	/**
-	 * This is true if the ID attribute has been set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean iDESet = false;
-
-	/**
-	 * The default value of the '{@link #getProduct() <em>Product</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getProduct()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String PRODUCT_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getProduct() <em>Product</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getProduct()
-	 * @generated
-	 * @ordered
-	 */
-	protected String product = PRODUCT_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getQuantity()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final int QUANTITY_EDEFAULT = 0;
-
-	/**
-	 * The cached value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getQuantity()
-	 * @generated
-	 * @ordered
-	 */
-	protected int quantity = QUANTITY_EDEFAULT;
-
-	/**
-	 * This is true if the Quantity attribute has been set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean quantityESet = false;
-
-	/**
-	 * The default value of the '{@link #getCustomerID() <em>Customer ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getCustomerID()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final int CUSTOMER_ID_EDEFAULT = 0;
-
-	/**
-	 * The cached value of the '{@link #getCustomerID() <em>Customer ID</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getCustomerID()
-	 * @generated
-	 * @ordered
-	 */
-	protected int customerID = CUSTOMER_ID_EDEFAULT;
-
-	/**
-	 * This is true if the Customer ID attribute has been set.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 * @ordered
-	 */
-	protected boolean customerIDESet = false;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected AnOrderImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return CustomerPackage.eINSTANCE.getAnOrder();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public int getID() {
-		return iD;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setID(int newID) {
-		int oldID = iD;
-		iD = newID;
-		boolean oldIDESet = iDESet;
-		iDESet = true;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackage.AN_ORDER__ID, oldID, iD, !oldIDESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void unsetID() {
-		int oldID = iD;
-		boolean oldIDESet = iDESet;
-		iD = ID_EDEFAULT;
-		iDESet = false;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.UNSET, CustomerPackage.AN_ORDER__ID, oldID, ID_EDEFAULT, oldIDESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isSetID() {
-		return iDESet;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getProduct() {
-		return product;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setProduct(String newProduct) {
-		String oldProduct = product;
-		product = newProduct;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackage.AN_ORDER__PRODUCT, oldProduct, product));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public int getQuantity() {
-		return quantity;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setQuantity(int newQuantity) {
-		int oldQuantity = quantity;
-		quantity = newQuantity;
-		boolean oldQuantityESet = quantityESet;
-		quantityESet = true;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackage.AN_ORDER__QUANTITY, oldQuantity, quantity, !oldQuantityESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void unsetQuantity() {
-		int oldQuantity = quantity;
-		boolean oldQuantityESet = quantityESet;
-		quantity = QUANTITY_EDEFAULT;
-		quantityESet = false;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.UNSET, CustomerPackage.AN_ORDER__QUANTITY, oldQuantity, QUANTITY_EDEFAULT, oldQuantityESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isSetQuantity() {
-		return quantityESet;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public int getCustomerID() {
-		return customerID;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setCustomerID(int newCustomerID) {
-		int oldCustomerID = customerID;
-		customerID = newCustomerID;
-		boolean oldCustomerIDESet = customerIDESet;
-		customerIDESet = true;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackage.AN_ORDER__CUSTOMER_ID, oldCustomerID, customerID, !oldCustomerIDESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void unsetCustomerID() {
-		int oldCustomerID = customerID;
-		boolean oldCustomerIDESet = customerIDESet;
-		customerID = CUSTOMER_ID_EDEFAULT;
-		customerIDESet = false;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.UNSET, CustomerPackage.AN_ORDER__CUSTOMER_ID, oldCustomerID, CUSTOMER_ID_EDEFAULT, oldCustomerIDESet));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean isSetCustomerID() {
-		return customerIDESet;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CustomerPackage.AN_ORDER__ID:
-				return new Integer(getID());
-			case CustomerPackage.AN_ORDER__PRODUCT:
-				return getProduct();
-			case CustomerPackage.AN_ORDER__QUANTITY:
-				return new Integer(getQuantity());
-			case CustomerPackage.AN_ORDER__CUSTOMER_ID:
-				return new Integer(getCustomerID());
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CustomerPackage.AN_ORDER__ID:
-				setID(((Integer)newValue).intValue());
-				return;
-			case CustomerPackage.AN_ORDER__PRODUCT:
-				setProduct((String)newValue);
-				return;
-			case CustomerPackage.AN_ORDER__QUANTITY:
-				setQuantity(((Integer)newValue).intValue());
-				return;
-			case CustomerPackage.AN_ORDER__CUSTOMER_ID:
-				setCustomerID(((Integer)newValue).intValue());
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CustomerPackage.AN_ORDER__ID:
-				unsetID();
-				return;
-			case CustomerPackage.AN_ORDER__PRODUCT:
-				setProduct(PRODUCT_EDEFAULT);
-				return;
-			case CustomerPackage.AN_ORDER__QUANTITY:
-				unsetQuantity();
-				return;
-			case CustomerPackage.AN_ORDER__CUSTOMER_ID:
-				unsetCustomerID();
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case CustomerPackage.AN_ORDER__ID:
-				return isSetID();
-			case CustomerPackage.AN_ORDER__PRODUCT:
-				return PRODUCT_EDEFAULT == null ? product != null : !PRODUCT_EDEFAULT.equals(product);
-			case CustomerPackage.AN_ORDER__QUANTITY:
-				return isSetQuantity();
-			case CustomerPackage.AN_ORDER__CUSTOMER_ID:
-				return isSetCustomerID();
-		}
-		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(" (iD: ");
-		if (iDESet) result.append(iD); else result.append("<unset>");
-		result.append(", product: ");
-		result.append(product);
-		result.append(", quantity: ");
-		if (quantityESet) result.append(quantity); else result.append("<unset>");
-		result.append(", customerID: ");
-		if (customerIDESet) result.append(customerID); else result.append("<unset>");
-		result.append(')');
-		return result.toString();
-	}
+public class AnOrderImpl extends DataObjectImpl implements AnOrder
+{
+  /**
+   * The default value of the '{@link #getID() <em>ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getID()
+   * @generated
+   * @ordered
+   */
+  protected static final int ID_EDEFAULT = 0;
+
+  /**
+   * The cached value of the '{@link #getID() <em>ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getID()
+   * @generated
+   * @ordered
+   */
+  protected int iD = ID_EDEFAULT;
+
+  /**
+   * This is true if the ID attribute has been set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  protected boolean iDESet = false;
+
+  /**
+   * The default value of the '{@link #getProduct() <em>Product</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getProduct()
+   * @generated
+   * @ordered
+   */
+  protected static final String PRODUCT_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getProduct() <em>Product</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getProduct()
+   * @generated
+   * @ordered
+   */
+  protected String product = PRODUCT_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getQuantity()
+   * @generated
+   * @ordered
+   */
+  protected static final int QUANTITY_EDEFAULT = 0;
+
+  /**
+   * The cached value of the '{@link #getQuantity() <em>Quantity</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getQuantity()
+   * @generated
+   * @ordered
+   */
+  protected int quantity = QUANTITY_EDEFAULT;
+
+  /**
+   * This is true if the Quantity attribute has been set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  protected boolean quantityESet = false;
+
+  /**
+   * The default value of the '{@link #getCustomerID() <em>Customer ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getCustomerID()
+   * @generated
+   * @ordered
+   */
+  protected static final int CUSTOMER_ID_EDEFAULT = 0;
+
+  /**
+   * The cached value of the '{@link #getCustomerID() <em>Customer ID</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getCustomerID()
+   * @generated
+   * @ordered
+   */
+  protected int customerID = CUSTOMER_ID_EDEFAULT;
+
+  /**
+   * This is true if the Customer ID attribute has been set.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   * @ordered
+   */
+  protected boolean customerIDESet = false;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected AnOrderImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return CustomerPackageImpl.Literals.AN_ORDER;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public int getID()
+  {
+    return iD;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setID(int newID)
+  {
+    int oldID = iD;
+    iD = newID;
+    boolean oldIDESet = iDESet;
+    iDESet = true;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackageImpl.AN_ORDER__ID, oldID, iD, !oldIDESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void unsetID()
+  {
+    int oldID = iD;
+    boolean oldIDESet = iDESet;
+    iD = ID_EDEFAULT;
+    iDESet = false;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.UNSET, CustomerPackageImpl.AN_ORDER__ID, oldID, ID_EDEFAULT, oldIDESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isSetID()
+  {
+    return iDESet;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getProduct()
+  {
+    return product;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setProduct(String newProduct)
+  {
+    String oldProduct = product;
+    product = newProduct;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackageImpl.AN_ORDER__PRODUCT, oldProduct, product));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public int getQuantity()
+  {
+    return quantity;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setQuantity(int newQuantity)
+  {
+    int oldQuantity = quantity;
+    quantity = newQuantity;
+    boolean oldQuantityESet = quantityESet;
+    quantityESet = true;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackageImpl.AN_ORDER__QUANTITY, oldQuantity, quantity, !oldQuantityESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void unsetQuantity()
+  {
+    int oldQuantity = quantity;
+    boolean oldQuantityESet = quantityESet;
+    quantity = QUANTITY_EDEFAULT;
+    quantityESet = false;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.UNSET, CustomerPackageImpl.AN_ORDER__QUANTITY, oldQuantity, QUANTITY_EDEFAULT, oldQuantityESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isSetQuantity()
+  {
+    return quantityESet;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public int getCustomerID()
+  {
+    return customerID;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setCustomerID(int newCustomerID)
+  {
+    int oldCustomerID = customerID;
+    customerID = newCustomerID;
+    boolean oldCustomerIDESet = customerIDESet;
+    customerIDESet = true;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, CustomerPackageImpl.AN_ORDER__CUSTOMER_ID, oldCustomerID, customerID, !oldCustomerIDESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void unsetCustomerID()
+  {
+    int oldCustomerID = customerID;
+    boolean oldCustomerIDESet = customerIDESet;
+    customerID = CUSTOMER_ID_EDEFAULT;
+    customerIDESet = false;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.UNSET, CustomerPackageImpl.AN_ORDER__CUSTOMER_ID, oldCustomerID, CUSTOMER_ID_EDEFAULT, oldCustomerIDESet));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean isSetCustomerID()
+  {
+    return customerIDESet;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case CustomerPackageImpl.AN_ORDER__ID:
+        return new Integer(getID());
+      case CustomerPackageImpl.AN_ORDER__PRODUCT:
+        return getProduct();
+      case CustomerPackageImpl.AN_ORDER__QUANTITY:
+        return new Integer(getQuantity());
+      case CustomerPackageImpl.AN_ORDER__CUSTOMER_ID:
+        return new Integer(getCustomerID());
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case CustomerPackageImpl.AN_ORDER__ID:
+        setID(((Integer)newValue).intValue());
+        return;
+      case CustomerPackageImpl.AN_ORDER__PRODUCT:
+        setProduct((String)newValue);
+        return;
+      case CustomerPackageImpl.AN_ORDER__QUANTITY:
+        setQuantity(((Integer)newValue).intValue());
+        return;
+      case CustomerPackageImpl.AN_ORDER__CUSTOMER_ID:
+        setCustomerID(((Integer)newValue).intValue());
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case CustomerPackageImpl.AN_ORDER__ID:
+        unsetID();
+        return;
+      case CustomerPackageImpl.AN_ORDER__PRODUCT:
+        setProduct(PRODUCT_EDEFAULT);
+        return;
+      case CustomerPackageImpl.AN_ORDER__QUANTITY:
+        unsetQuantity();
+        return;
+      case CustomerPackageImpl.AN_ORDER__CUSTOMER_ID:
+        unsetCustomerID();
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case CustomerPackageImpl.AN_ORDER__ID:
+        return isSetID();
+      case CustomerPackageImpl.AN_ORDER__PRODUCT:
+        return PRODUCT_EDEFAULT == null ? product != null : !PRODUCT_EDEFAULT.equals(product);
+      case CustomerPackageImpl.AN_ORDER__QUANTITY:
+        return isSetQuantity();
+      case CustomerPackageImpl.AN_ORDER__CUSTOMER_ID:
+        return isSetCustomerID();
+    }
+    return super.eIsSet(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String toString()
+  {
+    if (eIsProxy()) return super.toString();
+
+    StringBuffer result = new StringBuffer(super.toString());
+    result.append(" (iD: ");
+    if (iDESet) result.append(iD); else result.append("<unset>");
+    result.append(", product: ");
+    result.append(product);
+    result.append(", quantity: ");
+    if (quantityESet) result.append(quantity); else result.append("<unset>");
+    result.append(", customerID: ");
+    if (customerIDESet) result.append(customerID); else result.append("<unset>");
+    result.append(')');
+    return result.toString();
+  }
 
 } //AnOrderImpl



Mime
View raw message