You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by kw...@apache.org on 2006/02/07 21:39:54 UTC

svn commit: r375688 [5/6] - in /incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config: ./ impl/ wrapper/

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConnectionPropertiesImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConnectionPropertiesImpl.java?rev=375688&r1=375687&r2=375688&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConnectionPropertiesImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ConnectionPropertiesImpl.java Tue Feb  7 12:39:51 2006
@@ -1,32 +1,20 @@
 /**
-*
-*  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.
-*/
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
 package org.apache.tuscany.das.rdb.config.impl;
 
-import org.apache.tuscany.das.rdb.config.Config;
-import org.apache.tuscany.das.rdb.config.ConfigPackage;
 import org.apache.tuscany.das.rdb.config.ConnectionProperties;
+
+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.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.EcoreUtil;
 
 /**
  * <!-- begin-user-doc -->
@@ -35,452 +23,433 @@
  * <p>
  * The following features are implemented:
  * <ul>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getConfig <em>Config</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getDataSource <em>Data Source</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getDriverClassName <em>Driver Class Name</em>}</li>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getDriverURL <em>Driver URL</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getDriverPassword <em>Driver Password</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getDriverURL <em>Driver URL</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getDriverUserName <em>Driver User Name</em>}</li>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ConnectionPropertiesImpl#getConfig <em>Config</em>}</li>
  * </ul>
  * </p>
  *
  * @generated
  */
-public class ConnectionPropertiesImpl extends EObjectImpl implements ConnectionProperties {
-	/**
-	 * The default value of the '{@link #getDataSource() <em>Data Source</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDataSource()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String DATA_SOURCE_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getDataSource() <em>Data Source</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDataSource()
-	 * @generated
-	 * @ordered
-	 */
-	protected String dataSource = DATA_SOURCE_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getDriverClassName() <em>Driver Class Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverClassName()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String DRIVER_CLASS_NAME_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getDriverClassName() <em>Driver Class Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverClassName()
-	 * @generated
-	 * @ordered
-	 */
-	protected String driverClassName = DRIVER_CLASS_NAME_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getDriverURL() <em>Driver URL</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverURL()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String DRIVER_URL_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getDriverURL() <em>Driver URL</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverURL()
-	 * @generated
-	 * @ordered
-	 */
-	protected String driverURL = DRIVER_URL_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getDriverPassword() <em>Driver Password</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverPassword()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String DRIVER_PASSWORD_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getDriverPassword() <em>Driver Password</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverPassword()
-	 * @generated
-	 * @ordered
-	 */
-	protected String driverPassword = DRIVER_PASSWORD_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getDriverUserName() <em>Driver User Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverUserName()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String DRIVER_USER_NAME_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getDriverUserName() <em>Driver User Name</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getDriverUserName()
-	 * @generated
-	 * @ordered
-	 */
-	protected String driverUserName = DRIVER_USER_NAME_EDEFAULT;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected ConnectionPropertiesImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return ConfigPackage.eINSTANCE.getConnectionProperties();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getDataSource() {
-		return dataSource;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setDataSource(String newDataSource) {
-		String oldDataSource = dataSource;
-		dataSource = newDataSource;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONNECTION_PROPERTIES__DATA_SOURCE, oldDataSource, dataSource));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getDriverClassName() {
-		return driverClassName;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setDriverClassName(String newDriverClassName) {
-		String oldDriverClassName = driverClassName;
-		driverClassName = newDriverClassName;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME, oldDriverClassName, driverClassName));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getDriverURL() {
-		return driverURL;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setDriverURL(String newDriverURL) {
-		String oldDriverURL = driverURL;
-		driverURL = newDriverURL;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONNECTION_PROPERTIES__DRIVER_URL, oldDriverURL, driverURL));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getDriverPassword() {
-		return driverPassword;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setDriverPassword(String newDriverPassword) {
-		String oldDriverPassword = driverPassword;
-		driverPassword = newDriverPassword;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONNECTION_PROPERTIES__DRIVER_PASSWORD, oldDriverPassword, driverPassword));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getDriverUserName() {
-		return driverUserName;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setDriverUserName(String newDriverUserName) {
-		String oldDriverUserName = driverUserName;
-		driverUserName = newDriverUserName;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONNECTION_PROPERTIES__DRIVER_USER_NAME, oldDriverUserName, driverUserName));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Config getConfig() {
-		if (eContainerFeatureID != ConfigPackage.CONNECTION_PROPERTIES__CONFIG) return null;
-		return (Config)eContainer;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setConfig(Config newConfig) {
-		if (newConfig != eContainer || (eContainerFeatureID != ConfigPackage.CONNECTION_PROPERTIES__CONFIG && newConfig != null)) {
-			if (EcoreUtil.isAncestor(this, newConfig))
-				throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
-			NotificationChain msgs = null;
-			if (eContainer != null)
-				msgs = eBasicRemoveFromContainer(msgs);
-			if (newConfig != null)
-				msgs = ((InternalEObject)newConfig).eInverseAdd(this, ConfigPackage.CONFIG__CONNECTION_PROPERTIES, Config.class, msgs);
-			msgs = eBasicSetContainer((InternalEObject)newConfig, ConfigPackage.CONNECTION_PROPERTIES__CONFIG, msgs);
-			if (msgs != null) msgs.dispatch();
-		}
-		else if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.CONNECTION_PROPERTIES__CONFIG, newConfig, newConfig));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-		if (featureID >= 0) {
-			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-				case ConfigPackage.CONNECTION_PROPERTIES__CONFIG:
-					if (eContainer != null)
-						msgs = eBasicRemoveFromContainer(msgs);
-					return eBasicSetContainer(otherEnd, ConfigPackage.CONNECTION_PROPERTIES__CONFIG, msgs);
-				default:
-					return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		if (eContainer != null)
-			msgs = eBasicRemoveFromContainer(msgs);
-		return eBasicSetContainer(otherEnd, featureID, msgs);
-	}
-
-	/**
-	 * <!-- 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 ConfigPackage.CONNECTION_PROPERTIES__CONFIG:
-					return eBasicSetContainer(null, ConfigPackage.CONNECTION_PROPERTIES__CONFIG, msgs);
-				default:
-					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		return eBasicSetContainer(null, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
-		if (eContainerFeatureID >= 0) {
-			switch (eContainerFeatureID) {
-				case ConfigPackage.CONNECTION_PROPERTIES__CONFIG:
-					return eContainer.eInverseRemove(this, ConfigPackage.CONFIG__CONNECTION_PROPERTIES, Config.class, msgs);
-				default:
-					return eDynamicBasicRemoveFromContainer(msgs);
-			}
-		}
-		return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONNECTION_PROPERTIES__DATA_SOURCE:
-				return getDataSource();
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
-				return getDriverClassName();
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_URL:
-				return getDriverURL();
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
-				return getDriverPassword();
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
-				return getDriverUserName();
-			case ConfigPackage.CONNECTION_PROPERTIES__CONFIG:
-				return getConfig();
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONNECTION_PROPERTIES__DATA_SOURCE:
-				setDataSource((String)newValue);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
-				setDriverClassName((String)newValue);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_URL:
-				setDriverURL((String)newValue);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
-				setDriverPassword((String)newValue);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
-				setDriverUserName((String)newValue);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__CONFIG:
-				setConfig((Config)newValue);
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONNECTION_PROPERTIES__DATA_SOURCE:
-				setDataSource(DATA_SOURCE_EDEFAULT);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
-				setDriverClassName(DRIVER_CLASS_NAME_EDEFAULT);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_URL:
-				setDriverURL(DRIVER_URL_EDEFAULT);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
-				setDriverPassword(DRIVER_PASSWORD_EDEFAULT);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
-				setDriverUserName(DRIVER_USER_NAME_EDEFAULT);
-				return;
-			case ConfigPackage.CONNECTION_PROPERTIES__CONFIG:
-				setConfig((Config)null);
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.CONNECTION_PROPERTIES__DATA_SOURCE:
-				return DATA_SOURCE_EDEFAULT == null ? dataSource != null : !DATA_SOURCE_EDEFAULT.equals(dataSource);
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
-				return DRIVER_CLASS_NAME_EDEFAULT == null ? driverClassName != null : !DRIVER_CLASS_NAME_EDEFAULT.equals(driverClassName);
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_URL:
-				return DRIVER_URL_EDEFAULT == null ? driverURL != null : !DRIVER_URL_EDEFAULT.equals(driverURL);
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
-				return DRIVER_PASSWORD_EDEFAULT == null ? driverPassword != null : !DRIVER_PASSWORD_EDEFAULT.equals(driverPassword);
-			case ConfigPackage.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
-				return DRIVER_USER_NAME_EDEFAULT == null ? driverUserName != null : !DRIVER_USER_NAME_EDEFAULT.equals(driverUserName);
-			case ConfigPackage.CONNECTION_PROPERTIES__CONFIG:
-				return getConfig() != 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(" (dataSource: ");
-		result.append(dataSource);
-		result.append(", driverClassName: ");
-		result.append(driverClassName);
-		result.append(", driverURL: ");
-		result.append(driverURL);
-		result.append(", driverPassword: ");
-		result.append(driverPassword);
-		result.append(", driverUserName: ");
-		result.append(driverUserName);
-		result.append(')');
-		return result.toString();
-	}
+public class ConnectionPropertiesImpl extends DataObjectImpl implements ConnectionProperties
+{
+  /**
+   * The default value of the '{@link #getConfig() <em>Config</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getConfig()
+   * @generated
+   * @ordered
+   */
+  protected static final String CONFIG_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getConfig() <em>Config</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getConfig()
+   * @generated
+   * @ordered
+   */
+  protected String config = CONFIG_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getDataSource() <em>Data Source</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDataSource()
+   * @generated
+   * @ordered
+   */
+  protected static final String DATA_SOURCE_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getDataSource() <em>Data Source</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDataSource()
+   * @generated
+   * @ordered
+   */
+  protected String dataSource = DATA_SOURCE_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getDriverClassName() <em>Driver Class Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverClassName()
+   * @generated
+   * @ordered
+   */
+  protected static final String DRIVER_CLASS_NAME_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getDriverClassName() <em>Driver Class Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverClassName()
+   * @generated
+   * @ordered
+   */
+  protected String driverClassName = DRIVER_CLASS_NAME_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getDriverPassword() <em>Driver Password</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverPassword()
+   * @generated
+   * @ordered
+   */
+  protected static final String DRIVER_PASSWORD_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getDriverPassword() <em>Driver Password</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverPassword()
+   * @generated
+   * @ordered
+   */
+  protected String driverPassword = DRIVER_PASSWORD_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getDriverURL() <em>Driver URL</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverURL()
+   * @generated
+   * @ordered
+   */
+  protected static final String DRIVER_URL_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getDriverURL() <em>Driver URL</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverURL()
+   * @generated
+   * @ordered
+   */
+  protected String driverURL = DRIVER_URL_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getDriverUserName() <em>Driver User Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverUserName()
+   * @generated
+   * @ordered
+   */
+  protected static final String DRIVER_USER_NAME_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getDriverUserName() <em>Driver User Name</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getDriverUserName()
+   * @generated
+   * @ordered
+   */
+  protected String driverUserName = DRIVER_USER_NAME_EDEFAULT;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ConnectionPropertiesImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return ConfigPackageImpl.Literals.CONNECTION_PROPERTIES;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getConfig()
+  {
+    return config;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setConfig(String newConfig)
+  {
+    String oldConfig = config;
+    config = newConfig;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONNECTION_PROPERTIES__CONFIG, oldConfig, config));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getDataSource()
+  {
+    return dataSource;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setDataSource(String newDataSource)
+  {
+    String oldDataSource = dataSource;
+    dataSource = newDataSource;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONNECTION_PROPERTIES__DATA_SOURCE, oldDataSource, dataSource));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getDriverClassName()
+  {
+    return driverClassName;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setDriverClassName(String newDriverClassName)
+  {
+    String oldDriverClassName = driverClassName;
+    driverClassName = newDriverClassName;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME, oldDriverClassName, driverClassName));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getDriverPassword()
+  {
+    return driverPassword;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setDriverPassword(String newDriverPassword)
+  {
+    String oldDriverPassword = driverPassword;
+    driverPassword = newDriverPassword;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_PASSWORD, oldDriverPassword, driverPassword));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getDriverURL()
+  {
+    return driverURL;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setDriverURL(String newDriverURL)
+  {
+    String oldDriverURL = driverURL;
+    driverURL = newDriverURL;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_URL, oldDriverURL, driverURL));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getDriverUserName()
+  {
+    return driverUserName;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setDriverUserName(String newDriverUserName)
+  {
+    String oldDriverUserName = driverUserName;
+    driverUserName = newDriverUserName;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_USER_NAME, oldDriverUserName, driverUserName));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__CONFIG:
+        return getConfig();
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DATA_SOURCE:
+        return getDataSource();
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
+        return getDriverClassName();
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
+        return getDriverPassword();
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_URL:
+        return getDriverURL();
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
+        return getDriverUserName();
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__CONFIG:
+        setConfig((String)newValue);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DATA_SOURCE:
+        setDataSource((String)newValue);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
+        setDriverClassName((String)newValue);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
+        setDriverPassword((String)newValue);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_URL:
+        setDriverURL((String)newValue);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
+        setDriverUserName((String)newValue);
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__CONFIG:
+        setConfig(CONFIG_EDEFAULT);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DATA_SOURCE:
+        setDataSource(DATA_SOURCE_EDEFAULT);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
+        setDriverClassName(DRIVER_CLASS_NAME_EDEFAULT);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
+        setDriverPassword(DRIVER_PASSWORD_EDEFAULT);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_URL:
+        setDriverURL(DRIVER_URL_EDEFAULT);
+        return;
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
+        setDriverUserName(DRIVER_USER_NAME_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__CONFIG:
+        return CONFIG_EDEFAULT == null ? config != null : !CONFIG_EDEFAULT.equals(config);
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DATA_SOURCE:
+        return DATA_SOURCE_EDEFAULT == null ? dataSource != null : !DATA_SOURCE_EDEFAULT.equals(dataSource);
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_CLASS_NAME:
+        return DRIVER_CLASS_NAME_EDEFAULT == null ? driverClassName != null : !DRIVER_CLASS_NAME_EDEFAULT.equals(driverClassName);
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_PASSWORD:
+        return DRIVER_PASSWORD_EDEFAULT == null ? driverPassword != null : !DRIVER_PASSWORD_EDEFAULT.equals(driverPassword);
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_URL:
+        return DRIVER_URL_EDEFAULT == null ? driverURL != null : !DRIVER_URL_EDEFAULT.equals(driverURL);
+      case ConfigPackageImpl.CONNECTION_PROPERTIES__DRIVER_USER_NAME:
+        return DRIVER_USER_NAME_EDEFAULT == null ? driverUserName != null : !DRIVER_USER_NAME_EDEFAULT.equals(driverUserName);
+    }
+    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(" (config: ");
+    result.append(config);
+    result.append(", dataSource: ");
+    result.append(dataSource);
+    result.append(", driverClassName: ");
+    result.append(driverClassName);
+    result.append(", driverPassword: ");
+    result.append(driverPassword);
+    result.append(", driverURL: ");
+    result.append(driverURL);
+    result.append(", driverUserName: ");
+    result.append(driverUserName);
+    result.append(')');
+    return result.toString();
+  }
 
 } //ConnectionPropertiesImpl

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/KeyPairImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/KeyPairImpl.java?rev=375688&r1=375687&r2=375688&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/KeyPairImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/KeyPairImpl.java Tue Feb  7 12:39:51 2006
@@ -1,32 +1,20 @@
 /**
-*
-*  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.
-*/
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
 package org.apache.tuscany.das.rdb.config.impl;
 
-import org.apache.tuscany.das.rdb.config.ConfigPackage;
 import org.apache.tuscany.das.rdb.config.KeyPair;
-import org.apache.tuscany.das.rdb.config.Relationship;
+
+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.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.EcoreUtil;
 
 /**
  * <!-- begin-user-doc -->
@@ -35,290 +23,265 @@
  * <p>
  * The following features are implemented:
  * <ul>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.KeyPairImpl#getPrimaryKeyColumn <em>Primary Key Column</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.KeyPairImpl#getForeignKeyColumn <em>Foreign Key Column</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.KeyPairImpl#getPrimaryKeyColumn <em>Primary Key Column</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.KeyPairImpl#getRelationship <em>Relationship</em>}</li>
  * </ul>
  * </p>
  *
  * @generated
  */
-public class KeyPairImpl extends EObjectImpl implements KeyPair {
-	/**
-	 * The default value of the '{@link #getPrimaryKeyColumn() <em>Primary Key Column</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getPrimaryKeyColumn()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String PRIMARY_KEY_COLUMN_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getPrimaryKeyColumn() <em>Primary Key Column</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getPrimaryKeyColumn()
-	 * @generated
-	 * @ordered
-	 */
-	protected String primaryKeyColumn = PRIMARY_KEY_COLUMN_EDEFAULT;
-
-	/**
-	 * The default value of the '{@link #getForeignKeyColumn() <em>Foreign Key Column</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getForeignKeyColumn()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String FOREIGN_KEY_COLUMN_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getForeignKeyColumn() <em>Foreign Key Column</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getForeignKeyColumn()
-	 * @generated
-	 * @ordered
-	 */
-	protected String foreignKeyColumn = FOREIGN_KEY_COLUMN_EDEFAULT;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected KeyPairImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return ConfigPackage.eINSTANCE.getKeyPair();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getPrimaryKeyColumn() {
-		return primaryKeyColumn;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setPrimaryKeyColumn(String newPrimaryKeyColumn) {
-		String oldPrimaryKeyColumn = primaryKeyColumn;
-		primaryKeyColumn = newPrimaryKeyColumn;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.KEY_PAIR__PRIMARY_KEY_COLUMN, oldPrimaryKeyColumn, primaryKeyColumn));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getForeignKeyColumn() {
-		return foreignKeyColumn;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setForeignKeyColumn(String newForeignKeyColumn) {
-		String oldForeignKeyColumn = foreignKeyColumn;
-		foreignKeyColumn = newForeignKeyColumn;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.KEY_PAIR__FOREIGN_KEY_COLUMN, oldForeignKeyColumn, foreignKeyColumn));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Relationship getRelationship() {
-		if (eContainerFeatureID != ConfigPackage.KEY_PAIR__RELATIONSHIP) return null;
-		return (Relationship)eContainer;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setRelationship(Relationship newRelationship) {
-		if (newRelationship != eContainer || (eContainerFeatureID != ConfigPackage.KEY_PAIR__RELATIONSHIP && newRelationship != null)) {
-			if (EcoreUtil.isAncestor(this, newRelationship))
-				throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
-			NotificationChain msgs = null;
-			if (eContainer != null)
-				msgs = eBasicRemoveFromContainer(msgs);
-			if (newRelationship != null)
-				msgs = ((InternalEObject)newRelationship).eInverseAdd(this, ConfigPackage.RELATIONSHIP__KEY_PAIR, Relationship.class, msgs);
-			msgs = eBasicSetContainer((InternalEObject)newRelationship, ConfigPackage.KEY_PAIR__RELATIONSHIP, msgs);
-			if (msgs != null) msgs.dispatch();
-		}
-		else if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.KEY_PAIR__RELATIONSHIP, newRelationship, newRelationship));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-		if (featureID >= 0) {
-			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-				case ConfigPackage.KEY_PAIR__RELATIONSHIP:
-					if (eContainer != null)
-						msgs = eBasicRemoveFromContainer(msgs);
-					return eBasicSetContainer(otherEnd, ConfigPackage.KEY_PAIR__RELATIONSHIP, msgs);
-				default:
-					return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		if (eContainer != null)
-			msgs = eBasicRemoveFromContainer(msgs);
-		return eBasicSetContainer(otherEnd, featureID, msgs);
-	}
-
-	/**
-	 * <!-- 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 ConfigPackage.KEY_PAIR__RELATIONSHIP:
-					return eBasicSetContainer(null, ConfigPackage.KEY_PAIR__RELATIONSHIP, msgs);
-				default:
-					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		return eBasicSetContainer(null, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
-		if (eContainerFeatureID >= 0) {
-			switch (eContainerFeatureID) {
-				case ConfigPackage.KEY_PAIR__RELATIONSHIP:
-					return eContainer.eInverseRemove(this, ConfigPackage.RELATIONSHIP__KEY_PAIR, Relationship.class, msgs);
-				default:
-					return eDynamicBasicRemoveFromContainer(msgs);
-			}
-		}
-		return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.KEY_PAIR__PRIMARY_KEY_COLUMN:
-				return getPrimaryKeyColumn();
-			case ConfigPackage.KEY_PAIR__FOREIGN_KEY_COLUMN:
-				return getForeignKeyColumn();
-			case ConfigPackage.KEY_PAIR__RELATIONSHIP:
-				return getRelationship();
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.KEY_PAIR__PRIMARY_KEY_COLUMN:
-				setPrimaryKeyColumn((String)newValue);
-				return;
-			case ConfigPackage.KEY_PAIR__FOREIGN_KEY_COLUMN:
-				setForeignKeyColumn((String)newValue);
-				return;
-			case ConfigPackage.KEY_PAIR__RELATIONSHIP:
-				setRelationship((Relationship)newValue);
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.KEY_PAIR__PRIMARY_KEY_COLUMN:
-				setPrimaryKeyColumn(PRIMARY_KEY_COLUMN_EDEFAULT);
-				return;
-			case ConfigPackage.KEY_PAIR__FOREIGN_KEY_COLUMN:
-				setForeignKeyColumn(FOREIGN_KEY_COLUMN_EDEFAULT);
-				return;
-			case ConfigPackage.KEY_PAIR__RELATIONSHIP:
-				setRelationship((Relationship)null);
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.KEY_PAIR__PRIMARY_KEY_COLUMN:
-				return PRIMARY_KEY_COLUMN_EDEFAULT == null ? primaryKeyColumn != null : !PRIMARY_KEY_COLUMN_EDEFAULT.equals(primaryKeyColumn);
-			case ConfigPackage.KEY_PAIR__FOREIGN_KEY_COLUMN:
-				return FOREIGN_KEY_COLUMN_EDEFAULT == null ? foreignKeyColumn != null : !FOREIGN_KEY_COLUMN_EDEFAULT.equals(foreignKeyColumn);
-			case ConfigPackage.KEY_PAIR__RELATIONSHIP:
-				return getRelationship() != 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(" (primaryKeyColumn: ");
-		result.append(primaryKeyColumn);
-		result.append(", foreignKeyColumn: ");
-		result.append(foreignKeyColumn);
-		result.append(')');
-		return result.toString();
-	}
+public class KeyPairImpl extends DataObjectImpl implements KeyPair
+{
+  /**
+   * The default value of the '{@link #getForeignKeyColumn() <em>Foreign Key Column</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getForeignKeyColumn()
+   * @generated
+   * @ordered
+   */
+  protected static final String FOREIGN_KEY_COLUMN_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getForeignKeyColumn() <em>Foreign Key Column</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getForeignKeyColumn()
+   * @generated
+   * @ordered
+   */
+  protected String foreignKeyColumn = FOREIGN_KEY_COLUMN_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getPrimaryKeyColumn() <em>Primary Key Column</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPrimaryKeyColumn()
+   * @generated
+   * @ordered
+   */
+  protected static final String PRIMARY_KEY_COLUMN_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getPrimaryKeyColumn() <em>Primary Key Column</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getPrimaryKeyColumn()
+   * @generated
+   * @ordered
+   */
+  protected String primaryKeyColumn = PRIMARY_KEY_COLUMN_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getRelationship() <em>Relationship</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getRelationship()
+   * @generated
+   * @ordered
+   */
+  protected static final String RELATIONSHIP_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getRelationship() <em>Relationship</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getRelationship()
+   * @generated
+   * @ordered
+   */
+  protected String relationship = RELATIONSHIP_EDEFAULT;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected KeyPairImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return ConfigPackageImpl.Literals.KEY_PAIR;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getForeignKeyColumn()
+  {
+    return foreignKeyColumn;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setForeignKeyColumn(String newForeignKeyColumn)
+  {
+    String oldForeignKeyColumn = foreignKeyColumn;
+    foreignKeyColumn = newForeignKeyColumn;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.KEY_PAIR__FOREIGN_KEY_COLUMN, oldForeignKeyColumn, foreignKeyColumn));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getPrimaryKeyColumn()
+  {
+    return primaryKeyColumn;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setPrimaryKeyColumn(String newPrimaryKeyColumn)
+  {
+    String oldPrimaryKeyColumn = primaryKeyColumn;
+    primaryKeyColumn = newPrimaryKeyColumn;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.KEY_PAIR__PRIMARY_KEY_COLUMN, oldPrimaryKeyColumn, primaryKeyColumn));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getRelationship()
+  {
+    return relationship;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setRelationship(String newRelationship)
+  {
+    String oldRelationship = relationship;
+    relationship = newRelationship;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.KEY_PAIR__RELATIONSHIP, oldRelationship, relationship));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.KEY_PAIR__FOREIGN_KEY_COLUMN:
+        return getForeignKeyColumn();
+      case ConfigPackageImpl.KEY_PAIR__PRIMARY_KEY_COLUMN:
+        return getPrimaryKeyColumn();
+      case ConfigPackageImpl.KEY_PAIR__RELATIONSHIP:
+        return getRelationship();
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.KEY_PAIR__FOREIGN_KEY_COLUMN:
+        setForeignKeyColumn((String)newValue);
+        return;
+      case ConfigPackageImpl.KEY_PAIR__PRIMARY_KEY_COLUMN:
+        setPrimaryKeyColumn((String)newValue);
+        return;
+      case ConfigPackageImpl.KEY_PAIR__RELATIONSHIP:
+        setRelationship((String)newValue);
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.KEY_PAIR__FOREIGN_KEY_COLUMN:
+        setForeignKeyColumn(FOREIGN_KEY_COLUMN_EDEFAULT);
+        return;
+      case ConfigPackageImpl.KEY_PAIR__PRIMARY_KEY_COLUMN:
+        setPrimaryKeyColumn(PRIMARY_KEY_COLUMN_EDEFAULT);
+        return;
+      case ConfigPackageImpl.KEY_PAIR__RELATIONSHIP:
+        setRelationship(RELATIONSHIP_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.KEY_PAIR__FOREIGN_KEY_COLUMN:
+        return FOREIGN_KEY_COLUMN_EDEFAULT == null ? foreignKeyColumn != null : !FOREIGN_KEY_COLUMN_EDEFAULT.equals(foreignKeyColumn);
+      case ConfigPackageImpl.KEY_PAIR__PRIMARY_KEY_COLUMN:
+        return PRIMARY_KEY_COLUMN_EDEFAULT == null ? primaryKeyColumn != null : !PRIMARY_KEY_COLUMN_EDEFAULT.equals(primaryKeyColumn);
+      case ConfigPackageImpl.KEY_PAIR__RELATIONSHIP:
+        return RELATIONSHIP_EDEFAULT == null ? relationship != null : !RELATIONSHIP_EDEFAULT.equals(relationship);
+    }
+    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(" (foreignKeyColumn: ");
+    result.append(foreignKeyColumn);
+    result.append(", primaryKeyColumn: ");
+    result.append(primaryKeyColumn);
+    result.append(", relationship: ");
+    result.append(relationship);
+    result.append(')');
+    return result.toString();
+  }
 
-} 
+} //KeyPairImpl

Modified: incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ParameterImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ParameterImpl.java?rev=375688&r1=375687&r2=375688&view=diff
==============================================================================
--- incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ParameterImpl.java (original)
+++ incubator/tuscany/java/das/rdb/src/main/java/org/apache/tuscany/das/rdb/config/impl/ParameterImpl.java Tue Feb  7 12:39:51 2006
@@ -6,21 +6,15 @@
  */
 package org.apache.tuscany.das.rdb.config.impl;
 
-import org.apache.tuscany.das.rdb.config.Command;
-import org.apache.tuscany.das.rdb.config.ConfigPackage;
 import org.apache.tuscany.das.rdb.config.Parameter;
 
+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.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.EcoreUtil;
 
 /**
  * <!-- begin-user-doc -->
@@ -29,290 +23,265 @@
  * <p>
  * The following features are implemented:
  * <ul>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ParameterImpl#getName <em>Name</em>}</li>
- *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ParameterImpl#getType <em>Type</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ParameterImpl#getColumnType <em>Column Type</em>}</li>
  *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ParameterImpl#getCommand <em>Command</em>}</li>
+ *   <li>{@link org.apache.tuscany.das.rdb.config.impl.ParameterImpl#getName <em>Name</em>}</li>
  * </ul>
  * </p>
  *
  * @generated
  */
-public class ParameterImpl extends EObjectImpl implements Parameter {
-	/**
-	 * 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 #getType() <em>Type</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getType()
-	 * @generated
-	 * @ordered
-	 */
-	protected static final String TYPE_EDEFAULT = null;
-
-	/**
-	 * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @see #getType()
-	 * @generated
-	 * @ordered
-	 */
-	protected String type = TYPE_EDEFAULT;
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected ParameterImpl() {
-		super();
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	protected EClass eStaticClass() {
-		return ConfigPackage.eINSTANCE.getParameter();
-	}
-
-	/**
-	 * <!-- 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, ConfigPackage.PARAMETER__NAME, oldName, name));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public String getType() {
-		return type;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setType(String newType) {
-		String oldType = type;
-		type = newType;
-		if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.PARAMETER__TYPE, oldType, type));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Command getCommand() {
-		if (eContainerFeatureID != ConfigPackage.PARAMETER__COMMAND) return null;
-		return (Command)eContainer;
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void setCommand(Command newCommand) {
-		if (newCommand != eContainer || (eContainerFeatureID != ConfigPackage.PARAMETER__COMMAND && newCommand != null)) {
-			if (EcoreUtil.isAncestor(this, newCommand))
-				throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
-			NotificationChain msgs = null;
-			if (eContainer != null)
-				msgs = eBasicRemoveFromContainer(msgs);
-			if (newCommand != null)
-				msgs = ((InternalEObject)newCommand).eInverseAdd(this, ConfigPackage.COMMAND__PARAMETER, Command.class, msgs);
-			msgs = eBasicSetContainer((InternalEObject)newCommand, ConfigPackage.PARAMETER__COMMAND, msgs);
-			if (msgs != null) msgs.dispatch();
-		}
-		else if (eNotificationRequired())
-			eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackage.PARAMETER__COMMAND, newCommand, newCommand));
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
-		if (featureID >= 0) {
-			switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
-				case ConfigPackage.PARAMETER__COMMAND:
-					if (eContainer != null)
-						msgs = eBasicRemoveFromContainer(msgs);
-					return eBasicSetContainer(otherEnd, ConfigPackage.PARAMETER__COMMAND, msgs);
-				default:
-					return eDynamicInverseAdd(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		if (eContainer != null)
-			msgs = eBasicRemoveFromContainer(msgs);
-		return eBasicSetContainer(otherEnd, featureID, msgs);
-	}
-
-	/**
-	 * <!-- 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 ConfigPackage.PARAMETER__COMMAND:
-					return eBasicSetContainer(null, ConfigPackage.PARAMETER__COMMAND, msgs);
-				default:
-					return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
-			}
-		}
-		return eBasicSetContainer(null, featureID, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs) {
-		if (eContainerFeatureID >= 0) {
-			switch (eContainerFeatureID) {
-				case ConfigPackage.PARAMETER__COMMAND:
-					return eContainer.eInverseRemove(this, ConfigPackage.COMMAND__PARAMETER, Command.class, msgs);
-				default:
-					return eDynamicBasicRemoveFromContainer(msgs);
-			}
-		}
-		return eContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - eContainerFeatureID, null, msgs);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public Object eGet(EStructuralFeature eFeature, boolean resolve) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.PARAMETER__NAME:
-				return getName();
-			case ConfigPackage.PARAMETER__TYPE:
-				return getType();
-			case ConfigPackage.PARAMETER__COMMAND:
-				return getCommand();
-		}
-		return eDynamicGet(eFeature, resolve);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eSet(EStructuralFeature eFeature, Object newValue) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.PARAMETER__NAME:
-				setName((String)newValue);
-				return;
-			case ConfigPackage.PARAMETER__TYPE:
-				setType((String)newValue);
-				return;
-			case ConfigPackage.PARAMETER__COMMAND:
-				setCommand((Command)newValue);
-				return;
-		}
-		eDynamicSet(eFeature, newValue);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public void eUnset(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.PARAMETER__NAME:
-				setName(NAME_EDEFAULT);
-				return;
-			case ConfigPackage.PARAMETER__TYPE:
-				setType(TYPE_EDEFAULT);
-				return;
-			case ConfigPackage.PARAMETER__COMMAND:
-				setCommand((Command)null);
-				return;
-		}
-		eDynamicUnset(eFeature);
-	}
-
-	/**
-	 * <!-- begin-user-doc -->
-	 * <!-- end-user-doc -->
-	 * @generated
-	 */
-	public boolean eIsSet(EStructuralFeature eFeature) {
-		switch (eDerivedStructuralFeatureID(eFeature)) {
-			case ConfigPackage.PARAMETER__NAME:
-				return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
-			case ConfigPackage.PARAMETER__TYPE:
-				return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
-			case ConfigPackage.PARAMETER__COMMAND:
-				return getCommand() != 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(" (name: ");
-		result.append(name);
-		result.append(", type: ");
-		result.append(type);
-		result.append(')');
-		return result.toString();
-	}
+public class ParameterImpl extends DataObjectImpl implements Parameter
+{
+  /**
+   * The default value of the '{@link #getColumnType() <em>Column Type</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getColumnType()
+   * @generated
+   * @ordered
+   */
+  protected static final String COLUMN_TYPE_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getColumnType() <em>Column Type</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getColumnType()
+   * @generated
+   * @ordered
+   */
+  protected String columnType = COLUMN_TYPE_EDEFAULT;
+
+  /**
+   * The default value of the '{@link #getCommand() <em>Command</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getCommand()
+   * @generated
+   * @ordered
+   */
+  protected static final String COMMAND_EDEFAULT = null;
+
+  /**
+   * The cached value of the '{@link #getCommand() <em>Command</em>}' attribute.
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @see #getCommand()
+   * @generated
+   * @ordered
+   */
+  protected String command = COMMAND_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;
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected ParameterImpl()
+  {
+    super();
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  protected EClass eStaticClass()
+  {
+    return ConfigPackageImpl.Literals.PARAMETER;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getColumnType()
+  {
+    return columnType;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setColumnType(String newColumnType)
+  {
+    String oldColumnType = columnType;
+    columnType = newColumnType;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.PARAMETER__COLUMN_TYPE, oldColumnType, columnType));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public String getCommand()
+  {
+    return command;
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void setCommand(String newCommand)
+  {
+    String oldCommand = command;
+    command = newCommand;
+    if (eNotificationRequired())
+      eNotify(new ENotificationImpl(this, Notification.SET, ConfigPackageImpl.PARAMETER__COMMAND, oldCommand, command));
+  }
+
+  /**
+   * <!-- 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, ConfigPackageImpl.PARAMETER__NAME, oldName, name));
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public Object eGet(int featureID, boolean resolve, boolean coreType)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.PARAMETER__COLUMN_TYPE:
+        return getColumnType();
+      case ConfigPackageImpl.PARAMETER__COMMAND:
+        return getCommand();
+      case ConfigPackageImpl.PARAMETER__NAME:
+        return getName();
+    }
+    return super.eGet(featureID, resolve, coreType);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eSet(int featureID, Object newValue)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.PARAMETER__COLUMN_TYPE:
+        setColumnType((String)newValue);
+        return;
+      case ConfigPackageImpl.PARAMETER__COMMAND:
+        setCommand((String)newValue);
+        return;
+      case ConfigPackageImpl.PARAMETER__NAME:
+        setName((String)newValue);
+        return;
+    }
+    super.eSet(featureID, newValue);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public void eUnset(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.PARAMETER__COLUMN_TYPE:
+        setColumnType(COLUMN_TYPE_EDEFAULT);
+        return;
+      case ConfigPackageImpl.PARAMETER__COMMAND:
+        setCommand(COMMAND_EDEFAULT);
+        return;
+      case ConfigPackageImpl.PARAMETER__NAME:
+        setName(NAME_EDEFAULT);
+        return;
+    }
+    super.eUnset(featureID);
+  }
+
+  /**
+   * <!-- begin-user-doc -->
+   * <!-- end-user-doc -->
+   * @generated
+   */
+  public boolean eIsSet(int featureID)
+  {
+    switch (featureID)
+    {
+      case ConfigPackageImpl.PARAMETER__COLUMN_TYPE:
+        return COLUMN_TYPE_EDEFAULT == null ? columnType != null : !COLUMN_TYPE_EDEFAULT.equals(columnType);
+      case ConfigPackageImpl.PARAMETER__COMMAND:
+        return COMMAND_EDEFAULT == null ? command != null : !COMMAND_EDEFAULT.equals(command);
+      case ConfigPackageImpl.PARAMETER__NAME:
+        return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+    }
+    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(" (columnType: ");
+    result.append(columnType);
+    result.append(", command: ");
+    result.append(command);
+    result.append(", name: ");
+    result.append(name);
+    result.append(')');
+    return result.toString();
+  }
 
 } //ParameterImpl