You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2005/09/14 21:01:03 UTC

svn commit: r280909 [49/52] - in /geronimo/devtools/trunk/modules/eclipse-plugin: ./ features/ features/org.apache.geronimo.feature/ org.apache.geronimo.core/ org.apache.geronimo.deployment.model/ org.apache.geronimo.feature/ org.apache.geronimo.runtim...

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,225 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.pkgen.AutoIncrementTableType;
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Auto Increment Table Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.AutoIncrementTableTypeImpl#getSql <em>Sql</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.AutoIncrementTableTypeImpl#getReturnType <em>Return Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class AutoIncrementTableTypeImpl extends EObjectImpl implements AutoIncrementTableType {
+    /**
+     * The default value of the '{@link #getSql() <em>Sql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSql()
+     * @generated
+     * @ordered
+     */
+    protected static final String SQL_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getSql() <em>Sql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSql()
+     * @generated
+     * @ordered
+     */
+    protected String sql = SQL_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getReturnType()
+     * @generated
+     * @ordered
+     */
+    protected static final String RETURN_TYPE_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getReturnType() <em>Return Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getReturnType()
+     * @generated
+     * @ordered
+     */
+    protected String returnType = RETURN_TYPE_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected AutoIncrementTableTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getAutoIncrementTableType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getSql() {
+        return sql;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSql(String newSql) {
+        String oldSql = sql;
+        sql = newSql;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__SQL, oldSql, sql));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getReturnType() {
+        return returnType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setReturnType(String newReturnType) {
+        String oldReturnType = returnType;
+        returnType = newReturnType;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__RETURN_TYPE, oldReturnType, returnType));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__SQL:
+                return getSql();
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__RETURN_TYPE:
+                return getReturnType();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__SQL:
+                setSql((String)newValue);
+                return;
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__RETURN_TYPE:
+                setReturnType((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__SQL:
+                setSql(SQL_EDEFAULT);
+                return;
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__RETURN_TYPE:
+                setReturnType(RETURN_TYPE_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__SQL:
+                return SQL_EDEFAULT == null ? sql != null : !SQL_EDEFAULT.equals(sql);
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE__RETURN_TYPE:
+                return RETURN_TYPE_EDEFAULT == null ? returnType != null : !RETURN_TYPE_EDEFAULT.equals(returnType);
+        }
+        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(" (sql: ");
+        result.append(sql);
+        result.append(", returnType: ");
+        result.append(returnType);
+        result.append(')');
+        return result.toString();
+    }
+
+} //AutoIncrementTableTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,225 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.pkgen.CustomGeneratorType;
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Custom Generator Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.CustomGeneratorTypeImpl#getGeneratorName <em>Generator Name</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.CustomGeneratorTypeImpl#getPrimaryKeyClass <em>Primary Key Class</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CustomGeneratorTypeImpl extends EObjectImpl implements CustomGeneratorType {
+    /**
+     * The default value of the '{@link #getGeneratorName() <em>Generator Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGeneratorName()
+     * @generated
+     * @ordered
+     */
+    protected static final String GENERATOR_NAME_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getGeneratorName() <em>Generator Name</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getGeneratorName()
+     * @generated
+     * @ordered
+     */
+    protected String generatorName = GENERATOR_NAME_EDEFAULT;
+
+    /**
+     * The default value of the '{@link #getPrimaryKeyClass() <em>Primary Key Class</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPrimaryKeyClass()
+     * @generated
+     * @ordered
+     */
+    protected static final String PRIMARY_KEY_CLASS_EDEFAULT = null;
+
+    /**
+     * The cached value of the '{@link #getPrimaryKeyClass() <em>Primary Key Class</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getPrimaryKeyClass()
+     * @generated
+     * @ordered
+     */
+    protected String primaryKeyClass = PRIMARY_KEY_CLASS_EDEFAULT;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected CustomGeneratorTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getCustomGeneratorType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getGeneratorName() {
+        return generatorName;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setGeneratorName(String newGeneratorName) {
+        String oldGeneratorName = generatorName;
+        generatorName = newGeneratorName;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.CUSTOM_GENERATOR_TYPE__GENERATOR_NAME, oldGeneratorName, generatorName));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public String getPrimaryKeyClass() {
+        return primaryKeyClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setPrimaryKeyClass(String newPrimaryKeyClass) {
+        String oldPrimaryKeyClass = primaryKeyClass;
+        primaryKeyClass = newPrimaryKeyClass;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.CUSTOM_GENERATOR_TYPE__PRIMARY_KEY_CLASS, oldPrimaryKeyClass, primaryKeyClass));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__GENERATOR_NAME:
+                return getGeneratorName();
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__PRIMARY_KEY_CLASS:
+                return getPrimaryKeyClass();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__GENERATOR_NAME:
+                setGeneratorName((String)newValue);
+                return;
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__PRIMARY_KEY_CLASS:
+                setPrimaryKeyClass((String)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__GENERATOR_NAME:
+                setGeneratorName(GENERATOR_NAME_EDEFAULT);
+                return;
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__PRIMARY_KEY_CLASS:
+                setPrimaryKeyClass(PRIMARY_KEY_CLASS_EDEFAULT);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__GENERATOR_NAME:
+                return GENERATOR_NAME_EDEFAULT == null ? generatorName != null : !GENERATOR_NAME_EDEFAULT.equals(generatorName);
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE__PRIMARY_KEY_CLASS:
+                return PRIMARY_KEY_CLASS_EDEFAULT == null ? primaryKeyClass != null : !PRIMARY_KEY_CLASS_EDEFAULT.equals(primaryKeyClass);
+        }
+        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(" (generatorName: ");
+        result.append(generatorName);
+        result.append(", primaryKeyClass: ");
+        result.append(primaryKeyClass);
+        result.append(')');
+        return result.toString();
+    }
+
+} //CustomGeneratorTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,156 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EDataTypeEList;
+
+import org.openejb.xml.ns.pkgen.DatabaseGeneratedType;
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Database Generated Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.DatabaseGeneratedTypeImpl#getIdentityColumn <em>Identity Column</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DatabaseGeneratedTypeImpl extends EObjectImpl implements DatabaseGeneratedType {
+    /**
+     * The cached value of the '{@link #getIdentityColumn() <em>Identity Column</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getIdentityColumn()
+     * @generated
+     * @ordered
+     */
+    protected EList identityColumn = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected DatabaseGeneratedTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getDatabaseGeneratedType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EList getIdentityColumn() {
+        if (identityColumn == null) {
+            identityColumn = new EDataTypeEList(String.class, this, PkgenPackage.DATABASE_GENERATED_TYPE__IDENTITY_COLUMN);
+        }
+        return identityColumn;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DATABASE_GENERATED_TYPE__IDENTITY_COLUMN:
+                return getIdentityColumn();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DATABASE_GENERATED_TYPE__IDENTITY_COLUMN:
+                getIdentityColumn().clear();
+                getIdentityColumn().addAll((Collection)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DATABASE_GENERATED_TYPE__IDENTITY_COLUMN:
+                getIdentityColumn().clear();
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DATABASE_GENERATED_TYPE__IDENTITY_COLUMN:
+                return identityColumn != null && !identityColumn.isEmpty();
+        }
+        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(" (identityColumn: ");
+        result.append(identityColumn);
+        result.append(')');
+        return result.toString();
+    }
+
+} //DatabaseGeneratedTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,294 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.openejb.xml.ns.pkgen.DocumentRoot;
+import org.openejb.xml.ns.pkgen.KeyGeneratorType;
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Document Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.DocumentRootImpl#getKeyGenerator <em>Key Generator</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+    /**
+     * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getMixed()
+     * @generated
+     * @ordered
+     */
+    protected FeatureMap mixed = null;
+
+    /**
+     * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getXMLNSPrefixMap()
+     * @generated
+     * @ordered
+     */
+    protected EMap xMLNSPrefixMap = null;
+
+    /**
+     * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getXSISchemaLocation()
+     * @generated
+     * @ordered
+     */
+    protected EMap xSISchemaLocation = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected DocumentRootImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getDocumentRoot();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public FeatureMap getMixed() {
+        if (mixed == null) {
+            mixed = new BasicFeatureMap(this, PkgenPackage.DOCUMENT_ROOT__MIXED);
+        }
+        return mixed;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap getXMLNSPrefixMap() {
+        if (xMLNSPrefixMap == null) {
+            xMLNSPrefixMap = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, PkgenPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+        }
+        return xMLNSPrefixMap;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EMap getXSISchemaLocation() {
+        if (xSISchemaLocation == null) {
+            xSISchemaLocation = new EcoreEMap(EcorePackage.eINSTANCE.getEStringToStringMapEntry(), EStringToStringMapEntryImpl.class, this, PkgenPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+        }
+        return xSISchemaLocation;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public KeyGeneratorType getKeyGenerator() {
+        return (KeyGeneratorType)getMixed().get(PkgenPackage.eINSTANCE.getDocumentRoot_KeyGenerator(), true);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetKeyGenerator(KeyGeneratorType newKeyGenerator, NotificationChain msgs) {
+        return ((FeatureMap.Internal)getMixed()).basicAdd(PkgenPackage.eINSTANCE.getDocumentRoot_KeyGenerator(), newKeyGenerator, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setKeyGenerator(KeyGeneratorType newKeyGenerator) {
+        ((FeatureMap.Internal)getMixed()).set(PkgenPackage.eINSTANCE.getDocumentRoot_KeyGenerator(), newKeyGenerator);
+    }
+
+    /**
+     * <!-- 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 PkgenPackage.DOCUMENT_ROOT__MIXED:
+                    return ((InternalEList)getMixed()).basicRemove(otherEnd, msgs);
+                case PkgenPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                    return ((InternalEList)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+                case PkgenPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                    return ((InternalEList)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+                case PkgenPackage.DOCUMENT_ROOT__KEY_GENERATOR:
+                    return basicSetKeyGenerator(null, msgs);
+                default:
+                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+            }
+        }
+        return eBasicSetContainer(null, featureID, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DOCUMENT_ROOT__MIXED:
+                return getMixed();
+            case PkgenPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return getXMLNSPrefixMap();
+            case PkgenPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return getXSISchemaLocation();
+            case PkgenPackage.DOCUMENT_ROOT__KEY_GENERATOR:
+                return getKeyGenerator();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                getMixed().addAll((Collection)newValue);
+                return;
+            case PkgenPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                getXMLNSPrefixMap().addAll((Collection)newValue);
+                return;
+            case PkgenPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                getXSISchemaLocation().addAll((Collection)newValue);
+                return;
+            case PkgenPackage.DOCUMENT_ROOT__KEY_GENERATOR:
+                setKeyGenerator((KeyGeneratorType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DOCUMENT_ROOT__MIXED:
+                getMixed().clear();
+                return;
+            case PkgenPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                getXMLNSPrefixMap().clear();
+                return;
+            case PkgenPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                getXSISchemaLocation().clear();
+                return;
+            case PkgenPackage.DOCUMENT_ROOT__KEY_GENERATOR:
+                setKeyGenerator((KeyGeneratorType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.DOCUMENT_ROOT__MIXED:
+                return mixed != null && !mixed.isEmpty();
+            case PkgenPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+                return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+            case PkgenPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+                return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+            case PkgenPackage.DOCUMENT_ROOT__KEY_GENERATOR:
+                return getKeyGenerator() != 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(" (mixed: ");
+        result.append(mixed);
+        result.append(')');
+        return result.toString();
+    }
+
+} //DocumentRootImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,389 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.openejb.xml.ns.pkgen.AutoIncrementTableType;
+import org.openejb.xml.ns.pkgen.CustomGeneratorType;
+import org.openejb.xml.ns.pkgen.KeyGeneratorType;
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+import org.openejb.xml.ns.pkgen.SequenceTableType;
+import org.openejb.xml.ns.pkgen.SqlGeneratorType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Key Generator Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.KeyGeneratorTypeImpl#getSequenceTable <em>Sequence Table</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.KeyGeneratorTypeImpl#getAutoIncrementTable <em>Auto Increment Table</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.KeyGeneratorTypeImpl#getSqlGenerator <em>Sql Generator</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.impl.KeyGeneratorTypeImpl#getCustomGenerator <em>Custom Generator</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class KeyGeneratorTypeImpl extends EObjectImpl implements KeyGeneratorType {
+    /**
+     * The cached value of the '{@link #getSequenceTable() <em>Sequence Table</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSequenceTable()
+     * @generated
+     * @ordered
+     */
+    protected SequenceTableType sequenceTable = null;
+
+    /**
+     * The cached value of the '{@link #getAutoIncrementTable() <em>Auto Increment Table</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getAutoIncrementTable()
+     * @generated
+     * @ordered
+     */
+    protected AutoIncrementTableType autoIncrementTable = null;
+
+    /**
+     * The cached value of the '{@link #getSqlGenerator() <em>Sql Generator</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getSqlGenerator()
+     * @generated
+     * @ordered
+     */
+    protected SqlGeneratorType sqlGenerator = null;
+
+    /**
+     * The cached value of the '{@link #getCustomGenerator() <em>Custom Generator</em>}' containment reference.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #getCustomGenerator()
+     * @generated
+     * @ordered
+     */
+    protected CustomGeneratorType customGenerator = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected KeyGeneratorTypeImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected EClass eStaticClass() {
+        return PkgenPackage.eINSTANCE.getKeyGeneratorType();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SequenceTableType getSequenceTable() {
+        return sequenceTable;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetSequenceTable(SequenceTableType newSequenceTable, NotificationChain msgs) {
+        SequenceTableType oldSequenceTable = sequenceTable;
+        sequenceTable = newSequenceTable;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE, oldSequenceTable, newSequenceTable);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSequenceTable(SequenceTableType newSequenceTable) {
+        if (newSequenceTable != sequenceTable) {
+            NotificationChain msgs = null;
+            if (sequenceTable != null)
+                msgs = ((InternalEObject)sequenceTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE, null, msgs);
+            if (newSequenceTable != null)
+                msgs = ((InternalEObject)newSequenceTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE, null, msgs);
+            msgs = basicSetSequenceTable(newSequenceTable, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE, newSequenceTable, newSequenceTable));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public AutoIncrementTableType getAutoIncrementTable() {
+        return autoIncrementTable;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetAutoIncrementTable(AutoIncrementTableType newAutoIncrementTable, NotificationChain msgs) {
+        AutoIncrementTableType oldAutoIncrementTable = autoIncrementTable;
+        autoIncrementTable = newAutoIncrementTable;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE, oldAutoIncrementTable, newAutoIncrementTable);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setAutoIncrementTable(AutoIncrementTableType newAutoIncrementTable) {
+        if (newAutoIncrementTable != autoIncrementTable) {
+            NotificationChain msgs = null;
+            if (autoIncrementTable != null)
+                msgs = ((InternalEObject)autoIncrementTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE, null, msgs);
+            if (newAutoIncrementTable != null)
+                msgs = ((InternalEObject)newAutoIncrementTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE, null, msgs);
+            msgs = basicSetAutoIncrementTable(newAutoIncrementTable, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE, newAutoIncrementTable, newAutoIncrementTable));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SqlGeneratorType getSqlGenerator() {
+        return sqlGenerator;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetSqlGenerator(SqlGeneratorType newSqlGenerator, NotificationChain msgs) {
+        SqlGeneratorType oldSqlGenerator = sqlGenerator;
+        sqlGenerator = newSqlGenerator;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR, oldSqlGenerator, newSqlGenerator);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setSqlGenerator(SqlGeneratorType newSqlGenerator) {
+        if (newSqlGenerator != sqlGenerator) {
+            NotificationChain msgs = null;
+            if (sqlGenerator != null)
+                msgs = ((InternalEObject)sqlGenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR, null, msgs);
+            if (newSqlGenerator != null)
+                msgs = ((InternalEObject)newSqlGenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR, null, msgs);
+            msgs = basicSetSqlGenerator(newSqlGenerator, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR, newSqlGenerator, newSqlGenerator));
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public CustomGeneratorType getCustomGenerator() {
+        return customGenerator;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public NotificationChain basicSetCustomGenerator(CustomGeneratorType newCustomGenerator, NotificationChain msgs) {
+        CustomGeneratorType oldCustomGenerator = customGenerator;
+        customGenerator = newCustomGenerator;
+        if (eNotificationRequired()) {
+            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR, oldCustomGenerator, newCustomGenerator);
+            if (msgs == null) msgs = notification; else msgs.add(notification);
+        }
+        return msgs;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void setCustomGenerator(CustomGeneratorType newCustomGenerator) {
+        if (newCustomGenerator != customGenerator) {
+            NotificationChain msgs = null;
+            if (customGenerator != null)
+                msgs = ((InternalEObject)customGenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR, null, msgs);
+            if (newCustomGenerator != null)
+                msgs = ((InternalEObject)newCustomGenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR, null, msgs);
+            msgs = basicSetCustomGenerator(newCustomGenerator, msgs);
+            if (msgs != null) msgs.dispatch();
+        }
+        else if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR, newCustomGenerator, newCustomGenerator));
+    }
+
+    /**
+     * <!-- 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 PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE:
+                    return basicSetSequenceTable(null, msgs);
+                case PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE:
+                    return basicSetAutoIncrementTable(null, msgs);
+                case PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR:
+                    return basicSetSqlGenerator(null, msgs);
+                case PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR:
+                    return basicSetCustomGenerator(null, msgs);
+                default:
+                    return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
+            }
+        }
+        return eBasicSetContainer(null, featureID, msgs);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE:
+                return getSequenceTable();
+            case PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE:
+                return getAutoIncrementTable();
+            case PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR:
+                return getSqlGenerator();
+            case PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR:
+                return getCustomGenerator();
+        }
+        return eDynamicGet(eFeature, resolve);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eSet(EStructuralFeature eFeature, Object newValue) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE:
+                setSequenceTable((SequenceTableType)newValue);
+                return;
+            case PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE:
+                setAutoIncrementTable((AutoIncrementTableType)newValue);
+                return;
+            case PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR:
+                setSqlGenerator((SqlGeneratorType)newValue);
+                return;
+            case PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR:
+                setCustomGenerator((CustomGeneratorType)newValue);
+                return;
+        }
+        eDynamicSet(eFeature, newValue);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void eUnset(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE:
+                setSequenceTable((SequenceTableType)null);
+                return;
+            case PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE:
+                setAutoIncrementTable((AutoIncrementTableType)null);
+                return;
+            case PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR:
+                setSqlGenerator((SqlGeneratorType)null);
+                return;
+            case PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR:
+                setCustomGenerator((CustomGeneratorType)null);
+                return;
+        }
+        eDynamicUnset(eFeature);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public boolean eIsSet(EStructuralFeature eFeature) {
+        switch (eDerivedStructuralFeatureID(eFeature)) {
+            case PkgenPackage.KEY_GENERATOR_TYPE__SEQUENCE_TABLE:
+                return sequenceTable != null;
+            case PkgenPackage.KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE:
+                return autoIncrementTable != null;
+            case PkgenPackage.KEY_GENERATOR_TYPE__SQL_GENERATOR:
+                return sqlGenerator != null;
+            case PkgenPackage.KEY_GENERATOR_TYPE__CUSTOM_GENERATOR:
+                return customGenerator != null;
+        }
+        return eDynamicIsSet(eFeature);
+    }
+
+} //KeyGeneratorTypeImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,150 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.openejb.xml.ns.pkgen.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class PkgenFactoryImpl extends EFactoryImpl implements PkgenFactory {
+    /**
+     * Creates an instance of the factory.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenFactoryImpl() {
+        super();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EObject create(EClass eClass) {
+        switch (eClass.getClassifierID()) {
+            case PkgenPackage.AUTO_INCREMENT_TABLE_TYPE: return createAutoIncrementTableType();
+            case PkgenPackage.CUSTOM_GENERATOR_TYPE: return createCustomGeneratorType();
+            case PkgenPackage.DATABASE_GENERATED_TYPE: return createDatabaseGeneratedType();
+            case PkgenPackage.DOCUMENT_ROOT: return createDocumentRoot();
+            case PkgenPackage.KEY_GENERATOR_TYPE: return createKeyGeneratorType();
+            case PkgenPackage.SEQUENCE_TABLE_TYPE: return createSequenceTableType();
+            case PkgenPackage.SQL_GENERATOR_TYPE: return createSqlGeneratorType();
+            default:
+                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+        }
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public AutoIncrementTableType createAutoIncrementTableType() {
+        AutoIncrementTableTypeImpl autoIncrementTableType = new AutoIncrementTableTypeImpl();
+        return autoIncrementTableType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public CustomGeneratorType createCustomGeneratorType() {
+        CustomGeneratorTypeImpl customGeneratorType = new CustomGeneratorTypeImpl();
+        return customGeneratorType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DatabaseGeneratedType createDatabaseGeneratedType() {
+        DatabaseGeneratedTypeImpl databaseGeneratedType = new DatabaseGeneratedTypeImpl();
+        return databaseGeneratedType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public DocumentRoot createDocumentRoot() {
+        DocumentRootImpl documentRoot = new DocumentRootImpl();
+        return documentRoot;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public KeyGeneratorType createKeyGeneratorType() {
+        KeyGeneratorTypeImpl keyGeneratorType = new KeyGeneratorTypeImpl();
+        return keyGeneratorType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SequenceTableType createSequenceTableType() {
+        SequenceTableTypeImpl sequenceTableType = new SequenceTableTypeImpl();
+        return sequenceTableType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public SqlGeneratorType createSqlGeneratorType() {
+        SqlGeneratorTypeImpl sqlGeneratorType = new SqlGeneratorTypeImpl();
+        return sqlGeneratorType;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenPackage getPkgenPackage() {
+        return (PkgenPackage)getEPackage();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @deprecated
+     * @generated
+     */
+    public static PkgenPackage getPackage() {
+        return PkgenPackage.eINSTANCE;
+    }
+
+} //PkgenFactoryImpl

Added: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java?rev=280909&view=auto
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java (added)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenPackageImpl.java Wed Sep 14 11:59:30 2005
@@ -0,0 +1,739 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package org.openejb.xml.ns.pkgen.impl;
+
+import org.apache.geronimo.xml.ns.deployment.impl.DeploymentPackageImpl;
+
+import org.apache.geronimo.xml.ns.naming.impl.NamingPackageImpl;
+
+import org.apache.geronimo.xml.ns.security.impl.SecurityPackageImpl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+
+import org.eclipse.emf.ecore.xml.type.impl.XMLTypePackageImpl;
+
+import org.openejb.xml.ns.openejb.jar.JarPackage;
+
+import org.openejb.xml.ns.openejb.jar.impl.JarPackageImpl;
+
+import org.openejb.xml.ns.pkgen.AutoIncrementTableType;
+import org.openejb.xml.ns.pkgen.CustomGeneratorType;
+import org.openejb.xml.ns.pkgen.DatabaseGeneratedType;
+import org.openejb.xml.ns.pkgen.DocumentRoot;
+import org.openejb.xml.ns.pkgen.KeyGeneratorType;
+import org.openejb.xml.ns.pkgen.PkgenFactory;
+import org.openejb.xml.ns.pkgen.PkgenPackage;
+import org.openejb.xml.ns.pkgen.SequenceTableType;
+import org.openejb.xml.ns.pkgen.SqlGeneratorType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class PkgenPackageImpl extends EPackageImpl implements PkgenPackage {
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass autoIncrementTableTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass customGeneratorTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass databaseGeneratedTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass documentRootEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass keyGeneratorTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass sequenceTableTypeEClass = null;
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private EClass sqlGeneratorTypeEClass = null;
+
+    /**
+     * Creates an instance of the model <b>Package</b>, registered with
+     * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+     * package URI value.
+     * <p>Note: the correct way to create the package is via the static
+     * factory method {@link #init init()}, which also performs
+     * initialization of the package, or returns the registered package,
+     * if one already exists.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see org.eclipse.emf.ecore.EPackage.Registry
+     * @see org.openejb.xml.ns.pkgen.PkgenPackage#eNS_URI
+     * @see #init()
+     * @generated
+     */
+    private PkgenPackageImpl() {
+        super(eNS_URI, PkgenFactory.eINSTANCE);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private static boolean isInited = false;
+
+    /**
+     * Creates, registers, and initializes the <b>Package</b> for this
+     * model, and for any others upon which it depends.  Simple
+     * dependencies are satisfied by calling this method on all
+     * dependent packages before doing anything else.  This method drives
+     * initialization for interdependent packages directly, in parallel
+     * with this package, itself.
+     * <p>Of this package and its interdependencies, all packages which
+     * have not yet been registered by their URI values are first created
+     * and registered.  The packages are then initialized in two steps:
+     * meta-model objects for all of the packages are created before any
+     * are initialized, since one package's meta-model objects may refer to
+     * those of another.
+     * <p>Invocation of this method will not affect any packages that have
+     * already been initialized.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @see #eNS_URI
+     * @see #createPackageContents()
+     * @see #initializePackageContents()
+     * @generated
+     */
+    public static PkgenPackage init() {
+        if (isInited) return (PkgenPackage)EPackage.Registry.INSTANCE.getEPackage(PkgenPackage.eNS_URI);
+
+        // Obtain or create and register package
+        PkgenPackageImpl thePkgenPackage = (PkgenPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof PkgenPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new PkgenPackageImpl());
+
+        isInited = true;
+
+        // Initialize simple dependencies
+        NamingPackageImpl.init();
+        DeploymentPackageImpl.init();
+        SecurityPackageImpl.init();
+        XMLTypePackageImpl.init();
+
+        // Obtain or create and register interdependencies
+        JarPackageImpl theJarPackage = (JarPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JarPackage.eNS_URI) instanceof JarPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(JarPackage.eNS_URI) : JarPackage.eINSTANCE);
+
+        // Create package meta-data objects
+        thePkgenPackage.createPackageContents();
+        theJarPackage.createPackageContents();
+
+        // Initialize created meta-data
+        thePkgenPackage.initializePackageContents();
+        theJarPackage.initializePackageContents();
+
+        // Mark meta-data to indicate it can't be changed
+        thePkgenPackage.freeze();
+
+        return thePkgenPackage;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getAutoIncrementTableType() {
+        return autoIncrementTableTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getAutoIncrementTableType_Sql() {
+        return (EAttribute)autoIncrementTableTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getAutoIncrementTableType_ReturnType() {
+        return (EAttribute)autoIncrementTableTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getCustomGeneratorType() {
+        return customGeneratorTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCustomGeneratorType_GeneratorName() {
+        return (EAttribute)customGeneratorTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getCustomGeneratorType_PrimaryKeyClass() {
+        return (EAttribute)customGeneratorTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getDatabaseGeneratedType() {
+        return databaseGeneratedTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDatabaseGeneratedType_IdentityColumn() {
+        return (EAttribute)databaseGeneratedTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getDocumentRoot() {
+        return documentRootEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getDocumentRoot_Mixed() {
+        return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getDocumentRoot_XMLNSPrefixMap() {
+        return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getDocumentRoot_XSISchemaLocation() {
+        return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getDocumentRoot_KeyGenerator() {
+        return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getKeyGeneratorType() {
+        return keyGeneratorTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_SequenceTable() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_AutoIncrementTable() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_SqlGenerator() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EReference getKeyGeneratorType_CustomGenerator() {
+        return (EReference)keyGeneratorTypeEClass.getEStructuralFeatures().get(3);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getSequenceTableType() {
+        return sequenceTableTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSequenceTableType_TableName() {
+        return (EAttribute)sequenceTableTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSequenceTableType_SequenceName() {
+        return (EAttribute)sequenceTableTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSequenceTableType_BatchSize() {
+        return (EAttribute)sequenceTableTypeEClass.getEStructuralFeatures().get(2);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EClass getSqlGeneratorType() {
+        return sqlGeneratorTypeEClass;
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSqlGeneratorType_Sql() {
+        return (EAttribute)sqlGeneratorTypeEClass.getEStructuralFeatures().get(0);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public EAttribute getSqlGeneratorType_ReturnType() {
+        return (EAttribute)sqlGeneratorTypeEClass.getEStructuralFeatures().get(1);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public PkgenFactory getPkgenFactory() {
+        return (PkgenFactory)getEFactoryInstance();
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private boolean isCreated = false;
+
+    /**
+     * Creates the meta-model objects for the package.  This method is
+     * guarded to have no affect on any invocation but its first.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void createPackageContents() {
+        if (isCreated) return;
+        isCreated = true;
+
+        // Create classes and their features
+        autoIncrementTableTypeEClass = createEClass(AUTO_INCREMENT_TABLE_TYPE);
+        createEAttribute(autoIncrementTableTypeEClass, AUTO_INCREMENT_TABLE_TYPE__SQL);
+        createEAttribute(autoIncrementTableTypeEClass, AUTO_INCREMENT_TABLE_TYPE__RETURN_TYPE);
+
+        customGeneratorTypeEClass = createEClass(CUSTOM_GENERATOR_TYPE);
+        createEAttribute(customGeneratorTypeEClass, CUSTOM_GENERATOR_TYPE__GENERATOR_NAME);
+        createEAttribute(customGeneratorTypeEClass, CUSTOM_GENERATOR_TYPE__PRIMARY_KEY_CLASS);
+
+        databaseGeneratedTypeEClass = createEClass(DATABASE_GENERATED_TYPE);
+        createEAttribute(databaseGeneratedTypeEClass, DATABASE_GENERATED_TYPE__IDENTITY_COLUMN);
+
+        documentRootEClass = createEClass(DOCUMENT_ROOT);
+        createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+        createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+        createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+        createEReference(documentRootEClass, DOCUMENT_ROOT__KEY_GENERATOR);
+
+        keyGeneratorTypeEClass = createEClass(KEY_GENERATOR_TYPE);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__SEQUENCE_TABLE);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__AUTO_INCREMENT_TABLE);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__SQL_GENERATOR);
+        createEReference(keyGeneratorTypeEClass, KEY_GENERATOR_TYPE__CUSTOM_GENERATOR);
+
+        sequenceTableTypeEClass = createEClass(SEQUENCE_TABLE_TYPE);
+        createEAttribute(sequenceTableTypeEClass, SEQUENCE_TABLE_TYPE__TABLE_NAME);
+        createEAttribute(sequenceTableTypeEClass, SEQUENCE_TABLE_TYPE__SEQUENCE_NAME);
+        createEAttribute(sequenceTableTypeEClass, SEQUENCE_TABLE_TYPE__BATCH_SIZE);
+
+        sqlGeneratorTypeEClass = createEClass(SQL_GENERATOR_TYPE);
+        createEAttribute(sqlGeneratorTypeEClass, SQL_GENERATOR_TYPE__SQL);
+        createEAttribute(sqlGeneratorTypeEClass, SQL_GENERATOR_TYPE__RETURN_TYPE);
+    }
+
+    /**
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    private boolean isInitialized = false;
+
+    /**
+     * Complete the initialization of the package and its meta-model.  This
+     * method is guarded to have no affect on any invocation but its first.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    public void initializePackageContents() {
+        if (isInitialized) return;
+        isInitialized = true;
+
+        // Initialize package
+        setName(eNAME);
+        setNsPrefix(eNS_PREFIX);
+        setNsURI(eNS_URI);
+
+        // Obtain other dependent packages
+        XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+        // Add supertypes to classes
+
+        // Initialize classes and features; add operations and parameters
+        initEClass(autoIncrementTableTypeEClass, AutoIncrementTableType.class, "AutoIncrementTableType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getAutoIncrementTableType_Sql(), theXMLTypePackage.getString(), "sql", null, 1, 1, AutoIncrementTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getAutoIncrementTableType_ReturnType(), theXMLTypePackage.getString(), "returnType", null, 1, 1, AutoIncrementTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(customGeneratorTypeEClass, CustomGeneratorType.class, "CustomGeneratorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getCustomGeneratorType_GeneratorName(), theXMLTypePackage.getString(), "generatorName", null, 1, 1, CustomGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getCustomGeneratorType_PrimaryKeyClass(), theXMLTypePackage.getString(), "primaryKeyClass", null, 1, 1, CustomGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(databaseGeneratedTypeEClass, DatabaseGeneratedType.class, "DatabaseGeneratedType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getDatabaseGeneratedType_IdentityColumn(), theXMLTypePackage.getString(), "identityColumn", null, 1, -1, DatabaseGeneratedType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getDocumentRoot_KeyGenerator(), this.getKeyGeneratorType(), null, "keyGenerator", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+        initEClass(keyGeneratorTypeEClass, KeyGeneratorType.class, "KeyGeneratorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getKeyGeneratorType_SequenceTable(), this.getSequenceTableType(), null, "sequenceTable", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getKeyGeneratorType_AutoIncrementTable(), this.getAutoIncrementTableType(), null, "autoIncrementTable", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getKeyGeneratorType_SqlGenerator(), this.getSqlGeneratorType(), null, "sqlGenerator", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getKeyGeneratorType_CustomGenerator(), this.getCustomGeneratorType(), null, "customGenerator", null, 0, 1, KeyGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(sequenceTableTypeEClass, SequenceTableType.class, "SequenceTableType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getSequenceTableType_TableName(), theXMLTypePackage.getString(), "tableName", null, 1, 1, SequenceTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getSequenceTableType_SequenceName(), theXMLTypePackage.getString(), "sequenceName", null, 1, 1, SequenceTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getSequenceTableType_BatchSize(), theXMLTypePackage.getInt(), "batchSize", null, 1, 1, SequenceTableType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(sqlGeneratorTypeEClass, SqlGeneratorType.class, "SqlGeneratorType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getSqlGeneratorType_Sql(), theXMLTypePackage.getString(), "sql", null, 1, 1, SqlGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEAttribute(getSqlGeneratorType_ReturnType(), theXMLTypePackage.getString(), "returnType", null, 1, 1, SqlGeneratorType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        // Create resource
+        createResource(eNS_URI);
+
+        // Create annotations
+        // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+        createExtendedMetaDataAnnotations();
+    }
+
+    /**
+     * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @generated
+     */
+    protected void createExtendedMetaDataAnnotations() {
+        String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";			
+        addAnnotation
+          (autoIncrementTableTypeEClass, 
+           source, 
+           new String[] {
+             "name", "auto-increment-tableType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getAutoIncrementTableType_Sql(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sql",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getAutoIncrementTableType_ReturnType(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "return-type",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (customGeneratorTypeEClass, 
+           source, 
+           new String[] {
+             "name", "custom-generatorType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getCustomGeneratorType_GeneratorName(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "generator-name",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getCustomGeneratorType_PrimaryKeyClass(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "primary-key-class",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (databaseGeneratedTypeEClass, 
+           source, 
+           new String[] {
+             "name", "database-generatedType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getDatabaseGeneratedType_IdentityColumn(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "identity-column",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (documentRootEClass, 
+           source, 
+           new String[] {
+             "name", "",
+             "kind", "mixed"
+           });		
+        addAnnotation
+          (getDocumentRoot_Mixed(), 
+           source, 
+           new String[] {
+             "kind", "elementWildcard",
+             "name", ":mixed"
+           });		
+        addAnnotation
+          (getDocumentRoot_XMLNSPrefixMap(), 
+           source, 
+           new String[] {
+             "kind", "attribute",
+             "name", "xmlns:prefix"
+           });		
+        addAnnotation
+          (getDocumentRoot_XSISchemaLocation(), 
+           source, 
+           new String[] {
+             "kind", "attribute",
+             "name", "xsi:schemaLocation"
+           });		
+        addAnnotation
+          (getDocumentRoot_KeyGenerator(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "key-generator",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (keyGeneratorTypeEClass, 
+           source, 
+           new String[] {
+             "name", "key-generatorType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_SequenceTable(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sequence-table",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_AutoIncrementTable(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "auto-increment-table",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_SqlGenerator(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sql-generator",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getKeyGeneratorType_CustomGenerator(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "custom-generator",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (sequenceTableTypeEClass, 
+           source, 
+           new String[] {
+             "name", "sequence-tableType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getSequenceTableType_TableName(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "table-name",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getSequenceTableType_SequenceName(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sequence-name",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getSequenceTableType_BatchSize(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "batch-size",
+             "namespace", "##targetNamespace"
+           });			
+        addAnnotation
+          (sqlGeneratorTypeEClass, 
+           source, 
+           new String[] {
+             "name", "sql-generatorType",
+             "kind", "elementOnly"
+           });		
+        addAnnotation
+          (getSqlGeneratorType_Sql(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "sql",
+             "namespace", "##targetNamespace"
+           });		
+        addAnnotation
+          (getSqlGeneratorType_ReturnType(), 
+           source, 
+           new String[] {
+             "kind", "element",
+             "name", "return-type",
+             "namespace", "##targetNamespace"
+           });
+    }
+
+} //PkgenPackageImpl