diff options
author | pfullbright | 2008-10-16 21:17:50 +0000 |
---|---|---|
committer | pfullbright | 2008-10-16 21:17:50 +0000 |
commit | f78a10d196dd2da4533235de319c0c9ef6347ee8 (patch) | |
tree | 2f833ffe4674d6a6a7582777085fb4bd4b7d1421 /jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org | |
parent | afd91edb001bd588aaccce87654f358b1509c053 (diff) | |
download | webtools.dali-f78a10d196dd2da4533235de319c0c9ef6347ee8.tar.gz webtools.dali-f78a10d196dd2da4533235de319c0c9ef6347ee8.tar.xz webtools.dali-f78a10d196dd2da4533235de319c0c9ef6347ee8.zip |
added resource model for private owned, join fetch, and mutable; removed util package generation
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org')
15 files changed, 3588 insertions, 553 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java index ec4ede4807..f393bc6b84 100644 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmFactory.java @@ -11,6 +11,7 @@ package org.eclipse.jpt.eclipselink.core.resource.orm; import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; @@ -80,6 +81,13 @@ public class EclipseLinkOrmFactory extends EFactoryImpl { case EclipseLinkOrmPackage.XML_ENTITY: return (EObject)createXmlEntity(); case EclipseLinkOrmPackage.XML_MAPPED_SUPERCLASS: return (EObject)createXmlMappedSuperclass(); + case EclipseLinkOrmPackage.XML_ID: return (EObject)createXmlId(); + case EclipseLinkOrmPackage.XML_BASIC: return (EObject)createXmlBasic(); + case EclipseLinkOrmPackage.XML_VERSION: return (EObject)createXmlVersion(); + case EclipseLinkOrmPackage.XML_ONE_TO_ONE: return (EObject)createXmlOneToOne(); + case EclipseLinkOrmPackage.XML_ONE_TO_MANY: return (EObject)createXmlOneToMany(); + case EclipseLinkOrmPackage.XML_MANY_TO_ONE: return (EObject)createXmlManyToOne(); + case EclipseLinkOrmPackage.XML_MANY_TO_MANY: return (EObject)createXmlManyToMany(); default: throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } @@ -90,6 +98,40 @@ public class EclipseLinkOrmFactory extends EFactoryImpl * <!-- end-user-doc --> * @generated */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case EclipseLinkOrmPackage.XML_JOIN_FETCH_TYPE: + return createXmlJoinFetchTypeFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case EclipseLinkOrmPackage.XML_JOIN_FETCH_TYPE: + return convertXmlJoinFetchTypeToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public XmlEntity createXmlEntity() { XmlEntity xmlEntity = new XmlEntity(); @@ -112,6 +154,105 @@ public class EclipseLinkOrmFactory extends EFactoryImpl * <!-- end-user-doc --> * @generated */ + public XmlId createXmlId() + { + XmlId xmlId = new XmlId(); + return xmlId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlBasic createXmlBasic() + { + XmlBasic xmlBasic = new XmlBasic(); + return xmlBasic; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlVersion createXmlVersion() + { + XmlVersion xmlVersion = new XmlVersion(); + return xmlVersion; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlOneToOne createXmlOneToOne() + { + XmlOneToOne xmlOneToOne = new XmlOneToOne(); + return xmlOneToOne; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlOneToMany createXmlOneToMany() + { + XmlOneToMany xmlOneToMany = new XmlOneToMany(); + return xmlOneToMany; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlManyToOne createXmlManyToOne() + { + XmlManyToOne xmlManyToOne = new XmlManyToOne(); + return xmlManyToOne; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlManyToMany createXmlManyToMany() + { + XmlManyToMany xmlManyToMany = new XmlManyToMany(); + return xmlManyToMany; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public XmlJoinFetchType createXmlJoinFetchTypeFromString(EDataType eDataType, String initialValue) + { + XmlJoinFetchType result = XmlJoinFetchType.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertXmlJoinFetchTypeToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ public EclipseLinkOrmPackage getEclipseLinkOrmPackage() { return (EclipseLinkOrmPackage)getEPackage(); diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java index a574d37a27..b02c7ccdb4 100644 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/EclipseLinkOrmPackage.java @@ -12,6 +12,7 @@ package org.eclipse.jpt.eclipselink.core.resource.orm; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EReference; import org.eclipse.emf.ecore.impl.EPackageImpl; @@ -103,7 +104,75 @@ public class EclipseLinkOrmPackage extends EPackageImpl * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity() * @generated */ - public static final int XML_ENTITY = 1; + public static final int XML_ENTITY = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMappedSuperclass <em>Xml Mapped Superclass</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlMappedSuperclass + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMappedSuperclass() + * @generated + */ + public static final int XML_MAPPED_SUPERCLASS = 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned <em>Xml Private Owned</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPrivateOwned() + * @generated + */ + public static final int XML_PRIVATE_OWNED = 8; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne <em>Xml One To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlOneToOne() + * @generated + */ + public static final int XML_ONE_TO_ONE = 10; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany <em>Xml One To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlOneToMany() + * @generated + */ + public static final int XML_ONE_TO_MANY = 11; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer <em>Xml Customizer</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlCustomizer() + * @generated + */ + public static final int XML_CUSTOMIZER = 1; + + /** + * The feature id for the '<em><b>Customizer Class Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME = 0; + + /** + * The number of structural features of the '<em>Xml Customizer</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_CUSTOMIZER_FEATURE_COUNT = 1; /** * The feature id for the '<em><b>Class Name</b></em>' attribute. @@ -403,16 +472,6 @@ public class EclipseLinkOrmPackage extends EPackageImpl public static final int XML_ENTITY_FEATURE_COUNT = OrmPackage.XML_ENTITY_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMappedSuperclass <em>Xml Mapped Superclass</em>}' class. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlMappedSuperclass - * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMappedSuperclass() - * @generated - */ - public static final int XML_MAPPED_SUPERCLASS = 2; - - /** * The feature id for the '<em><b>Class Name</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -584,32 +643,759 @@ public class EclipseLinkOrmPackage extends EPackageImpl public static final int XML_MAPPED_SUPERCLASS_FEATURE_COUNT = OrmPackage.XML_MAPPED_SUPERCLASS_FEATURE_COUNT + 2; /** - * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer <em>Xml Customizer</em>}' class. + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable <em>Xml Mutable</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer - * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlCustomizer() + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMutable() * @generated */ - public static final int XML_CUSTOMIZER = 3; + public static final int XML_MUTABLE = 4; /** - * The feature id for the '<em><b>Customizer Class Name</b></em>' attribute. + * The feature id for the '<em><b>Mutable</b></em>' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ - public static final int XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME = 0; + public static final int XML_MUTABLE__MUTABLE = 0; /** - * The number of structural features of the '<em>Xml Customizer</em>' class. + * The number of structural features of the '<em>Xml Mutable</em>' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated * @ordered */ - public static final int XML_CUSTOMIZER_FEATURE_COUNT = 1; + public static final int XML_MUTABLE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlId <em>Xml Id</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlId + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlId() + * @generated + */ + public static final int XML_ID = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__NAME = OrmPackage.XML_ID_IMPL__NAME; + + /** + * The feature id for the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__COLUMN = OrmPackage.XML_ID_IMPL__COLUMN; + + /** + * The feature id for the '<em><b>Lob</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__LOB = OrmPackage.XML_ID_IMPL__LOB; + + /** + * The feature id for the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__TEMPORAL = OrmPackage.XML_ID_IMPL__TEMPORAL; + + /** + * The feature id for the '<em><b>Enumerated</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__ENUMERATED = OrmPackage.XML_ID_IMPL__ENUMERATED; + + /** + * The feature id for the '<em><b>Generated Value</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__GENERATED_VALUE = OrmPackage.XML_ID_IMPL__GENERATED_VALUE; + + /** + * The feature id for the '<em><b>Table Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__TABLE_GENERATOR = OrmPackage.XML_ID_IMPL__TABLE_GENERATOR; + + /** + * The feature id for the '<em><b>Sequence Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__SEQUENCE_GENERATOR = OrmPackage.XML_ID_IMPL__SEQUENCE_GENERATOR; + + /** + * The feature id for the '<em><b>Mutable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID__MUTABLE = OrmPackage.XML_ID_IMPL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Xml Id</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ID_FEATURE_COUNT = OrmPackage.XML_ID_IMPL_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasic <em>Xml Basic</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasic + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasic() + * @generated + */ + public static final int XML_BASIC = 6; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__NAME = OrmPackage.XML_BASIC_IMPL__NAME; + + /** + * The feature id for the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__COLUMN = OrmPackage.XML_BASIC_IMPL__COLUMN; + + /** + * The feature id for the '<em><b>Lob</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__LOB = OrmPackage.XML_BASIC_IMPL__LOB; + + /** + * The feature id for the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__TEMPORAL = OrmPackage.XML_BASIC_IMPL__TEMPORAL; + + /** + * The feature id for the '<em><b>Enumerated</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__ENUMERATED = OrmPackage.XML_BASIC_IMPL__ENUMERATED; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__FETCH = OrmPackage.XML_BASIC_IMPL__FETCH; + + /** + * The feature id for the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__OPTIONAL = OrmPackage.XML_BASIC_IMPL__OPTIONAL; + + /** + * The feature id for the '<em><b>Mutable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC__MUTABLE = OrmPackage.XML_BASIC_IMPL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Xml Basic</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_BASIC_FEATURE_COUNT = OrmPackage.XML_BASIC_IMPL_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVersion <em>Xml Version</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlVersion + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlVersion() + * @generated + */ + public static final int XML_VERSION = 7; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_VERSION__NAME = OrmPackage.XML_VERSION_IMPL__NAME; + + /** + * The feature id for the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_VERSION__COLUMN = OrmPackage.XML_VERSION_IMPL__COLUMN; + + /** + * The feature id for the '<em><b>Lob</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_VERSION__LOB = OrmPackage.XML_VERSION_IMPL__LOB; + + /** + * The feature id for the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_VERSION__TEMPORAL = OrmPackage.XML_VERSION_IMPL__TEMPORAL; + + /** + * The feature id for the '<em><b>Enumerated</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_VERSION__ENUMERATED = OrmPackage.XML_VERSION_IMPL__ENUMERATED; + + /** + * The feature id for the '<em><b>Mutable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_VERSION__MUTABLE = OrmPackage.XML_VERSION_IMPL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Xml Version</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_VERSION_FEATURE_COUNT = OrmPackage.XML_VERSION_IMPL_FEATURE_COUNT + 1; + + /** + * The feature id for the '<em><b>Private Owned</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_PRIVATE_OWNED__PRIVATE_OWNED = 0; + + /** + * The number of structural features of the '<em>Xml Private Owned</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_PRIVATE_OWNED_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch <em>Xml Join Fetch</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch() + * @generated + */ + public static final int XML_JOIN_FETCH = 9; + + /** + * The feature id for the '<em><b>Join Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_JOIN_FETCH__JOIN_FETCH = 0; + + /** + * The number of structural features of the '<em>Xml Join Fetch</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_JOIN_FETCH_FEATURE_COUNT = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__NAME = OrmPackage.XML_ONE_TO_ONE_IMPL__NAME; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__TARGET_ENTITY = OrmPackage.XML_ONE_TO_ONE_IMPL__TARGET_ENTITY; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__FETCH = OrmPackage.XML_ONE_TO_ONE_IMPL__FETCH; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__JOIN_TABLE = OrmPackage.XML_ONE_TO_ONE_IMPL__JOIN_TABLE; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__CASCADE = OrmPackage.XML_ONE_TO_ONE_IMPL__CASCADE; + + /** + * The feature id for the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__OPTIONAL = OrmPackage.XML_ONE_TO_ONE_IMPL__OPTIONAL; + + /** + * The feature id for the '<em><b>Join Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__JOIN_COLUMNS = OrmPackage.XML_ONE_TO_ONE_IMPL__JOIN_COLUMNS; + + /** + * The feature id for the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__MAPPED_BY = OrmPackage.XML_ONE_TO_ONE_IMPL__MAPPED_BY; + + /** + * The feature id for the '<em><b>Primary Key Join Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMNS = OrmPackage.XML_ONE_TO_ONE_IMPL__PRIMARY_KEY_JOIN_COLUMNS; + + /** + * The feature id for the '<em><b>Private Owned</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__PRIVATE_OWNED = OrmPackage.XML_ONE_TO_ONE_IMPL_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Join Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE__JOIN_FETCH = OrmPackage.XML_ONE_TO_ONE_IMPL_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Xml One To One</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_ONE_FEATURE_COUNT = OrmPackage.XML_ONE_TO_ONE_IMPL_FEATURE_COUNT + 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__NAME = OrmPackage.XML_ONE_TO_MANY_IMPL__NAME; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__TARGET_ENTITY = OrmPackage.XML_ONE_TO_MANY_IMPL__TARGET_ENTITY; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__FETCH = OrmPackage.XML_ONE_TO_MANY_IMPL__FETCH; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__JOIN_TABLE = OrmPackage.XML_ONE_TO_MANY_IMPL__JOIN_TABLE; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__CASCADE = OrmPackage.XML_ONE_TO_MANY_IMPL__CASCADE; + + /** + * The feature id for the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__MAPPED_BY = OrmPackage.XML_ONE_TO_MANY_IMPL__MAPPED_BY; + + /** + * The feature id for the '<em><b>Order By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__ORDER_BY = OrmPackage.XML_ONE_TO_MANY_IMPL__ORDER_BY; + + /** + * The feature id for the '<em><b>Map Key</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__MAP_KEY = OrmPackage.XML_ONE_TO_MANY_IMPL__MAP_KEY; + + /** + * The feature id for the '<em><b>Join Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__JOIN_COLUMNS = OrmPackage.XML_ONE_TO_MANY_IMPL__JOIN_COLUMNS; + + /** + * The feature id for the '<em><b>Private Owned</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__PRIVATE_OWNED = OrmPackage.XML_ONE_TO_MANY_IMPL_FEATURE_COUNT + 0; + + /** + * The feature id for the '<em><b>Join Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY__JOIN_FETCH = OrmPackage.XML_ONE_TO_MANY_IMPL_FEATURE_COUNT + 1; + + /** + * The number of structural features of the '<em>Xml One To Many</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_ONE_TO_MANY_FEATURE_COUNT = OrmPackage.XML_ONE_TO_MANY_IMPL_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToOne <em>Xml Many To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToOne + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlManyToOne() + * @generated + */ + public static final int XML_MANY_TO_ONE = 12; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__NAME = OrmPackage.XML_MANY_TO_ONE_IMPL__NAME; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__TARGET_ENTITY = OrmPackage.XML_MANY_TO_ONE_IMPL__TARGET_ENTITY; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__FETCH = OrmPackage.XML_MANY_TO_ONE_IMPL__FETCH; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__JOIN_TABLE = OrmPackage.XML_MANY_TO_ONE_IMPL__JOIN_TABLE; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__CASCADE = OrmPackage.XML_MANY_TO_ONE_IMPL__CASCADE; + + /** + * The feature id for the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__OPTIONAL = OrmPackage.XML_MANY_TO_ONE_IMPL__OPTIONAL; + + /** + * The feature id for the '<em><b>Join Columns</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__JOIN_COLUMNS = OrmPackage.XML_MANY_TO_ONE_IMPL__JOIN_COLUMNS; + + /** + * The feature id for the '<em><b>Join Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE__JOIN_FETCH = OrmPackage.XML_MANY_TO_ONE_IMPL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Xml Many To One</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_ONE_FEATURE_COUNT = OrmPackage.XML_MANY_TO_ONE_IMPL_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToMany <em>Xml Many To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToMany + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlManyToMany() + * @generated + */ + public static final int XML_MANY_TO_MANY = 13; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__NAME = OrmPackage.XML_MANY_TO_MANY_IMPL__NAME; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__TARGET_ENTITY = OrmPackage.XML_MANY_TO_MANY_IMPL__TARGET_ENTITY; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__FETCH = OrmPackage.XML_MANY_TO_MANY_IMPL__FETCH; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__JOIN_TABLE = OrmPackage.XML_MANY_TO_MANY_IMPL__JOIN_TABLE; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__CASCADE = OrmPackage.XML_MANY_TO_MANY_IMPL__CASCADE; + + /** + * The feature id for the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__MAPPED_BY = OrmPackage.XML_MANY_TO_MANY_IMPL__MAPPED_BY; + + /** + * The feature id for the '<em><b>Order By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__ORDER_BY = OrmPackage.XML_MANY_TO_MANY_IMPL__ORDER_BY; + + /** + * The feature id for the '<em><b>Map Key</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__MAP_KEY = OrmPackage.XML_MANY_TO_MANY_IMPL__MAP_KEY; + + /** + * The feature id for the '<em><b>Join Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY__JOIN_FETCH = OrmPackage.XML_MANY_TO_MANY_IMPL_FEATURE_COUNT + 0; + + /** + * The number of structural features of the '<em>Xml Many To Many</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + public static final int XML_MANY_TO_MANY_FEATURE_COUNT = OrmPackage.XML_MANY_TO_MANY_IMPL_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType <em>Xml Join Fetch Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetchType() + * @generated + */ + public static final int XML_JOIN_FETCH_TYPE = 14; /** * <!-- begin-user-doc --> @@ -637,6 +1423,83 @@ public class EclipseLinkOrmPackage extends EPackageImpl * <!-- end-user-doc --> * @generated */ + private EClass xmlMutableEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlIdEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlBasicEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlVersionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlPrivateOwnedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlJoinFetchEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlOneToOneEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlOneToManyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlManyToOneEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass xmlManyToManyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum xmlJoinFetchTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ private EClass xmlCustomizerEClass = null; /** @@ -801,6 +1664,205 @@ public class EclipseLinkOrmPackage extends EPackageImpl /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable <em>Xml Mutable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Mutable</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable + * @generated + */ + public EClass getXmlMutable() + { + return xmlMutableEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable#getMutable <em>Mutable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mutable</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable#getMutable() + * @see #getXmlMutable() + * @generated + */ + public EAttribute getXmlMutable_Mutable() + { + return (EAttribute)xmlMutableEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlId <em>Xml Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Id</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlId + * @generated + */ + public EClass getXmlId() + { + return xmlIdEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasic <em>Xml Basic</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Basic</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasic + * @generated + */ + public EClass getXmlBasic() + { + return xmlBasicEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVersion <em>Xml Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Version</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlVersion + * @generated + */ + public EClass getXmlVersion() + { + return xmlVersionEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned <em>Xml Private Owned</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Private Owned</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned + * @generated + */ + public EClass getXmlPrivateOwned() + { + return xmlPrivateOwnedEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned#isPrivateOwned <em>Private Owned</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Private Owned</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned#isPrivateOwned() + * @see #getXmlPrivateOwned() + * @generated + */ + public EAttribute getXmlPrivateOwned_PrivateOwned() + { + return (EAttribute)xmlPrivateOwnedEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch <em>Xml Join Fetch</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Join Fetch</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch + * @generated + */ + public EClass getXmlJoinFetch() + { + return xmlJoinFetchEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch#getJoinFetch <em>Join Fetch</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Join Fetch</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch#getJoinFetch() + * @see #getXmlJoinFetch() + * @generated + */ + public EAttribute getXmlJoinFetch_JoinFetch() + { + return (EAttribute)xmlJoinFetchEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne <em>Xml One To One</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml One To One</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne + * @generated + */ + public EClass getXmlOneToOne() + { + return xmlOneToOneEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany <em>Xml One To Many</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml One To Many</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany + * @generated + */ + public EClass getXmlOneToMany() + { + return xmlOneToManyEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToOne <em>Xml Many To One</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Many To One</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToOne + * @generated + */ + public EClass getXmlManyToOne() + { + return xmlManyToOneEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToMany <em>Xml Many To Many</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Xml Many To Many</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToMany + * @generated + */ + public EClass getXmlManyToMany() + { + return xmlManyToManyEClass; + } + + + /** + * Returns the meta object for enum '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType <em>Xml Join Fetch Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Xml Join Fetch Type</em>'. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @generated + */ + public EEnum getXmlJoinFetchType() + { + return xmlJoinFetchTypeEEnum; + } + + + /** * Returns the meta object for class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer <em>Xml Customizer</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> @@ -864,14 +1926,40 @@ public class EclipseLinkOrmPackage extends EPackageImpl xmlReadOnlyEClass = createEClass(XML_READ_ONLY); createEAttribute(xmlReadOnlyEClass, XML_READ_ONLY__READ_ONLY); + xmlCustomizerEClass = createEClass(XML_CUSTOMIZER); + createEAttribute(xmlCustomizerEClass, XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME); + xmlEntityEClass = createEClass(XML_ENTITY); createEReference(xmlEntityEClass, XML_ENTITY__CUSTOMIZER); xmlMappedSuperclassEClass = createEClass(XML_MAPPED_SUPERCLASS); createEReference(xmlMappedSuperclassEClass, XML_MAPPED_SUPERCLASS__CUSTOMIZER); - xmlCustomizerEClass = createEClass(XML_CUSTOMIZER); - createEAttribute(xmlCustomizerEClass, XML_CUSTOMIZER__CUSTOMIZER_CLASS_NAME); + xmlMutableEClass = createEClass(XML_MUTABLE); + createEAttribute(xmlMutableEClass, XML_MUTABLE__MUTABLE); + + xmlIdEClass = createEClass(XML_ID); + + xmlBasicEClass = createEClass(XML_BASIC); + + xmlVersionEClass = createEClass(XML_VERSION); + + xmlPrivateOwnedEClass = createEClass(XML_PRIVATE_OWNED); + createEAttribute(xmlPrivateOwnedEClass, XML_PRIVATE_OWNED__PRIVATE_OWNED); + + xmlJoinFetchEClass = createEClass(XML_JOIN_FETCH); + createEAttribute(xmlJoinFetchEClass, XML_JOIN_FETCH__JOIN_FETCH); + + xmlOneToOneEClass = createEClass(XML_ONE_TO_ONE); + + xmlOneToManyEClass = createEClass(XML_ONE_TO_MANY); + + xmlManyToOneEClass = createEClass(XML_MANY_TO_ONE); + + xmlManyToManyEClass = createEClass(XML_MANY_TO_MANY); + + // Create enums + xmlJoinFetchTypeEEnum = createEEnum(XML_JOIN_FETCH_TYPE); } /** @@ -911,19 +1999,63 @@ public class EclipseLinkOrmPackage extends EPackageImpl xmlEntityEClass.getESuperTypes().add(this.getXmlReadOnly()); xmlMappedSuperclassEClass.getESuperTypes().add(theOrmPackage.getXmlMappedSuperclass()); xmlMappedSuperclassEClass.getESuperTypes().add(this.getXmlReadOnly()); + xmlIdEClass.getESuperTypes().add(theOrmPackage.getXmlIdImpl()); + xmlIdEClass.getESuperTypes().add(this.getXmlMutable()); + xmlBasicEClass.getESuperTypes().add(theOrmPackage.getXmlBasicImpl()); + xmlBasicEClass.getESuperTypes().add(this.getXmlMutable()); + xmlVersionEClass.getESuperTypes().add(theOrmPackage.getXmlVersionImpl()); + xmlVersionEClass.getESuperTypes().add(this.getXmlMutable()); + xmlOneToOneEClass.getESuperTypes().add(theOrmPackage.getXmlOneToOneImpl()); + xmlOneToOneEClass.getESuperTypes().add(this.getXmlPrivateOwned()); + xmlOneToOneEClass.getESuperTypes().add(this.getXmlJoinFetch()); + xmlOneToManyEClass.getESuperTypes().add(theOrmPackage.getXmlOneToManyImpl()); + xmlOneToManyEClass.getESuperTypes().add(this.getXmlPrivateOwned()); + xmlOneToManyEClass.getESuperTypes().add(this.getXmlJoinFetch()); + xmlManyToOneEClass.getESuperTypes().add(theOrmPackage.getXmlManyToOneImpl()); + xmlManyToOneEClass.getESuperTypes().add(this.getXmlJoinFetch()); + xmlManyToManyEClass.getESuperTypes().add(theOrmPackage.getXmlManyToManyImpl()); + xmlManyToManyEClass.getESuperTypes().add(this.getXmlJoinFetch()); // Initialize classes and features; add operations and parameters initEClass(xmlReadOnlyEClass, XmlReadOnly.class, "XmlReadOnly", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getXmlReadOnly_ReadOnly(), theXMLTypePackage.getBooleanObject(), "readOnly", null, 0, 1, XmlReadOnly.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEClass(xmlCustomizerEClass, XmlCustomizer.class, "XmlCustomizer", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getXmlCustomizer_CustomizerClassName(), ecorePackage.getEString(), "customizerClassName", null, 0, 1, XmlCustomizer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEClass(xmlEntityEClass, XmlEntity.class, "XmlEntity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getXmlEntity_Customizer(), this.getXmlCustomizer(), null, "customizer", null, 0, 1, XmlEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(xmlMappedSuperclassEClass, XmlMappedSuperclass.class, "XmlMappedSuperclass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getXmlMappedSuperclass_Customizer(), this.getXmlCustomizer(), null, "customizer", null, 0, 1, XmlMappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEClass(xmlCustomizerEClass, XmlCustomizer.class, "XmlCustomizer", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getXmlCustomizer_CustomizerClassName(), ecorePackage.getEString(), "customizerClassName", null, 0, 1, XmlCustomizer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEClass(xmlMutableEClass, XmlMutable.class, "XmlMutable", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getXmlMutable_Mutable(), theXMLTypePackage.getBooleanObject(), "mutable", null, 0, 1, XmlMutable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(xmlIdEClass, XmlId.class, "XmlId", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlBasicEClass, XmlBasic.class, "XmlBasic", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlVersionEClass, XmlVersion.class, "XmlVersion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlPrivateOwnedEClass, XmlPrivateOwned.class, "XmlPrivateOwned", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getXmlPrivateOwned_PrivateOwned(), theXMLTypePackage.getBoolean(), "privateOwned", null, 0, 1, XmlPrivateOwned.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(xmlJoinFetchEClass, XmlJoinFetch.class, "XmlJoinFetch", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getXmlJoinFetch_JoinFetch(), this.getXmlJoinFetchType(), "joinFetch", null, 0, 1, XmlJoinFetch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(xmlOneToOneEClass, XmlOneToOne.class, "XmlOneToOne", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlOneToManyEClass, XmlOneToMany.class, "XmlOneToMany", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlManyToOneEClass, XmlManyToOne.class, "XmlManyToOne", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(xmlManyToManyEClass, XmlManyToMany.class, "XmlManyToMany", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + // Initialize enums and add enum literals + initEEnum(xmlJoinFetchTypeEEnum, XmlJoinFetchType.class, "XmlJoinFetchType"); + addEEnumLiteral(xmlJoinFetchTypeEEnum, XmlJoinFetchType.INNER); + addEEnumLiteral(xmlJoinFetchTypeEEnum, XmlJoinFetchType.OUTER); // Create resource createResource(eNS_URI); @@ -998,6 +2130,140 @@ public class EclipseLinkOrmPackage extends EPackageImpl public static final EReference XML_MAPPED_SUPERCLASS__CUSTOMIZER = eINSTANCE.getXmlMappedSuperclass_Customizer(); /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable <em>Xml Mutable</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMutable() + * @generated + */ + public static final EClass XML_MUTABLE = eINSTANCE.getXmlMutable(); + + /** + * The meta object literal for the '<em><b>Mutable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final EAttribute XML_MUTABLE__MUTABLE = eINSTANCE.getXmlMutable_Mutable(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlId <em>Xml Id</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlId + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlId() + * @generated + */ + public static final EClass XML_ID = eINSTANCE.getXmlId(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasic <em>Xml Basic</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasic + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasic() + * @generated + */ + public static final EClass XML_BASIC = eINSTANCE.getXmlBasic(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVersion <em>Xml Version</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlVersion + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlVersion() + * @generated + */ + public static final EClass XML_VERSION = eINSTANCE.getXmlVersion(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned <em>Xml Private Owned</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPrivateOwned() + * @generated + */ + public static final EClass XML_PRIVATE_OWNED = eINSTANCE.getXmlPrivateOwned(); + + /** + * The meta object literal for the '<em><b>Private Owned</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final EAttribute XML_PRIVATE_OWNED__PRIVATE_OWNED = eINSTANCE.getXmlPrivateOwned_PrivateOwned(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch <em>Xml Join Fetch</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch() + * @generated + */ + public static final EClass XML_JOIN_FETCH = eINSTANCE.getXmlJoinFetch(); + + /** + * The meta object literal for the '<em><b>Join Fetch</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final EAttribute XML_JOIN_FETCH__JOIN_FETCH = eINSTANCE.getXmlJoinFetch_JoinFetch(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne <em>Xml One To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlOneToOne() + * @generated + */ + public static final EClass XML_ONE_TO_ONE = eINSTANCE.getXmlOneToOne(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany <em>Xml One To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlOneToMany() + * @generated + */ + public static final EClass XML_ONE_TO_MANY = eINSTANCE.getXmlOneToMany(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToOne <em>Xml Many To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToOne + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlManyToOne() + * @generated + */ + public static final EClass XML_MANY_TO_ONE = eINSTANCE.getXmlManyToOne(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToMany <em>Xml Many To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToMany + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlManyToMany() + * @generated + */ + public static final EClass XML_MANY_TO_MANY = eINSTANCE.getXmlManyToMany(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType <em>Xml Join Fetch Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetchType() + * @generated + */ + public static final EEnum XML_JOIN_FETCH_TYPE = eINSTANCE.getXmlJoinFetchType(); + + /** * The meta object literal for the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer <em>Xml Customizer</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasic.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasic.java new file mode 100644 index 0000000000..91ad3a3b79 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlBasic.java @@ -0,0 +1,226 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlBasic.java,v 1.3 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.core.resource.orm.XmlBasicImpl; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Basic</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlBasic() + * @model kind="class" + * @generated + */ +public class XmlBasic extends XmlBasicImpl implements XmlMutable +{ + /** + * The default value of the '{@link #getMutable() <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMutable() + * @generated + * @ordered + */ + protected static final Boolean MUTABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMutable() <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMutable() + * @generated + * @ordered + */ + protected Boolean mutable = MUTABLE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlBasic() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_BASIC; + } + + /** + * Returns the value of the '<em><b>Mutable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mutable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mutable</em>' attribute. + * @see #setMutable(Boolean) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMutable_Mutable() + * @model dataType="org.eclipse.emf.ecore.xml.type.BooleanObject" + * @generated + */ + public Boolean getMutable() + { + return mutable; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlBasic#getMutable <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mutable</em>' attribute. + * @see #getMutable() + * @generated + */ + public void setMutable(Boolean newMutable) + { + Boolean oldMutable = mutable; + mutable = newMutable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_BASIC__MUTABLE, oldMutable, mutable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_BASIC__MUTABLE: + return getMutable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_BASIC__MUTABLE: + setMutable((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_BASIC__MUTABLE: + setMutable(MUTABLE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_BASIC__MUTABLE: + return MUTABLE_EDEFAULT == null ? mutable != null : !MUTABLE_EDEFAULT.equals(mutable); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) + { + if (baseClass == XmlMutable.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_BASIC__MUTABLE: return EclipseLinkOrmPackage.XML_MUTABLE__MUTABLE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) + { + if (baseClass == XmlMutable.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_MUTABLE__MUTABLE: return EclipseLinkOrmPackage.XML_BASIC__MUTABLE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (mutable: "); + result.append(mutable); + result.append(')'); + return result.toString(); + } + +} // XmlBasic diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java new file mode 100644 index 0000000000..5dc41d62c7 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlId.java @@ -0,0 +1,226 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlId.java,v 1.3 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.core.resource.orm.XmlIdImpl; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Id</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlId() + * @model kind="class" + * @generated + */ +public class XmlId extends XmlIdImpl implements XmlMutable +{ + /** + * The default value of the '{@link #getMutable() <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMutable() + * @generated + * @ordered + */ + protected static final Boolean MUTABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMutable() <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMutable() + * @generated + * @ordered + */ + protected Boolean mutable = MUTABLE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlId() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_ID; + } + + /** + * Returns the value of the '<em><b>Mutable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mutable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mutable</em>' attribute. + * @see #setMutable(Boolean) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMutable_Mutable() + * @model dataType="org.eclipse.emf.ecore.xml.type.BooleanObject" + * @generated + */ + public Boolean getMutable() + { + return mutable; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlId#getMutable <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mutable</em>' attribute. + * @see #getMutable() + * @generated + */ + public void setMutable(Boolean newMutable) + { + Boolean oldMutable = mutable; + mutable = newMutable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ID__MUTABLE, oldMutable, mutable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ID__MUTABLE: + return getMutable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ID__MUTABLE: + setMutable((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ID__MUTABLE: + setMutable(MUTABLE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ID__MUTABLE: + return MUTABLE_EDEFAULT == null ? mutable != null : !MUTABLE_EDEFAULT.equals(mutable); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) + { + if (baseClass == XmlMutable.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_ID__MUTABLE: return EclipseLinkOrmPackage.XML_MUTABLE__MUTABLE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) + { + if (baseClass == XmlMutable.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_MUTABLE__MUTABLE: return EclipseLinkOrmPackage.XML_ID__MUTABLE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (mutable: "); + result.append(mutable); + result.append(')'); + return result.toString(); + } + +} // XmlId diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlJoinFetch.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlJoinFetch.java new file mode 100644 index 0000000000..93daa305f9 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlJoinFetch.java @@ -0,0 +1,59 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlJoinFetch.java,v 1.1 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.jpt.core.resource.common.JpaEObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Join Fetch</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch#getJoinFetch <em>Join Fetch</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch() + * @model kind="class" interface="true" abstract="true" + * @extends JpaEObject + * @generated + */ +public interface XmlJoinFetch extends JpaEObject +{ + /** + * Returns the value of the '<em><b>Join Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Fetch</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #setJoinFetch(XmlJoinFetchType) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch_JoinFetch() + * @model + * @generated + */ + XmlJoinFetchType getJoinFetch(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetch#getJoinFetch <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #getJoinFetch() + * @generated + */ + void setJoinFetch(XmlJoinFetchType value); + +} // XmlJoinFetch diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlJoinFetchType.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlJoinFetchType.java new file mode 100644 index 0000000000..896254c565 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlJoinFetchType.java @@ -0,0 +1,227 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlJoinFetchType.java,v 1.1 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * <!-- begin-user-doc --> + * A representation of the literals of the enumeration '<em><b>Xml Join Fetch Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetchType() + * @model + * @generated + */ +public enum XmlJoinFetchType implements Enumerator +{ + /** + * The '<em><b>INNER</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #INNER_VALUE + * @generated + * @ordered + */ + INNER(0, "INNER", "INNER"), + + /** + * The '<em><b>OUTER</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #OUTER_VALUE + * @generated + * @ordered + */ + OUTER(1, "OUTER", "OUTER"); + + /** + * The '<em><b>INNER</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>INNER</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #INNER + * @model + * @generated + * @ordered + */ + public static final int INNER_VALUE = 0; + + /** + * The '<em><b>OUTER</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>OUTER</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #OUTER + * @model + * @generated + * @ordered + */ + public static final int OUTER_VALUE = 1; + + /** + * An array of all the '<em><b>Xml Join Fetch Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final XmlJoinFetchType[] VALUES_ARRAY = + new XmlJoinFetchType[] + { + INNER, + OUTER, + }; + + /** + * A public read-only list of all the '<em><b>Xml Join Fetch Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<XmlJoinFetchType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Xml Join Fetch Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static XmlJoinFetchType get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + XmlJoinFetchType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Xml Join Fetch Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static XmlJoinFetchType getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + XmlJoinFetchType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Xml Join Fetch Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static XmlJoinFetchType get(int value) + { + switch (value) + { + case INNER_VALUE: return INNER; + case OUTER_VALUE: return OUTER; + } + return null; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final int value; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String name; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private XmlJoinFetchType(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getValue() + { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() + { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + return literal; + } + +} //XmlJoinFetchType diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlManyToMany.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlManyToMany.java new file mode 100644 index 0000000000..c6fba325f6 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlManyToMany.java @@ -0,0 +1,229 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlManyToMany.java,v 1.3 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.core.resource.orm.XmlManyToManyImpl; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Many To Many</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlManyToMany() + * @model kind="class" + * @generated + */ +public class XmlManyToMany extends XmlManyToManyImpl implements XmlJoinFetch +{ + /** + * The default value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected static final XmlJoinFetchType JOIN_FETCH_EDEFAULT = XmlJoinFetchType.INNER; + + /** + * The cached value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected XmlJoinFetchType joinFetch = JOIN_FETCH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlManyToMany() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_MANY_TO_MANY; + } + + /** + * Returns the value of the '<em><b>Join Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Fetch</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #setJoinFetch(XmlJoinFetchType) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch_JoinFetch() + * @model + * @generated + */ + public XmlJoinFetchType getJoinFetch() + { + return joinFetch; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToMany#getJoinFetch <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #getJoinFetch() + * @generated + */ + public void setJoinFetch(XmlJoinFetchType newJoinFetch) + { + XmlJoinFetchType oldJoinFetch = joinFetch; + joinFetch = newJoinFetch == null ? JOIN_FETCH_EDEFAULT : newJoinFetch; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_MANY_TO_MANY__JOIN_FETCH, oldJoinFetch, joinFetch)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_MANY__JOIN_FETCH: + return getJoinFetch(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_MANY__JOIN_FETCH: + setJoinFetch((XmlJoinFetchType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_MANY__JOIN_FETCH: + setJoinFetch(JOIN_FETCH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_MANY__JOIN_FETCH: + return joinFetch != JOIN_FETCH_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) + { + if (baseClass == XmlJoinFetch.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_MANY__JOIN_FETCH: return EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) + { + if (baseClass == XmlJoinFetch.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH: return EclipseLinkOrmPackage.XML_MANY_TO_MANY__JOIN_FETCH; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (joinFetch: "); + result.append(joinFetch); + result.append(')'); + return result.toString(); + } + +} // XmlManyToMany diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlManyToOne.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlManyToOne.java new file mode 100644 index 0000000000..afec67995e --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlManyToOne.java @@ -0,0 +1,229 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlManyToOne.java,v 1.3 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.core.resource.orm.XmlManyToOneImpl; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Many To One</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlManyToOne() + * @model kind="class" + * @generated + */ +public class XmlManyToOne extends XmlManyToOneImpl implements XmlJoinFetch +{ + /** + * The default value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected static final XmlJoinFetchType JOIN_FETCH_EDEFAULT = XmlJoinFetchType.INNER; + + /** + * The cached value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected XmlJoinFetchType joinFetch = JOIN_FETCH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlManyToOne() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_MANY_TO_ONE; + } + + /** + * Returns the value of the '<em><b>Join Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Fetch</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #setJoinFetch(XmlJoinFetchType) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch_JoinFetch() + * @model + * @generated + */ + public XmlJoinFetchType getJoinFetch() + { + return joinFetch; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlManyToOne#getJoinFetch <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #getJoinFetch() + * @generated + */ + public void setJoinFetch(XmlJoinFetchType newJoinFetch) + { + XmlJoinFetchType oldJoinFetch = joinFetch; + joinFetch = newJoinFetch == null ? JOIN_FETCH_EDEFAULT : newJoinFetch; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_MANY_TO_ONE__JOIN_FETCH, oldJoinFetch, joinFetch)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_ONE__JOIN_FETCH: + return getJoinFetch(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_ONE__JOIN_FETCH: + setJoinFetch((XmlJoinFetchType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_ONE__JOIN_FETCH: + setJoinFetch(JOIN_FETCH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_ONE__JOIN_FETCH: + return joinFetch != JOIN_FETCH_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) + { + if (baseClass == XmlJoinFetch.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_MANY_TO_ONE__JOIN_FETCH: return EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) + { + if (baseClass == XmlJoinFetch.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH: return EclipseLinkOrmPackage.XML_MANY_TO_ONE__JOIN_FETCH; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (joinFetch: "); + result.append(joinFetch); + result.append(')'); + return result.toString(); + } + +} // XmlManyToOne diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlMutable.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlMutable.java new file mode 100644 index 0000000000..f3bb0f9484 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlMutable.java @@ -0,0 +1,56 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlMutable.java,v 1.1 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.jpt.core.resource.common.JpaEObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Mutable</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable#getMutable <em>Mutable</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMutable() + * @model kind="class" interface="true" abstract="true" + * @extends JpaEObject + * @generated + */ +public interface XmlMutable extends JpaEObject +{ + /** + * Returns the value of the '<em><b>Mutable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mutable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mutable</em>' attribute. + * @see #setMutable(Boolean) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMutable_Mutable() + * @model dataType="org.eclipse.emf.ecore.xml.type.BooleanObject" + * @generated + */ + Boolean getMutable(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMutable#getMutable <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mutable</em>' attribute. + * @see #getMutable() + * @generated + */ + void setMutable(Boolean value); + +} // XmlMutable diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlOneToMany.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlOneToMany.java new file mode 100644 index 0000000000..24df6e4498 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlOneToMany.java @@ -0,0 +1,312 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlOneToMany.java,v 1.3 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.core.resource.orm.XmlOneToManyImpl; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml One To Many</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlOneToMany() + * @model kind="class" + * @generated + */ +public class XmlOneToMany extends XmlOneToManyImpl implements XmlPrivateOwned, XmlJoinFetch +{ + /** + * The default value of the '{@link #isPrivateOwned() <em>Private Owned</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isPrivateOwned() + * @generated + * @ordered + */ + protected static final boolean PRIVATE_OWNED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isPrivateOwned() <em>Private Owned</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isPrivateOwned() + * @generated + * @ordered + */ + protected boolean privateOwned = PRIVATE_OWNED_EDEFAULT; + + /** + * The default value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected static final XmlJoinFetchType JOIN_FETCH_EDEFAULT = XmlJoinFetchType.INNER; + + /** + * The cached value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected XmlJoinFetchType joinFetch = JOIN_FETCH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlOneToMany() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_ONE_TO_MANY; + } + + /** + * Returns the value of the '<em><b>Private Owned</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Private Owned</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Private Owned</em>' attribute. + * @see #setPrivateOwned(boolean) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPrivateOwned_PrivateOwned() + * @model dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * @generated + */ + public boolean isPrivateOwned() + { + return privateOwned; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany#isPrivateOwned <em>Private Owned</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Private Owned</em>' attribute. + * @see #isPrivateOwned() + * @generated + */ + public void setPrivateOwned(boolean newPrivateOwned) + { + boolean oldPrivateOwned = privateOwned; + privateOwned = newPrivateOwned; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ONE_TO_MANY__PRIVATE_OWNED, oldPrivateOwned, privateOwned)); + } + + /** + * Returns the value of the '<em><b>Join Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Fetch</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #setJoinFetch(XmlJoinFetchType) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch_JoinFetch() + * @model + * @generated + */ + public XmlJoinFetchType getJoinFetch() + { + return joinFetch; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToMany#getJoinFetch <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #getJoinFetch() + * @generated + */ + public void setJoinFetch(XmlJoinFetchType newJoinFetch) + { + XmlJoinFetchType oldJoinFetch = joinFetch; + joinFetch = newJoinFetch == null ? JOIN_FETCH_EDEFAULT : newJoinFetch; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ONE_TO_MANY__JOIN_FETCH, oldJoinFetch, joinFetch)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__PRIVATE_OWNED: + return isPrivateOwned() ? Boolean.TRUE : Boolean.FALSE; + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__JOIN_FETCH: + return getJoinFetch(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__PRIVATE_OWNED: + setPrivateOwned(((Boolean)newValue).booleanValue()); + return; + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__JOIN_FETCH: + setJoinFetch((XmlJoinFetchType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__PRIVATE_OWNED: + setPrivateOwned(PRIVATE_OWNED_EDEFAULT); + return; + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__JOIN_FETCH: + setJoinFetch(JOIN_FETCH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__PRIVATE_OWNED: + return privateOwned != PRIVATE_OWNED_EDEFAULT; + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__JOIN_FETCH: + return joinFetch != JOIN_FETCH_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) + { + if (baseClass == XmlPrivateOwned.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__PRIVATE_OWNED: return EclipseLinkOrmPackage.XML_PRIVATE_OWNED__PRIVATE_OWNED; + default: return -1; + } + } + if (baseClass == XmlJoinFetch.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_MANY__JOIN_FETCH: return EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) + { + if (baseClass == XmlPrivateOwned.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_PRIVATE_OWNED__PRIVATE_OWNED: return EclipseLinkOrmPackage.XML_ONE_TO_MANY__PRIVATE_OWNED; + default: return -1; + } + } + if (baseClass == XmlJoinFetch.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH: return EclipseLinkOrmPackage.XML_ONE_TO_MANY__JOIN_FETCH; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (privateOwned: "); + result.append(privateOwned); + result.append(", joinFetch: "); + result.append(joinFetch); + result.append(')'); + return result.toString(); + } + +} // XmlOneToMany diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlOneToOne.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlOneToOne.java new file mode 100644 index 0000000000..f323db2b2a --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlOneToOne.java @@ -0,0 +1,312 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlOneToOne.java,v 1.3 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.core.resource.orm.XmlOneToOneImpl; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml One To One</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlOneToOne() + * @model kind="class" + * @generated + */ +public class XmlOneToOne extends XmlOneToOneImpl implements XmlPrivateOwned, XmlJoinFetch +{ + /** + * The default value of the '{@link #isPrivateOwned() <em>Private Owned</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isPrivateOwned() + * @generated + * @ordered + */ + protected static final boolean PRIVATE_OWNED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isPrivateOwned() <em>Private Owned</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isPrivateOwned() + * @generated + * @ordered + */ + protected boolean privateOwned = PRIVATE_OWNED_EDEFAULT; + + /** + * The default value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected static final XmlJoinFetchType JOIN_FETCH_EDEFAULT = XmlJoinFetchType.INNER; + + /** + * The cached value of the '{@link #getJoinFetch() <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinFetch() + * @generated + * @ordered + */ + protected XmlJoinFetchType joinFetch = JOIN_FETCH_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlOneToOne() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_ONE_TO_ONE; + } + + /** + * Returns the value of the '<em><b>Private Owned</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Private Owned</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Private Owned</em>' attribute. + * @see #setPrivateOwned(boolean) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPrivateOwned_PrivateOwned() + * @model dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * @generated + */ + public boolean isPrivateOwned() + { + return privateOwned; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne#isPrivateOwned <em>Private Owned</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Private Owned</em>' attribute. + * @see #isPrivateOwned() + * @generated + */ + public void setPrivateOwned(boolean newPrivateOwned) + { + boolean oldPrivateOwned = privateOwned; + privateOwned = newPrivateOwned; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ONE_TO_ONE__PRIVATE_OWNED, oldPrivateOwned, privateOwned)); + } + + /** + * Returns the value of the '<em><b>Join Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Fetch</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #setJoinFetch(XmlJoinFetchType) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlJoinFetch_JoinFetch() + * @model + * @generated + */ + public XmlJoinFetchType getJoinFetch() + { + return joinFetch; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlOneToOne#getJoinFetch <em>Join Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Fetch</em>' attribute. + * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlJoinFetchType + * @see #getJoinFetch() + * @generated + */ + public void setJoinFetch(XmlJoinFetchType newJoinFetch) + { + XmlJoinFetchType oldJoinFetch = joinFetch; + joinFetch = newJoinFetch == null ? JOIN_FETCH_EDEFAULT : newJoinFetch; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ONE_TO_ONE__JOIN_FETCH, oldJoinFetch, joinFetch)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__PRIVATE_OWNED: + return isPrivateOwned() ? Boolean.TRUE : Boolean.FALSE; + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__JOIN_FETCH: + return getJoinFetch(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__PRIVATE_OWNED: + setPrivateOwned(((Boolean)newValue).booleanValue()); + return; + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__JOIN_FETCH: + setJoinFetch((XmlJoinFetchType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__PRIVATE_OWNED: + setPrivateOwned(PRIVATE_OWNED_EDEFAULT); + return; + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__JOIN_FETCH: + setJoinFetch(JOIN_FETCH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__PRIVATE_OWNED: + return privateOwned != PRIVATE_OWNED_EDEFAULT; + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__JOIN_FETCH: + return joinFetch != JOIN_FETCH_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) + { + if (baseClass == XmlPrivateOwned.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__PRIVATE_OWNED: return EclipseLinkOrmPackage.XML_PRIVATE_OWNED__PRIVATE_OWNED; + default: return -1; + } + } + if (baseClass == XmlJoinFetch.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_ONE_TO_ONE__JOIN_FETCH: return EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) + { + if (baseClass == XmlPrivateOwned.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_PRIVATE_OWNED__PRIVATE_OWNED: return EclipseLinkOrmPackage.XML_ONE_TO_ONE__PRIVATE_OWNED; + default: return -1; + } + } + if (baseClass == XmlJoinFetch.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_JOIN_FETCH__JOIN_FETCH: return EclipseLinkOrmPackage.XML_ONE_TO_ONE__JOIN_FETCH; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (privateOwned: "); + result.append(privateOwned); + result.append(", joinFetch: "); + result.append(joinFetch); + result.append(')'); + return result.toString(); + } + +} // XmlOneToOne diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlPrivateOwned.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlPrivateOwned.java new file mode 100644 index 0000000000..f0f8686e60 --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlPrivateOwned.java @@ -0,0 +1,56 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlPrivateOwned.java,v 1.1 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.jpt.core.resource.common.JpaEObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Private Owned</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned#isPrivateOwned <em>Private Owned</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPrivateOwned() + * @model kind="class" interface="true" abstract="true" + * @extends JpaEObject + * @generated + */ +public interface XmlPrivateOwned extends JpaEObject +{ + /** + * Returns the value of the '<em><b>Private Owned</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Private Owned</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Private Owned</em>' attribute. + * @see #setPrivateOwned(boolean) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPrivateOwned_PrivateOwned() + * @model dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * @generated + */ + boolean isPrivateOwned(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlPrivateOwned#isPrivateOwned <em>Private Owned</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Private Owned</em>' attribute. + * @see #isPrivateOwned() + * @generated + */ + void setPrivateOwned(boolean value); + +} // XmlPrivateOwned diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlVersion.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlVersion.java new file mode 100644 index 0000000000..d585c9699c --- /dev/null +++ b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/XmlVersion.java @@ -0,0 +1,226 @@ +/** + * <copyright> + * </copyright> + * + * $Id: XmlVersion.java,v 1.3 2008/10/16 21:17:50 pfullbright Exp $ + */ +package org.eclipse.jpt.eclipselink.core.resource.orm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.core.resource.orm.XmlVersionImpl; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Xml Version</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlVersion() + * @model kind="class" + * @generated + */ +public class XmlVersion extends XmlVersionImpl implements XmlMutable +{ + /** + * The default value of the '{@link #getMutable() <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMutable() + * @generated + * @ordered + */ + protected static final Boolean MUTABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMutable() <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMutable() + * @generated + * @ordered + */ + protected Boolean mutable = MUTABLE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XmlVersion() + { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() + { + return EclipseLinkOrmPackage.Literals.XML_VERSION; + } + + /** + * Returns the value of the '<em><b>Mutable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mutable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mutable</em>' attribute. + * @see #setMutable(Boolean) + * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlMutable_Mutable() + * @model dataType="org.eclipse.emf.ecore.xml.type.BooleanObject" + * @generated + */ + public Boolean getMutable() + { + return mutable; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVersion#getMutable <em>Mutable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mutable</em>' attribute. + * @see #getMutable() + * @generated + */ + public void setMutable(Boolean newMutable) + { + Boolean oldMutable = mutable; + mutable = newMutable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VERSION__MUTABLE, oldMutable, mutable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_VERSION__MUTABLE: + return getMutable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_VERSION__MUTABLE: + setMutable((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_VERSION__MUTABLE: + setMutable(MUTABLE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case EclipseLinkOrmPackage.XML_VERSION__MUTABLE: + return MUTABLE_EDEFAULT == null ? mutable != null : !MUTABLE_EDEFAULT.equals(mutable); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) + { + if (baseClass == XmlMutable.class) + { + switch (derivedFeatureID) + { + case EclipseLinkOrmPackage.XML_VERSION__MUTABLE: return EclipseLinkOrmPackage.XML_MUTABLE__MUTABLE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) + { + if (baseClass == XmlMutable.class) + { + switch (baseFeatureID) + { + case EclipseLinkOrmPackage.XML_MUTABLE__MUTABLE: return EclipseLinkOrmPackage.XML_VERSION__MUTABLE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (mutable: "); + result.append(mutable); + result.append(')'); + return result.toString(); + } + +} // XmlVersion diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/util/EclipseLinkOrmAdapterFactory.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/util/EclipseLinkOrmAdapterFactory.java deleted file mode 100644 index fb94ea1003..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/util/EclipseLinkOrmAdapterFactory.java +++ /dev/null @@ -1,260 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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.eclipselink.core.resource.orm.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jpt.core.resource.orm.AbstractXmlTypeMapping; -import org.eclipse.jpt.eclipselink.core.resource.orm.*; -import org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage; -import org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity; - -/** - * <!-- begin-user-doc --> - * The <b>Adapter Factory</b> for the model. - * It provides an adapter <code>createXXX</code> method for each class of the model. - * <!-- end-user-doc --> - * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage - * @generated - */ -public class EclipseLinkOrmAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static EclipseLinkOrmPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EclipseLinkOrmAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = EclipseLinkOrmPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * <!-- begin-user-doc --> - * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. - * <!-- end-user-doc --> - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) - { - if (object == modelPackage) - { - return true; - } - if (object instanceof EObject) - { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the <code>createXXX</code> methods. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected EclipseLinkOrmSwitch<Adapter> modelSwitch = - new EclipseLinkOrmSwitch<Adapter>() - { - @Override - public Adapter caseXmlReadOnly(XmlReadOnly object) - { - return createXmlReadOnlyAdapter(); - } - @Override - public Adapter caseXmlEntity(XmlEntity object) - { - return createXmlEntityAdapter(); - } - @Override - public Adapter caseXmlMappedSuperclass(XmlMappedSuperclass object) - { - return createXmlMappedSuperclassAdapter(); - } - @Override - public Adapter caseXmlCustomizer(XmlCustomizer object) - { - return createXmlCustomizerAdapter(); - } - @Override - public Adapter caseAbstractXmlTypeMapping(AbstractXmlTypeMapping object) - { - return createAbstractXmlTypeMappingAdapter(); - } - @Override - public Adapter caseXmlEntity_1(org.eclipse.jpt.core.resource.orm.XmlEntity object) - { - return createXmlEntity_1Adapter(); - } - @Override - public Adapter caseXmlMappedSuperclass_1(org.eclipse.jpt.core.resource.orm.XmlMappedSuperclass object) - { - return createXmlMappedSuperclass_1Adapter(); - } - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the <code>target</code>. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @param target the object to adapt. - * @return the adapter for the <code>target</code>. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) - { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlReadOnly <em>Xml Read Only</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlReadOnly - * @generated - */ - public Adapter createXmlReadOnlyAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity <em>Xml Entity</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity - * @generated - */ - public Adapter createXmlEntityAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlMappedSuperclass <em>Xml Mapped Superclass</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlMappedSuperclass - * @generated - */ - public Adapter createXmlMappedSuperclassAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer <em>Xml Customizer</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jpt.eclipselink.core.resource.orm.XmlCustomizer - * @generated - */ - public Adapter createXmlCustomizerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jpt.core.resource.orm.AbstractXmlTypeMapping <em>Abstract Xml Type Mapping</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jpt.core.resource.orm.AbstractXmlTypeMapping - * @generated - */ - public Adapter createAbstractXmlTypeMappingAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jpt.core.resource.orm.XmlEntity <em>Xml Entity</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jpt.core.resource.orm.XmlEntity - * @generated - */ - public Adapter createXmlEntity_1Adapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.jpt.core.resource.orm.XmlMappedSuperclass <em>Xml Mapped Superclass</em>}'. - * <!-- begin-user-doc --> - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * <!-- end-user-doc --> - * @return the new adapter. - * @see org.eclipse.jpt.core.resource.orm.XmlMappedSuperclass - * @generated - */ - public Adapter createXmlMappedSuperclass_1Adapter() - { - return null; - } - - /** - * Creates a new adapter for the default case. - * <!-- begin-user-doc --> - * This default implementation returns null. - * <!-- end-user-doc --> - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() - { - return null; - } - -} //EclipseLinkOrmAdapterFactory diff --git a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/util/EclipseLinkOrmSwitch.java b/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/util/EclipseLinkOrmSwitch.java deleted file mode 100644 index 8d0c623d53..0000000000 --- a/jpa/plugins/org.eclipse.jpt.eclipselink.core/src/org/eclipse/jpt/eclipselink/core/resource/orm/util/EclipseLinkOrmSwitch.java +++ /dev/null @@ -1,270 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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.eclipselink.core.resource.orm.util; - -import java.util.List; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jpt.core.resource.orm.AbstractXmlTypeMapping; -import org.eclipse.jpt.eclipselink.core.resource.orm.*; -import org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage; -import org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity; - -/** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * <!-- end-user-doc --> - * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage - * @generated - */ -public class EclipseLinkOrmSwitch<T> -{ - /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected static EclipseLinkOrmPackage modelPackage; - - /** - * Creates an instance of the switch. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EclipseLinkOrmSwitch() - { - if (modelPackage == null) - { - modelPackage = EclipseLinkOrmPackage.eINSTANCE; - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - public T doSwitch(EObject theEObject) - { - return doSwitch(theEObject.eClass(), theEObject); - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected T doSwitch(EClass theEClass, EObject theEObject) - { - if (theEClass.eContainer() == modelPackage) - { - return doSwitch(theEClass.getClassifierID(), theEObject); - } - else - { - List<EClass> eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch(eSuperTypes.get(0), theEObject); - } - } - - /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @return the first non-null result returned by a <code>caseXXX</code> call. - * @generated - */ - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case EclipseLinkOrmPackage.XML_READ_ONLY: - { - XmlReadOnly xmlReadOnly = (XmlReadOnly)theEObject; - T result = caseXmlReadOnly(xmlReadOnly); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EclipseLinkOrmPackage.XML_ENTITY: - { - XmlEntity xmlEntity = (XmlEntity)theEObject; - T result = caseXmlEntity(xmlEntity); - if (result == null) result = caseXmlEntity_1(xmlEntity); - if (result == null) result = caseXmlReadOnly(xmlEntity); - if (result == null) result = caseAbstractXmlTypeMapping(xmlEntity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EclipseLinkOrmPackage.XML_MAPPED_SUPERCLASS: - { - XmlMappedSuperclass xmlMappedSuperclass = (XmlMappedSuperclass)theEObject; - T result = caseXmlMappedSuperclass(xmlMappedSuperclass); - if (result == null) result = caseXmlMappedSuperclass_1(xmlMappedSuperclass); - if (result == null) result = caseXmlReadOnly(xmlMappedSuperclass); - if (result == null) result = caseAbstractXmlTypeMapping(xmlMappedSuperclass); - if (result == null) result = defaultCase(theEObject); - return result; - } - case EclipseLinkOrmPackage.XML_CUSTOMIZER: - { - XmlCustomizer xmlCustomizer = (XmlCustomizer)theEObject; - T result = caseXmlCustomizer(xmlCustomizer); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Xml Read Only</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Xml Read Only</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseXmlReadOnly(XmlReadOnly object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Xml Entity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Xml Entity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseXmlEntity(XmlEntity object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Xml Mapped Superclass</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Xml Mapped Superclass</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseXmlMappedSuperclass(XmlMappedSuperclass object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Xml Customizer</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Xml Customizer</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseXmlCustomizer(XmlCustomizer object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Abstract Xml Type Mapping</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Abstract Xml Type Mapping</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractXmlTypeMapping(AbstractXmlTypeMapping object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Xml Entity</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Xml Entity</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseXmlEntity_1(org.eclipse.jpt.core.resource.orm.XmlEntity object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>Xml Mapped Superclass</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>Xml Mapped Superclass</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseXmlMappedSuperclass_1(org.eclipse.jpt.core.resource.orm.XmlMappedSuperclass object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * <!-- end-user-doc --> - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of '<em>EObject</em>'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - public T defaultCase(EObject object) - { - return null; - } - -} //EclipseLinkOrmSwitch |