geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r233071 [20/22] - in /geronimo/trunk/sandbox/eclipse-plugin: org.apache.geronimo.core/ org.apache.geronimo.core/src/org/apache/geronimo/core/internal/ org.apache.geronimo.deployment.model/META-INF/ org.apache.geronimo.deployment.model/emf/ ...
Date Tue, 16 Aug 2005 22:40:54 GMT
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/SqlGeneratorType.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/SqlGeneratorType.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/SqlGeneratorType.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/SqlGeneratorType.java Tue Aug 16 15:39:15 2005
@@ -0,0 +1,99 @@
+/**
+ * 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;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Sql Generator Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * 
+ *                 Indicates that an arbitrary SQL statement should be used to
+ *                 generate the next ID.
+ *             
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ *   <li>{@link org.openejb.xml.ns.pkgen.SqlGeneratorType#getSql <em>Sql</em>}</li>
+ *   <li>{@link org.openejb.xml.ns.pkgen.SqlGeneratorType#getReturnType <em>Return Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.openejb.xml.ns.pkgen.PkgenPackage#getSqlGeneratorType()
+ * @model extendedMetaData="name='sql-generatorType' kind='elementOnly'"
+ * @generated
+ */
+public interface SqlGeneratorType extends EObject {
+    /**
+     * Returns the value of the '<em><b>Sql</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of the '<em>Sql</em>' attribute isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @return the value of the '<em>Sql</em>' attribute.
+     * @see #setSql(String)
+     * @see org.openejb.xml.ns.pkgen.PkgenPackage#getSqlGeneratorType_Sql()
+     * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
+     *        extendedMetaData="kind='element' name='sql' namespace='##targetNamespace'"
+     * @generated
+     */
+    String getSql();
+
+    /**
+     * Sets the value of the '{@link org.openejb.xml.ns.pkgen.SqlGeneratorType#getSql <em>Sql</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param value the new value of the '<em>Sql</em>' attribute.
+     * @see #getSql()
+     * @generated
+     */
+    void setSql(String value);
+
+    /**
+     * Returns the value of the '<em><b>Return Type</b></em>' attribute.
+     * <!-- begin-user-doc -->
+     * <p>
+     * If the meaning of the '<em>Return Type</em>' attribute isn't clear,
+     * there really should be more of a description here...
+     * </p>
+     * <!-- end-user-doc -->
+     * @return the value of the '<em>Return Type</em>' attribute.
+     * @see #setReturnType(String)
+     * @see org.openejb.xml.ns.pkgen.PkgenPackage#getSqlGeneratorType_ReturnType()
+     * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true"
+     *        extendedMetaData="kind='element' name='return-type' namespace='##targetNamespace'"
+     * @generated
+     */
+    String getReturnType();
+
+    /**
+     * Sets the value of the '{@link org.openejb.xml.ns.pkgen.SqlGeneratorType#getReturnType <em>Return Type</em>}' attribute.
+     * <!-- begin-user-doc -->
+     * <!-- end-user-doc -->
+     * @param value the new value of the '<em>Return Type</em>' attribute.
+     * @see #getReturnType()
+     * @generated
+     */
+    void setReturnType(String value);
+
+} // SqlGeneratorType

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/SqlGeneratorType.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java Tue Aug 16 15:39:15 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

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/AutoIncrementTableTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java Tue Aug 16 15:39:15 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

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/CustomGeneratorTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java Tue Aug 16 15:39:15 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

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DatabaseGeneratedTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java Tue Aug 16 15:39:15 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

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/DocumentRootImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java Tue Aug 16 15:39:15 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

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/KeyGeneratorTypeImpl.java
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java?rev=233071&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java Tue Aug 16 15:39:15 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

Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/openejb/xml/ns/pkgen/impl/PkgenFactoryImpl.java
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message