diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/orm/XmlEntityMappings.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/orm/XmlEntityMappings.java | 1079 |
1 files changed, 0 insertions, 1079 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/orm/XmlEntityMappings.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/orm/XmlEntityMappings.java deleted file mode 100644 index a722bf490c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/resource/orm/XmlEntityMappings.java +++ /dev/null @@ -1,1079 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.resource.orm; - -import java.util.Collection; -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; -import org.eclipse.jpt.core.resource.common.AbstractJpaEObject; -import org.eclipse.jpt.core.resource.common.JpaEObject; - -/** - * <!-- begin-user-doc --> - * A representation of the model object '<em><b>Entity Mappings</b></em>'. - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - * <!-- end-user-doc --> - * - * <p> - * The following features are supported: - * <ul> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getVersion <em>Version</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getDescription <em>Description</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getPersistenceUnitMetadata <em>Persistence Unit Metadata</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getPackage <em>Package</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getSchema <em>Schema</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getCatalog <em>Catalog</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getAccess <em>Access</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getSequenceGenerators <em>Sequence Generators</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getTableGenerators <em>Table Generators</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getNamedQueries <em>Named Queries</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getNamedNativeQueries <em>Named Native Queries</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getSqlResultSetMappings <em>Sql Result Set Mappings</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getMappedSuperclasses <em>Mapped Superclasses</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getEntities <em>Entities</em>}</li> - * <li>{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getEmbeddables <em>Embeddables</em>}</li> - * </ul> - * </p> - * - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings() - * @model kind="class" - * @extends JpaEObject - * @generated - */ -public class XmlEntityMappings extends AbstractJpaEObject implements JpaEObject -{ - /** - * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected static final String VERSION_EDEFAULT = "1.0"; - - /** - * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getVersion() - * @generated - * @ordered - */ - protected String version = VERSION_EDEFAULT; - - /** - * This is true if the Version attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean versionESet; - - /** - * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getPersistenceUnitMetadata() <em>Persistence Unit Metadata</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPersistenceUnitMetadata() - * @generated - * @ordered - */ - protected XmlPersistenceUnitMetadata persistenceUnitMetadata; - - /** - * The default value of the '{@link #getPackage() <em>Package</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPackage() - * @generated - * @ordered - */ - protected static final String PACKAGE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPackage() <em>Package</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPackage() - * @generated - * @ordered - */ - protected String package_ = PACKAGE_EDEFAULT; - - /** - * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSchema() - * @generated - * @ordered - */ - protected static final String SCHEMA_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSchema() <em>Schema</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSchema() - * @generated - * @ordered - */ - protected String schema = SCHEMA_EDEFAULT; - - /** - * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCatalog() - * @generated - * @ordered - */ - protected static final String CATALOG_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCatalog() - * @generated - * @ordered - */ - protected String catalog = CATALOG_EDEFAULT; - - /** - * changed this to null and removed the generated flag so emf won't generate over it - * we don't want a default for enums, just null if the tag does not exist - */ - protected static final AccessType ACCESS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getAccess() <em>Access</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getAccess() - * @generated - * @ordered - */ - protected AccessType access = ACCESS_EDEFAULT; - - /** - * The cached value of the '{@link #getSequenceGenerators() <em>Sequence Generators</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSequenceGenerators() - * @generated - * @ordered - */ - protected EList<XmlSequenceGenerator> sequenceGenerators; - - /** - * The cached value of the '{@link #getTableGenerators() <em>Table Generators</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getTableGenerators() - * @generated - * @ordered - */ - protected EList<XmlTableGenerator> tableGenerators; - - /** - * The cached value of the '{@link #getNamedQueries() <em>Named Queries</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamedQueries() - * @generated - * @ordered - */ - protected EList<XmlNamedQuery> namedQueries; - - /** - * The cached value of the '{@link #getNamedNativeQueries() <em>Named Native Queries</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getNamedNativeQueries() - * @generated - * @ordered - */ - protected EList<XmlNamedNativeQuery> namedNativeQueries; - - /** - * The cached value of the '{@link #getSqlResultSetMappings() <em>Sql Result Set Mappings</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getSqlResultSetMappings() - * @generated - * @ordered - */ - protected EList<SqlResultSetMapping> sqlResultSetMappings; - - /** - * The cached value of the '{@link #getMappedSuperclasses() <em>Mapped Superclasses</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMappedSuperclasses() - * @generated - * @ordered - */ - protected EList<XmlMappedSuperclass> mappedSuperclasses; - - /** - * The cached value of the '{@link #getEntities() <em>Entities</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEntities() - * @generated - * @ordered - */ - protected EList<XmlEntity> entities; - - /** - * The cached value of the '{@link #getEmbeddables() <em>Embeddables</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getEmbeddables() - * @generated - * @ordered - */ - protected EList<XmlEmbeddable> embeddables; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected XmlEntityMappings() - { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() - { - return OrmPackage.Literals.XML_ENTITY_MAPPINGS; - } - - /** - * Returns the value of the '<em><b>Version</b></em>' attribute. - * The default value is <code>"1.0"</code>. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Version</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Version</em>' attribute. - * @see #isSetVersion() - * @see #unsetVersion() - * @see #setVersion(String) - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Version() - * @model default="1.0" unsettable="true" dataType="org.eclipse.jpt.core.resource.orm.VersionType" required="true" - * @generated - */ - public String getVersion() - { - return version; - } - - /** - * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getVersion <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Version</em>' attribute. - * @see #isSetVersion() - * @see #unsetVersion() - * @see #getVersion() - * @generated - */ - public void setVersion(String newVersion) - { - String oldVersion = version; - version = newVersion; - boolean oldVersionESet = versionESet; - versionESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__VERSION, oldVersion, version, !oldVersionESet)); - } - - /** - * Unsets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getVersion <em>Version</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isSetVersion() - * @see #getVersion() - * @see #setVersion(String) - * @generated - */ - public void unsetVersion() - { - String oldVersion = version; - boolean oldVersionESet = versionESet; - version = VERSION_EDEFAULT; - versionESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.XML_ENTITY_MAPPINGS__VERSION, oldVersion, VERSION_EDEFAULT, oldVersionESet)); - } - - /** - * Returns whether the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getVersion <em>Version</em>}' attribute is set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return whether the value of the '<em>Version</em>' attribute is set. - * @see #unsetVersion() - * @see #getVersion() - * @see #setVersion(String) - * @generated - */ - public boolean isSetVersion() - { - return versionESet; - } - - /** - * Returns the value of the '<em><b>Description</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Description</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Description</em>' attribute. - * @see #setDescription(String) - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Description() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * @generated - */ - public String getDescription() - { - return description; - } - - /** - * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getDescription <em>Description</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Description</em>' attribute. - * @see #getDescription() - * @generated - */ - public void setDescription(String newDescription) - { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__DESCRIPTION, oldDescription, description)); - } - - /** - * Returns the value of the '<em><b>Persistence Unit Metadata</b></em>' containment reference. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>XmlPersistence Unit Metadata</em>' containment reference isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Persistence Unit Metadata</em>' containment reference. - * @see #setPersistenceUnitMetadata(XmlPersistenceUnitMetadata) - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_PersistenceUnitMetadata() - * @model containment="true" - * @generated - */ - public XmlPersistenceUnitMetadata getPersistenceUnitMetadata() - { - return persistenceUnitMetadata; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetPersistenceUnitMetadata(XmlPersistenceUnitMetadata newPersistenceUnitMetadata, NotificationChain msgs) - { - XmlPersistenceUnitMetadata oldPersistenceUnitMetadata = persistenceUnitMetadata; - persistenceUnitMetadata = newPersistenceUnitMetadata; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA, oldPersistenceUnitMetadata, newPersistenceUnitMetadata); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getPersistenceUnitMetadata <em>Persistence Unit Metadata</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Persistence Unit Metadata</em>' containment reference. - * @see #getPersistenceUnitMetadata() - * @generated - */ - public void setPersistenceUnitMetadata(XmlPersistenceUnitMetadata newPersistenceUnitMetadata) - { - if (newPersistenceUnitMetadata != persistenceUnitMetadata) - { - NotificationChain msgs = null; - if (persistenceUnitMetadata != null) - msgs = ((InternalEObject)persistenceUnitMetadata).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA, null, msgs); - if (newPersistenceUnitMetadata != null) - msgs = ((InternalEObject)newPersistenceUnitMetadata).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA, null, msgs); - msgs = basicSetPersistenceUnitMetadata(newPersistenceUnitMetadata, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA, newPersistenceUnitMetadata, newPersistenceUnitMetadata)); - } - - /** - * Returns the value of the '<em><b>Package</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Package</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Package</em>' attribute. - * @see #setPackage(String) - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Package() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * @generated - */ - public String getPackage() - { - return package_; - } - - /** - * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getPackage <em>Package</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Package</em>' attribute. - * @see #getPackage() - * @generated - */ - public void setPackage(String newPackage) - { - String oldPackage = package_; - package_ = newPackage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__PACKAGE, oldPackage, package_)); - } - - /** - * Returns the value of the '<em><b>Schema</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Schema</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Schema</em>' attribute. - * @see #setSchema(String) - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Schema() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * @generated - */ - public String getSchema() - { - return schema; - } - - /** - * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getSchema <em>Schema</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Schema</em>' attribute. - * @see #getSchema() - * @generated - */ - public void setSchema(String newSchema) - { - String oldSchema = schema; - schema = newSchema; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__SCHEMA, oldSchema, schema)); - } - - /** - * Returns the value of the '<em><b>Catalog</b></em>' attribute. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Catalog</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Catalog</em>' attribute. - * @see #setCatalog(String) - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Catalog() - * @model dataType="org.eclipse.emf.ecore.xml.type.String" - * @generated - */ - public String getCatalog() - { - return catalog; - } - - /** - * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getCatalog <em>Catalog</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Catalog</em>' attribute. - * @see #getCatalog() - * @generated - */ - public void setCatalog(String newCatalog) - { - String oldCatalog = catalog; - catalog = newCatalog; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__CATALOG, oldCatalog, catalog)); - } - - /** - * Returns the value of the '<em><b>Access</b></em>' attribute. - * The default value is <code>"PROPERTY"</code>. - * The literals are from the enumeration {@link org.eclipse.jpt.core.resource.orm.AccessType}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Access</em>' attribute isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Access</em>' attribute. - * @see org.eclipse.jpt.core.resource.orm.AccessType - * @see #setAccess(AccessType) - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Access() - * @model default="PROPERTY" - * @generated - */ - public AccessType getAccess() - { - return access; - } - - /** - * Sets the value of the '{@link org.eclipse.jpt.core.resource.orm.XmlEntityMappings#getAccess <em>Access</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param value the new value of the '<em>Access</em>' attribute. - * @see org.eclipse.jpt.core.resource.orm.AccessType - * @see #getAccess() - * @generated - */ - public void setAccess(AccessType newAccess) - { - AccessType oldAccess = access; - access = newAccess == null ? ACCESS_EDEFAULT : newAccess; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.XML_ENTITY_MAPPINGS__ACCESS, oldAccess, access)); - } - - /** - * Returns the value of the '<em><b>Sequence Generators</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.XmlSequenceGenerator}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Sequence Generators</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Sequence Generators</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_SequenceGenerators() - * @model containment="true" - * @generated - */ - public EList<XmlSequenceGenerator> getSequenceGenerators() - { - if (sequenceGenerators == null) - { - sequenceGenerators = new EObjectContainmentEList<XmlSequenceGenerator>(XmlSequenceGenerator.class, this, OrmPackage.XML_ENTITY_MAPPINGS__SEQUENCE_GENERATORS); - } - return sequenceGenerators; - } - - /** - * Returns the value of the '<em><b>Table Generators</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.XmlTableGenerator}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Table Generators</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Table Generators</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_TableGenerators() - * @model containment="true" - * @generated - */ - public EList<XmlTableGenerator> getTableGenerators() - { - if (tableGenerators == null) - { - tableGenerators = new EObjectContainmentEList<XmlTableGenerator>(XmlTableGenerator.class, this, OrmPackage.XML_ENTITY_MAPPINGS__TABLE_GENERATORS); - } - return tableGenerators; - } - - /** - * Returns the value of the '<em><b>Named Queries</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.XmlNamedQuery}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Named Queries</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Named Queries</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_NamedQueries() - * @model containment="true" - * @generated - */ - public EList<XmlNamedQuery> getNamedQueries() - { - if (namedQueries == null) - { - namedQueries = new EObjectContainmentEList<XmlNamedQuery>(XmlNamedQuery.class, this, OrmPackage.XML_ENTITY_MAPPINGS__NAMED_QUERIES); - } - return namedQueries; - } - - /** - * Returns the value of the '<em><b>Named Native Queries</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.XmlNamedNativeQuery}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Named Native Queries</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Named Native Queries</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_NamedNativeQueries() - * @model containment="true" - * @generated - */ - public EList<XmlNamedNativeQuery> getNamedNativeQueries() - { - if (namedNativeQueries == null) - { - namedNativeQueries = new EObjectContainmentEList<XmlNamedNativeQuery>(XmlNamedNativeQuery.class, this, OrmPackage.XML_ENTITY_MAPPINGS__NAMED_NATIVE_QUERIES); - } - return namedNativeQueries; - } - - /** - * Returns the value of the '<em><b>Sql Result Set Mappings</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.SqlResultSetMapping}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Sql Result Set Mappings</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Sql Result Set Mappings</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_SqlResultSetMappings() - * @model containment="true" - * @generated - */ - public EList<SqlResultSetMapping> getSqlResultSetMappings() - { - if (sqlResultSetMappings == null) - { - sqlResultSetMappings = new EObjectContainmentEList<SqlResultSetMapping>(SqlResultSetMapping.class, this, OrmPackage.XML_ENTITY_MAPPINGS__SQL_RESULT_SET_MAPPINGS); - } - return sqlResultSetMappings; - } - - /** - * Returns the value of the '<em><b>Mapped Superclasses</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.XmlMappedSuperclass}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Mapped Superclasses</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Mapped Superclasses</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_MappedSuperclasses() - * @model containment="true" - * @generated - */ - public EList<XmlMappedSuperclass> getMappedSuperclasses() - { - if (mappedSuperclasses == null) - { - mappedSuperclasses = new EObjectContainmentEList<XmlMappedSuperclass>(XmlMappedSuperclass.class, this, OrmPackage.XML_ENTITY_MAPPINGS__MAPPED_SUPERCLASSES); - } - return mappedSuperclasses; - } - - /** - * Returns the value of the '<em><b>Entities</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.XmlEntity}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Entities</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Entities</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Entities() - * @model containment="true" - * @generated - */ - public EList<XmlEntity> getEntities() - { - if (entities == null) - { - entities = new EObjectContainmentEList<XmlEntity>(XmlEntity.class, this, OrmPackage.XML_ENTITY_MAPPINGS__ENTITIES); - } - return entities; - } - - /** - * Returns the value of the '<em><b>Embeddables</b></em>' containment reference list. - * The list contents are of type {@link org.eclipse.jpt.core.resource.orm.XmlEmbeddable}. - * <!-- begin-user-doc --> - * <p> - * If the meaning of the '<em>Embeddables</em>' containment reference list isn't clear, - * there really should be more of a description here... - * </p> - * <!-- end-user-doc --> - * @return the value of the '<em>Embeddables</em>' containment reference list. - * @see org.eclipse.jpt.core.resource.orm.OrmPackage#getXmlEntityMappings_Embeddables() - * @model containment="true" - * @generated - */ - public EList<XmlEmbeddable> getEmbeddables() - { - if (embeddables == null) - { - embeddables = new EObjectContainmentEList<XmlEmbeddable>(XmlEmbeddable.class, this, OrmPackage.XML_ENTITY_MAPPINGS__EMBEDDABLES); - } - return embeddables; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA: - return basicSetPersistenceUnitMetadata(null, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__SEQUENCE_GENERATORS: - return ((InternalEList<?>)getSequenceGenerators()).basicRemove(otherEnd, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__TABLE_GENERATORS: - return ((InternalEList<?>)getTableGenerators()).basicRemove(otherEnd, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_QUERIES: - return ((InternalEList<?>)getNamedQueries()).basicRemove(otherEnd, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_NATIVE_QUERIES: - return ((InternalEList<?>)getNamedNativeQueries()).basicRemove(otherEnd, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__SQL_RESULT_SET_MAPPINGS: - return ((InternalEList<?>)getSqlResultSetMappings()).basicRemove(otherEnd, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__MAPPED_SUPERCLASSES: - return ((InternalEList<?>)getMappedSuperclasses()).basicRemove(otherEnd, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__ENTITIES: - return ((InternalEList<?>)getEntities()).basicRemove(otherEnd, msgs); - case OrmPackage.XML_ENTITY_MAPPINGS__EMBEDDABLES: - return ((InternalEList<?>)getEmbeddables()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case OrmPackage.XML_ENTITY_MAPPINGS__VERSION: - return getVersion(); - case OrmPackage.XML_ENTITY_MAPPINGS__DESCRIPTION: - return getDescription(); - case OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA: - return getPersistenceUnitMetadata(); - case OrmPackage.XML_ENTITY_MAPPINGS__PACKAGE: - return getPackage(); - case OrmPackage.XML_ENTITY_MAPPINGS__SCHEMA: - return getSchema(); - case OrmPackage.XML_ENTITY_MAPPINGS__CATALOG: - return getCatalog(); - case OrmPackage.XML_ENTITY_MAPPINGS__ACCESS: - return getAccess(); - case OrmPackage.XML_ENTITY_MAPPINGS__SEQUENCE_GENERATORS: - return getSequenceGenerators(); - case OrmPackage.XML_ENTITY_MAPPINGS__TABLE_GENERATORS: - return getTableGenerators(); - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_QUERIES: - return getNamedQueries(); - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_NATIVE_QUERIES: - return getNamedNativeQueries(); - case OrmPackage.XML_ENTITY_MAPPINGS__SQL_RESULT_SET_MAPPINGS: - return getSqlResultSetMappings(); - case OrmPackage.XML_ENTITY_MAPPINGS__MAPPED_SUPERCLASSES: - return getMappedSuperclasses(); - case OrmPackage.XML_ENTITY_MAPPINGS__ENTITIES: - return getEntities(); - case OrmPackage.XML_ENTITY_MAPPINGS__EMBEDDABLES: - return getEmbeddables(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case OrmPackage.XML_ENTITY_MAPPINGS__VERSION: - setVersion((String)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__DESCRIPTION: - setDescription((String)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA: - setPersistenceUnitMetadata((XmlPersistenceUnitMetadata)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__PACKAGE: - setPackage((String)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__SCHEMA: - setSchema((String)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__CATALOG: - setCatalog((String)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__ACCESS: - setAccess((AccessType)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__SEQUENCE_GENERATORS: - getSequenceGenerators().clear(); - getSequenceGenerators().addAll((Collection<? extends XmlSequenceGenerator>)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__TABLE_GENERATORS: - getTableGenerators().clear(); - getTableGenerators().addAll((Collection<? extends XmlTableGenerator>)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_QUERIES: - getNamedQueries().clear(); - getNamedQueries().addAll((Collection<? extends XmlNamedQuery>)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_NATIVE_QUERIES: - getNamedNativeQueries().clear(); - getNamedNativeQueries().addAll((Collection<? extends XmlNamedNativeQuery>)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__SQL_RESULT_SET_MAPPINGS: - getSqlResultSetMappings().clear(); - getSqlResultSetMappings().addAll((Collection<? extends SqlResultSetMapping>)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__MAPPED_SUPERCLASSES: - getMappedSuperclasses().clear(); - getMappedSuperclasses().addAll((Collection<? extends XmlMappedSuperclass>)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__ENTITIES: - getEntities().clear(); - getEntities().addAll((Collection<? extends XmlEntity>)newValue); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__EMBEDDABLES: - getEmbeddables().clear(); - getEmbeddables().addAll((Collection<? extends XmlEmbeddable>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case OrmPackage.XML_ENTITY_MAPPINGS__VERSION: - unsetVersion(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA: - setPersistenceUnitMetadata((XmlPersistenceUnitMetadata)null); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__PACKAGE: - setPackage(PACKAGE_EDEFAULT); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__SCHEMA: - setSchema(SCHEMA_EDEFAULT); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__CATALOG: - setCatalog(CATALOG_EDEFAULT); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__ACCESS: - setAccess(ACCESS_EDEFAULT); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__SEQUENCE_GENERATORS: - getSequenceGenerators().clear(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__TABLE_GENERATORS: - getTableGenerators().clear(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_QUERIES: - getNamedQueries().clear(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_NATIVE_QUERIES: - getNamedNativeQueries().clear(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__SQL_RESULT_SET_MAPPINGS: - getSqlResultSetMappings().clear(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__MAPPED_SUPERCLASSES: - getMappedSuperclasses().clear(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__ENTITIES: - getEntities().clear(); - return; - case OrmPackage.XML_ENTITY_MAPPINGS__EMBEDDABLES: - getEmbeddables().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case OrmPackage.XML_ENTITY_MAPPINGS__VERSION: - return isSetVersion(); - case OrmPackage.XML_ENTITY_MAPPINGS__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case OrmPackage.XML_ENTITY_MAPPINGS__PERSISTENCE_UNIT_METADATA: - return persistenceUnitMetadata != null; - case OrmPackage.XML_ENTITY_MAPPINGS__PACKAGE: - return PACKAGE_EDEFAULT == null ? package_ != null : !PACKAGE_EDEFAULT.equals(package_); - case OrmPackage.XML_ENTITY_MAPPINGS__SCHEMA: - return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema); - case OrmPackage.XML_ENTITY_MAPPINGS__CATALOG: - return CATALOG_EDEFAULT == null ? catalog != null : !CATALOG_EDEFAULT.equals(catalog); - case OrmPackage.XML_ENTITY_MAPPINGS__ACCESS: - return access != ACCESS_EDEFAULT; - case OrmPackage.XML_ENTITY_MAPPINGS__SEQUENCE_GENERATORS: - return sequenceGenerators != null && !sequenceGenerators.isEmpty(); - case OrmPackage.XML_ENTITY_MAPPINGS__TABLE_GENERATORS: - return tableGenerators != null && !tableGenerators.isEmpty(); - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_QUERIES: - return namedQueries != null && !namedQueries.isEmpty(); - case OrmPackage.XML_ENTITY_MAPPINGS__NAMED_NATIVE_QUERIES: - return namedNativeQueries != null && !namedNativeQueries.isEmpty(); - case OrmPackage.XML_ENTITY_MAPPINGS__SQL_RESULT_SET_MAPPINGS: - return sqlResultSetMappings != null && !sqlResultSetMappings.isEmpty(); - case OrmPackage.XML_ENTITY_MAPPINGS__MAPPED_SUPERCLASSES: - return mappedSuperclasses != null && !mappedSuperclasses.isEmpty(); - case OrmPackage.XML_ENTITY_MAPPINGS__ENTITIES: - return entities != null && !entities.isEmpty(); - case OrmPackage.XML_ENTITY_MAPPINGS__EMBEDDABLES: - return embeddables != null && !embeddables.isEmpty(); - } - return super.eIsSet(featureID); - } - - - // **************** overrides ********************************************** - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (version: "); - if (versionESet) result.append(version); else result.append("<unset>"); - result.append(", description: "); - result.append(description); - result.append(", package: "); - result.append(package_); - result.append(", schema: "); - result.append(schema); - result.append(", catalog: "); - result.append(catalog); - result.append(", access: "); - result.append(access); - result.append(')'); - return result.toString(); - } - - @Override - public JpaEObject getRoot() { - return this; - } -}
\ No newline at end of file |