diff options
Diffstat (limited to 'eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf')
181 files changed, 56261 insertions, 0 deletions
diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/GenerateORM.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/GenerateORM.java new file mode 100755 index 000000000..6492234a8 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/GenerateORM.java @@ -0,0 +1,139 @@ +/** + * <copyright> + * + * Copyright (c) 2009 Springsite BV (The Netherlands) and others + * 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: + * Martin Taal - Initial API and implementation + * + * </copyright> + * + * $Id: GenerateORM.java,v 1.1 2009/03/23 19:01:40 mtaal Exp $ + */ + +package org.eclipse.emf.teneo.jpa; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.ArrayList; +import java.util.Properties; + +import org.eclipse.emf.teneo.PersistenceOptions; +import org.eclipse.emf.teneo.TeneoException; +import org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingBuilder; +import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedModel; +import org.eclipse.emf.teneo.extension.ExtensionManager; +import org.eclipse.emf.teneo.extension.ExtensionManagerFactory; +import org.eclipse.emf.teneo.jpa.convert.ORMGenerator; + +/** + * Class is responsible for generating the hbm file. Is run through a launcher + * therefore the main methods. + * + * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> + * @version $Revision: 1.1 $ + */ + +public class GenerateORM { + + /** Parses the args and generates a hbm file */ + public static void main(String[] args) { + // decode the args + Properties options = new Properties(); + ArrayList<String> ecores = new ArrayList<String>(); + String targetFileName = null; + for (int i = 0; i < args.length; i++) { + if (i == 0) { + targetFileName = args[0]; + } else if (args[i].startsWith("+")) { // option + final String[] keyValue = args[i].substring(1).split(","); + options.put(keyValue[0], keyValue[1]); + } else if (args[i].startsWith("-")) { // epackage classnames + final String[] epacks = args[i].substring(1).split(","); + + // the epackages load them all, hope for the best + // when loading the epackage should be loaded + for (String element : epacks) { + try { + Class.forName(element); + } catch (Throwable t) { // ignore everything but show + // something + t.printStackTrace(System.err); + } + } + } else { + ecores.add(args[i]); + } + } + + createORMapperFile(targetFileName, ecores.toArray(new String[ecores + .size()]), options); + } + + /** Creates the mapping file */ + private static void createORMapperFile(String targetFileName, + String[] ecores, Properties options) { + try { + // get the first ecore file + File firstEcore = new File(ecores[0]); + File file = new File(firstEcore.getParentFile(), targetFileName); + final File archiveFile = new File(firstEcore.getParentFile(), + targetFileName + "_old"); + + if (file.exists()) { + if (archiveFile.exists()) { + archiveFile.delete(); + } + copyFile(file, archiveFile); + file.delete(); + } + file.createNewFile(); + + final ExtensionManager extensionManager = ExtensionManagerFactory + .getInstance().create(); + + final ORMGenerator converter = new ORMGenerator(); + final PersistenceOptions po = converter + .getDefaultPersistenceOptions(options); + final PAnnotatedModel paModel = extensionManager.getExtension( + PersistenceMappingBuilder.class).buildMapping(ecores, po, + extensionManager); + final String orm = converter.generateORM(paModel.getPaEPackages(), + po); + FileWriter writer = new FileWriter(file); + writer.write(orm); + writer.flush(); + } catch (IOException e) { + throw new TeneoException( + "IOException when creating or mapping file", e); + } + } + + /** Copies a file */ + public static void copyFile(File src, File dst) throws IOException { + if (!dst.exists()) { + dst.createNewFile(); + } + + InputStream in = new FileInputStream(src); + OutputStream out = new FileOutputStream(dst); + + // Transfer bytes from in to out + byte[] buf = new byte[1024]; + int len; + while ((len = in.read(buf)) > 0) { + out.write(buf, 0, len); + } + in.close(); + out.close(); + } +}
\ No newline at end of file diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/convert/ORMGenerator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/convert/ORMGenerator.java new file mode 100755 index 000000000..156deae52 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/convert/ORMGenerator.java @@ -0,0 +1,726 @@ +/** + * <copyright> + * + * Copyright (c) 2009 Springsite BV (The Netherlands) and others + * 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: + * Martin Taal - Initial API and implementation + * + * </copyright> + * + * $Id: ORMGenerator.java,v 1.8 2010/04/22 17:58:01 mtaal Exp $ + */ + +package org.eclipse.emf.teneo.jpa.convert; + +import java.io.IOException; +import java.io.StringWriter; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Properties; + +import org.eclipse.emf.common.util.Enumerator; +import org.eclipse.emf.ecore.EAnnotation; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.xmi.XMLResource; +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; +import org.eclipse.emf.teneo.ERuntime; +import org.eclipse.emf.teneo.PersistenceOptions; +import org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingBuilder; +import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEAttribute; +import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEClass; +import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEPackage; +import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEReference; +import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedEStructuralFeature; +import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedModel; +import org.eclipse.emf.teneo.annotations.pannotation.CascadeType; +import org.eclipse.emf.teneo.extension.DefaultExtensionManager; +import org.eclipse.emf.teneo.extension.ExtensionManager; +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; +import org.eclipse.emf.teneo.jpa.orm.Attributes; +import org.eclipse.emf.teneo.jpa.orm.Basic; +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.DocumentRoot; +import org.eclipse.emf.teneo.jpa.orm.Embeddable; +import org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes; +import org.eclipse.emf.teneo.jpa.orm.Embedded; +import org.eclipse.emf.teneo.jpa.orm.EmbeddedId; +import org.eclipse.emf.teneo.jpa.orm.Entity; +import org.eclipse.emf.teneo.jpa.orm.EntityMappingsType; +import org.eclipse.emf.teneo.jpa.orm.Id; +import org.eclipse.emf.teneo.jpa.orm.IdClass; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.ManyToMany; +import org.eclipse.emf.teneo.jpa.orm.ManyToOne; +import org.eclipse.emf.teneo.jpa.orm.MappedSuperclass; +import org.eclipse.emf.teneo.jpa.orm.OneToMany; +import org.eclipse.emf.teneo.jpa.orm.OneToOne; +import org.eclipse.emf.teneo.jpa.orm.OrmFactory; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata; +import org.eclipse.emf.teneo.jpa.orm.Transient; +import org.eclipse.emf.teneo.jpa.orm.Version; + +/** + * Converts a PAnnotatedModel to an ORM model. + * + * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> + * @version $Revision: 1.8 $ + */ + +public class ORMGenerator { + + private OrmFactory factory = OrmFactory.eINSTANCE; + + // public static void main(String[] args) { + // final ORMGenerator ormGenerator = new ORMGenerator(); + // ormGenerator.testGenerateORM(); + // } + // + // public void testGenerateORM() { + // final Properties props = new Properties(); + // props.setProperty(PersistenceOptions.SQL_TABLE_NAME_PREFIX, "EMFLIB_"); + // + // final ORMGenerator converter = new ORMGenerator(); + // final String orm = converter.generateORM( + // new EPackage[] { DataPackage.eINSTANCE }, converter + // .getDefaultPersistenceOptions(props)); + // System.err.println(orm); + // // writeToFile(orm, "bin/META-INF/orm.xml"); + // // writeToFile(orm, "src/META-INF/orm.xml"); + // } + // + // private void writeToFile(String content, String path) { + // try { + // FileWriter fw = new FileWriter( + // "/home/mtaal/mydata/dev/workspaces/nextspace/org.eclipse.emf.teneo.eclipselink.examples.library/" + // + path); + // fw.write(content); + // fw.close(); + // } catch (Exception e) { + // throw new IllegalStateException(e); + // } + // } + + /** + * Returns the default settings of some persistence options + * + * @param props + * properties set by the user, new properties override current ones + * @return the PersistenceOptions object + */ + public PersistenceOptions getDefaultPersistenceOptions(Properties props) { + props.setProperty(PersistenceOptions.SQL_NAME_ESCAPE_CHARACTER, ""); + props.setProperty(PersistenceOptions.EMAP_AS_TRUE_MAP, "false"); + props.setProperty(PersistenceOptions.SET_DEFAULT_CASCADE_ON_NON_CONTAINMENT, "true"); + props.setProperty(PersistenceOptions.CASCADE_POLICY_ON_NON_CONTAINMENT, "REFRESH,PERSIST,MERGE"); + props.setProperty(PersistenceOptions.ID_FEATURE_AS_PRIMARY_KEY, "false"); + props.setProperty(PersistenceOptions.SQL_CASE_STRATEGY, "uppercase"); + final ExtensionManager extensionManager = new DefaultExtensionManager(); + return extensionManager.getExtension(PersistenceOptions.class, new Object[] { props }); + } + + /** + * Generate the ORM for a set of EPackages. Uses the default PersistenceOptions settings. + * + * @param ePackages + * the ePackages to generate an ORM for + * @return the orm.xml as a String + */ + public String generateORM(EPackage[] ePackages) { + return generateORM(ePackages, getDefaultPersistenceOptions(new Properties())); + } + + /** + * Generate the ORM for a set of EPackages + * + * @param ePackages + * the ePackages to generate an ORM for + * @param po + * the PersistenceOptions to use for generation + * @return the orm.xml as a String + */ + public String generateORM(EPackage[] ePackages, PersistenceOptions po) { + final ExtensionManager extensionManager = new DefaultExtensionManager(); + final PAnnotatedModel paModel = extensionManager.getExtension(PersistenceMappingBuilder.class).buildMapping( + ePackages, po, extensionManager); + return generateORM(paModel.getPaEPackages(), po); + } + + /** + * Convert a PAnnotated model to an ORM model. + * + * @param annotatedEPackages + * the annotated EPackages to convert + * @param po + * some {@link PersistenceOptions} + * @return the orm model as a XML string + */ + public String generateORM(List<PAnnotatedEPackage> annotatedEPackages, PersistenceOptions po) { + final XMLResource res = new XMLResourceImpl(); + final Map<String, Object> options = new HashMap<String, Object>(); + options.put(XMLResource.OPTION_ENCODING, "UTF-8"); + options.put(XMLResource.OPTION_EXTENDED_META_DATA, true); + options.put(XMLResource.OPTION_SCHEMA_LOCATION, true); + options.put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, true); + + final StringWriter sw = new StringWriter(); + final DocumentRoot dr = factory.createDocumentRoot(); + dr.setEntityMappings(convertPAnnotatedEPackages(annotatedEPackages, po)); + dr.getXMLNSPrefixMap().put("xsi", "http://www.w3.org/2001/XMLSchema-instance"); + dr.getXSISchemaLocation().put("http://java.sun.com/xml/ns/persistence/orm", + "http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"); + res.getContents().add(dr); + try { + res.save(sw, options); + final String result = sw.toString(); + // ugly but effective + if (!result.contains("xmlns=")) { + return result.replace("<entity-mappings ", "<entity-mappings xmlns=\"http://java.sun.com/xml/ns/persistence/orm\" "); + } else { + return result; + } + } catch (IOException e) { + throw new IllegalStateException(e); + } + } + + /** + * Convert an annotated model to an instance of an ORM model + * + * @param annotatedEPackages + * the annotated model + * @param po + * the persistence options influencing the mapping + * @return an instance of an ORM model + */ + public EntityMappingsType convertPAnnotatedEPackages(List<PAnnotatedEPackage> annotatedEPackages, + PersistenceOptions po) { + final EntityMappingsType entityMappings = OrmFactory.eINSTANCE.createEntityMappingsType(); + entityMappings.setVersion("1.0"); + entityMappings.setPersistenceUnitMetadata(getMetaData()); + for (PAnnotatedEPackage pPackage : annotatedEPackages) { + + copyFeatures(pPackage, entityMappings); + + for (PAnnotatedEClass pClass : pPackage.getPaEClasses()) { + if (pClass.getEntity() == null && pClass.getEmbeddable() == null) { + continue; + } + if (ERuntime.INSTANCE.getJavaClass(pClass.getModelEClass()) == null) { + continue; + } + convertPAnnotatedEClass(entityMappings, pClass); + } + } + escape(entityMappings, po.getSqlNameEscapeCharacter()); + + return entityMappings; + } + + /** + * Escape the table and column names in the model, using an eannotation flag on the orm meta model. + * + * @param entityMappings + * the model containing the table/column instances of which the names will be escaped + * @param escapeChar + * the character to use for escaping + */ + private void escape(EntityMappingsType entityMappings, String escapeChar) { + if (escapeChar == null || escapeChar.trim().length() == 0) { + return; + } + for (Iterator<EObject> it = entityMappings.eAllContents(); it.hasNext();) { + final EObject eObject = it.next(); + for (EStructuralFeature eFeature : eObject.eClass().getEAllAttributes()) { + final EAnnotation eAnnotation = eFeature.getEAnnotation("teneo.escape"); + if (eAnnotation != null) { + final String value = (String) eObject.eGet(eFeature); + if (value != null && value.trim().length() > 0 && !value.startsWith(escapeChar) + && !value.endsWith(escapeChar)) { + eObject.eSet(eFeature, "'\"" + value + "\"'"); + } + } + } + } + } + + /** + * Converts an annotated EClass by creating an ORM model equivalent and adding it to the passed entityTypes. + * + * @param entityTypes + * the ORM model to fill + * @param pClass + * the annotated EClass to convert to ORM + */ + private void convertPAnnotatedEClass(EntityMappingsType entityTypes, PAnnotatedEClass pClass) { + List<PAnnotatedEPackage> annotatedEPackages = pClass.getPaModel().getPaEPackages(); + final EObject mainType; + if (pClass.getMappedSuperclass() != null) { + final MappedSuperclass mappedSuperclass = factory.createMappedSuperclass(); + entityTypes.getMappedSuperclass().add(mappedSuperclass); + mainType = mappedSuperclass; + mappedSuperclass.setClass(ERuntime.INSTANCE.getJavaClass(pClass.getModelEClass()).getName()); + } else if (pClass.getEmbeddable() != null) { + final Embeddable embeddable = factory.createEmbeddable(); + embeddable.setClass(ERuntime.INSTANCE.getJavaInterfaceClass(pClass.getModelEClass()).getName()); + mainType = embeddable; + entityTypes.getEmbeddable().add(embeddable); + copyFeatures(pClass, mainType); + + final EmbeddableAttributes embeddableAttributes = factory.createEmbeddableAttributes(); + embeddable.setAttributes(embeddableAttributes); + + for (PAnnotatedEStructuralFeature pFeature : pClass.getPaEStructuralFeatures()) { + if (pFeature.getModelEStructuralFeature().isDerived() || pFeature.getModelEStructuralFeature().isVolatile()) { + continue; + } + mapEmbeddedFeatures(pFeature, embeddableAttributes); + } + + // stop here + return; + } else { + final Entity entity = factory.createEntity(); + entityTypes.getEntity().add(entity); + mainType = entity; + entity.setName(pClass.getEntity().getName()); + entity.setClass(ERuntime.INSTANCE.getJavaClass(pClass.getModelEClass()).getName()); + } + copyFeatures(pClass, mainType); + + final Attributes attributes = factory.createAttributes(); + mainType.eSet(mainType.eClass().getEStructuralFeature("attributes"), attributes); + + if (isMapEntry(pClass.getModelEClass())) { + addEMapAnnotations((Entity) mainType, attributes, pClass); + } + + for (PAnnotatedEStructuralFeature pFeature : pClass.getPaEStructuralFeatures()) { + if (pFeature.getModelEStructuralFeature().isDerived() || pFeature.getModelEStructuralFeature().isVolatile()) { + continue; + } + mapEFeature(pFeature, attributes); + } + + // add container featureid + if (pClass.getPaSuperEntity() == null) { + final Basic basic = factory.createBasic(); + basic.setName("eContainerFeatureID"); + final Column c = factory.createColumn(); + c.setName("ECONT_FEAT_ID"); + basic.setColumn(c); + attributes.getBasic().add(basic); + } + + final PAnnotatedEReference containmentRef = getContainmentFeature(pClass, annotatedEPackages); + if (containmentRef != null) { + if (containmentRef.getModelEReference().isMany()) { + final ManyToOne mto = factory.createManyToOne(); + mto.setName("eContainer"); + mto.setTargetEntity(ERuntime.INSTANCE.getJavaClass(containmentRef.getPaEClass().getModelEClass()) + .getName()); + attributes.getManyToOne().add(mto); + + final JoinColumn jc = factory.createJoinColumn(); + jc.setName(containmentRef.getJoinColumns().get(0).getName()); + mto.getJoinColumn().add(jc); + + final org.eclipse.emf.teneo.jpa.orm.CascadeType ct = factory.createCascadeType(); + ct.setCascadeAll(factory.createEmptyType()); + mto.setCascade(ct); + } else { + final OneToOne oto = factory.createOneToOne(); + oto.setName("eContainer"); + oto.setTargetEntity(ERuntime.INSTANCE.getJavaClass(containmentRef.getPaEClass().getModelEClass()) + .getName()); + attributes.getOneToOne().add(oto); + oto.setMappedBy(containmentRef.getModelEReference().getName()); + final org.eclipse.emf.teneo.jpa.orm.CascadeType ct = factory.createCascadeType(); + ct.setCascadeAll(factory.createEmptyType()); + oto.setCascade(ct); + } + } + } + + private void mapEmbeddedFeatures(PAnnotatedEStructuralFeature pFeature, EmbeddableAttributes attributes) { + if (isMapEntry(pFeature.getPaEClass().getModelEClass()) && pFeature.getModelElement().getName().equals("key")) { + return; + } + + if (pFeature instanceof PAnnotatedEAttribute) { + final PAnnotatedEAttribute pAttribute = (PAnnotatedEAttribute) pFeature; + if (pAttribute.getTransient() != null) { + final Transient t = factory.createTransient(); + t.setName(pAttribute.getModelEAttribute().getName()); + attributes.getTransient().add(t); + } else if (pAttribute.getBasic() != null) { + final Basic b = factory.createBasic(); + b.setName(pAttribute.getModelEAttribute().getName()); + copyFeatures(pAttribute, b); + copyFeatures(pAttribute.getBasic(), b); + attributes.getBasic().add(b); + } + } else { + final PAnnotatedEReference pReference = (PAnnotatedEReference) pFeature; + if (pReference.getModelEReference().isContainer()) { + // do nothing ignore + } else if (pReference.getTransient() != null) { + final Transient t = factory.createTransient(); + t.setName(pReference.getModelEReference().getName()); + attributes.getTransient().add(t); + } + } + } + + /** + * Translate one annotated EStructuralFeature to its ORM equivalent and add it to the ORM attributes + * + * @param pFeature + * the annotated EFeature to map + * @param attributes + * the ORM attributes + */ + private void mapEFeature(PAnnotatedEStructuralFeature pFeature, Attributes attributes) { + if (isMapEntry(pFeature.getPaEClass().getModelEClass()) && pFeature.getModelElement().getName().equals("key")) { + return; + } + + if (pFeature instanceof PAnnotatedEAttribute) { + final PAnnotatedEAttribute pAttribute = (PAnnotatedEAttribute) pFeature; + if (pAttribute.getTransient() != null) { + final Transient t = factory.createTransient(); + t.setName(pAttribute.getModelEAttribute().getName()); + attributes.getTransient().add(t); + } else if (pAttribute.getVersion() != null) { + final Version v = factory.createVersion(); + v.setName(pAttribute.getModelEAttribute().getName()); + copyFeatures(pAttribute, v); + copyFeatures(pAttribute.getVersion(), v); + attributes.getVersion().add(v); + } else if (pAttribute.getId() != null) { + final Id id = factory.createId(); + id.setName(pAttribute.getModelEAttribute().getName()); + copyFeatures(pAttribute, id); + copyFeatures(pAttribute.getId(), id); + attributes.getId().add(id); + } else if (pAttribute.getBasic() != null) { + final Basic b = factory.createBasic(); + b.setName(pAttribute.getModelEAttribute().getName()); + copyFeatures(pAttribute, b); + copyFeatures(pAttribute.getBasic(), b); + attributes.getBasic().add(b); + } + } else { + final PAnnotatedEReference pReference = (PAnnotatedEReference) pFeature; + if (pReference.getModelEReference().isContainer()) { + // do nothing ignore + } else if (pReference.getTransient() != null) { + final Transient t = factory.createTransient(); + t.setName(pReference.getModelEReference().getName()); + attributes.getTransient().add(t); + } else if (pReference.getEmbedded() != null) { + final Embedded embedded = factory.createEmbedded(); + embedded.setName(pReference.getModelEReference().getName()); + copyFeatures(pReference, embedded); + copyFeatures(pReference.getEmbedded(), embedded); + attributes.getEmbedded().add(embedded); + } else if (pReference.getEmbeddedId() != null) { + final EmbeddedId embeddedId = factory.createEmbeddedId(); + embeddedId.setName(pReference.getModelEReference().getName()); + copyFeatures(pReference, embeddedId); + copyFeatures(pReference.getEmbeddedId(), embeddedId); + attributes.setEmbeddedId(embeddedId); + } else if (pReference.getManyToOne() != null) { + if (pReference.getModelEReference().isContainment()) { + final OneToOne oto = factory.createOneToOne(); + oto.setName(pReference.getModelEReference().getName()); + copyFeatures(pReference, oto); + copyFeatures(pReference.getManyToOne(), oto); + attributes.getOneToOne().add(oto); + + if (oto.getMappedBy() != null) { + oto.getJoinColumn().clear(); + } + + setTargetEntity(oto, pReference); + } else { + final ManyToOne mto = factory.createManyToOne(); + mto.setName(pReference.getModelEReference().getName()); + copyFeatures(pReference, mto); + copyFeatures(pReference.getManyToOne(), mto); + attributes.getManyToOne().add(mto); + setTargetEntity(mto, pReference); + } + } else if (pReference.getManyToMany() != null) { + // // do a small repair action, in case of a mtm only one side + // // should have the jointable and the other side the mappedby + // final EReference thisSide = pReference.getModelEReference(); + // final EReference thatSide = thisSide.getEOpposite(); + // if (thatSide != null) { + // final String thatName = thatSide.getEContainingClass() + // .getEPackage().getNsURI() + // + thatSide.getEContainingClass().getName() + // + "." + // + thatSide.getName(); + // final String thisName = thisSide.getEContainingClass() + // .getEPackage().getNsURI() + // + thisSide.getEContainingClass().getName() + // + "." + // + thisSide.getName(); + // + // if (thisName.compareTo(thatName) > 0 + // && pReference.getJoinTable() != null) { + // pReference.setJoinTable(null); + // pReference.getManyToMany().setMappedBy( + // thatSide.getName()); + // } else { + // pReference.getManyToMany().setMappedBy(null); + // } + // } + + final ManyToMany mtm = factory.createManyToMany(); + mtm.setName(pReference.getModelEReference().getName()); + copyFeatures(pReference, mtm); + copyFeatures(pReference.getManyToMany(), mtm); + attributes.getManyToMany().add(mtm); + setTargetEntity(mtm, pReference); + } else if (pReference.getOneToMany() != null) { + final OneToMany otm = factory.createOneToMany(); + otm.setName(pReference.getModelEReference().getName()); + copyFeatures(pReference, otm); + copyFeatures(pReference.getOneToMany(), otm); + attributes.getOneToMany().add(otm); + if (pReference.getModelEReference().isContainment() + && pReference.getModelEReference().getEOpposite() == null) { + otm.setMappedBy("eContainer"); + } + if (otm.getMappedBy() != null) { + otm.getJoinColumn().clear(); + } + setTargetEntity(otm, pReference); + } else if (pReference.getOneToOne() != null) { + final OneToOne oto = factory.createOneToOne(); + oto.setName(pReference.getModelEReference().getName()); + copyFeatures(pReference, oto); + copyFeatures(pReference.getOneToOne(), oto); + attributes.getOneToOne().add(oto); + setTargetEntity(oto, pReference); + // do some clean up + if (oto.getMappedBy() != null) { + oto.getJoinColumn().clear(); + } + } + } + } + + // an EMap can be handled in two ways: + // 1) there is a superclass which has an id attribute in this case attribute + // overrides needs to be added, and the overridden attribute needs to be + // mapped to the column of the owner id + // 2) no super class, so the owner id is mapped as an id + // note that if an EMAP has a superclass then it must always be mapped + // to the same table or as a mappedsuperclass + private void addEMapAnnotations(Entity entity, Attributes attributes, PAnnotatedEClass aClass) { + + final IdClass idClass = factory.createIdClass(); + idClass.setClass("org.eclipse.emf.teneo.eclipselink.util.MapEntryId"); + final Id id = factory.createId(); + id.setName("key"); + final Column idColumn = factory.createColumn(); + // TODO: uses special prefix to prevent use of reserved name + idColumn.setName("e_key"); + id.setColumn(idColumn); + attributes.getId().add(id); + + final Transient t = factory.createTransient(); + t.setName("hash"); + attributes.getTransient().add(t); + + // add an attribute overrides + if (hasSuperTypeWithId(aClass)) { + // get the one-to-many of the owning type + PAnnotatedEReference owningReference = getContainmentFeature(aClass, aClass.getPaModel().getPaEPackages()); + if (owningReference == null) { + System.err.println("EMap " + aClass.getModelEClass().getName() + " has no owning type"); + return; + } + + final AttributeOverride ao = factory.createAttributeOverride(); + final Column c = factory.createColumn(); + c.setName(owningReference.getJoinColumns().get(0).getName()); + c.setUpdatable(false); + c.setInsertable(false); + ao.setName("id"); + ao.setColumn(c); + entity.getAttributeOverride().add(ao); + } else { // create our own id + final Id eContainerId = factory.createId(); + eContainerId.setName("eContainer"); + attributes.getId().add(eContainerId); + } + } + + private boolean isMapEntry(EClass eclass) { + return eclass != null && eclass.getInstanceClass() != null + && Map.Entry.class.isAssignableFrom(eclass.getInstanceClass()) + && eclass.getEStructuralFeatures().size() == 2 && eclass.getEStructuralFeature("key") != null + && eclass.getEStructuralFeature("value") != null; + } + + private boolean hasSuperTypeWithId(PAnnotatedEClass aClass) { + for (PAnnotatedEClass aSuperClass : aClass.getPaMappedSupers()) { + for (PAnnotatedEStructuralFeature aFeature : aSuperClass.getPaEStructuralFeatures()) { + if (aFeature instanceof PAnnotatedEAttribute) { + final PAnnotatedEAttribute aAttribute = (PAnnotatedEAttribute) aFeature; + if (aAttribute.getId() != null) { + return true; + } + } + } + if (hasSuperTypeWithId(aSuperClass)) { + return true; + } + } + return false; + } + + @SuppressWarnings("unchecked") + private void copyFeatures(final EObject from, EObject to) { + for (EStructuralFeature eToFeature : to.eClass().getEAllStructuralFeatures()) { + EObject localFrom = from; + String postFix = ""; + if (eToFeature.isMany()) { + postFix = "s"; + } + final String lookingFor = eToFeature.getName() + postFix; + EStructuralFeature eFromFeature = localFrom.eClass().getEStructuralFeature(lookingFor); + if (eFromFeature == null) { + // System.err.println("ERROR FEATURE " + eToFeature.getName() + // + " not defined for PAnnotatedEClass " + // + from.eClass().getName() + " " + lookingFor); + continue; + } + + if (eFromFeature.getEType().getName().equals("CascadeType")) { + to.eSet(eToFeature, getCascade((List<Object>) from.eGet(eFromFeature))); + continue; + } + + if (eFromFeature.isMany() != eToFeature.isMany()) { + System.err.println("ERROR FEATURES HAVE DIFFERENT MANIES " + eFromFeature.getName()); + continue; + } + + if (eFromFeature.eClass() != eToFeature.eClass()) { + // special case DiscriminatorValue + localFrom = (EObject) from.eGet(eFromFeature); + if (localFrom != null) { + eFromFeature = localFrom.eClass().getEStructuralFeature("value"); + } else { + continue; + } + } + + if (eFromFeature.isMany()) { + copyList(eFromFeature, (List<Object>) from.eGet(eFromFeature), (List<Object>) to.eGet(eToFeature), + eToFeature); + } else { // if (localFrom.eIsSet(eFromFeature)) { + to.eSet(eToFeature, convertValue(eFromFeature, localFrom.eGet(eFromFeature), eToFeature)); + } + } + } + + private Object convertValue(EStructuralFeature from, Object value, EStructuralFeature to) { + if (value == null) { + return null; + } + if (from instanceof EAttribute && ((EAttribute) from).getEAttributeType() instanceof EEnum) { + final EAttribute eAttribute = (EAttribute) to; + final Enumerator eenum = (Enumerator) value; + final EDataType eDataType = eAttribute.getEAttributeType(); + final Object newValue = factory.createFromString(eDataType, eenum.getName()); + if (newValue == null) { + System.err.println("EENUM NOT DEFINED " + eenum.getName() + " for datatype " + eDataType.getName()); + } + return newValue; + } else if (from instanceof EReference) { + final EObject eValue = (EObject) value; + final EObject ormObject = factory.create(((EReference) to).getEReferenceType()); + copyFeatures(eValue, ormObject); + return ormObject; + } else { + return value; + } + } + + private void copyList(EStructuralFeature fromFeature, List<Object> from, List<Object> to, + EStructuralFeature toFeature) { + for (Object o : from) { + to.add(convertValue(fromFeature, o, toFeature)); + } + } + + private PersistenceUnitMetadata getMetaData() { + final PersistenceUnitMetadata metaData = factory.createPersistenceUnitMetadata(); + metaData.setXmlMappingMetadataComplete(factory.createEmptyType()); + final PersistenceUnitDefaults defaults = factory.createPersistenceUnitDefaults(); + defaults.setAccess(AccessType.FIELD); + metaData.setPersistenceUnitDefaults(defaults); + return metaData; + } + + private org.eclipse.emf.teneo.jpa.orm.CascadeType getCascade(List<Object> cascades) { + final org.eclipse.emf.teneo.jpa.orm.CascadeType newCascade = factory.createCascadeType(); + for (Object o : cascades) { + CascadeType cascadeType = (org.eclipse.emf.teneo.annotations.pannotation.CascadeType) o; + if (cascadeType == CascadeType.ALL) { + newCascade.setCascadeAll(factory.createEmptyType()); + } else if (cascadeType == CascadeType.MERGE) { + newCascade.setCascadeMerge(factory.createEmptyType()); + } else if (cascadeType == CascadeType.PERSIST) { + newCascade.setCascadePersist(factory.createEmptyType()); + } else if (cascadeType == CascadeType.REFRESH) { + newCascade.setCascadeRefresh(factory.createEmptyType()); + } else if (cascadeType == CascadeType.REMOVE) { + newCascade.setCascadeRemove(factory.createEmptyType()); + } + } + return newCascade; + } + + private PAnnotatedEReference getContainmentFeature(PAnnotatedEClass pClass, + List<PAnnotatedEPackage> annotatedEPackages) { + for (PAnnotatedEPackage pPackage : annotatedEPackages) { + for (PAnnotatedEClass paClass : pPackage.getPaEClasses()) { + for (PAnnotatedEStructuralFeature pFeature : paClass.getPaEStructuralFeatures()) { + if (pFeature instanceof PAnnotatedEReference + && ((PAnnotatedEReference) pFeature).getModelEReference().isContainment() + && ((PAnnotatedEReference) pFeature).getAReferenceType() == pClass) { + return (PAnnotatedEReference) pFeature; + } + } + } + } + return null; + } + + private void setTargetEntity(EObject ormType, PAnnotatedEReference pReference) { + final Class<?> clz = ERuntime.INSTANCE.getJavaClass(pReference.getModelEReference().getEReferenceType()); + ormType.eSet(ormType.eClass().getEStructuralFeature("targetEntity"), clz.getName()); + } +}
\ No newline at end of file diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AccessType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AccessType.java new file mode 100755 index 000000000..26a239532 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AccessType.java @@ -0,0 +1,220 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AccessType.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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>Access Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * + * + * This element determines how the persistence provider accesses the + * state of an entity or embedded object. + * + * + * <!-- end-model-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAccessType() + * @model extendedMetaData="name='access-type'" + * @generated + */ +public enum AccessType implements Enumerator { + /** + * The '<em><b>PROPERTY</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #PROPERTY_VALUE + * @generated + * @ordered + */ + PROPERTY(0, "PROPERTY", "PROPERTY"), + + /** + * The '<em><b>FIELD</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #FIELD_VALUE + * @generated + * @ordered + */ + FIELD(1, "FIELD", "FIELD"); + + /** + * The '<em><b>PROPERTY</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>PROPERTY</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #PROPERTY + * @model + * @generated + * @ordered + */ + public static final int PROPERTY_VALUE = 0; + + /** + * The '<em><b>FIELD</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>FIELD</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #FIELD + * @model + * @generated + * @ordered + */ + public static final int FIELD_VALUE = 1; + + /** + * An array of all the '<em><b>Access Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final AccessType[] VALUES_ARRAY = + new AccessType[] { + PROPERTY, + FIELD, + }; + + /** + * A public read-only list of all the '<em><b>Access Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<AccessType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Access Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static AccessType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AccessType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Access Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static AccessType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + AccessType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Access Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static AccessType get(int value) { + switch (value) { + case PROPERTY_VALUE: return PROPERTY; + case FIELD_VALUE: return FIELD; + } + 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 AccessType(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; + } + +} //AccessType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AssociationOverride.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AssociationOverride.java new file mode 100755 index 000000000..81667512b --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AssociationOverride.java @@ -0,0 +1,87 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AssociationOverride.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Association Override</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) + * public @interface AssociationOverride { + * String name(); + * JoinColumn[] joinColumns(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAssociationOverride() + * @model extendedMetaData="name='association-override' kind='elementOnly'" + * @generated + */ +public interface AssociationOverride extends EObject { + /** + * Returns the value of the '<em><b>Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.JoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAssociationOverride_JoinColumn() + * @model containment="true" required="true" + * extendedMetaData="kind='element' name='join-column' namespace='##targetNamespace'" + * @generated + */ + EList<JoinColumn> getJoinColumn(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAssociationOverride_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // AssociationOverride diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AttributeOverride.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AttributeOverride.java new file mode 100755 index 000000000..19f030464 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/AttributeOverride.java @@ -0,0 +1,95 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AttributeOverride.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Attribute Override</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) + * public @interface AttributeOverride { + * String name(); + * Column column(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributeOverride() + * @model extendedMetaData="name='attribute-override' kind='elementOnly'" + * @generated + */ +public interface AttributeOverride extends EObject { + /** + * Returns the value of the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column</em>' containment reference. + * @see #setColumn(Column) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributeOverride_Column() + * @model containment="true" required="true" + * extendedMetaData="kind='element' name='column' namespace='##targetNamespace'" + * @generated + */ + Column getColumn(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getColumn <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column</em>' containment reference. + * @see #getColumn() + * @generated + */ + void setColumn(Column value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributeOverride_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // AttributeOverride diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Attributes.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Attributes.java new file mode 100755 index 000000000..944dc52ee --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Attributes.java @@ -0,0 +1,231 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Attributes.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Attributes</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * This element contains the entity field or property mappings. + * It may be sparsely populated to include only a subset of the + * fields or properties. If metadata-complete for the entity is true + * then the remainder of the attributes will be defaulted according + * to the default rules. + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getEmbeddedId <em>Embedded Id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getBasic <em>Basic</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getVersion <em>Version</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getManyToOne <em>Many To One</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getOneToMany <em>One To Many</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getOneToOne <em>One To One</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getManyToMany <em>Many To Many</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getEmbedded <em>Embedded</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getTransient <em>Transient</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes() + * @model extendedMetaData="name='attributes' kind='elementOnly'" + * @generated + */ +public interface Attributes extends EObject { + /** + * Returns the value of the '<em><b>Id</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Id}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_Id() + * @model containment="true" + * extendedMetaData="kind='element' name='id' namespace='##targetNamespace'" + * @generated + */ + EList<Id> getId(); + + /** + * Returns the value of the '<em><b>Embedded Id</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Embedded Id</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Embedded Id</em>' containment reference. + * @see #setEmbeddedId(EmbeddedId) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_EmbeddedId() + * @model containment="true" + * extendedMetaData="kind='element' name='embedded-id' namespace='##targetNamespace'" + * @generated + */ + EmbeddedId getEmbeddedId(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getEmbeddedId <em>Embedded Id</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Embedded Id</em>' containment reference. + * @see #getEmbeddedId() + * @generated + */ + void setEmbeddedId(EmbeddedId value); + + /** + * Returns the value of the '<em><b>Basic</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Basic}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Basic</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Basic</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_Basic() + * @model containment="true" + * extendedMetaData="kind='element' name='basic' namespace='##targetNamespace'" + * @generated + */ + EList<Basic> getBasic(); + + /** + * Returns the value of the '<em><b>Version</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Version}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Version</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Version</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_Version() + * @model containment="true" + * extendedMetaData="kind='element' name='version' namespace='##targetNamespace'" + * @generated + */ + EList<Version> getVersion(); + + /** + * Returns the value of the '<em><b>Many To One</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.ManyToOne}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Many To One</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Many To One</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_ManyToOne() + * @model containment="true" + * extendedMetaData="kind='element' name='many-to-one' namespace='##targetNamespace'" + * @generated + */ + EList<ManyToOne> getManyToOne(); + + /** + * Returns the value of the '<em><b>One To Many</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.OneToMany}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>One To Many</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>One To Many</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_OneToMany() + * @model containment="true" + * extendedMetaData="kind='element' name='one-to-many' namespace='##targetNamespace'" + * @generated + */ + EList<OneToMany> getOneToMany(); + + /** + * Returns the value of the '<em><b>One To One</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.OneToOne}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>One To One</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>One To One</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_OneToOne() + * @model containment="true" + * extendedMetaData="kind='element' name='one-to-one' namespace='##targetNamespace'" + * @generated + */ + EList<OneToOne> getOneToOne(); + + /** + * Returns the value of the '<em><b>Many To Many</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.ManyToMany}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Many To Many</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Many To Many</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_ManyToMany() + * @model containment="true" + * extendedMetaData="kind='element' name='many-to-many' namespace='##targetNamespace'" + * @generated + */ + EList<ManyToMany> getManyToMany(); + + /** + * Returns the value of the '<em><b>Embedded</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Embedded}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Embedded</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Embedded</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_Embedded() + * @model containment="true" + * extendedMetaData="kind='element' name='embedded' namespace='##targetNamespace'" + * @generated + */ + EList<Embedded> getEmbedded(); + + /** + * Returns the value of the '<em><b>Transient</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Transient}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Transient</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Transient</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getAttributes_Transient() + * @model containment="true" + * extendedMetaData="kind='element' name='transient' namespace='##targetNamespace'" + * @generated + */ + EList<Transient> getTransient(); + +} // Attributes diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Basic.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Basic.java new file mode 100755 index 000000000..89bcd6388 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Basic.java @@ -0,0 +1,292 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Basic.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Basic</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface Basic { + * FetchType fetch() default EAGER; + * boolean optional() default true; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Basic#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Basic#getLob <em>Lob</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Basic#getTemporal <em>Temporal</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Basic#getEnumerated <em>Enumerated</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Basic#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Basic#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Basic#isOptional <em>Optional</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic() + * @model extendedMetaData="name='basic' kind='elementOnly'" + * @generated + */ +public interface Basic extends EObject { + /** + * Returns the value of the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column</em>' containment reference. + * @see #setColumn(Column) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic_Column() + * @model containment="true" + * extendedMetaData="kind='element' name='column' namespace='##targetNamespace'" + * @generated + */ + Column getColumn(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getColumn <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column</em>' containment reference. + * @see #getColumn() + * @generated + */ + void setColumn(Column value); + + /** + * Returns the value of the '<em><b>Lob</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Lob</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Lob</em>' containment reference. + * @see #setLob(Lob) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic_Lob() + * @model containment="true" + * extendedMetaData="kind='element' name='lob' namespace='##targetNamespace'" + * @generated + */ + Lob getLob(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getLob <em>Lob</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Lob</em>' containment reference. + * @see #getLob() + * @generated + */ + void setLob(Lob value); + + /** + * Returns the value of the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Temporal</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Temporal</em>' attribute. + * @see #setTemporal(TemporalType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic_Temporal() + * @model dataType="org.eclipse.emf.teneo.jpa.orm.Temporal" + * extendedMetaData="kind='element' name='temporal' namespace='##targetNamespace'" + * @generated + */ + TemporalType getTemporal(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getTemporal <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Temporal</em>' attribute. + * @see #getTemporal() + * @generated + */ + void setTemporal(TemporalType value); + + /** + * Returns the value of the '<em><b>Enumerated</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Enumerated</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Enumerated</em>' attribute. + * @see #setEnumerated(EnumType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic_Enumerated() + * @model dataType="org.eclipse.emf.teneo.jpa.orm.Enumerated" + * extendedMetaData="kind='element' name='enumerated' namespace='##targetNamespace'" + * @generated + */ + EnumType getEnumerated(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getEnumerated <em>Enumerated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Enumerated</em>' attribute. + * @see #getEnumerated() + * @generated + */ + void setEnumerated(EnumType value); + + /** + * Returns the value of the '<em><b>Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.FetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #setFetch(FetchType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic_Fetch() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='fetch'" + * @generated + */ + FetchType getFetch(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #getFetch() + * @generated + */ + void setFetch(FetchType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + void unsetFetch(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getFetch <em>Fetch</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Fetch</em>' attribute is set. + * @see #unsetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + boolean isSetFetch(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Optional</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Optional</em>' attribute. + * @see #isSetOptional() + * @see #unsetOptional() + * @see #setOptional(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getBasic_Optional() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='optional'" + * @generated + */ + boolean isOptional(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#isOptional <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Optional</em>' attribute. + * @see #isSetOptional() + * @see #unsetOptional() + * @see #isOptional() + * @generated + */ + void setOptional(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#isOptional <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetOptional() + * @see #isOptional() + * @see #setOptional(boolean) + * @generated + */ + void unsetOptional(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Basic#isOptional <em>Optional</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Optional</em>' attribute is set. + * @see #unsetOptional() + * @see #isOptional() + * @see #setOptional(boolean) + * @generated + */ + boolean isSetOptional(); + +} // Basic diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/CascadeType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/CascadeType.java new file mode 100755 index 000000000..1df89f006 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/CascadeType.java @@ -0,0 +1,175 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CascadeType.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Cascade Type</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * public enum CascadeType { ALL, PERSIST, MERGE, REMOVE, REFRESH}; + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeAll <em>Cascade All</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadePersist <em>Cascade Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeMerge <em>Cascade Merge</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRemove <em>Cascade Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRefresh <em>Cascade Refresh</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getCascadeType() + * @model extendedMetaData="name='cascade-type' kind='elementOnly'" + * @generated + */ +public interface CascadeType extends EObject { + /** + * Returns the value of the '<em><b>Cascade All</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade All</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade All</em>' containment reference. + * @see #setCascadeAll(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getCascadeType_CascadeAll() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade-all' namespace='##targetNamespace'" + * @generated + */ + EmptyType getCascadeAll(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeAll <em>Cascade All</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade All</em>' containment reference. + * @see #getCascadeAll() + * @generated + */ + void setCascadeAll(EmptyType value); + + /** + * Returns the value of the '<em><b>Cascade Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade Persist</em>' containment reference. + * @see #setCascadePersist(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getCascadeType_CascadePersist() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade-persist' namespace='##targetNamespace'" + * @generated + */ + EmptyType getCascadePersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadePersist <em>Cascade Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade Persist</em>' containment reference. + * @see #getCascadePersist() + * @generated + */ + void setCascadePersist(EmptyType value); + + /** + * Returns the value of the '<em><b>Cascade Merge</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade Merge</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade Merge</em>' containment reference. + * @see #setCascadeMerge(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getCascadeType_CascadeMerge() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade-merge' namespace='##targetNamespace'" + * @generated + */ + EmptyType getCascadeMerge(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeMerge <em>Cascade Merge</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade Merge</em>' containment reference. + * @see #getCascadeMerge() + * @generated + */ + void setCascadeMerge(EmptyType value); + + /** + * Returns the value of the '<em><b>Cascade Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade Remove</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade Remove</em>' containment reference. + * @see #setCascadeRemove(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getCascadeType_CascadeRemove() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade-remove' namespace='##targetNamespace'" + * @generated + */ + EmptyType getCascadeRemove(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRemove <em>Cascade Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade Remove</em>' containment reference. + * @see #getCascadeRemove() + * @generated + */ + void setCascadeRemove(EmptyType value); + + /** + * Returns the value of the '<em><b>Cascade Refresh</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade Refresh</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade Refresh</em>' containment reference. + * @see #setCascadeRefresh(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getCascadeType_CascadeRefresh() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade-refresh' namespace='##targetNamespace'" + * @generated + */ + EmptyType getCascadeRefresh(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRefresh <em>Cascade Refresh</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade Refresh</em>' containment reference. + * @see #getCascadeRefresh() + * @generated + */ + void setCascadeRefresh(EmptyType value); + +} // CascadeType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Column.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Column.java new file mode 100755 index 000000000..f3de1cbf0 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Column.java @@ -0,0 +1,517 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Column.java,v 1.2 2009/03/23 19:01:40 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Column</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface Column { + * String name() default ""; + * boolean unique() default false; + * boolean nullable() default true; + * boolean insertable() default true; + * boolean updatable() default true; + * String columnDefinition() default ""; + * String table() default ""; + * int length() default 255; + * int precision() default 0; // decimal precision + * int scale() default 0; // decimal scale + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#isInsertable <em>Insertable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#getLength <em>Length</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#isNullable <em>Nullable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#getPrecision <em>Precision</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#getScale <em>Scale</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#isUnique <em>Unique</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Column#isUpdatable <em>Updatable</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn() + * @model extendedMetaData="name='column' kind='empty'" + * @generated + */ +public interface Column extends EObject { + /** + * Returns the value of the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column Definition</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column Definition</em>' attribute. + * @see #setColumnDefinition(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_ColumnDefinition() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='column-definition'" + * @generated + */ + String getColumnDefinition(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getColumnDefinition <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column Definition</em>' attribute. + * @see #getColumnDefinition() + * @generated + */ + void setColumnDefinition(String value); + + /** + * Returns the value of the '<em><b>Insertable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Insertable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Insertable</em>' attribute. + * @see #isSetInsertable() + * @see #unsetInsertable() + * @see #setInsertable(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Insertable() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='insertable'" + * @generated + */ + boolean isInsertable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isInsertable <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Insertable</em>' attribute. + * @see #isSetInsertable() + * @see #unsetInsertable() + * @see #isInsertable() + * @generated + */ + void setInsertable(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isInsertable <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetInsertable() + * @see #isInsertable() + * @see #setInsertable(boolean) + * @generated + */ + void unsetInsertable(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isInsertable <em>Insertable</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Insertable</em>' attribute is set. + * @see #unsetInsertable() + * @see #isInsertable() + * @see #setInsertable(boolean) + * @generated + */ + boolean isSetInsertable(); + + /** + * Returns the value of the '<em><b>Length</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Length</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Length</em>' attribute. + * @see #isSetLength() + * @see #unsetLength() + * @see #setLength(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Length() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='length'" + * @generated + */ + int getLength(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getLength <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Length</em>' attribute. + * @see #isSetLength() + * @see #unsetLength() + * @see #getLength() + * @generated + */ + void setLength(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getLength <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetLength() + * @see #getLength() + * @see #setLength(int) + * @generated + */ + void unsetLength(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getLength <em>Length</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Length</em>' attribute is set. + * @see #unsetLength() + * @see #getLength() + * @see #setLength(int) + * @generated + */ + boolean isSetLength(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * annotation="teneo.escape value='true'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Nullable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Nullable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Nullable</em>' attribute. + * @see #isSetNullable() + * @see #unsetNullable() + * @see #setNullable(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Nullable() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='nullable'" + * @generated + */ + boolean isNullable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isNullable <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Nullable</em>' attribute. + * @see #isSetNullable() + * @see #unsetNullable() + * @see #isNullable() + * @generated + */ + void setNullable(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isNullable <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetNullable() + * @see #isNullable() + * @see #setNullable(boolean) + * @generated + */ + void unsetNullable(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isNullable <em>Nullable</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Nullable</em>' attribute is set. + * @see #unsetNullable() + * @see #isNullable() + * @see #setNullable(boolean) + * @generated + */ + boolean isSetNullable(); + + /** + * Returns the value of the '<em><b>Precision</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Precision</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Precision</em>' attribute. + * @see #isSetPrecision() + * @see #unsetPrecision() + * @see #setPrecision(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Precision() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='precision'" + * @generated + */ + int getPrecision(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getPrecision <em>Precision</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Precision</em>' attribute. + * @see #isSetPrecision() + * @see #unsetPrecision() + * @see #getPrecision() + * @generated + */ + void setPrecision(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getPrecision <em>Precision</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetPrecision() + * @see #getPrecision() + * @see #setPrecision(int) + * @generated + */ + void unsetPrecision(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getPrecision <em>Precision</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Precision</em>' attribute is set. + * @see #unsetPrecision() + * @see #getPrecision() + * @see #setPrecision(int) + * @generated + */ + boolean isSetPrecision(); + + /** + * Returns the value of the '<em><b>Scale</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Scale</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Scale</em>' attribute. + * @see #isSetScale() + * @see #unsetScale() + * @see #setScale(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Scale() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='scale'" + * @generated + */ + int getScale(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getScale <em>Scale</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Scale</em>' attribute. + * @see #isSetScale() + * @see #unsetScale() + * @see #getScale() + * @generated + */ + void setScale(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getScale <em>Scale</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetScale() + * @see #getScale() + * @see #setScale(int) + * @generated + */ + void unsetScale(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getScale <em>Scale</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Scale</em>' attribute is set. + * @see #unsetScale() + * @see #getScale() + * @see #setScale(int) + * @generated + */ + boolean isSetScale(); + + /** + * Returns the value of the '<em><b>Table</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table</em>' attribute. + * @see #setTable(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Table() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='table'" + * @generated + */ + String getTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#getTable <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Table</em>' attribute. + * @see #getTable() + * @generated + */ + void setTable(String value); + + /** + * Returns the value of the '<em><b>Unique</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unique</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unique</em>' attribute. + * @see #isSetUnique() + * @see #unsetUnique() + * @see #setUnique(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Unique() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='unique'" + * @generated + */ + boolean isUnique(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUnique <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Unique</em>' attribute. + * @see #isSetUnique() + * @see #unsetUnique() + * @see #isUnique() + * @generated + */ + void setUnique(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUnique <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetUnique() + * @see #isUnique() + * @see #setUnique(boolean) + * @generated + */ + void unsetUnique(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUnique <em>Unique</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Unique</em>' attribute is set. + * @see #unsetUnique() + * @see #isUnique() + * @see #setUnique(boolean) + * @generated + */ + boolean isSetUnique(); + + /** + * Returns the value of the '<em><b>Updatable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Updatable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Updatable</em>' attribute. + * @see #isSetUpdatable() + * @see #unsetUpdatable() + * @see #setUpdatable(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumn_Updatable() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='updatable'" + * @generated + */ + boolean isUpdatable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUpdatable <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Updatable</em>' attribute. + * @see #isSetUpdatable() + * @see #unsetUpdatable() + * @see #isUpdatable() + * @generated + */ + void setUpdatable(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUpdatable <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetUpdatable() + * @see #isUpdatable() + * @see #setUpdatable(boolean) + * @generated + */ + void unsetUpdatable(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUpdatable <em>Updatable</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Updatable</em>' attribute is set. + * @see #unsetUpdatable() + * @see #isUpdatable() + * @see #setUpdatable(boolean) + * @generated + */ + boolean isSetUpdatable(); + +} // Column diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ColumnResult.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ColumnResult.java new file mode 100755 index 000000000..74cbff430 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ColumnResult.java @@ -0,0 +1,66 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ColumnResult.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Column Result</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({}) @Retention(RUNTIME) + * public @interface ColumnResult { + * String name(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ColumnResult#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumnResult() + * @model extendedMetaData="name='column-result' kind='empty'" + * @generated + */ +public interface ColumnResult extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getColumnResult_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ColumnResult#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // ColumnResult diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DiscriminatorColumn.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DiscriminatorColumn.java new file mode 100755 index 000000000..f088f9696 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DiscriminatorColumn.java @@ -0,0 +1,211 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DiscriminatorColumn.java,v 1.2 2009/03/23 19:01:40 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Discriminator Column</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface DiscriminatorColumn { + * String name() default "DTYPE"; + * DiscriminatorType discriminatorType() default STRING; + * String columnDefinition() default ""; + * int length() default 31; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getDiscriminatorType <em>Discriminator Type</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getLength <em>Length</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDiscriminatorColumn() + * @model extendedMetaData="name='discriminator-column' kind='empty'" + * @generated + */ +public interface DiscriminatorColumn extends EObject { + /** + * Returns the value of the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column Definition</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column Definition</em>' attribute. + * @see #setColumnDefinition(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDiscriminatorColumn_ColumnDefinition() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='column-definition'" + * @generated + */ + String getColumnDefinition(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getColumnDefinition <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column Definition</em>' attribute. + * @see #getColumnDefinition() + * @generated + */ + void setColumnDefinition(String value); + + /** + * Returns the value of the '<em><b>Discriminator Type</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Discriminator Type</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Discriminator Type</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @see #isSetDiscriminatorType() + * @see #unsetDiscriminatorType() + * @see #setDiscriminatorType(DiscriminatorType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDiscriminatorColumn_DiscriminatorType() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='discriminator-type'" + * @generated + */ + DiscriminatorType getDiscriminatorType(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getDiscriminatorType <em>Discriminator Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Discriminator Type</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @see #isSetDiscriminatorType() + * @see #unsetDiscriminatorType() + * @see #getDiscriminatorType() + * @generated + */ + void setDiscriminatorType(DiscriminatorType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getDiscriminatorType <em>Discriminator Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetDiscriminatorType() + * @see #getDiscriminatorType() + * @see #setDiscriminatorType(DiscriminatorType) + * @generated + */ + void unsetDiscriminatorType(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getDiscriminatorType <em>Discriminator Type</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Discriminator Type</em>' attribute is set. + * @see #unsetDiscriminatorType() + * @see #getDiscriminatorType() + * @see #setDiscriminatorType(DiscriminatorType) + * @generated + */ + boolean isSetDiscriminatorType(); + + /** + * Returns the value of the '<em><b>Length</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Length</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Length</em>' attribute. + * @see #isSetLength() + * @see #unsetLength() + * @see #setLength(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDiscriminatorColumn_Length() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='length'" + * @generated + */ + int getLength(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getLength <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Length</em>' attribute. + * @see #isSetLength() + * @see #unsetLength() + * @see #getLength() + * @generated + */ + void setLength(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getLength <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetLength() + * @see #getLength() + * @see #setLength(int) + * @generated + */ + void unsetLength(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getLength <em>Length</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Length</em>' attribute is set. + * @see #unsetLength() + * @see #getLength() + * @see #setLength(int) + * @generated + */ + boolean isSetLength(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDiscriminatorColumn_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * annotation="teneo.escape value='true'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // DiscriminatorColumn diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DiscriminatorType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DiscriminatorType.java new file mode 100755 index 000000000..4eabf6fed --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DiscriminatorType.java @@ -0,0 +1,246 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DiscriminatorType.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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>Discriminator Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * + * + * public enum DiscriminatorType { STRING, CHAR, INTEGER }; + * + * + * <!-- end-model-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDiscriminatorType() + * @model extendedMetaData="name='discriminator-type'" + * @generated + */ +public enum DiscriminatorType implements Enumerator { + /** + * The '<em><b>STRING</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #STRING_VALUE + * @generated + * @ordered + */ + STRING(0, "STRING", "STRING"), + + /** + * The '<em><b>CHAR</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #CHAR_VALUE + * @generated + * @ordered + */ + CHAR(1, "CHAR", "CHAR"), + + /** + * The '<em><b>INTEGER</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #INTEGER_VALUE + * @generated + * @ordered + */ + INTEGER(2, "INTEGER", "INTEGER"); + + /** + * The '<em><b>STRING</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>STRING</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #STRING + * @model + * @generated + * @ordered + */ + public static final int STRING_VALUE = 0; + + /** + * The '<em><b>CHAR</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>CHAR</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #CHAR + * @model + * @generated + * @ordered + */ + public static final int CHAR_VALUE = 1; + + /** + * The '<em><b>INTEGER</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>INTEGER</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #INTEGER + * @model + * @generated + * @ordered + */ + public static final int INTEGER_VALUE = 2; + + /** + * An array of all the '<em><b>Discriminator Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final DiscriminatorType[] VALUES_ARRAY = + new DiscriminatorType[] { + STRING, + CHAR, + INTEGER, + }; + + /** + * A public read-only list of all the '<em><b>Discriminator Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<DiscriminatorType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Discriminator Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static DiscriminatorType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DiscriminatorType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Discriminator Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static DiscriminatorType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + DiscriminatorType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Discriminator Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static DiscriminatorType get(int value) { + switch (value) { + case STRING_VALUE: return STRING; + case CHAR_VALUE: return CHAR; + case INTEGER_VALUE: return INTEGER; + } + 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 DiscriminatorType(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; + } + +} //DiscriminatorType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DocumentRoot.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DocumentRoot.java new file mode 100755 index 000000000..34c06b833 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/DocumentRoot.java @@ -0,0 +1,115 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DocumentRoot.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EMap; + +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.ecore.util.FeatureMap; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Document Root</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getMixed <em>Mixed</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getEntityMappings <em>Entity Mappings</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDocumentRoot() + * @model extendedMetaData="name='' kind='mixed'" + * @generated + */ +public interface DocumentRoot extends EObject { + /** + * Returns the value of the '<em><b>Mixed</b></em>' attribute list. + * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mixed</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mixed</em>' attribute list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDocumentRoot_Mixed() + * @model unique="false" dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true" + * extendedMetaData="kind='elementWildcard' name=':mixed'" + * @generated + */ + FeatureMap getMixed(); + + /** + * Returns the value of the '<em><b>XMLNS Prefix Map</b></em>' map. + * The key is of type {@link java.lang.String}, + * and the value is of type {@link java.lang.String}, + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>XMLNS Prefix Map</em>' map. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDocumentRoot_XMLNSPrefixMap() + * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" + * extendedMetaData="kind='attribute' name='xmlns:prefix'" + * @generated + */ + EMap<String, String> getXMLNSPrefixMap(); + + /** + * Returns the value of the '<em><b>XSI Schema Location</b></em>' map. + * The key is of type {@link java.lang.String}, + * and the value is of type {@link java.lang.String}, + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>XSI Schema Location</em>' map isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>XSI Schema Location</em>' map. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDocumentRoot_XSISchemaLocation() + * @model mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString, org.eclipse.emf.ecore.EString>" transient="true" + * extendedMetaData="kind='attribute' name='xsi:schemaLocation'" + * @generated + */ + EMap<String, String> getXSISchemaLocation(); + + /** + * Returns the value of the '<em><b>Entity Mappings</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity Mappings</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity Mappings</em>' containment reference. + * @see #setEntityMappings(EntityMappingsType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getDocumentRoot_EntityMappings() + * @model containment="true" upper="-2" transient="true" volatile="true" derived="true" + * extendedMetaData="kind='element' name='entity-mappings' namespace='##targetNamespace'" + * @generated + */ + EntityMappingsType getEntityMappings(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getEntityMappings <em>Entity Mappings</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Entity Mappings</em>' containment reference. + * @see #getEntityMappings() + * @generated + */ + void setEntityMappings(EntityMappingsType value); + +} // DocumentRoot diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Embeddable.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Embeddable.java new file mode 100755 index 000000000..b7b91afa3 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Embeddable.java @@ -0,0 +1,240 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Embeddable.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Embeddable</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * Defines the settings and mappings for embeddable objects. Is + * allowed to be sparsely populated and used in conjunction with + * the annotations. Alternatively, the metadata-complete attribute + * can be used to indicate that no annotations are to be processed + * in the class. If this is the case then the defaulting rules will + * be recursively applied. + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface Embeddable {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAttributes <em>Attributes</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#isMetadataComplete <em>Metadata Complete</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddable() + * @model extendedMetaData="name='embeddable' kind='elementOnly'" + * @generated + */ +public interface Embeddable extends EObject { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddable_Description() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getDescription <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attributes</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Attributes</em>' containment reference. + * @see #setAttributes(EmbeddableAttributes) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddable_Attributes() + * @model containment="true" + * extendedMetaData="kind='element' name='attributes' namespace='##targetNamespace'" + * @generated + */ + EmbeddableAttributes getAttributes(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAttributes <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Attributes</em>' containment reference. + * @see #getAttributes() + * @generated + */ + void setAttributes(EmbeddableAttributes value); + + /** + * Returns the value of the '<em><b>Access</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.AccessType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Access</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #setAccess(AccessType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddable_Access() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='access'" + * @generated + */ + AccessType getAccess(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #getAccess() + * @generated + */ + void setAccess(AccessType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + void unsetAccess(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAccess <em>Access</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Access</em>' attribute is set. + * @see #unsetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + boolean isSetAccess(); + + /** + * Returns the value of the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Class</em>' attribute. + * @see #setClass(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddable_Class() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='class'" + * @generated + */ + String getClass_(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getClass_ <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Class</em>' attribute. + * @see #getClass_() + * @generated + */ + void setClass(String value); + + /** + * Returns the value of the '<em><b>Metadata Complete</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Metadata Complete</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Metadata Complete</em>' attribute. + * @see #isSetMetadataComplete() + * @see #unsetMetadataComplete() + * @see #setMetadataComplete(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddable_MetadataComplete() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='metadata-complete'" + * @generated + */ + boolean isMetadataComplete(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#isMetadataComplete <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Metadata Complete</em>' attribute. + * @see #isSetMetadataComplete() + * @see #unsetMetadataComplete() + * @see #isMetadataComplete() + * @generated + */ + void setMetadataComplete(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#isMetadataComplete <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetMetadataComplete() + * @see #isMetadataComplete() + * @see #setMetadataComplete(boolean) + * @generated + */ + void unsetMetadataComplete(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#isMetadataComplete <em>Metadata Complete</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Metadata Complete</em>' attribute is set. + * @see #unsetMetadataComplete() + * @see #isMetadataComplete() + * @see #setMetadataComplete(boolean) + * @generated + */ + boolean isSetMetadataComplete(); + +} // Embeddable diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmbeddableAttributes.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmbeddableAttributes.java new file mode 100755 index 000000000..a6e824aca --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmbeddableAttributes.java @@ -0,0 +1,65 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddableAttributes.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Embeddable Attributes</b></em>'. + * <!-- end-user-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes#getBasic <em>Basic</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes#getTransient <em>Transient</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddableAttributes() + * @model extendedMetaData="name='embeddable-attributes' kind='elementOnly'" + * @generated + */ +public interface EmbeddableAttributes extends EObject { + /** + * Returns the value of the '<em><b>Basic</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Basic}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Basic</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Basic</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddableAttributes_Basic() + * @model containment="true" + * extendedMetaData="kind='element' name='basic' namespace='##targetNamespace'" + * @generated + */ + EList<Basic> getBasic(); + + /** + * Returns the value of the '<em><b>Transient</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Transient}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Transient</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Transient</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddableAttributes_Transient() + * @model containment="true" + * extendedMetaData="kind='element' name='transient' namespace='##targetNamespace'" + * @generated + */ + EList<Transient> getTransient(); + +} // EmbeddableAttributes diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Embedded.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Embedded.java new file mode 100755 index 000000000..92c59a089 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Embedded.java @@ -0,0 +1,84 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Embedded.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Embedded</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface Embedded {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Embedded#getAttributeOverride <em>Attribute Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Embedded#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbedded() + * @model extendedMetaData="name='embedded' kind='elementOnly'" + * @generated + */ +public interface Embedded extends EObject { + /** + * Returns the value of the '<em><b>Attribute Override</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attribute Override</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Attribute Override</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbedded_AttributeOverride() + * @model containment="true" + * extendedMetaData="kind='element' name='attribute-override' namespace='##targetNamespace'" + * @generated + */ + EList<AttributeOverride> getAttributeOverride(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbedded_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Embedded#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // Embedded diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmbeddedId.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmbeddedId.java new file mode 100755 index 000000000..2f3ab2047 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmbeddedId.java @@ -0,0 +1,84 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddedId.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Embedded Id</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface EmbeddedId {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId#getAttributeOverride <em>Attribute Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddedId() + * @model extendedMetaData="name='embedded-id' kind='elementOnly'" + * @generated + */ +public interface EmbeddedId extends EObject { + /** + * Returns the value of the '<em><b>Attribute Override</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attribute Override</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Attribute Override</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddedId_AttributeOverride() + * @model containment="true" + * extendedMetaData="kind='element' name='attribute-override' namespace='##targetNamespace'" + * @generated + */ + EList<AttributeOverride> getAttributeOverride(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmbeddedId_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // EmbeddedId diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmptyType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmptyType.java new file mode 100755 index 000000000..58d38c35a --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EmptyType.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmptyType.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Empty Type</b></em>'. + * <!-- end-user-doc --> + * + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEmptyType() + * @model extendedMetaData="name='emptyType' kind='empty'" + * @generated + */ +public interface EmptyType extends EObject { +} // EmptyType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Entity.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Entity.java new file mode 100755 index 000000000..26d3fc159 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Entity.java @@ -0,0 +1,875 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Entity.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Entity</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * Defines the settings and mappings for an entity. Is allowed to be + * sparsely populated and used in conjunction with the annotations. + * Alternatively, the metadata-complete attribute can be used to + * indicate that no annotations on the entity class (and its fields + * or properties) are to be processed. If this is the case then + * the defaulting rules for the entity and its subelements will + * be recursively applied. + * + * @Target(TYPE) @Retention(RUNTIME) + * public @interface Entity { + * String name() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getSecondaryTable <em>Secondary Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getIdClass <em>Id Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getInheritance <em>Inheritance</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorValue <em>Discriminator Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorColumn <em>Discriminator Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getSequenceGenerator <em>Sequence Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getTableGenerator <em>Table Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getNamedQuery <em>Named Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getNamedNativeQuery <em>Named Native Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getSqlResultSetMapping <em>Sql Result Set Mapping</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getEntityListeners <em>Entity Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPrePersist <em>Pre Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostPersist <em>Post Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPreRemove <em>Pre Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostRemove <em>Post Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPreUpdate <em>Pre Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostUpdate <em>Post Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostLoad <em>Post Load</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAttributeOverride <em>Attribute Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAssociationOverride <em>Association Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAttributes <em>Attributes</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#isMetadataComplete <em>Metadata Complete</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Entity#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity() + * @model extendedMetaData="name='entity' kind='elementOnly'" + * @generated + */ +public interface Entity extends EObject { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_Description() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDescription <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table</em>' containment reference. + * @see #setTable(Table) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_Table() + * @model containment="true" + * extendedMetaData="kind='element' name='table' namespace='##targetNamespace'" + * @generated + */ + Table getTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getTable <em>Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Table</em>' containment reference. + * @see #getTable() + * @generated + */ + void setTable(Table value); + + /** + * Returns the value of the '<em><b>Secondary Table</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Secondary Table</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Secondary Table</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_SecondaryTable() + * @model containment="true" + * extendedMetaData="kind='element' name='secondary-table' namespace='##targetNamespace'" + * @generated + */ + EList<SecondaryTable> getSecondaryTable(); + + /** + * Returns the value of the '<em><b>Primary Key Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Primary Key Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Primary Key Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PrimaryKeyJoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='primary-key-join-column' namespace='##targetNamespace'" + * @generated + */ + EList<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn(); + + /** + * Returns the value of the '<em><b>Id Class</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id Class</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id Class</em>' containment reference. + * @see #setIdClass(IdClass) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_IdClass() + * @model containment="true" + * extendedMetaData="kind='element' name='id-class' namespace='##targetNamespace'" + * @generated + */ + IdClass getIdClass(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getIdClass <em>Id Class</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id Class</em>' containment reference. + * @see #getIdClass() + * @generated + */ + void setIdClass(IdClass value); + + /** + * Returns the value of the '<em><b>Inheritance</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Inheritance</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Inheritance</em>' containment reference. + * @see #setInheritance(Inheritance) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_Inheritance() + * @model containment="true" + * extendedMetaData="kind='element' name='inheritance' namespace='##targetNamespace'" + * @generated + */ + Inheritance getInheritance(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getInheritance <em>Inheritance</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Inheritance</em>' containment reference. + * @see #getInheritance() + * @generated + */ + void setInheritance(Inheritance value); + + /** + * Returns the value of the '<em><b>Discriminator Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Discriminator Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Discriminator Value</em>' attribute. + * @see #setDiscriminatorValue(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_DiscriminatorValue() + * @model dataType="org.eclipse.emf.teneo.jpa.orm.DiscriminatorValue" + * extendedMetaData="kind='element' name='discriminator-value' namespace='##targetNamespace'" + * @generated + */ + String getDiscriminatorValue(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorValue <em>Discriminator Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Discriminator Value</em>' attribute. + * @see #getDiscriminatorValue() + * @generated + */ + void setDiscriminatorValue(String value); + + /** + * Returns the value of the '<em><b>Discriminator Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Discriminator Column</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Discriminator Column</em>' containment reference. + * @see #setDiscriminatorColumn(DiscriminatorColumn) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_DiscriminatorColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='discriminator-column' namespace='##targetNamespace'" + * @generated + */ + DiscriminatorColumn getDiscriminatorColumn(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorColumn <em>Discriminator Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Discriminator Column</em>' containment reference. + * @see #getDiscriminatorColumn() + * @generated + */ + void setDiscriminatorColumn(DiscriminatorColumn value); + + /** + * Returns the value of the '<em><b>Sequence Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sequence Generator</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sequence Generator</em>' containment reference. + * @see #setSequenceGenerator(SequenceGenerator) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_SequenceGenerator() + * @model containment="true" + * extendedMetaData="kind='element' name='sequence-generator' namespace='##targetNamespace'" + * @generated + */ + SequenceGenerator getSequenceGenerator(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getSequenceGenerator <em>Sequence Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Sequence Generator</em>' containment reference. + * @see #getSequenceGenerator() + * @generated + */ + void setSequenceGenerator(SequenceGenerator value); + + /** + * Returns the value of the '<em><b>Table Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table Generator</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table Generator</em>' containment reference. + * @see #setTableGenerator(TableGenerator) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_TableGenerator() + * @model containment="true" + * extendedMetaData="kind='element' name='table-generator' namespace='##targetNamespace'" + * @generated + */ + TableGenerator getTableGenerator(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getTableGenerator <em>Table Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Table Generator</em>' containment reference. + * @see #getTableGenerator() + * @generated + */ + void setTableGenerator(TableGenerator value); + + /** + * Returns the value of the '<em><b>Named Query</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.NamedQuery}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Named Query</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Named Query</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_NamedQuery() + * @model containment="true" + * extendedMetaData="kind='element' name='named-query' namespace='##targetNamespace'" + * @generated + */ + EList<NamedQuery> getNamedQuery(); + + /** + * Returns the value of the '<em><b>Named Native Query</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Named Native Query</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Named Native Query</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_NamedNativeQuery() + * @model containment="true" + * extendedMetaData="kind='element' name='named-native-query' namespace='##targetNamespace'" + * @generated + */ + EList<NamedNativeQuery> getNamedNativeQuery(); + + /** + * Returns the value of the '<em><b>Sql Result Set Mapping</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sql Result Set Mapping</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sql Result Set Mapping</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_SqlResultSetMapping() + * @model containment="true" + * extendedMetaData="kind='element' name='sql-result-set-mapping' namespace='##targetNamespace'" + * @generated + */ + EList<SqlResultSetMapping> getSqlResultSetMapping(); + + /** + * Returns the value of the '<em><b>Exclude Default Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Exclude Default Listeners</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Exclude Default Listeners</em>' containment reference. + * @see #setExcludeDefaultListeners(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_ExcludeDefaultListeners() + * @model containment="true" + * extendedMetaData="kind='element' name='exclude-default-listeners' namespace='##targetNamespace'" + * @generated + */ + EmptyType getExcludeDefaultListeners(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Exclude Default Listeners</em>' containment reference. + * @see #getExcludeDefaultListeners() + * @generated + */ + void setExcludeDefaultListeners(EmptyType value); + + /** + * Returns the value of the '<em><b>Exclude Superclass Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Exclude Superclass Listeners</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Exclude Superclass Listeners</em>' containment reference. + * @see #setExcludeSuperclassListeners(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_ExcludeSuperclassListeners() + * @model containment="true" + * extendedMetaData="kind='element' name='exclude-superclass-listeners' namespace='##targetNamespace'" + * @generated + */ + EmptyType getExcludeSuperclassListeners(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Exclude Superclass Listeners</em>' containment reference. + * @see #getExcludeSuperclassListeners() + * @generated + */ + void setExcludeSuperclassListeners(EmptyType value); + + /** + * Returns the value of the '<em><b>Entity Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity Listeners</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity Listeners</em>' containment reference. + * @see #setEntityListeners(EntityListeners) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_EntityListeners() + * @model containment="true" + * extendedMetaData="kind='element' name='entity-listeners' namespace='##targetNamespace'" + * @generated + */ + EntityListeners getEntityListeners(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getEntityListeners <em>Entity Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Entity Listeners</em>' containment reference. + * @see #getEntityListeners() + * @generated + */ + void setEntityListeners(EntityListeners value); + + /** + * Returns the value of the '<em><b>Pre Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Persist</em>' containment reference. + * @see #setPrePersist(PrePersist) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PrePersist() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-persist' namespace='##targetNamespace'" + * @generated + */ + PrePersist getPrePersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPrePersist <em>Pre Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Persist</em>' containment reference. + * @see #getPrePersist() + * @generated + */ + void setPrePersist(PrePersist value); + + /** + * Returns the value of the '<em><b>Post Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Persist</em>' containment reference. + * @see #setPostPersist(PostPersist) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PostPersist() + * @model containment="true" + * extendedMetaData="kind='element' name='post-persist' namespace='##targetNamespace'" + * @generated + */ + PostPersist getPostPersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostPersist <em>Post Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Persist</em>' containment reference. + * @see #getPostPersist() + * @generated + */ + void setPostPersist(PostPersist value); + + /** + * Returns the value of the '<em><b>Pre Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Remove</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Remove</em>' containment reference. + * @see #setPreRemove(PreRemove) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PreRemove() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-remove' namespace='##targetNamespace'" + * @generated + */ + PreRemove getPreRemove(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPreRemove <em>Pre Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Remove</em>' containment reference. + * @see #getPreRemove() + * @generated + */ + void setPreRemove(PreRemove value); + + /** + * Returns the value of the '<em><b>Post Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Remove</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Remove</em>' containment reference. + * @see #setPostRemove(PostRemove) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PostRemove() + * @model containment="true" + * extendedMetaData="kind='element' name='post-remove' namespace='##targetNamespace'" + * @generated + */ + PostRemove getPostRemove(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostRemove <em>Post Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Remove</em>' containment reference. + * @see #getPostRemove() + * @generated + */ + void setPostRemove(PostRemove value); + + /** + * Returns the value of the '<em><b>Pre Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Update</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Update</em>' containment reference. + * @see #setPreUpdate(PreUpdate) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PreUpdate() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-update' namespace='##targetNamespace'" + * @generated + */ + PreUpdate getPreUpdate(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPreUpdate <em>Pre Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Update</em>' containment reference. + * @see #getPreUpdate() + * @generated + */ + void setPreUpdate(PreUpdate value); + + /** + * Returns the value of the '<em><b>Post Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Update</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Update</em>' containment reference. + * @see #setPostUpdate(PostUpdate) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PostUpdate() + * @model containment="true" + * extendedMetaData="kind='element' name='post-update' namespace='##targetNamespace'" + * @generated + */ + PostUpdate getPostUpdate(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostUpdate <em>Post Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Update</em>' containment reference. + * @see #getPostUpdate() + * @generated + */ + void setPostUpdate(PostUpdate value); + + /** + * Returns the value of the '<em><b>Post Load</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Load</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Load</em>' containment reference. + * @see #setPostLoad(PostLoad) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_PostLoad() + * @model containment="true" + * extendedMetaData="kind='element' name='post-load' namespace='##targetNamespace'" + * @generated + */ + PostLoad getPostLoad(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostLoad <em>Post Load</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Load</em>' containment reference. + * @see #getPostLoad() + * @generated + */ + void setPostLoad(PostLoad value); + + /** + * Returns the value of the '<em><b>Attribute Override</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attribute Override</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Attribute Override</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_AttributeOverride() + * @model containment="true" + * extendedMetaData="kind='element' name='attribute-override' namespace='##targetNamespace'" + * @generated + */ + EList<AttributeOverride> getAttributeOverride(); + + /** + * Returns the value of the '<em><b>Association Override</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Association Override</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Association Override</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_AssociationOverride() + * @model containment="true" + * extendedMetaData="kind='element' name='association-override' namespace='##targetNamespace'" + * @generated + */ + EList<AssociationOverride> getAssociationOverride(); + + /** + * Returns the value of the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attributes</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Attributes</em>' containment reference. + * @see #setAttributes(Attributes) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_Attributes() + * @model containment="true" + * extendedMetaData="kind='element' name='attributes' namespace='##targetNamespace'" + * @generated + */ + Attributes getAttributes(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAttributes <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Attributes</em>' containment reference. + * @see #getAttributes() + * @generated + */ + void setAttributes(Attributes value); + + /** + * Returns the value of the '<em><b>Access</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.AccessType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Access</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #setAccess(AccessType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_Access() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='access'" + * @generated + */ + AccessType getAccess(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #getAccess() + * @generated + */ + void setAccess(AccessType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + void unsetAccess(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAccess <em>Access</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Access</em>' attribute is set. + * @see #unsetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + boolean isSetAccess(); + + /** + * Returns the value of the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Class</em>' attribute. + * @see #setClass(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_Class() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='class'" + * @generated + */ + String getClass_(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getClass_ <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Class</em>' attribute. + * @see #getClass_() + * @generated + */ + void setClass(String value); + + /** + * Returns the value of the '<em><b>Metadata Complete</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Metadata Complete</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Metadata Complete</em>' attribute. + * @see #isSetMetadataComplete() + * @see #unsetMetadataComplete() + * @see #setMetadataComplete(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_MetadataComplete() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='metadata-complete'" + * @generated + */ + boolean isMetadataComplete(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#isMetadataComplete <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Metadata Complete</em>' attribute. + * @see #isSetMetadataComplete() + * @see #unsetMetadataComplete() + * @see #isMetadataComplete() + * @generated + */ + void setMetadataComplete(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#isMetadataComplete <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetMetadataComplete() + * @see #isMetadataComplete() + * @see #setMetadataComplete(boolean) + * @generated + */ + void unsetMetadataComplete(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#isMetadataComplete <em>Metadata Complete</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Metadata Complete</em>' attribute is set. + * @see #unsetMetadataComplete() + * @see #isMetadataComplete() + * @see #setMetadataComplete(boolean) + * @generated + */ + boolean isSetMetadataComplete(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntity_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // Entity diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityListener.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityListener.java new file mode 100755 index 000000000..82810fa4a --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityListener.java @@ -0,0 +1,260 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityListener.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Entity Listener</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * Defines an entity listener to be invoked at lifecycle events + * for the entities that list this listener. + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPrePersist <em>Pre Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostPersist <em>Post Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreRemove <em>Pre Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostRemove <em>Post Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreUpdate <em>Pre Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostUpdate <em>Post Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostLoad <em>Post Load</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getClass_ <em>Class</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener() + * @model extendedMetaData="name='entity-listener' kind='elementOnly'" + * @generated + */ +public interface EntityListener extends EObject { + /** + * Returns the value of the '<em><b>Pre Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Persist</em>' containment reference. + * @see #setPrePersist(PrePersist) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_PrePersist() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-persist' namespace='##targetNamespace'" + * @generated + */ + PrePersist getPrePersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPrePersist <em>Pre Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Persist</em>' containment reference. + * @see #getPrePersist() + * @generated + */ + void setPrePersist(PrePersist value); + + /** + * Returns the value of the '<em><b>Post Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Persist</em>' containment reference. + * @see #setPostPersist(PostPersist) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_PostPersist() + * @model containment="true" + * extendedMetaData="kind='element' name='post-persist' namespace='##targetNamespace'" + * @generated + */ + PostPersist getPostPersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostPersist <em>Post Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Persist</em>' containment reference. + * @see #getPostPersist() + * @generated + */ + void setPostPersist(PostPersist value); + + /** + * Returns the value of the '<em><b>Pre Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Remove</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Remove</em>' containment reference. + * @see #setPreRemove(PreRemove) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_PreRemove() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-remove' namespace='##targetNamespace'" + * @generated + */ + PreRemove getPreRemove(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreRemove <em>Pre Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Remove</em>' containment reference. + * @see #getPreRemove() + * @generated + */ + void setPreRemove(PreRemove value); + + /** + * Returns the value of the '<em><b>Post Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Remove</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Remove</em>' containment reference. + * @see #setPostRemove(PostRemove) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_PostRemove() + * @model containment="true" + * extendedMetaData="kind='element' name='post-remove' namespace='##targetNamespace'" + * @generated + */ + PostRemove getPostRemove(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostRemove <em>Post Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Remove</em>' containment reference. + * @see #getPostRemove() + * @generated + */ + void setPostRemove(PostRemove value); + + /** + * Returns the value of the '<em><b>Pre Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Update</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Update</em>' containment reference. + * @see #setPreUpdate(PreUpdate) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_PreUpdate() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-update' namespace='##targetNamespace'" + * @generated + */ + PreUpdate getPreUpdate(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreUpdate <em>Pre Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Update</em>' containment reference. + * @see #getPreUpdate() + * @generated + */ + void setPreUpdate(PreUpdate value); + + /** + * Returns the value of the '<em><b>Post Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Update</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Update</em>' containment reference. + * @see #setPostUpdate(PostUpdate) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_PostUpdate() + * @model containment="true" + * extendedMetaData="kind='element' name='post-update' namespace='##targetNamespace'" + * @generated + */ + PostUpdate getPostUpdate(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostUpdate <em>Post Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Update</em>' containment reference. + * @see #getPostUpdate() + * @generated + */ + void setPostUpdate(PostUpdate value); + + /** + * Returns the value of the '<em><b>Post Load</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Load</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Load</em>' containment reference. + * @see #setPostLoad(PostLoad) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_PostLoad() + * @model containment="true" + * extendedMetaData="kind='element' name='post-load' namespace='##targetNamespace'" + * @generated + */ + PostLoad getPostLoad(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostLoad <em>Post Load</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Load</em>' containment reference. + * @see #getPostLoad() + * @generated + */ + void setPostLoad(PostLoad value); + + /** + * Returns the value of the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Class</em>' attribute. + * @see #setClass(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListener_Class() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='class'" + * @generated + */ + String getClass_(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getClass_ <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Class</em>' attribute. + * @see #getClass_() + * @generated + */ + void setClass(String value); + +} // EntityListener diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityListeners.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityListeners.java new file mode 100755 index 000000000..6efc2ee66 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityListeners.java @@ -0,0 +1,58 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityListeners.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Entity Listeners</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface EntityListeners { + * Class[] value(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityListeners#getEntityListener <em>Entity Listener</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListeners() + * @model extendedMetaData="name='entity-listeners' kind='elementOnly'" + * @generated + */ +public interface EntityListeners extends EObject { + /** + * Returns the value of the '<em><b>Entity Listener</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.EntityListener}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity Listener</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity Listener</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityListeners_EntityListener() + * @model containment="true" + * extendedMetaData="kind='element' name='entity-listener' namespace='##targetNamespace'" + * @generated + */ + EList<EntityListener> getEntityListener(); + +} // EntityListeners diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityMappingsType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityMappingsType.java new file mode 100755 index 000000000..98b1e5eda --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityMappingsType.java @@ -0,0 +1,458 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityMappingsType.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Entity Mappings Type</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * The entity-mappings element is the root element of an mapping + * file. It contains the following four types of elements: + * + * 1. The persistence-unit-metadata element contains metadata + * for the entire persistence unit. It is undefined if this element + * occurs in multiple mapping files within the same persistence unit. + * + * 2. The package, schema, catalog and access elements apply to all of + * the entity, mapped-superclass and embeddable elements defined in + * the same file in which they occur. + * + * 3. The sequence-generator, table-generator, named-query, + * named-native-query and sql-result-set-mapping elements are global + * to the persistence unit. It is undefined to have more than one + * sequence-generator or table-generator of the same name in the same + * or different mapping files in a persistence unit. It is also + * undefined to have more than one named-query or named-native-query + * of the same name in the same or different mapping files in a + * persistence unit. + * + * 4. The entity, mapped-superclass and embeddable elements each define + * the mapping information for a managed persistent class. The mapping + * information contained in these elements may be complete or it may + * be partial. + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPersistenceUnitMetadata <em>Persistence Unit Metadata</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPackage <em>Package</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSchema <em>Schema</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSequenceGenerator <em>Sequence Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getTableGenerator <em>Table Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getNamedQuery <em>Named Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getNamedNativeQuery <em>Named Native Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSqlResultSetMapping <em>Sql Result Set Mapping</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getMappedSuperclass <em>Mapped Superclass</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getEntity <em>Entity</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getEmbeddable <em>Embeddable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getVersion <em>Version</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType() + * @model extendedMetaData="name='entity-mappings_._type' kind='elementOnly'" + * @generated + */ +public interface EntityMappingsType extends EObject { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Description() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getDescription <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Persistence Unit Metadata</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Persistence Unit Metadata</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Persistence Unit Metadata</em>' containment reference. + * @see #setPersistenceUnitMetadata(PersistenceUnitMetadata) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_PersistenceUnitMetadata() + * @model containment="true" + * extendedMetaData="kind='element' name='persistence-unit-metadata' namespace='##targetNamespace'" + * @generated + */ + PersistenceUnitMetadata getPersistenceUnitMetadata(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPersistenceUnitMetadata <em>Persistence Unit Metadata</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Persistence Unit Metadata</em>' containment reference. + * @see #getPersistenceUnitMetadata() + * @generated + */ + void setPersistenceUnitMetadata(PersistenceUnitMetadata value); + + /** + * Returns the value of the '<em><b>Package</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Package</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Package</em>' attribute. + * @see #setPackage(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Package() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='package' namespace='##targetNamespace'" + * @generated + */ + String getPackage(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPackage <em>Package</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Package</em>' attribute. + * @see #getPackage() + * @generated + */ + void setPackage(String value); + + /** + * Returns the value of the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' attribute. + * @see #setSchema(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Schema() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='schema' namespace='##targetNamespace'" + * @generated + */ + String getSchema(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSchema <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' attribute. + * @see #getSchema() + * @generated + */ + void setSchema(String value); + + /** + * Returns the value of the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Catalog</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Catalog</em>' attribute. + * @see #setCatalog(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Catalog() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='catalog' namespace='##targetNamespace'" + * @generated + */ + String getCatalog(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getCatalog <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Catalog</em>' attribute. + * @see #getCatalog() + * @generated + */ + void setCatalog(String value); + + /** + * Returns the value of the '<em><b>Access</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.AccessType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Access</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #setAccess(AccessType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Access() + * @model unsettable="true" + * extendedMetaData="kind='element' name='access' namespace='##targetNamespace'" + * @generated + */ + AccessType getAccess(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #getAccess() + * @generated + */ + void setAccess(AccessType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + void unsetAccess(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getAccess <em>Access</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Access</em>' attribute is set. + * @see #unsetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + boolean isSetAccess(); + + /** + * Returns the value of the '<em><b>Sequence Generator</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sequence Generator</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sequence Generator</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_SequenceGenerator() + * @model containment="true" + * extendedMetaData="kind='element' name='sequence-generator' namespace='##targetNamespace'" + * @generated + */ + EList<SequenceGenerator> getSequenceGenerator(); + + /** + * Returns the value of the '<em><b>Table Generator</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.TableGenerator}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table Generator</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table Generator</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_TableGenerator() + * @model containment="true" + * extendedMetaData="kind='element' name='table-generator' namespace='##targetNamespace'" + * @generated + */ + EList<TableGenerator> getTableGenerator(); + + /** + * Returns the value of the '<em><b>Named Query</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.NamedQuery}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Named Query</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Named Query</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_NamedQuery() + * @model containment="true" + * extendedMetaData="kind='element' name='named-query' namespace='##targetNamespace'" + * @generated + */ + EList<NamedQuery> getNamedQuery(); + + /** + * Returns the value of the '<em><b>Named Native Query</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Named Native Query</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Named Native Query</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_NamedNativeQuery() + * @model containment="true" + * extendedMetaData="kind='element' name='named-native-query' namespace='##targetNamespace'" + * @generated + */ + EList<NamedNativeQuery> getNamedNativeQuery(); + + /** + * Returns the value of the '<em><b>Sql Result Set Mapping</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sql Result Set Mapping</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sql Result Set Mapping</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_SqlResultSetMapping() + * @model containment="true" + * extendedMetaData="kind='element' name='sql-result-set-mapping' namespace='##targetNamespace'" + * @generated + */ + EList<SqlResultSetMapping> getSqlResultSetMapping(); + + /** + * Returns the value of the '<em><b>Mapped Superclass</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mapped Superclass</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mapped Superclass</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_MappedSuperclass() + * @model containment="true" + * extendedMetaData="kind='element' name='mapped-superclass' namespace='##targetNamespace'" + * @generated + */ + EList<MappedSuperclass> getMappedSuperclass(); + + /** + * Returns the value of the '<em><b>Entity</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Entity}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Entity() + * @model containment="true" + * extendedMetaData="kind='element' name='entity' namespace='##targetNamespace'" + * @generated + */ + EList<Entity> getEntity(); + + /** + * Returns the value of the '<em><b>Embeddable</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.Embeddable}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Embeddable</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Embeddable</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Embeddable() + * @model containment="true" + * extendedMetaData="kind='element' name='embeddable' namespace='##targetNamespace'" + * @generated + */ + EList<Embeddable> getEmbeddable(); + + /** + * Returns the value of the '<em><b>Version</b></em>' attribute. + * The default value is <code>"1.0"</code>. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Version</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Version</em>' attribute. + * @see #isSetVersion() + * @see #unsetVersion() + * @see #setVersion(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityMappingsType_Version() + * @model default="1.0" unsettable="true" dataType="org.eclipse.emf.teneo.jpa.orm.VersionType" required="true" + * extendedMetaData="kind='attribute' name='version'" + * @generated + */ + String getVersion(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getVersion <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Version</em>' attribute. + * @see #isSetVersion() + * @see #unsetVersion() + * @see #getVersion() + * @generated + */ + void setVersion(String value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getVersion <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetVersion() + * @see #getVersion() + * @see #setVersion(String) + * @generated + */ + void unsetVersion(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getVersion <em>Version</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Version</em>' attribute is set. + * @see #unsetVersion() + * @see #getVersion() + * @see #setVersion(String) + * @generated + */ + boolean isSetVersion(); + +} // EntityMappingsType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityResult.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityResult.java new file mode 100755 index 000000000..6915f0d6e --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EntityResult.java @@ -0,0 +1,116 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityResult.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Entity Result</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({}) @Retention(RUNTIME) + * public @interface EntityResult { + * Class entityClass(); + * FieldResult[] fields() default {}; + * String discriminatorColumn() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getFieldResult <em>Field Result</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getDiscriminatorColumn <em>Discriminator Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getEntityClass <em>Entity Class</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityResult() + * @model extendedMetaData="name='entity-result' kind='elementOnly'" + * @generated + */ +public interface EntityResult extends EObject { + /** + * Returns the value of the '<em><b>Field Result</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.FieldResult}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Field Result</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Field Result</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityResult_FieldResult() + * @model containment="true" + * extendedMetaData="kind='element' name='field-result' namespace='##targetNamespace'" + * @generated + */ + EList<FieldResult> getFieldResult(); + + /** + * Returns the value of the '<em><b>Discriminator Column</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Discriminator Column</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Discriminator Column</em>' attribute. + * @see #setDiscriminatorColumn(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityResult_DiscriminatorColumn() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='discriminator-column'" + * @generated + */ + String getDiscriminatorColumn(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getDiscriminatorColumn <em>Discriminator Column</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Discriminator Column</em>' attribute. + * @see #getDiscriminatorColumn() + * @generated + */ + void setDiscriminatorColumn(String value); + + /** + * Returns the value of the '<em><b>Entity Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity Class</em>' attribute. + * @see #setEntityClass(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEntityResult_EntityClass() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='entity-class'" + * @generated + */ + String getEntityClass(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getEntityClass <em>Entity Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Entity Class</em>' attribute. + * @see #getEntityClass() + * @generated + */ + void setEntityClass(String value); + +} // EntityResult diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EnumType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EnumType.java new file mode 100755 index 000000000..a0045acc8 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/EnumType.java @@ -0,0 +1,222 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EnumType.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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>Enum Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * + * + * public enum EnumType { + * ORDINAL, + * STRING + * } + * + * + * <!-- end-model-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getEnumType() + * @model extendedMetaData="name='enum-type'" + * @generated + */ +public enum EnumType implements Enumerator { + /** + * The '<em><b>ORDINAL</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #ORDINAL_VALUE + * @generated + * @ordered + */ + ORDINAL(0, "ORDINAL", "ORDINAL"), + + /** + * The '<em><b>STRING</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #STRING_VALUE + * @generated + * @ordered + */ + STRING(1, "STRING", "STRING"); + + /** + * The '<em><b>ORDINAL</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>ORDINAL</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #ORDINAL + * @model + * @generated + * @ordered + */ + public static final int ORDINAL_VALUE = 0; + + /** + * The '<em><b>STRING</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>STRING</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #STRING + * @model + * @generated + * @ordered + */ + public static final int STRING_VALUE = 1; + + /** + * An array of all the '<em><b>Enum Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final EnumType[] VALUES_ARRAY = + new EnumType[] { + ORDINAL, + STRING, + }; + + /** + * A public read-only list of all the '<em><b>Enum Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<EnumType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Enum Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static EnumType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + EnumType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Enum Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static EnumType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + EnumType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Enum Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static EnumType get(int value) { + switch (value) { + case ORDINAL_VALUE: return ORDINAL; + case STRING_VALUE: return STRING; + } + 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 EnumType(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; + } + +} //EnumType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/FetchType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/FetchType.java new file mode 100755 index 000000000..62d681224 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/FetchType.java @@ -0,0 +1,219 @@ +/** + * <copyright> + * </copyright> + * + * $Id: FetchType.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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>Fetch Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * + * + * public enum FetchType { LAZY, EAGER }; + * + * + * <!-- end-model-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getFetchType() + * @model extendedMetaData="name='fetch-type'" + * @generated + */ +public enum FetchType implements Enumerator { + /** + * The '<em><b>LAZY</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #LAZY_VALUE + * @generated + * @ordered + */ + LAZY(0, "LAZY", "LAZY"), + + /** + * The '<em><b>EAGER</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #EAGER_VALUE + * @generated + * @ordered + */ + EAGER(1, "EAGER", "EAGER"); + + /** + * The '<em><b>LAZY</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>LAZY</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #LAZY + * @model + * @generated + * @ordered + */ + public static final int LAZY_VALUE = 0; + + /** + * The '<em><b>EAGER</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>EAGER</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #EAGER + * @model + * @generated + * @ordered + */ + public static final int EAGER_VALUE = 1; + + /** + * An array of all the '<em><b>Fetch Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final FetchType[] VALUES_ARRAY = + new FetchType[] { + LAZY, + EAGER, + }; + + /** + * A public read-only list of all the '<em><b>Fetch Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<FetchType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Fetch Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static FetchType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + FetchType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Fetch Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static FetchType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + FetchType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Fetch Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static FetchType get(int value) { + switch (value) { + case LAZY_VALUE: return LAZY; + case EAGER_VALUE: return EAGER; + } + 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 FetchType(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; + } + +} //FetchType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/FieldResult.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/FieldResult.java new file mode 100755 index 000000000..6e5feb31d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/FieldResult.java @@ -0,0 +1,95 @@ +/** + * <copyright> + * </copyright> + * + * $Id: FieldResult.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Field Result</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({}) @Retention(RUNTIME) + * public @interface FieldResult { + * String name(); + * String column(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.FieldResult#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.FieldResult#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getFieldResult() + * @model extendedMetaData="name='field-result' kind='empty'" + * @generated + */ +public interface FieldResult extends EObject { + /** + * Returns the value of the '<em><b>Column</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column</em>' attribute. + * @see #setColumn(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getFieldResult_Column() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='column'" + * @generated + */ + String getColumn(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.FieldResult#getColumn <em>Column</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column</em>' attribute. + * @see #getColumn() + * @generated + */ + void setColumn(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getFieldResult_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.FieldResult#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // FieldResult diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/GeneratedValue.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/GeneratedValue.java new file mode 100755 index 000000000..61cc05608 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/GeneratedValue.java @@ -0,0 +1,125 @@ +/** + * <copyright> + * </copyright> + * + * $Id: GeneratedValue.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Generated Value</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface GeneratedValue { + * GenerationType strategy() default AUTO; + * String generator() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getGenerator <em>Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getStrategy <em>Strategy</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getGeneratedValue() + * @model extendedMetaData="name='generated-value' kind='empty'" + * @generated + */ +public interface GeneratedValue extends EObject { + /** + * Returns the value of the '<em><b>Generator</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Generator</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Generator</em>' attribute. + * @see #setGenerator(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getGeneratedValue_Generator() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='generator'" + * @generated + */ + String getGenerator(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getGenerator <em>Generator</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Generator</em>' attribute. + * @see #getGenerator() + * @generated + */ + void setGenerator(String value); + + /** + * Returns the value of the '<em><b>Strategy</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.GenerationType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Strategy</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Strategy</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @see #isSetStrategy() + * @see #unsetStrategy() + * @see #setStrategy(GenerationType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getGeneratedValue_Strategy() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='strategy'" + * @generated + */ + GenerationType getStrategy(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getStrategy <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Strategy</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @see #isSetStrategy() + * @see #unsetStrategy() + * @see #getStrategy() + * @generated + */ + void setStrategy(GenerationType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getStrategy <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetStrategy() + * @see #getStrategy() + * @see #setStrategy(GenerationType) + * @generated + */ + void unsetStrategy(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getStrategy <em>Strategy</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Strategy</em>' attribute is set. + * @see #unsetStrategy() + * @see #getStrategy() + * @see #setStrategy(GenerationType) + * @generated + */ + boolean isSetStrategy(); + +} // GeneratedValue diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/GenerationType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/GenerationType.java new file mode 100755 index 000000000..43f7c503d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/GenerationType.java @@ -0,0 +1,273 @@ +/** + * <copyright> + * </copyright> + * + * $Id: GenerationType.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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>Generation Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * + * + * public enum GenerationType { TABLE, SEQUENCE, IDENTITY, AUTO }; + * + * + * <!-- end-model-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getGenerationType() + * @model extendedMetaData="name='generation-type'" + * @generated + */ +public enum GenerationType implements Enumerator { + /** + * The '<em><b>TABLE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #TABLE_VALUE + * @generated + * @ordered + */ + TABLE(0, "TABLE", "TABLE"), + + /** + * The '<em><b>SEQUENCE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #SEQUENCE_VALUE + * @generated + * @ordered + */ + SEQUENCE(1, "SEQUENCE", "SEQUENCE"), + + /** + * The '<em><b>IDENTITY</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #IDENTITY_VALUE + * @generated + * @ordered + */ + IDENTITY(2, "IDENTITY", "IDENTITY"), + + /** + * The '<em><b>AUTO</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #AUTO_VALUE + * @generated + * @ordered + */ + AUTO(3, "AUTO", "AUTO"); + + /** + * The '<em><b>TABLE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>TABLE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #TABLE + * @model + * @generated + * @ordered + */ + public static final int TABLE_VALUE = 0; + + /** + * The '<em><b>SEQUENCE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>SEQUENCE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #SEQUENCE + * @model + * @generated + * @ordered + */ + public static final int SEQUENCE_VALUE = 1; + + /** + * The '<em><b>IDENTITY</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>IDENTITY</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #IDENTITY + * @model + * @generated + * @ordered + */ + public static final int IDENTITY_VALUE = 2; + + /** + * The '<em><b>AUTO</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>AUTO</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #AUTO + * @model + * @generated + * @ordered + */ + public static final int AUTO_VALUE = 3; + + /** + * An array of all the '<em><b>Generation Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final GenerationType[] VALUES_ARRAY = + new GenerationType[] { + TABLE, + SEQUENCE, + IDENTITY, + AUTO, + }; + + /** + * A public read-only list of all the '<em><b>Generation Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<GenerationType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Generation Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GenerationType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + GenerationType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Generation Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GenerationType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + GenerationType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Generation Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static GenerationType get(int value) { + switch (value) { + case TABLE_VALUE: return TABLE; + case SEQUENCE_VALUE: return SEQUENCE; + case IDENTITY_VALUE: return IDENTITY; + case AUTO_VALUE: return AUTO; + } + 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 GenerationType(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; + } + +} //GenerationType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Id.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Id.java new file mode 100755 index 000000000..e403081b2 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Id.java @@ -0,0 +1,204 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Id.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Id</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface Id {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Id#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Id#getGeneratedValue <em>Generated Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Id#getTemporal <em>Temporal</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Id#getTableGenerator <em>Table Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Id#getSequenceGenerator <em>Sequence Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Id#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getId() + * @model extendedMetaData="name='id' kind='elementOnly'" + * @generated + */ +public interface Id extends EObject { + /** + * Returns the value of the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column</em>' containment reference. + * @see #setColumn(Column) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getId_Column() + * @model containment="true" + * extendedMetaData="kind='element' name='column' namespace='##targetNamespace'" + * @generated + */ + Column getColumn(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Id#getColumn <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column</em>' containment reference. + * @see #getColumn() + * @generated + */ + void setColumn(Column value); + + /** + * Returns the value of the '<em><b>Generated Value</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Generated Value</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Generated Value</em>' containment reference. + * @see #setGeneratedValue(GeneratedValue) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getId_GeneratedValue() + * @model containment="true" + * extendedMetaData="kind='element' name='generated-value' namespace='##targetNamespace'" + * @generated + */ + GeneratedValue getGeneratedValue(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Id#getGeneratedValue <em>Generated Value</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Generated Value</em>' containment reference. + * @see #getGeneratedValue() + * @generated + */ + void setGeneratedValue(GeneratedValue value); + + /** + * Returns the value of the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Temporal</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Temporal</em>' attribute. + * @see #setTemporal(TemporalType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getId_Temporal() + * @model dataType="org.eclipse.emf.teneo.jpa.orm.Temporal" + * extendedMetaData="kind='element' name='temporal' namespace='##targetNamespace'" + * @generated + */ + TemporalType getTemporal(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Id#getTemporal <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Temporal</em>' attribute. + * @see #getTemporal() + * @generated + */ + void setTemporal(TemporalType value); + + /** + * Returns the value of the '<em><b>Table Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table Generator</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table Generator</em>' containment reference. + * @see #setTableGenerator(TableGenerator) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getId_TableGenerator() + * @model containment="true" + * extendedMetaData="kind='element' name='table-generator' namespace='##targetNamespace'" + * @generated + */ + TableGenerator getTableGenerator(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Id#getTableGenerator <em>Table Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Table Generator</em>' containment reference. + * @see #getTableGenerator() + * @generated + */ + void setTableGenerator(TableGenerator value); + + /** + * Returns the value of the '<em><b>Sequence Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sequence Generator</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sequence Generator</em>' containment reference. + * @see #setSequenceGenerator(SequenceGenerator) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getId_SequenceGenerator() + * @model containment="true" + * extendedMetaData="kind='element' name='sequence-generator' namespace='##targetNamespace'" + * @generated + */ + SequenceGenerator getSequenceGenerator(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Id#getSequenceGenerator <em>Sequence Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Sequence Generator</em>' containment reference. + * @see #getSequenceGenerator() + * @generated + */ + void setSequenceGenerator(SequenceGenerator value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getId_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Id#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // Id diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/IdClass.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/IdClass.java new file mode 100755 index 000000000..1f21eb6e5 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/IdClass.java @@ -0,0 +1,66 @@ +/** + * <copyright> + * </copyright> + * + * $Id: IdClass.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Id Class</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface IdClass { + * Class value(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.IdClass#getClass_ <em>Class</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getIdClass() + * @model extendedMetaData="name='id-class' kind='empty'" + * @generated + */ +public interface IdClass extends EObject { + /** + * Returns the value of the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Class</em>' attribute. + * @see #setClass(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getIdClass_Class() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='class'" + * @generated + */ + String getClass_(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.IdClass#getClass_ <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Class</em>' attribute. + * @see #getClass_() + * @generated + */ + void setClass(String value); + +} // IdClass diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Inheritance.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Inheritance.java new file mode 100755 index 000000000..1cf5208cb --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Inheritance.java @@ -0,0 +1,96 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Inheritance.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Inheritance</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface Inheritance { + * InheritanceType strategy() default SINGLE_TABLE; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Inheritance#getStrategy <em>Strategy</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getInheritance() + * @model extendedMetaData="name='inheritance' kind='empty'" + * @generated + */ +public interface Inheritance extends EObject { + /** + * Returns the value of the '<em><b>Strategy</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.InheritanceType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Strategy</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Strategy</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @see #isSetStrategy() + * @see #unsetStrategy() + * @see #setStrategy(InheritanceType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getInheritance_Strategy() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='strategy'" + * @generated + */ + InheritanceType getStrategy(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Inheritance#getStrategy <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Strategy</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @see #isSetStrategy() + * @see #unsetStrategy() + * @see #getStrategy() + * @generated + */ + void setStrategy(InheritanceType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Inheritance#getStrategy <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetStrategy() + * @see #getStrategy() + * @see #setStrategy(InheritanceType) + * @generated + */ + void unsetStrategy(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Inheritance#getStrategy <em>Strategy</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Strategy</em>' attribute is set. + * @see #unsetStrategy() + * @see #getStrategy() + * @see #setStrategy(InheritanceType) + * @generated + */ + boolean isSetStrategy(); + +} // Inheritance diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/InheritanceType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/InheritanceType.java new file mode 100755 index 000000000..79f83e96f --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/InheritanceType.java @@ -0,0 +1,247 @@ +/** + * <copyright> + * </copyright> + * + * $Id: InheritanceType.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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>Inheritance Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * + * + * public enum InheritanceType + * { SINGLE_TABLE, JOINED, TABLE_PER_CLASS}; + * + * + * <!-- end-model-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getInheritanceType() + * @model extendedMetaData="name='inheritance-type'" + * @generated + */ +public enum InheritanceType implements Enumerator { + /** + * The '<em><b>SINGLETABLE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #SINGLETABLE_VALUE + * @generated + * @ordered + */ + SINGLETABLE(0, "SINGLETABLE", "SINGLE_TABLE"), + + /** + * The '<em><b>JOINED</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #JOINED_VALUE + * @generated + * @ordered + */ + JOINED(1, "JOINED", "JOINED"), + + /** + * The '<em><b>TABLEPERCLASS</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #TABLEPERCLASS_VALUE + * @generated + * @ordered + */ + TABLEPERCLASS(2, "TABLEPERCLASS", "TABLE_PER_CLASS"); + + /** + * The '<em><b>SINGLETABLE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>SINGLETABLE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #SINGLETABLE + * @model literal="SINGLE_TABLE" + * @generated + * @ordered + */ + public static final int SINGLETABLE_VALUE = 0; + + /** + * The '<em><b>JOINED</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>JOINED</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #JOINED + * @model + * @generated + * @ordered + */ + public static final int JOINED_VALUE = 1; + + /** + * The '<em><b>TABLEPERCLASS</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>TABLEPERCLASS</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #TABLEPERCLASS + * @model literal="TABLE_PER_CLASS" + * @generated + * @ordered + */ + public static final int TABLEPERCLASS_VALUE = 2; + + /** + * An array of all the '<em><b>Inheritance Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final InheritanceType[] VALUES_ARRAY = + new InheritanceType[] { + SINGLETABLE, + JOINED, + TABLEPERCLASS, + }; + + /** + * A public read-only list of all the '<em><b>Inheritance Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<InheritanceType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Inheritance Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static InheritanceType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + InheritanceType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Inheritance Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static InheritanceType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + InheritanceType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Inheritance Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static InheritanceType get(int value) { + switch (value) { + case SINGLETABLE_VALUE: return SINGLETABLE; + case JOINED_VALUE: return JOINED; + case TABLEPERCLASS_VALUE: return TABLEPERCLASS; + } + 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 InheritanceType(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; + } + +} //InheritanceType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/JoinColumn.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/JoinColumn.java new file mode 100755 index 000000000..de796fb75 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/JoinColumn.java @@ -0,0 +1,378 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JoinColumn.java,v 1.2 2009/03/23 19:01:40 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Join Column</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface JoinColumn { + * String name() default ""; + * String referencedColumnName() default ""; + * boolean unique() default false; + * boolean nullable() default true; + * boolean insertable() default true; + * boolean updatable() default true; + * String columnDefinition() default ""; + * String table() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isInsertable <em>Insertable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isNullable <em>Nullable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getReferencedColumnName <em>Referenced Column Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUnique <em>Unique</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUpdatable <em>Updatable</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn() + * @model extendedMetaData="name='join-column' kind='empty'" + * @generated + */ +public interface JoinColumn extends EObject { + /** + * Returns the value of the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column Definition</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column Definition</em>' attribute. + * @see #setColumnDefinition(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_ColumnDefinition() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='column-definition'" + * @generated + */ + String getColumnDefinition(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getColumnDefinition <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column Definition</em>' attribute. + * @see #getColumnDefinition() + * @generated + */ + void setColumnDefinition(String value); + + /** + * Returns the value of the '<em><b>Insertable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Insertable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Insertable</em>' attribute. + * @see #isSetInsertable() + * @see #unsetInsertable() + * @see #setInsertable(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_Insertable() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='insertable'" + * @generated + */ + boolean isInsertable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isInsertable <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Insertable</em>' attribute. + * @see #isSetInsertable() + * @see #unsetInsertable() + * @see #isInsertable() + * @generated + */ + void setInsertable(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isInsertable <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetInsertable() + * @see #isInsertable() + * @see #setInsertable(boolean) + * @generated + */ + void unsetInsertable(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isInsertable <em>Insertable</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Insertable</em>' attribute is set. + * @see #unsetInsertable() + * @see #isInsertable() + * @see #setInsertable(boolean) + * @generated + */ + boolean isSetInsertable(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * annotation="teneo.escape value='true'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Nullable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Nullable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Nullable</em>' attribute. + * @see #isSetNullable() + * @see #unsetNullable() + * @see #setNullable(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_Nullable() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='nullable'" + * @generated + */ + boolean isNullable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isNullable <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Nullable</em>' attribute. + * @see #isSetNullable() + * @see #unsetNullable() + * @see #isNullable() + * @generated + */ + void setNullable(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isNullable <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetNullable() + * @see #isNullable() + * @see #setNullable(boolean) + * @generated + */ + void unsetNullable(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isNullable <em>Nullable</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Nullable</em>' attribute is set. + * @see #unsetNullable() + * @see #isNullable() + * @see #setNullable(boolean) + * @generated + */ + boolean isSetNullable(); + + /** + * Returns the value of the '<em><b>Referenced Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Referenced Column Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Referenced Column Name</em>' attribute. + * @see #setReferencedColumnName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_ReferencedColumnName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='referenced-column-name'" + * @generated + */ + String getReferencedColumnName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getReferencedColumnName <em>Referenced Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Referenced Column Name</em>' attribute. + * @see #getReferencedColumnName() + * @generated + */ + void setReferencedColumnName(String value); + + /** + * Returns the value of the '<em><b>Table</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table</em>' attribute. + * @see #setTable(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_Table() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='table'" + * @generated + */ + String getTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getTable <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Table</em>' attribute. + * @see #getTable() + * @generated + */ + void setTable(String value); + + /** + * Returns the value of the '<em><b>Unique</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unique</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unique</em>' attribute. + * @see #isSetUnique() + * @see #unsetUnique() + * @see #setUnique(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_Unique() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='unique'" + * @generated + */ + boolean isUnique(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUnique <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Unique</em>' attribute. + * @see #isSetUnique() + * @see #unsetUnique() + * @see #isUnique() + * @generated + */ + void setUnique(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUnique <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetUnique() + * @see #isUnique() + * @see #setUnique(boolean) + * @generated + */ + void unsetUnique(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUnique <em>Unique</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Unique</em>' attribute is set. + * @see #unsetUnique() + * @see #isUnique() + * @see #setUnique(boolean) + * @generated + */ + boolean isSetUnique(); + + /** + * Returns the value of the '<em><b>Updatable</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Updatable</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Updatable</em>' attribute. + * @see #isSetUpdatable() + * @see #unsetUpdatable() + * @see #setUpdatable(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinColumn_Updatable() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='updatable'" + * @generated + */ + boolean isUpdatable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUpdatable <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Updatable</em>' attribute. + * @see #isSetUpdatable() + * @see #unsetUpdatable() + * @see #isUpdatable() + * @generated + */ + void setUpdatable(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUpdatable <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetUpdatable() + * @see #isUpdatable() + * @see #setUpdatable(boolean) + * @generated + */ + void unsetUpdatable(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUpdatable <em>Updatable</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Updatable</em>' attribute is set. + * @see #unsetUpdatable() + * @see #isUpdatable() + * @see #setUpdatable(boolean) + * @generated + */ + boolean isSetUpdatable(); + +} // JoinColumn diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/JoinTable.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/JoinTable.java new file mode 100755 index 000000000..3438d3afa --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/JoinTable.java @@ -0,0 +1,184 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JoinTable.java,v 1.2 2009/03/23 19:01:40 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Join Table</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface JoinTable { + * String name() default ""; + * String catalog() default ""; + * String schema() default ""; + * JoinColumn[] joinColumns() default {}; + * JoinColumn[] inverseJoinColumns() default {}; + * UniqueConstraint[] uniqueConstraints() default {}; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getInverseJoinColumn <em>Inverse Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getSchema <em>Schema</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinTable() + * @model extendedMetaData="name='join-table' kind='elementOnly'" + * @generated + */ +public interface JoinTable extends EObject { + /** + * Returns the value of the '<em><b>Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.JoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinTable_JoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='join-column' namespace='##targetNamespace'" + * @generated + */ + EList<JoinColumn> getJoinColumn(); + + /** + * Returns the value of the '<em><b>Inverse Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.JoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Inverse Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Inverse Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinTable_InverseJoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='inverse-join-column' namespace='##targetNamespace'" + * @generated + */ + EList<JoinColumn> getInverseJoinColumn(); + + /** + * Returns the value of the '<em><b>Unique Constraint</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unique Constraint</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unique Constraint</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinTable_UniqueConstraint() + * @model containment="true" + * extendedMetaData="kind='element' name='unique-constraint' namespace='##targetNamespace'" + * @generated + */ + EList<UniqueConstraint> getUniqueConstraint(); + + /** + * Returns the value of the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Catalog</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Catalog</em>' attribute. + * @see #setCatalog(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinTable_Catalog() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='catalog'" + * @generated + */ + String getCatalog(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getCatalog <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Catalog</em>' attribute. + * @see #getCatalog() + * @generated + */ + void setCatalog(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinTable_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * annotation="teneo.escape value='true'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' attribute. + * @see #setSchema(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getJoinTable_Schema() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='schema'" + * @generated + */ + String getSchema(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getSchema <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' attribute. + * @see #getSchema() + * @generated + */ + void setSchema(String value); + +} // JoinTable diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Lob.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Lob.java new file mode 100755 index 000000000..ca095e088 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Lob.java @@ -0,0 +1,31 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Lob.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Lob</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface Lob {} + * + * + * <!-- end-model-doc --> + * + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getLob() + * @model extendedMetaData="name='lob' kind='empty'" + * @generated + */ +public interface Lob extends EObject { +} // Lob diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ManyToMany.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ManyToMany.java new file mode 100755 index 000000000..8ad02e7ab --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ManyToMany.java @@ -0,0 +1,295 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ManyToMany.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Many To Many</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface ManyToMany { + * Class targetEntity() default void.class; + * CascadeType[] cascade() default {}; + * FetchType fetch() default LAZY; + * String mappedBy() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getOrderBy <em>Order By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMapKey <em>Map Key</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMappedBy <em>Mapped By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany() + * @model extendedMetaData="name='many-to-many' kind='elementOnly'" + * @generated + */ +public interface ManyToMany extends EObject { + /** + * Returns the value of the '<em><b>Order By</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Order By</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Order By</em>' attribute. + * @see #setOrderBy(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_OrderBy() + * @model dataType="org.eclipse.emf.teneo.jpa.orm.OrderBy" + * extendedMetaData="kind='element' name='order-by' namespace='##targetNamespace'" + * @generated + */ + String getOrderBy(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getOrderBy <em>Order By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Order By</em>' attribute. + * @see #getOrderBy() + * @generated + */ + void setOrderBy(String value); + + /** + * Returns the value of the '<em><b>Map Key</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Map Key</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Map Key</em>' containment reference. + * @see #setMapKey(MapKey) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_MapKey() + * @model containment="true" + * extendedMetaData="kind='element' name='map-key' namespace='##targetNamespace'" + * @generated + */ + MapKey getMapKey(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMapKey <em>Map Key</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Map Key</em>' containment reference. + * @see #getMapKey() + * @generated + */ + void setMapKey(MapKey value); + + /** + * Returns the value of the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Table</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Table</em>' containment reference. + * @see #setJoinTable(JoinTable) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_JoinTable() + * @model containment="true" + * extendedMetaData="kind='element' name='join-table' namespace='##targetNamespace'" + * @generated + */ + JoinTable getJoinTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getJoinTable <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Table</em>' containment reference. + * @see #getJoinTable() + * @generated + */ + void setJoinTable(JoinTable value); + + /** + * Returns the value of the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade</em>' containment reference. + * @see #setCascade(CascadeType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_Cascade() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade' namespace='##targetNamespace'" + * @generated + */ + CascadeType getCascade(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getCascade <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade</em>' containment reference. + * @see #getCascade() + * @generated + */ + void setCascade(CascadeType value); + + /** + * Returns the value of the '<em><b>Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.FetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #setFetch(FetchType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_Fetch() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='fetch'" + * @generated + */ + FetchType getFetch(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #getFetch() + * @generated + */ + void setFetch(FetchType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + void unsetFetch(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getFetch <em>Fetch</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Fetch</em>' attribute is set. + * @see #unsetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + boolean isSetFetch(); + + /** + * Returns the value of the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mapped By</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mapped By</em>' attribute. + * @see #setMappedBy(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_MappedBy() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='mapped-by'" + * @generated + */ + String getMappedBy(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMappedBy <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mapped By</em>' attribute. + * @see #getMappedBy() + * @generated + */ + void setMappedBy(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Target Entity</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Target Entity</em>' attribute. + * @see #setTargetEntity(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToMany_TargetEntity() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='target-entity'" + * @generated + */ + String getTargetEntity(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getTargetEntity <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Target Entity</em>' attribute. + * @see #getTargetEntity() + * @generated + */ + void setTargetEntity(String value); + +} // ManyToMany diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ManyToOne.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ManyToOne.java new file mode 100755 index 000000000..0f248a97f --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/ManyToOne.java @@ -0,0 +1,286 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ManyToOne.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Many To One</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface ManyToOne { + * Class targetEntity() default void.class; + * CascadeType[] cascade() default {}; + * FetchType fetch() default EAGER; + * boolean optional() default true; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#isOptional <em>Optional</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne() + * @model extendedMetaData="name='many-to-one' kind='elementOnly'" + * @generated + */ +public interface ManyToOne extends EObject { + /** + * Returns the value of the '<em><b>Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.JoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne_JoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='join-column' namespace='##targetNamespace'" + * @generated + */ + EList<JoinColumn> getJoinColumn(); + + /** + * Returns the value of the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Table</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Table</em>' containment reference. + * @see #setJoinTable(JoinTable) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne_JoinTable() + * @model containment="true" + * extendedMetaData="kind='element' name='join-table' namespace='##targetNamespace'" + * @generated + */ + JoinTable getJoinTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getJoinTable <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Table</em>' containment reference. + * @see #getJoinTable() + * @generated + */ + void setJoinTable(JoinTable value); + + /** + * Returns the value of the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade</em>' containment reference. + * @see #setCascade(CascadeType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne_Cascade() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade' namespace='##targetNamespace'" + * @generated + */ + CascadeType getCascade(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getCascade <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade</em>' containment reference. + * @see #getCascade() + * @generated + */ + void setCascade(CascadeType value); + + /** + * Returns the value of the '<em><b>Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.FetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #setFetch(FetchType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne_Fetch() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='fetch'" + * @generated + */ + FetchType getFetch(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #getFetch() + * @generated + */ + void setFetch(FetchType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + void unsetFetch(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getFetch <em>Fetch</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Fetch</em>' attribute is set. + * @see #unsetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + boolean isSetFetch(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Optional</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Optional</em>' attribute. + * @see #isSetOptional() + * @see #unsetOptional() + * @see #setOptional(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne_Optional() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='optional'" + * @generated + */ + boolean isOptional(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#isOptional <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Optional</em>' attribute. + * @see #isSetOptional() + * @see #unsetOptional() + * @see #isOptional() + * @generated + */ + void setOptional(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#isOptional <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetOptional() + * @see #isOptional() + * @see #setOptional(boolean) + * @generated + */ + void unsetOptional(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#isOptional <em>Optional</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Optional</em>' attribute is set. + * @see #unsetOptional() + * @see #isOptional() + * @see #setOptional(boolean) + * @generated + */ + boolean isSetOptional(); + + /** + * Returns the value of the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Target Entity</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Target Entity</em>' attribute. + * @see #setTargetEntity(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getManyToOne_TargetEntity() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='target-entity'" + * @generated + */ + String getTargetEntity(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getTargetEntity <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Target Entity</em>' attribute. + * @see #getTargetEntity() + * @generated + */ + void setTargetEntity(String value); + +} // ManyToOne diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/MapKey.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/MapKey.java new file mode 100755 index 000000000..f0e7fab45 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/MapKey.java @@ -0,0 +1,66 @@ +/** + * <copyright> + * </copyright> + * + * $Id: MapKey.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Map Key</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface MapKey { + * String name() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MapKey#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMapKey() + * @model extendedMetaData="name='map-key' kind='empty'" + * @generated + */ +public interface MapKey extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMapKey_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MapKey#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // MapKey diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/MappedSuperclass.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/MappedSuperclass.java new file mode 100755 index 000000000..4da4d2c56 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/MappedSuperclass.java @@ -0,0 +1,548 @@ +/** + * <copyright> + * </copyright> + * + * $Id: MappedSuperclass.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Mapped Superclass</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * Defines the settings and mappings for a mapped superclass. Is + * allowed to be sparsely populated and used in conjunction with + * the annotations. Alternatively, the metadata-complete attribute + * can be used to indicate that no annotations are to be processed + * If this is the case then the defaulting rules will be recursively + * applied. + * + * @Target(TYPE) @Retention(RUNTIME) + * public @interface MappedSuperclass{} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getIdClass <em>Id Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getEntityListeners <em>Entity Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPrePersist <em>Pre Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostPersist <em>Post Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreRemove <em>Pre Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostRemove <em>Post Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreUpdate <em>Pre Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostUpdate <em>Post Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostLoad <em>Post Load</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAttributes <em>Attributes</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#isMetadataComplete <em>Metadata Complete</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass() + * @model extendedMetaData="name='mapped-superclass' kind='elementOnly'" + * @generated + */ +public interface MappedSuperclass extends EObject { + /** + * Returns the value of the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Description</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Description</em>' attribute. + * @see #setDescription(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_Description() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='description' namespace='##targetNamespace'" + * @generated + */ + String getDescription(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getDescription <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Description</em>' attribute. + * @see #getDescription() + * @generated + */ + void setDescription(String value); + + /** + * Returns the value of the '<em><b>Id Class</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Id Class</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Id Class</em>' containment reference. + * @see #setIdClass(IdClass) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_IdClass() + * @model containment="true" + * extendedMetaData="kind='element' name='id-class' namespace='##targetNamespace'" + * @generated + */ + IdClass getIdClass(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getIdClass <em>Id Class</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Id Class</em>' containment reference. + * @see #getIdClass() + * @generated + */ + void setIdClass(IdClass value); + + /** + * Returns the value of the '<em><b>Exclude Default Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Exclude Default Listeners</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Exclude Default Listeners</em>' containment reference. + * @see #setExcludeDefaultListeners(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_ExcludeDefaultListeners() + * @model containment="true" + * extendedMetaData="kind='element' name='exclude-default-listeners' namespace='##targetNamespace'" + * @generated + */ + EmptyType getExcludeDefaultListeners(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Exclude Default Listeners</em>' containment reference. + * @see #getExcludeDefaultListeners() + * @generated + */ + void setExcludeDefaultListeners(EmptyType value); + + /** + * Returns the value of the '<em><b>Exclude Superclass Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Exclude Superclass Listeners</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Exclude Superclass Listeners</em>' containment reference. + * @see #setExcludeSuperclassListeners(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_ExcludeSuperclassListeners() + * @model containment="true" + * extendedMetaData="kind='element' name='exclude-superclass-listeners' namespace='##targetNamespace'" + * @generated + */ + EmptyType getExcludeSuperclassListeners(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Exclude Superclass Listeners</em>' containment reference. + * @see #getExcludeSuperclassListeners() + * @generated + */ + void setExcludeSuperclassListeners(EmptyType value); + + /** + * Returns the value of the '<em><b>Entity Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity Listeners</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity Listeners</em>' containment reference. + * @see #setEntityListeners(EntityListeners) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_EntityListeners() + * @model containment="true" + * extendedMetaData="kind='element' name='entity-listeners' namespace='##targetNamespace'" + * @generated + */ + EntityListeners getEntityListeners(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getEntityListeners <em>Entity Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Entity Listeners</em>' containment reference. + * @see #getEntityListeners() + * @generated + */ + void setEntityListeners(EntityListeners value); + + /** + * Returns the value of the '<em><b>Pre Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Persist</em>' containment reference. + * @see #setPrePersist(PrePersist) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_PrePersist() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-persist' namespace='##targetNamespace'" + * @generated + */ + PrePersist getPrePersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPrePersist <em>Pre Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Persist</em>' containment reference. + * @see #getPrePersist() + * @generated + */ + void setPrePersist(PrePersist value); + + /** + * Returns the value of the '<em><b>Post Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Persist</em>' containment reference. + * @see #setPostPersist(PostPersist) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_PostPersist() + * @model containment="true" + * extendedMetaData="kind='element' name='post-persist' namespace='##targetNamespace'" + * @generated + */ + PostPersist getPostPersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostPersist <em>Post Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Persist</em>' containment reference. + * @see #getPostPersist() + * @generated + */ + void setPostPersist(PostPersist value); + + /** + * Returns the value of the '<em><b>Pre Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Remove</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Remove</em>' containment reference. + * @see #setPreRemove(PreRemove) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_PreRemove() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-remove' namespace='##targetNamespace'" + * @generated + */ + PreRemove getPreRemove(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreRemove <em>Pre Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Remove</em>' containment reference. + * @see #getPreRemove() + * @generated + */ + void setPreRemove(PreRemove value); + + /** + * Returns the value of the '<em><b>Post Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Remove</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Remove</em>' containment reference. + * @see #setPostRemove(PostRemove) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_PostRemove() + * @model containment="true" + * extendedMetaData="kind='element' name='post-remove' namespace='##targetNamespace'" + * @generated + */ + PostRemove getPostRemove(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostRemove <em>Post Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Remove</em>' containment reference. + * @see #getPostRemove() + * @generated + */ + void setPostRemove(PostRemove value); + + /** + * Returns the value of the '<em><b>Pre Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pre Update</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pre Update</em>' containment reference. + * @see #setPreUpdate(PreUpdate) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_PreUpdate() + * @model containment="true" + * extendedMetaData="kind='element' name='pre-update' namespace='##targetNamespace'" + * @generated + */ + PreUpdate getPreUpdate(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreUpdate <em>Pre Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pre Update</em>' containment reference. + * @see #getPreUpdate() + * @generated + */ + void setPreUpdate(PreUpdate value); + + /** + * Returns the value of the '<em><b>Post Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Update</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Update</em>' containment reference. + * @see #setPostUpdate(PostUpdate) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_PostUpdate() + * @model containment="true" + * extendedMetaData="kind='element' name='post-update' namespace='##targetNamespace'" + * @generated + */ + PostUpdate getPostUpdate(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostUpdate <em>Post Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Update</em>' containment reference. + * @see #getPostUpdate() + * @generated + */ + void setPostUpdate(PostUpdate value); + + /** + * Returns the value of the '<em><b>Post Load</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Post Load</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Post Load</em>' containment reference. + * @see #setPostLoad(PostLoad) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_PostLoad() + * @model containment="true" + * extendedMetaData="kind='element' name='post-load' namespace='##targetNamespace'" + * @generated + */ + PostLoad getPostLoad(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostLoad <em>Post Load</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Post Load</em>' containment reference. + * @see #getPostLoad() + * @generated + */ + void setPostLoad(PostLoad value); + + /** + * Returns the value of the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Attributes</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Attributes</em>' containment reference. + * @see #setAttributes(Attributes) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_Attributes() + * @model containment="true" + * extendedMetaData="kind='element' name='attributes' namespace='##targetNamespace'" + * @generated + */ + Attributes getAttributes(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAttributes <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Attributes</em>' containment reference. + * @see #getAttributes() + * @generated + */ + void setAttributes(Attributes value); + + /** + * Returns the value of the '<em><b>Access</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.AccessType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Access</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #setAccess(AccessType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_Access() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='access'" + * @generated + */ + AccessType getAccess(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #getAccess() + * @generated + */ + void setAccess(AccessType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + void unsetAccess(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAccess <em>Access</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Access</em>' attribute is set. + * @see #unsetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + boolean isSetAccess(); + + /** + * Returns the value of the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Class</em>' attribute. + * @see #setClass(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_Class() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='class'" + * @generated + */ + String getClass_(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getClass_ <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Class</em>' attribute. + * @see #getClass_() + * @generated + */ + void setClass(String value); + + /** + * Returns the value of the '<em><b>Metadata Complete</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Metadata Complete</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Metadata Complete</em>' attribute. + * @see #isSetMetadataComplete() + * @see #unsetMetadataComplete() + * @see #setMetadataComplete(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getMappedSuperclass_MetadataComplete() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='metadata-complete'" + * @generated + */ + boolean isMetadataComplete(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#isMetadataComplete <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Metadata Complete</em>' attribute. + * @see #isSetMetadataComplete() + * @see #unsetMetadataComplete() + * @see #isMetadataComplete() + * @generated + */ + void setMetadataComplete(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#isMetadataComplete <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetMetadataComplete() + * @see #isMetadataComplete() + * @see #setMetadataComplete(boolean) + * @generated + */ + void unsetMetadataComplete(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#isMetadataComplete <em>Metadata Complete</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Metadata Complete</em>' attribute is set. + * @see #unsetMetadataComplete() + * @see #isMetadataComplete() + * @see #setMetadataComplete(boolean) + * @generated + */ + boolean isSetMetadataComplete(); + +} // MappedSuperclass diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/NamedNativeQuery.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/NamedNativeQuery.java new file mode 100755 index 000000000..9dbd86c40 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/NamedNativeQuery.java @@ -0,0 +1,174 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NamedNativeQuery.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Named Native Query</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface NamedNativeQuery { + * String name(); + * String query(); + * QueryHint[] hints() default {}; + * Class resultClass() default void.class; + * String resultSetMapping() default ""; //named SqlResultSetMapping + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getQuery <em>Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getHint <em>Hint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultClass <em>Result Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultSetMapping <em>Result Set Mapping</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedNativeQuery() + * @model extendedMetaData="name='named-native-query' kind='elementOnly'" + * @generated + */ +public interface NamedNativeQuery extends EObject { + /** + * Returns the value of the '<em><b>Query</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Query</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Query</em>' attribute. + * @see #setQuery(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedNativeQuery_Query() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='element' name='query' namespace='##targetNamespace'" + * @generated + */ + String getQuery(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getQuery <em>Query</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Query</em>' attribute. + * @see #getQuery() + * @generated + */ + void setQuery(String value); + + /** + * Returns the value of the '<em><b>Hint</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.QueryHint}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Hint</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Hint</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedNativeQuery_Hint() + * @model containment="true" + * extendedMetaData="kind='element' name='hint' namespace='##targetNamespace'" + * @generated + */ + EList<QueryHint> getHint(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedNativeQuery_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Result Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Result Class</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Result Class</em>' attribute. + * @see #setResultClass(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedNativeQuery_ResultClass() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='result-class'" + * @generated + */ + String getResultClass(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultClass <em>Result Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Result Class</em>' attribute. + * @see #getResultClass() + * @generated + */ + void setResultClass(String value); + + /** + * Returns the value of the '<em><b>Result Set Mapping</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Result Set Mapping</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Result Set Mapping</em>' attribute. + * @see #setResultSetMapping(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedNativeQuery_ResultSetMapping() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='result-set-mapping'" + * @generated + */ + String getResultSetMapping(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultSetMapping <em>Result Set Mapping</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Result Set Mapping</em>' attribute. + * @see #getResultSetMapping() + * @generated + */ + void setResultSetMapping(String value); + +} // NamedNativeQuery diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/NamedQuery.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/NamedQuery.java new file mode 100755 index 000000000..760f35b20 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/NamedQuery.java @@ -0,0 +1,116 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NamedQuery.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Named Query</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface NamedQuery { + * String name(); + * String query(); + * QueryHint[] hints() default {}; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getQuery <em>Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getHint <em>Hint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedQuery() + * @model extendedMetaData="name='named-query' kind='elementOnly'" + * @generated + */ +public interface NamedQuery extends EObject { + /** + * Returns the value of the '<em><b>Query</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Query</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Query</em>' attribute. + * @see #setQuery(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedQuery_Query() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='element' name='query' namespace='##targetNamespace'" + * @generated + */ + String getQuery(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getQuery <em>Query</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Query</em>' attribute. + * @see #getQuery() + * @generated + */ + void setQuery(String value); + + /** + * Returns the value of the '<em><b>Hint</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.QueryHint}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Hint</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Hint</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedQuery_Hint() + * @model containment="true" + * extendedMetaData="kind='element' name='hint' namespace='##targetNamespace'" + * @generated + */ + EList<QueryHint> getHint(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getNamedQuery_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // NamedQuery diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OneToMany.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OneToMany.java new file mode 100755 index 000000000..ff9edaf29 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OneToMany.java @@ -0,0 +1,315 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OneToMany.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>One To Many</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface OneToMany { + * Class targetEntity() default void.class; + * CascadeType[] cascade() default {}; + * FetchType fetch() default LAZY; + * String mappedBy() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getOrderBy <em>Order By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getMapKey <em>Map Key</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getMappedBy <em>Mapped By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany() + * @model extendedMetaData="name='one-to-many' kind='elementOnly'" + * @generated + */ +public interface OneToMany extends EObject { + /** + * Returns the value of the '<em><b>Order By</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Order By</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Order By</em>' attribute. + * @see #setOrderBy(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_OrderBy() + * @model dataType="org.eclipse.emf.teneo.jpa.orm.OrderBy" + * extendedMetaData="kind='element' name='order-by' namespace='##targetNamespace'" + * @generated + */ + String getOrderBy(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getOrderBy <em>Order By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Order By</em>' attribute. + * @see #getOrderBy() + * @generated + */ + void setOrderBy(String value); + + /** + * Returns the value of the '<em><b>Map Key</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Map Key</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Map Key</em>' containment reference. + * @see #setMapKey(MapKey) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_MapKey() + * @model containment="true" + * extendedMetaData="kind='element' name='map-key' namespace='##targetNamespace'" + * @generated + */ + MapKey getMapKey(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getMapKey <em>Map Key</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Map Key</em>' containment reference. + * @see #getMapKey() + * @generated + */ + void setMapKey(MapKey value); + + /** + * Returns the value of the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Table</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Table</em>' containment reference. + * @see #setJoinTable(JoinTable) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_JoinTable() + * @model containment="true" + * extendedMetaData="kind='element' name='join-table' namespace='##targetNamespace'" + * @generated + */ + JoinTable getJoinTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getJoinTable <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Table</em>' containment reference. + * @see #getJoinTable() + * @generated + */ + void setJoinTable(JoinTable value); + + /** + * Returns the value of the '<em><b>Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.JoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_JoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='join-column' namespace='##targetNamespace'" + * @generated + */ + EList<JoinColumn> getJoinColumn(); + + /** + * Returns the value of the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade</em>' containment reference. + * @see #setCascade(CascadeType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_Cascade() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade' namespace='##targetNamespace'" + * @generated + */ + CascadeType getCascade(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getCascade <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade</em>' containment reference. + * @see #getCascade() + * @generated + */ + void setCascade(CascadeType value); + + /** + * Returns the value of the '<em><b>Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.FetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #setFetch(FetchType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_Fetch() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='fetch'" + * @generated + */ + FetchType getFetch(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #getFetch() + * @generated + */ + void setFetch(FetchType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + void unsetFetch(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getFetch <em>Fetch</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Fetch</em>' attribute is set. + * @see #unsetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + boolean isSetFetch(); + + /** + * Returns the value of the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mapped By</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mapped By</em>' attribute. + * @see #setMappedBy(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_MappedBy() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='mapped-by'" + * @generated + */ + String getMappedBy(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getMappedBy <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mapped By</em>' attribute. + * @see #getMappedBy() + * @generated + */ + void setMappedBy(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Target Entity</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Target Entity</em>' attribute. + * @see #setTargetEntity(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToMany_TargetEntity() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='target-entity'" + * @generated + */ + String getTargetEntity(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getTargetEntity <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Target Entity</em>' attribute. + * @see #getTargetEntity() + * @generated + */ + void setTargetEntity(String value); + +} // OneToMany diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OneToOne.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OneToOne.java new file mode 100755 index 000000000..8485c0605 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OneToOne.java @@ -0,0 +1,333 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OneToOne.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>One To One</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface OneToOne { + * Class targetEntity() default void.class; + * CascadeType[] cascade() default {}; + * FetchType fetch() default EAGER; + * boolean optional() default true; + * String mappedBy() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getMappedBy <em>Mapped By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#isOptional <em>Optional</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne() + * @model extendedMetaData="name='one-to-one' kind='elementOnly'" + * @generated + */ +public interface OneToOne extends EObject { + /** + * Returns the value of the '<em><b>Primary Key Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Primary Key Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Primary Key Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_PrimaryKeyJoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='primary-key-join-column' namespace='##targetNamespace'" + * @generated + */ + EList<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn(); + + /** + * Returns the value of the '<em><b>Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.JoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_JoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='join-column' namespace='##targetNamespace'" + * @generated + */ + EList<JoinColumn> getJoinColumn(); + + /** + * Returns the value of the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Join Table</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Join Table</em>' containment reference. + * @see #setJoinTable(JoinTable) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_JoinTable() + * @model containment="true" + * extendedMetaData="kind='element' name='join-table' namespace='##targetNamespace'" + * @generated + */ + JoinTable getJoinTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getJoinTable <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Join Table</em>' containment reference. + * @see #getJoinTable() + * @generated + */ + void setJoinTable(JoinTable value); + + /** + * Returns the value of the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade</em>' containment reference. + * @see #setCascade(CascadeType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_Cascade() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade' namespace='##targetNamespace'" + * @generated + */ + CascadeType getCascade(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getCascade <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade</em>' containment reference. + * @see #getCascade() + * @generated + */ + void setCascade(CascadeType value); + + /** + * Returns the value of the '<em><b>Fetch</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.FetchType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>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>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #setFetch(FetchType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_Fetch() + * @model unsettable="true" + * extendedMetaData="kind='attribute' name='fetch'" + * @generated + */ + FetchType getFetch(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Fetch</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see #isSetFetch() + * @see #unsetFetch() + * @see #getFetch() + * @generated + */ + void setFetch(FetchType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getFetch <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + void unsetFetch(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getFetch <em>Fetch</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Fetch</em>' attribute is set. + * @see #unsetFetch() + * @see #getFetch() + * @see #setFetch(FetchType) + * @generated + */ + boolean isSetFetch(); + + /** + * Returns the value of the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Mapped By</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Mapped By</em>' attribute. + * @see #setMappedBy(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_MappedBy() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='mapped-by'" + * @generated + */ + String getMappedBy(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getMappedBy <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Mapped By</em>' attribute. + * @see #getMappedBy() + * @generated + */ + void setMappedBy(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Optional</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Optional</em>' attribute. + * @see #isSetOptional() + * @see #unsetOptional() + * @see #setOptional(boolean) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_Optional() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Boolean" + * extendedMetaData="kind='attribute' name='optional'" + * @generated + */ + boolean isOptional(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#isOptional <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Optional</em>' attribute. + * @see #isSetOptional() + * @see #unsetOptional() + * @see #isOptional() + * @generated + */ + void setOptional(boolean value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#isOptional <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetOptional() + * @see #isOptional() + * @see #setOptional(boolean) + * @generated + */ + void unsetOptional(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#isOptional <em>Optional</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Optional</em>' attribute is set. + * @see #unsetOptional() + * @see #isOptional() + * @see #setOptional(boolean) + * @generated + */ + boolean isSetOptional(); + + /** + * Returns the value of the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Target Entity</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Target Entity</em>' attribute. + * @see #setTargetEntity(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getOneToOne_TargetEntity() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='target-entity'" + * @generated + */ + String getTargetEntity(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getTargetEntity <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Target Entity</em>' attribute. + * @see #getTargetEntity() + * @generated + */ + void setTargetEntity(String value); + +} // OneToOne diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OrmFactory.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OrmFactory.java new file mode 100755 index 000000000..e62cc556c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OrmFactory.java @@ -0,0 +1,523 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmFactory.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EFactory; + +/** + * <!-- begin-user-doc --> + * The <b>Factory</b> for the model. + * It provides a create method for each non-abstract class of the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage + * @generated + */ +public interface OrmFactory extends EFactory { + /** + * The singleton instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + OrmFactory eINSTANCE = org.eclipse.emf.teneo.jpa.orm.impl.OrmFactoryImpl.init(); + + /** + * Returns a new object of class '<em>Association Override</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Association Override</em>'. + * @generated + */ + AssociationOverride createAssociationOverride(); + + /** + * Returns a new object of class '<em>Attribute Override</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Attribute Override</em>'. + * @generated + */ + AttributeOverride createAttributeOverride(); + + /** + * Returns a new object of class '<em>Attributes</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Attributes</em>'. + * @generated + */ + Attributes createAttributes(); + + /** + * Returns a new object of class '<em>Basic</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Basic</em>'. + * @generated + */ + Basic createBasic(); + + /** + * Returns a new object of class '<em>Cascade Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Cascade Type</em>'. + * @generated + */ + CascadeType createCascadeType(); + + /** + * Returns a new object of class '<em>Column</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Column</em>'. + * @generated + */ + Column createColumn(); + + /** + * Returns a new object of class '<em>Column Result</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Column Result</em>'. + * @generated + */ + ColumnResult createColumnResult(); + + /** + * Returns a new object of class '<em>Discriminator Column</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Discriminator Column</em>'. + * @generated + */ + DiscriminatorColumn createDiscriminatorColumn(); + + /** + * Returns a new object of class '<em>Document Root</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Document Root</em>'. + * @generated + */ + DocumentRoot createDocumentRoot(); + + /** + * Returns a new object of class '<em>Embeddable</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Embeddable</em>'. + * @generated + */ + Embeddable createEmbeddable(); + + /** + * Returns a new object of class '<em>Embeddable Attributes</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Embeddable Attributes</em>'. + * @generated + */ + EmbeddableAttributes createEmbeddableAttributes(); + + /** + * Returns a new object of class '<em>Embedded</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Embedded</em>'. + * @generated + */ + Embedded createEmbedded(); + + /** + * Returns a new object of class '<em>Embedded Id</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Embedded Id</em>'. + * @generated + */ + EmbeddedId createEmbeddedId(); + + /** + * Returns a new object of class '<em>Empty Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Empty Type</em>'. + * @generated + */ + EmptyType createEmptyType(); + + /** + * Returns a new object of class '<em>Entity</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Entity</em>'. + * @generated + */ + Entity createEntity(); + + /** + * Returns a new object of class '<em>Entity Listener</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Entity Listener</em>'. + * @generated + */ + EntityListener createEntityListener(); + + /** + * Returns a new object of class '<em>Entity Listeners</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Entity Listeners</em>'. + * @generated + */ + EntityListeners createEntityListeners(); + + /** + * Returns a new object of class '<em>Entity Mappings Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Entity Mappings Type</em>'. + * @generated + */ + EntityMappingsType createEntityMappingsType(); + + /** + * Returns a new object of class '<em>Entity Result</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Entity Result</em>'. + * @generated + */ + EntityResult createEntityResult(); + + /** + * Returns a new object of class '<em>Field Result</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Field Result</em>'. + * @generated + */ + FieldResult createFieldResult(); + + /** + * Returns a new object of class '<em>Generated Value</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Generated Value</em>'. + * @generated + */ + GeneratedValue createGeneratedValue(); + + /** + * Returns a new object of class '<em>Id</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Id</em>'. + * @generated + */ + Id createId(); + + /** + * Returns a new object of class '<em>Id Class</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Id Class</em>'. + * @generated + */ + IdClass createIdClass(); + + /** + * Returns a new object of class '<em>Inheritance</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Inheritance</em>'. + * @generated + */ + Inheritance createInheritance(); + + /** + * Returns a new object of class '<em>Join Column</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Join Column</em>'. + * @generated + */ + JoinColumn createJoinColumn(); + + /** + * Returns a new object of class '<em>Join Table</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Join Table</em>'. + * @generated + */ + JoinTable createJoinTable(); + + /** + * Returns a new object of class '<em>Lob</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Lob</em>'. + * @generated + */ + Lob createLob(); + + /** + * Returns a new object of class '<em>Many To Many</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Many To Many</em>'. + * @generated + */ + ManyToMany createManyToMany(); + + /** + * Returns a new object of class '<em>Many To One</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Many To One</em>'. + * @generated + */ + ManyToOne createManyToOne(); + + /** + * Returns a new object of class '<em>Map Key</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Map Key</em>'. + * @generated + */ + MapKey createMapKey(); + + /** + * Returns a new object of class '<em>Mapped Superclass</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Mapped Superclass</em>'. + * @generated + */ + MappedSuperclass createMappedSuperclass(); + + /** + * Returns a new object of class '<em>Named Native Query</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Named Native Query</em>'. + * @generated + */ + NamedNativeQuery createNamedNativeQuery(); + + /** + * Returns a new object of class '<em>Named Query</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Named Query</em>'. + * @generated + */ + NamedQuery createNamedQuery(); + + /** + * Returns a new object of class '<em>One To Many</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>One To Many</em>'. + * @generated + */ + OneToMany createOneToMany(); + + /** + * Returns a new object of class '<em>One To One</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>One To One</em>'. + * @generated + */ + OneToOne createOneToOne(); + + /** + * Returns a new object of class '<em>Persistence Unit Defaults</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Persistence Unit Defaults</em>'. + * @generated + */ + PersistenceUnitDefaults createPersistenceUnitDefaults(); + + /** + * Returns a new object of class '<em>Persistence Unit Metadata</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Persistence Unit Metadata</em>'. + * @generated + */ + PersistenceUnitMetadata createPersistenceUnitMetadata(); + + /** + * Returns a new object of class '<em>Post Load</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Post Load</em>'. + * @generated + */ + PostLoad createPostLoad(); + + /** + * Returns a new object of class '<em>Post Persist</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Post Persist</em>'. + * @generated + */ + PostPersist createPostPersist(); + + /** + * Returns a new object of class '<em>Post Remove</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Post Remove</em>'. + * @generated + */ + PostRemove createPostRemove(); + + /** + * Returns a new object of class '<em>Post Update</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Post Update</em>'. + * @generated + */ + PostUpdate createPostUpdate(); + + /** + * Returns a new object of class '<em>Pre Persist</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Pre Persist</em>'. + * @generated + */ + PrePersist createPrePersist(); + + /** + * Returns a new object of class '<em>Pre Remove</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Pre Remove</em>'. + * @generated + */ + PreRemove createPreRemove(); + + /** + * Returns a new object of class '<em>Pre Update</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Pre Update</em>'. + * @generated + */ + PreUpdate createPreUpdate(); + + /** + * Returns a new object of class '<em>Primary Key Join Column</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Primary Key Join Column</em>'. + * @generated + */ + PrimaryKeyJoinColumn createPrimaryKeyJoinColumn(); + + /** + * Returns a new object of class '<em>Query Hint</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Query Hint</em>'. + * @generated + */ + QueryHint createQueryHint(); + + /** + * Returns a new object of class '<em>Secondary Table</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Secondary Table</em>'. + * @generated + */ + SecondaryTable createSecondaryTable(); + + /** + * Returns a new object of class '<em>Sequence Generator</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Sequence Generator</em>'. + * @generated + */ + SequenceGenerator createSequenceGenerator(); + + /** + * Returns a new object of class '<em>Sql Result Set Mapping</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Sql Result Set Mapping</em>'. + * @generated + */ + SqlResultSetMapping createSqlResultSetMapping(); + + /** + * Returns a new object of class '<em>Table</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Table</em>'. + * @generated + */ + Table createTable(); + + /** + * Returns a new object of class '<em>Table Generator</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Table Generator</em>'. + * @generated + */ + TableGenerator createTableGenerator(); + + /** + * Returns a new object of class '<em>Transient</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Transient</em>'. + * @generated + */ + Transient createTransient(); + + /** + * Returns a new object of class '<em>Unique Constraint</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Unique Constraint</em>'. + * @generated + */ + UniqueConstraint createUniqueConstraint(); + + /** + * Returns a new object of class '<em>Version</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return a new object of class '<em>Version</em>'. + * @generated + */ + Version createVersion(); + + /** + * Returns the package supported by this factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the package supported by this factory. + * @generated + */ + OrmPackage getOrmPackage(); + +} //OrmFactory diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OrmPackage.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OrmPackage.java new file mode 100755 index 000000000..ca162c692 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/OrmPackage.java @@ -0,0 +1,9706 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmPackage.java,v 1.3 2010/03/07 05:36:57 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; + +/** + * <!-- begin-user-doc --> + * The <b>Package</b> for the model. + * It contains accessors for the meta objects to represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmFactory + * @model kind="package" + * extendedMetaData="qualified='false'" + * @generated + */ +public interface OrmPackage extends EPackage { + /** + * The package name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNAME = "orm"; + + /** + * The package namespace URI. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_URI = "http://java.sun.com/xml/ns/persistence/orm"; + + /** + * The package namespace name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + String eNS_PREFIX = "orm"; + + /** + * The singleton instance of the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + OrmPackage eINSTANCE = org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl.init(); + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.AssociationOverrideImpl <em>Association Override</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.AssociationOverrideImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAssociationOverride() + * @generated + */ + int ASSOCIATION_OVERRIDE = 0; + + /** + * The feature id for the '<em><b>Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ASSOCIATION_OVERRIDE__JOIN_COLUMN = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ASSOCIATION_OVERRIDE__NAME = 1; + + /** + * The number of structural features of the '<em>Association Override</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ASSOCIATION_OVERRIDE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributeOverrideImpl <em>Attribute Override</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.AttributeOverrideImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAttributeOverride() + * @generated + */ + int ATTRIBUTE_OVERRIDE = 1; + + /** + * The feature id for the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTE_OVERRIDE__COLUMN = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTE_OVERRIDE__NAME = 1; + + /** + * The number of structural features of the '<em>Attribute Override</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTE_OVERRIDE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl <em>Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAttributes() + * @generated + */ + int ATTRIBUTES = 2; + + /** + * The feature id for the '<em><b>Id</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__ID = 0; + + /** + * The feature id for the '<em><b>Embedded Id</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__EMBEDDED_ID = 1; + + /** + * The feature id for the '<em><b>Basic</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__BASIC = 2; + + /** + * The feature id for the '<em><b>Version</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__VERSION = 3; + + /** + * The feature id for the '<em><b>Many To One</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__MANY_TO_ONE = 4; + + /** + * The feature id for the '<em><b>One To Many</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__ONE_TO_MANY = 5; + + /** + * The feature id for the '<em><b>One To One</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__ONE_TO_ONE = 6; + + /** + * The feature id for the '<em><b>Many To Many</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__MANY_TO_MANY = 7; + + /** + * The feature id for the '<em><b>Embedded</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__EMBEDDED = 8; + + /** + * The feature id for the '<em><b>Transient</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES__TRANSIENT = 9; + + /** + * The number of structural features of the '<em>Attributes</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ATTRIBUTES_FEATURE_COUNT = 10; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl <em>Basic</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getBasic() + * @generated + */ + int BASIC = 3; + + /** + * The feature id for the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC__COLUMN = 0; + + /** + * The feature id for the '<em><b>Lob</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC__LOB = 1; + + /** + * The feature id for the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC__TEMPORAL = 2; + + /** + * The feature id for the '<em><b>Enumerated</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC__ENUMERATED = 3; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC__FETCH = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC__NAME = 5; + + /** + * The feature id for the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC__OPTIONAL = 6; + + /** + * The number of structural features of the '<em>Basic</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int BASIC_FEATURE_COUNT = 7; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl <em>Cascade Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getCascadeType() + * @generated + */ + int CASCADE_TYPE = 4; + + /** + * The feature id for the '<em><b>Cascade All</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CASCADE_TYPE__CASCADE_ALL = 0; + + /** + * The feature id for the '<em><b>Cascade Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CASCADE_TYPE__CASCADE_PERSIST = 1; + + /** + * The feature id for the '<em><b>Cascade Merge</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CASCADE_TYPE__CASCADE_MERGE = 2; + + /** + * The feature id for the '<em><b>Cascade Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CASCADE_TYPE__CASCADE_REMOVE = 3; + + /** + * The feature id for the '<em><b>Cascade Refresh</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CASCADE_TYPE__CASCADE_REFRESH = 4; + + /** + * The number of structural features of the '<em>Cascade Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int CASCADE_TYPE_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl <em>Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getColumn() + * @generated + */ + int COLUMN = 5; + + /** + * The feature id for the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__COLUMN_DEFINITION = 0; + + /** + * The feature id for the '<em><b>Insertable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__INSERTABLE = 1; + + /** + * The feature id for the '<em><b>Length</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__LENGTH = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__NAME = 3; + + /** + * The feature id for the '<em><b>Nullable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__NULLABLE = 4; + + /** + * The feature id for the '<em><b>Precision</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__PRECISION = 5; + + /** + * The feature id for the '<em><b>Scale</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__SCALE = 6; + + /** + * The feature id for the '<em><b>Table</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__TABLE = 7; + + /** + * The feature id for the '<em><b>Unique</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__UNIQUE = 8; + + /** + * The feature id for the '<em><b>Updatable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN__UPDATABLE = 9; + + /** + * The number of structural features of the '<em>Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN_FEATURE_COUNT = 10; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnResultImpl <em>Column Result</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ColumnResultImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getColumnResult() + * @generated + */ + int COLUMN_RESULT = 6; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN_RESULT__NAME = 0; + + /** + * The number of structural features of the '<em>Column Result</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int COLUMN_RESULT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl <em>Discriminator Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorColumn() + * @generated + */ + int DISCRIMINATOR_COLUMN = 7; + + /** + * The feature id for the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DISCRIMINATOR_COLUMN__COLUMN_DEFINITION = 0; + + /** + * The feature id for the '<em><b>Discriminator Type</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE = 1; + + /** + * The feature id for the '<em><b>Length</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DISCRIMINATOR_COLUMN__LENGTH = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DISCRIMINATOR_COLUMN__NAME = 3; + + /** + * The number of structural features of the '<em>Discriminator Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DISCRIMINATOR_COLUMN_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl <em>Document Root</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDocumentRoot() + * @generated + */ + int DOCUMENT_ROOT = 8; + + /** + * The feature id for the '<em><b>Mixed</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCUMENT_ROOT__MIXED = 0; + + /** + * The feature id for the '<em><b>XMLNS Prefix Map</b></em>' map. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1; + + /** + * The feature id for the '<em><b>XSI Schema Location</b></em>' map. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2; + + /** + * The feature id for the '<em><b>Entity Mappings</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCUMENT_ROOT__ENTITY_MAPPINGS = 3; + + /** + * The number of structural features of the '<em>Document Root</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int DOCUMENT_ROOT_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl <em>Embeddable</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbeddable() + * @generated + */ + int EMBEDDABLE = 9; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE__DESCRIPTION = 0; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE__ATTRIBUTES = 1; + + /** + * The feature id for the '<em><b>Access</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE__ACCESS = 2; + + /** + * The feature id for the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE__CLASS = 3; + + /** + * The feature id for the '<em><b>Metadata Complete</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE__METADATA_COMPLETE = 4; + + /** + * The number of structural features of the '<em>Embeddable</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableAttributesImpl <em>Embeddable Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableAttributesImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbeddableAttributes() + * @generated + */ + int EMBEDDABLE_ATTRIBUTES = 10; + + /** + * The feature id for the '<em><b>Basic</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE_ATTRIBUTES__BASIC = 0; + + /** + * The feature id for the '<em><b>Transient</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE_ATTRIBUTES__TRANSIENT = 1; + + /** + * The number of structural features of the '<em>Embeddable Attributes</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDABLE_ATTRIBUTES_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedImpl <em>Embedded</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbedded() + * @generated + */ + int EMBEDDED = 11; + + /** + * The feature id for the '<em><b>Attribute Override</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDED__ATTRIBUTE_OVERRIDE = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDED__NAME = 1; + + /** + * The number of structural features of the '<em>Embedded</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDED_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedIdImpl <em>Embedded Id</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedIdImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbeddedId() + * @generated + */ + int EMBEDDED_ID = 12; + + /** + * The feature id for the '<em><b>Attribute Override</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDED_ID__ATTRIBUTE_OVERRIDE = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDED_ID__NAME = 1; + + /** + * The number of structural features of the '<em>Embedded Id</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMBEDDED_ID_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmptyTypeImpl <em>Empty Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmptyTypeImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmptyType() + * @generated + */ + int EMPTY_TYPE = 13; + + /** + * The number of structural features of the '<em>Empty Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int EMPTY_TYPE_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl <em>Entity</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntity() + * @generated + */ + int ENTITY = 14; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__DESCRIPTION = 0; + + /** + * The feature id for the '<em><b>Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__TABLE = 1; + + /** + * The feature id for the '<em><b>Secondary Table</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__SECONDARY_TABLE = 2; + + /** + * The feature id for the '<em><b>Primary Key Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__PRIMARY_KEY_JOIN_COLUMN = 3; + + /** + * The feature id for the '<em><b>Id Class</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__ID_CLASS = 4; + + /** + * The feature id for the '<em><b>Inheritance</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__INHERITANCE = 5; + + /** + * The feature id for the '<em><b>Discriminator Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__DISCRIMINATOR_VALUE = 6; + + /** + * The feature id for the '<em><b>Discriminator Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__DISCRIMINATOR_COLUMN = 7; + + /** + * The feature id for the '<em><b>Sequence Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__SEQUENCE_GENERATOR = 8; + + /** + * The feature id for the '<em><b>Table Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__TABLE_GENERATOR = 9; + + /** + * The feature id for the '<em><b>Named Query</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__NAMED_QUERY = 10; + + /** + * The feature id for the '<em><b>Named Native Query</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__NAMED_NATIVE_QUERY = 11; + + /** + * The feature id for the '<em><b>Sql Result Set Mapping</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__SQL_RESULT_SET_MAPPING = 12; + + /** + * The feature id for the '<em><b>Exclude Default Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__EXCLUDE_DEFAULT_LISTENERS = 13; + + /** + * The feature id for the '<em><b>Exclude Superclass Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__EXCLUDE_SUPERCLASS_LISTENERS = 14; + + /** + * The feature id for the '<em><b>Entity Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__ENTITY_LISTENERS = 15; + + /** + * The feature id for the '<em><b>Pre Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__PRE_PERSIST = 16; + + /** + * The feature id for the '<em><b>Post Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__POST_PERSIST = 17; + + /** + * The feature id for the '<em><b>Pre Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__PRE_REMOVE = 18; + + /** + * The feature id for the '<em><b>Post Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__POST_REMOVE = 19; + + /** + * The feature id for the '<em><b>Pre Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__PRE_UPDATE = 20; + + /** + * The feature id for the '<em><b>Post Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__POST_UPDATE = 21; + + /** + * The feature id for the '<em><b>Post Load</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__POST_LOAD = 22; + + /** + * The feature id for the '<em><b>Attribute Override</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__ATTRIBUTE_OVERRIDE = 23; + + /** + * The feature id for the '<em><b>Association Override</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__ASSOCIATION_OVERRIDE = 24; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__ATTRIBUTES = 25; + + /** + * The feature id for the '<em><b>Access</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__ACCESS = 26; + + /** + * The feature id for the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__CLASS = 27; + + /** + * The feature id for the '<em><b>Metadata Complete</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__METADATA_COMPLETE = 28; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY__NAME = 29; + + /** + * The number of structural features of the '<em>Entity</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_FEATURE_COUNT = 30; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl <em>Entity Listener</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityListener() + * @generated + */ + int ENTITY_LISTENER = 15; + + /** + * The feature id for the '<em><b>Pre Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__PRE_PERSIST = 0; + + /** + * The feature id for the '<em><b>Post Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__POST_PERSIST = 1; + + /** + * The feature id for the '<em><b>Pre Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__PRE_REMOVE = 2; + + /** + * The feature id for the '<em><b>Post Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__POST_REMOVE = 3; + + /** + * The feature id for the '<em><b>Pre Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__PRE_UPDATE = 4; + + /** + * The feature id for the '<em><b>Post Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__POST_UPDATE = 5; + + /** + * The feature id for the '<em><b>Post Load</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__POST_LOAD = 6; + + /** + * The feature id for the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER__CLASS = 7; + + /** + * The number of structural features of the '<em>Entity Listener</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENER_FEATURE_COUNT = 8; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenersImpl <em>Entity Listeners</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityListenersImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityListeners() + * @generated + */ + int ENTITY_LISTENERS = 16; + + /** + * The feature id for the '<em><b>Entity Listener</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENERS__ENTITY_LISTENER = 0; + + /** + * The number of structural features of the '<em>Entity Listeners</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_LISTENERS_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl <em>Entity Mappings Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityMappingsType() + * @generated + */ + int ENTITY_MAPPINGS_TYPE = 17; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__DESCRIPTION = 0; + + /** + * The feature id for the '<em><b>Persistence Unit Metadata</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA = 1; + + /** + * The feature id for the '<em><b>Package</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__PACKAGE = 2; + + /** + * The feature id for the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__SCHEMA = 3; + + /** + * The feature id for the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__CATALOG = 4; + + /** + * The feature id for the '<em><b>Access</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__ACCESS = 5; + + /** + * The feature id for the '<em><b>Sequence Generator</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR = 6; + + /** + * The feature id for the '<em><b>Table Generator</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR = 7; + + /** + * The feature id for the '<em><b>Named Query</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__NAMED_QUERY = 8; + + /** + * The feature id for the '<em><b>Named Native Query</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY = 9; + + /** + * The feature id for the '<em><b>Sql Result Set Mapping</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING = 10; + + /** + * The feature id for the '<em><b>Mapped Superclass</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS = 11; + + /** + * The feature id for the '<em><b>Entity</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__ENTITY = 12; + + /** + * The feature id for the '<em><b>Embeddable</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__EMBEDDABLE = 13; + + /** + * The feature id for the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE__VERSION = 14; + + /** + * The number of structural features of the '<em>Entity Mappings Type</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_MAPPINGS_TYPE_FEATURE_COUNT = 15; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityResultImpl <em>Entity Result</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityResultImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityResult() + * @generated + */ + int ENTITY_RESULT = 18; + + /** + * The feature id for the '<em><b>Field Result</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_RESULT__FIELD_RESULT = 0; + + /** + * The feature id for the '<em><b>Discriminator Column</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_RESULT__DISCRIMINATOR_COLUMN = 1; + + /** + * The feature id for the '<em><b>Entity Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_RESULT__ENTITY_CLASS = 2; + + /** + * The number of structural features of the '<em>Entity Result</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ENTITY_RESULT_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.FieldResultImpl <em>Field Result</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.FieldResultImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getFieldResult() + * @generated + */ + int FIELD_RESULT = 19; + + /** + * The feature id for the '<em><b>Column</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FIELD_RESULT__COLUMN = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FIELD_RESULT__NAME = 1; + + /** + * The number of structural features of the '<em>Field Result</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int FIELD_RESULT_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.GeneratedValueImpl <em>Generated Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.GeneratedValueImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getGeneratedValue() + * @generated + */ + int GENERATED_VALUE = 20; + + /** + * The feature id for the '<em><b>Generator</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GENERATED_VALUE__GENERATOR = 0; + + /** + * The feature id for the '<em><b>Strategy</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GENERATED_VALUE__STRATEGY = 1; + + /** + * The number of structural features of the '<em>Generated Value</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int GENERATED_VALUE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl <em>Id</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.IdImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getId() + * @generated + */ + int ID = 21; + + /** + * The feature id for the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID__COLUMN = 0; + + /** + * The feature id for the '<em><b>Generated Value</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID__GENERATED_VALUE = 1; + + /** + * The feature id for the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID__TEMPORAL = 2; + + /** + * The feature id for the '<em><b>Table Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID__TABLE_GENERATOR = 3; + + /** + * The feature id for the '<em><b>Sequence Generator</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID__SEQUENCE_GENERATOR = 4; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID__NAME = 5; + + /** + * The number of structural features of the '<em>Id</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.IdClassImpl <em>Id Class</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.IdClassImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getIdClass() + * @generated + */ + int ID_CLASS = 22; + + /** + * The feature id for the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID_CLASS__CLASS = 0; + + /** + * The number of structural features of the '<em>Id Class</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ID_CLASS_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.InheritanceImpl <em>Inheritance</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.InheritanceImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getInheritance() + * @generated + */ + int INHERITANCE = 23; + + /** + * The feature id for the '<em><b>Strategy</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INHERITANCE__STRATEGY = 0; + + /** + * The number of structural features of the '<em>Inheritance</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int INHERITANCE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl <em>Join Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getJoinColumn() + * @generated + */ + int JOIN_COLUMN = 24; + + /** + * The feature id for the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__COLUMN_DEFINITION = 0; + + /** + * The feature id for the '<em><b>Insertable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__INSERTABLE = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__NAME = 2; + + /** + * The feature id for the '<em><b>Nullable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__NULLABLE = 3; + + /** + * The feature id for the '<em><b>Referenced Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__REFERENCED_COLUMN_NAME = 4; + + /** + * The feature id for the '<em><b>Table</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__TABLE = 5; + + /** + * The feature id for the '<em><b>Unique</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__UNIQUE = 6; + + /** + * The feature id for the '<em><b>Updatable</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN__UPDATABLE = 7; + + /** + * The number of structural features of the '<em>Join Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_COLUMN_FEATURE_COUNT = 8; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl <em>Join Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getJoinTable() + * @generated + */ + int JOIN_TABLE = 25; + + /** + * The feature id for the '<em><b>Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_TABLE__JOIN_COLUMN = 0; + + /** + * The feature id for the '<em><b>Inverse Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_TABLE__INVERSE_JOIN_COLUMN = 1; + + /** + * The feature id for the '<em><b>Unique Constraint</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_TABLE__UNIQUE_CONSTRAINT = 2; + + /** + * The feature id for the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_TABLE__CATALOG = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_TABLE__NAME = 4; + + /** + * The feature id for the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_TABLE__SCHEMA = 5; + + /** + * The number of structural features of the '<em>Join Table</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int JOIN_TABLE_FEATURE_COUNT = 6; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.LobImpl <em>Lob</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.LobImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getLob() + * @generated + */ + int LOB = 26; + + /** + * The number of structural features of the '<em>Lob</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int LOB_FEATURE_COUNT = 0; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl <em>Many To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getManyToMany() + * @generated + */ + int MANY_TO_MANY = 27; + + /** + * The feature id for the '<em><b>Order By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__ORDER_BY = 0; + + /** + * The feature id for the '<em><b>Map Key</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__MAP_KEY = 1; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__JOIN_TABLE = 2; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__CASCADE = 3; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__FETCH = 4; + + /** + * The feature id for the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__MAPPED_BY = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__NAME = 6; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY__TARGET_ENTITY = 7; + + /** + * The number of structural features of the '<em>Many To Many</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_MANY_FEATURE_COUNT = 8; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl <em>Many To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getManyToOne() + * @generated + */ + int MANY_TO_ONE = 28; + + /** + * The feature id for the '<em><b>Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE__JOIN_COLUMN = 0; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE__JOIN_TABLE = 1; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE__CASCADE = 2; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE__FETCH = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE__NAME = 4; + + /** + * The feature id for the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE__OPTIONAL = 5; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE__TARGET_ENTITY = 6; + + /** + * The number of structural features of the '<em>Many To One</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MANY_TO_ONE_FEATURE_COUNT = 7; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.MapKeyImpl <em>Map Key</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.MapKeyImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getMapKey() + * @generated + */ + int MAP_KEY = 29; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAP_KEY__NAME = 0; + + /** + * The number of structural features of the '<em>Map Key</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAP_KEY_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl <em>Mapped Superclass</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getMappedSuperclass() + * @generated + */ + int MAPPED_SUPERCLASS = 30; + + /** + * The feature id for the '<em><b>Description</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__DESCRIPTION = 0; + + /** + * The feature id for the '<em><b>Id Class</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__ID_CLASS = 1; + + /** + * The feature id for the '<em><b>Exclude Default Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS = 2; + + /** + * The feature id for the '<em><b>Exclude Superclass Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS = 3; + + /** + * The feature id for the '<em><b>Entity Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__ENTITY_LISTENERS = 4; + + /** + * The feature id for the '<em><b>Pre Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__PRE_PERSIST = 5; + + /** + * The feature id for the '<em><b>Post Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__POST_PERSIST = 6; + + /** + * The feature id for the '<em><b>Pre Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__PRE_REMOVE = 7; + + /** + * The feature id for the '<em><b>Post Remove</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__POST_REMOVE = 8; + + /** + * The feature id for the '<em><b>Pre Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__PRE_UPDATE = 9; + + /** + * The feature id for the '<em><b>Post Update</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__POST_UPDATE = 10; + + /** + * The feature id for the '<em><b>Post Load</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__POST_LOAD = 11; + + /** + * The feature id for the '<em><b>Attributes</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__ATTRIBUTES = 12; + + /** + * The feature id for the '<em><b>Access</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__ACCESS = 13; + + /** + * The feature id for the '<em><b>Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__CLASS = 14; + + /** + * The feature id for the '<em><b>Metadata Complete</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS__METADATA_COMPLETE = 15; + + /** + * The number of structural features of the '<em>Mapped Superclass</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int MAPPED_SUPERCLASS_FEATURE_COUNT = 16; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl <em>Named Native Query</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getNamedNativeQuery() + * @generated + */ + int NAMED_NATIVE_QUERY = 31; + + /** + * The feature id for the '<em><b>Query</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_NATIVE_QUERY__QUERY = 0; + + /** + * The feature id for the '<em><b>Hint</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_NATIVE_QUERY__HINT = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_NATIVE_QUERY__NAME = 2; + + /** + * The feature id for the '<em><b>Result Class</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_NATIVE_QUERY__RESULT_CLASS = 3; + + /** + * The feature id for the '<em><b>Result Set Mapping</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_NATIVE_QUERY__RESULT_SET_MAPPING = 4; + + /** + * The number of structural features of the '<em>Named Native Query</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_NATIVE_QUERY_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedQueryImpl <em>Named Query</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.NamedQueryImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getNamedQuery() + * @generated + */ + int NAMED_QUERY = 32; + + /** + * The feature id for the '<em><b>Query</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_QUERY__QUERY = 0; + + /** + * The feature id for the '<em><b>Hint</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_QUERY__HINT = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_QUERY__NAME = 2; + + /** + * The number of structural features of the '<em>Named Query</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int NAMED_QUERY_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl <em>One To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getOneToMany() + * @generated + */ + int ONE_TO_MANY = 33; + + /** + * The feature id for the '<em><b>Order By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__ORDER_BY = 0; + + /** + * The feature id for the '<em><b>Map Key</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__MAP_KEY = 1; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__JOIN_TABLE = 2; + + /** + * The feature id for the '<em><b>Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__JOIN_COLUMN = 3; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__CASCADE = 4; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__FETCH = 5; + + /** + * The feature id for the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__MAPPED_BY = 6; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__NAME = 7; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY__TARGET_ENTITY = 8; + + /** + * The number of structural features of the '<em>One To Many</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_MANY_FEATURE_COUNT = 9; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl <em>One To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getOneToOne() + * @generated + */ + int ONE_TO_ONE = 34; + + /** + * The feature id for the '<em><b>Primary Key Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN = 0; + + /** + * The feature id for the '<em><b>Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__JOIN_COLUMN = 1; + + /** + * The feature id for the '<em><b>Join Table</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__JOIN_TABLE = 2; + + /** + * The feature id for the '<em><b>Cascade</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__CASCADE = 3; + + /** + * The feature id for the '<em><b>Fetch</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__FETCH = 4; + + /** + * The feature id for the '<em><b>Mapped By</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__MAPPED_BY = 5; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__NAME = 6; + + /** + * The feature id for the '<em><b>Optional</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__OPTIONAL = 7; + + /** + * The feature id for the '<em><b>Target Entity</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE__TARGET_ENTITY = 8; + + /** + * The number of structural features of the '<em>One To One</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int ONE_TO_ONE_FEATURE_COUNT = 9; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl <em>Persistence Unit Defaults</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPersistenceUnitDefaults() + * @generated + */ + int PERSISTENCE_UNIT_DEFAULTS = 35; + + /** + * The feature id for the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_DEFAULTS__SCHEMA = 0; + + /** + * The feature id for the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_DEFAULTS__CATALOG = 1; + + /** + * The feature id for the '<em><b>Access</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_DEFAULTS__ACCESS = 2; + + /** + * The feature id for the '<em><b>Cascade Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST = 3; + + /** + * The feature id for the '<em><b>Entity Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS = 4; + + /** + * The number of structural features of the '<em>Persistence Unit Defaults</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_DEFAULTS_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitMetadataImpl <em>Persistence Unit Metadata</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitMetadataImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPersistenceUnitMetadata() + * @generated + */ + int PERSISTENCE_UNIT_METADATA = 36; + + /** + * The feature id for the '<em><b>Xml Mapping Metadata Complete</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE = 0; + + /** + * The feature id for the '<em><b>Persistence Unit Defaults</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS = 1; + + /** + * The number of structural features of the '<em>Persistence Unit Metadata</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PERSISTENCE_UNIT_METADATA_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostLoadImpl <em>Post Load</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostLoadImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostLoad() + * @generated + */ + int POST_LOAD = 37; + + /** + * The feature id for the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_LOAD__METHOD_NAME = 0; + + /** + * The number of structural features of the '<em>Post Load</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_LOAD_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostPersistImpl <em>Post Persist</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostPersistImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostPersist() + * @generated + */ + int POST_PERSIST = 38; + + /** + * The feature id for the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_PERSIST__METHOD_NAME = 0; + + /** + * The number of structural features of the '<em>Post Persist</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_PERSIST_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostRemoveImpl <em>Post Remove</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostRemoveImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostRemove() + * @generated + */ + int POST_REMOVE = 39; + + /** + * The feature id for the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_REMOVE__METHOD_NAME = 0; + + /** + * The number of structural features of the '<em>Post Remove</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_REMOVE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostUpdateImpl <em>Post Update</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostUpdateImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostUpdate() + * @generated + */ + int POST_UPDATE = 40; + + /** + * The feature id for the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_UPDATE__METHOD_NAME = 0; + + /** + * The number of structural features of the '<em>Post Update</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int POST_UPDATE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PrePersistImpl <em>Pre Persist</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PrePersistImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPrePersist() + * @generated + */ + int PRE_PERSIST = 41; + + /** + * The feature id for the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRE_PERSIST__METHOD_NAME = 0; + + /** + * The number of structural features of the '<em>Pre Persist</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRE_PERSIST_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PreRemoveImpl <em>Pre Remove</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PreRemoveImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPreRemove() + * @generated + */ + int PRE_REMOVE = 42; + + /** + * The feature id for the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRE_REMOVE__METHOD_NAME = 0; + + /** + * The number of structural features of the '<em>Pre Remove</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRE_REMOVE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PreUpdateImpl <em>Pre Update</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PreUpdateImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPreUpdate() + * @generated + */ + int PRE_UPDATE = 43; + + /** + * The feature id for the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRE_UPDATE__METHOD_NAME = 0; + + /** + * The number of structural features of the '<em>Pre Update</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRE_UPDATE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PrimaryKeyJoinColumnImpl <em>Primary Key Join Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PrimaryKeyJoinColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPrimaryKeyJoinColumn() + * @generated + */ + int PRIMARY_KEY_JOIN_COLUMN = 44; + + /** + * The feature id for the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION = 0; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRIMARY_KEY_JOIN_COLUMN__NAME = 1; + + /** + * The feature id for the '<em><b>Referenced Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME = 2; + + /** + * The number of structural features of the '<em>Primary Key Join Column</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int PRIMARY_KEY_JOIN_COLUMN_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.QueryHintImpl <em>Query Hint</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.QueryHintImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getQueryHint() + * @generated + */ + int QUERY_HINT = 45; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int QUERY_HINT__NAME = 0; + + /** + * The feature id for the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int QUERY_HINT__VALUE = 1; + + /** + * The number of structural features of the '<em>Query Hint</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int QUERY_HINT_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl <em>Secondary Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getSecondaryTable() + * @generated + */ + int SECONDARY_TABLE = 46; + + /** + * The feature id for the '<em><b>Primary Key Join Column</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN = 0; + + /** + * The feature id for the '<em><b>Unique Constraint</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SECONDARY_TABLE__UNIQUE_CONSTRAINT = 1; + + /** + * The feature id for the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SECONDARY_TABLE__CATALOG = 2; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SECONDARY_TABLE__NAME = 3; + + /** + * The feature id for the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SECONDARY_TABLE__SCHEMA = 4; + + /** + * The number of structural features of the '<em>Secondary Table</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SECONDARY_TABLE_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl <em>Sequence Generator</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getSequenceGenerator() + * @generated + */ + int SEQUENCE_GENERATOR = 47; + + /** + * The feature id for the '<em><b>Allocation Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SEQUENCE_GENERATOR__ALLOCATION_SIZE = 0; + + /** + * The feature id for the '<em><b>Initial Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SEQUENCE_GENERATOR__INITIAL_VALUE = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SEQUENCE_GENERATOR__NAME = 2; + + /** + * The feature id for the '<em><b>Sequence Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SEQUENCE_GENERATOR__SEQUENCE_NAME = 3; + + /** + * The number of structural features of the '<em>Sequence Generator</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SEQUENCE_GENERATOR_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.SqlResultSetMappingImpl <em>Sql Result Set Mapping</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.SqlResultSetMappingImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getSqlResultSetMapping() + * @generated + */ + int SQL_RESULT_SET_MAPPING = 48; + + /** + * The feature id for the '<em><b>Entity Result</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SQL_RESULT_SET_MAPPING__ENTITY_RESULT = 0; + + /** + * The feature id for the '<em><b>Column Result</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SQL_RESULT_SET_MAPPING__COLUMN_RESULT = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SQL_RESULT_SET_MAPPING__NAME = 2; + + /** + * The number of structural features of the '<em>Sql Result Set Mapping</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int SQL_RESULT_SET_MAPPING_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.TableImpl <em>Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.TableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTable() + * @generated + */ + int TABLE = 49; + + /** + * The feature id for the '<em><b>Unique Constraint</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE__UNIQUE_CONSTRAINT = 0; + + /** + * The feature id for the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE__CATALOG = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE__NAME = 2; + + /** + * The feature id for the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE__SCHEMA = 3; + + /** + * The number of structural features of the '<em>Table</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl <em>Table Generator</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTableGenerator() + * @generated + */ + int TABLE_GENERATOR = 50; + + /** + * The feature id for the '<em><b>Unique Constraint</b></em>' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__UNIQUE_CONSTRAINT = 0; + + /** + * The feature id for the '<em><b>Allocation Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__ALLOCATION_SIZE = 1; + + /** + * The feature id for the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__CATALOG = 2; + + /** + * The feature id for the '<em><b>Initial Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__INITIAL_VALUE = 3; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__NAME = 4; + + /** + * The feature id for the '<em><b>Pk Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__PK_COLUMN_NAME = 5; + + /** + * The feature id for the '<em><b>Pk Column Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__PK_COLUMN_VALUE = 6; + + /** + * The feature id for the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__SCHEMA = 7; + + /** + * The feature id for the '<em><b>Table</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__TABLE = 8; + + /** + * The feature id for the '<em><b>Value Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR__VALUE_COLUMN_NAME = 9; + + /** + * The number of structural features of the '<em>Table Generator</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TABLE_GENERATOR_FEATURE_COUNT = 10; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.TransientImpl <em>Transient</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.TransientImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTransient() + * @generated + */ + int TRANSIENT = 51; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSIENT__NAME = 0; + + /** + * The number of structural features of the '<em>Transient</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TRANSIENT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.UniqueConstraintImpl <em>Unique Constraint</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.UniqueConstraintImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getUniqueConstraint() + * @generated + */ + int UNIQUE_CONSTRAINT = 52; + + /** + * The feature id for the '<em><b>Column Name</b></em>' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UNIQUE_CONSTRAINT__COLUMN_NAME = 0; + + /** + * The number of structural features of the '<em>Unique Constraint</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int UNIQUE_CONSTRAINT_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.VersionImpl <em>Version</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.VersionImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getVersion() + * @generated + */ + int VERSION = 53; + + /** + * The feature id for the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VERSION__COLUMN = 0; + + /** + * The feature id for the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VERSION__TEMPORAL = 1; + + /** + * The feature id for the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VERSION__NAME = 2; + + /** + * The number of structural features of the '<em>Version</em>' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int VERSION_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.AccessType <em>Access Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAccessType() + * @generated + */ + int ACCESS_TYPE = 54; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorType <em>Discriminator Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorType() + * @generated + */ + int DISCRIMINATOR_TYPE = 55; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.EnumType <em>Enum Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEnumType() + * @generated + */ + int ENUM_TYPE = 56; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.FetchType <em>Fetch Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getFetchType() + * @generated + */ + int FETCH_TYPE = 57; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.GenerationType <em>Generation Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getGenerationType() + * @generated + */ + int GENERATION_TYPE = 58; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.InheritanceType <em>Inheritance Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getInheritanceType() + * @generated + */ + int INHERITANCE_TYPE = 59; + + /** + * The meta object id for the '{@link org.eclipse.emf.teneo.jpa.orm.TemporalType <em>Temporal Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTemporalType() + * @generated + */ + int TEMPORAL_TYPE = 60; + + /** + * The meta object id for the '<em>Access Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAccessTypeObject() + * @generated + */ + int ACCESS_TYPE_OBJECT = 61; + + /** + * The meta object id for the '<em>Discriminator Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorTypeObject() + * @generated + */ + int DISCRIMINATOR_TYPE_OBJECT = 62; + + /** + * The meta object id for the '<em>Discriminator Value</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.lang.String + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorValue() + * @generated + */ + int DISCRIMINATOR_VALUE = 63; + + /** + * The meta object id for the '<em>Enumerated</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEnumerated() + * @generated + */ + int ENUMERATED = 64; + + /** + * The meta object id for the '<em>Enum Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEnumTypeObject() + * @generated + */ + int ENUM_TYPE_OBJECT = 65; + + /** + * The meta object id for the '<em>Fetch Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getFetchTypeObject() + * @generated + */ + int FETCH_TYPE_OBJECT = 66; + + /** + * The meta object id for the '<em>Generation Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getGenerationTypeObject() + * @generated + */ + int GENERATION_TYPE_OBJECT = 67; + + /** + * The meta object id for the '<em>Inheritance Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getInheritanceTypeObject() + * @generated + */ + int INHERITANCE_TYPE_OBJECT = 68; + + /** + * The meta object id for the '<em>Order By</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.lang.String + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getOrderBy() + * @generated + */ + int ORDER_BY = 69; + + /** + * The meta object id for the '<em>Temporal</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTemporal() + * @generated + */ + int TEMPORAL = 70; + + /** + * The meta object id for the '<em>Temporal Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTemporalTypeObject() + * @generated + */ + int TEMPORAL_TYPE_OBJECT = 71; + + /** + * The meta object id for the '<em>Version Type</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.lang.String + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getVersionType() + * @generated + */ + int VERSION_TYPE = 72; + + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride <em>Association Override</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Association Override</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AssociationOverride + * @generated + */ + EClass getAssociationOverride(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride#getJoinColumn <em>Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AssociationOverride#getJoinColumn() + * @see #getAssociationOverride() + * @generated + */ + EReference getAssociationOverride_JoinColumn(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AssociationOverride#getName() + * @see #getAssociationOverride() + * @generated + */ + EAttribute getAssociationOverride_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride <em>Attribute Override</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Attribute Override</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AttributeOverride + * @generated + */ + EClass getAttributeOverride(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getColumn <em>Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getColumn() + * @see #getAttributeOverride() + * @generated + */ + EReference getAttributeOverride_Column(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AttributeOverride#getName() + * @see #getAttributeOverride() + * @generated + */ + EAttribute getAttributeOverride_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Attributes <em>Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Attributes</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes + * @generated + */ + EClass getAttributes(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getId <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Id</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getId() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_Id(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getEmbeddedId <em>Embedded Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Embedded Id</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getEmbeddedId() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_EmbeddedId(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getBasic <em>Basic</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Basic</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getBasic() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_Basic(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getVersion <em>Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Version</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getVersion() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_Version(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getManyToOne <em>Many To One</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Many To One</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getManyToOne() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_ManyToOne(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getOneToMany <em>One To Many</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>One To Many</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getOneToMany() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_OneToMany(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getOneToOne <em>One To One</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>One To One</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getOneToOne() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_OneToOne(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getManyToMany <em>Many To Many</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Many To Many</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getManyToMany() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_ManyToMany(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getEmbedded <em>Embedded</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Embedded</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getEmbedded() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_Embedded(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Attributes#getTransient <em>Transient</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Transient</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Attributes#getTransient() + * @see #getAttributes() + * @generated + */ + EReference getAttributes_Transient(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Basic <em>Basic</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Basic</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic + * @generated + */ + EClass getBasic(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getColumn <em>Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic#getColumn() + * @see #getBasic() + * @generated + */ + EReference getBasic_Column(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getLob <em>Lob</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Lob</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic#getLob() + * @see #getBasic() + * @generated + */ + EReference getBasic_Lob(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getTemporal <em>Temporal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Temporal</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic#getTemporal() + * @see #getBasic() + * @generated + */ + EAttribute getBasic_Temporal(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getEnumerated <em>Enumerated</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Enumerated</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic#getEnumerated() + * @see #getBasic() + * @generated + */ + EAttribute getBasic_Enumerated(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getFetch <em>Fetch</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Fetch</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic#getFetch() + * @see #getBasic() + * @generated + */ + EAttribute getBasic_Fetch(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Basic#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic#getName() + * @see #getBasic() + * @generated + */ + EAttribute getBasic_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Basic#isOptional <em>Optional</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Optional</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Basic#isOptional() + * @see #getBasic() + * @generated + */ + EAttribute getBasic_Optional(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType <em>Cascade Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Cascade Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.CascadeType + * @generated + */ + EClass getCascadeType(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeAll <em>Cascade All</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade All</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeAll() + * @see #getCascadeType() + * @generated + */ + EReference getCascadeType_CascadeAll(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadePersist <em>Cascade Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadePersist() + * @see #getCascadeType() + * @generated + */ + EReference getCascadeType_CascadePersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeMerge <em>Cascade Merge</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade Merge</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeMerge() + * @see #getCascadeType() + * @generated + */ + EReference getCascadeType_CascadeMerge(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRemove <em>Cascade Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRemove() + * @see #getCascadeType() + * @generated + */ + EReference getCascadeType_CascadeRemove(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRefresh <em>Cascade Refresh</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade Refresh</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.CascadeType#getCascadeRefresh() + * @see #getCascadeType() + * @generated + */ + EReference getCascadeType_CascadeRefresh(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Column <em>Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column + * @generated + */ + EClass getColumn(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#getColumnDefinition <em>Column Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Column Definition</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#getColumnDefinition() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_ColumnDefinition(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#isInsertable <em>Insertable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Insertable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#isInsertable() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Insertable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#getLength <em>Length</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Length</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#getLength() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Length(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#getName() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#isNullable <em>Nullable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Nullable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#isNullable() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Nullable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#getPrecision <em>Precision</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Precision</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#getPrecision() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Precision(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#getScale <em>Scale</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Scale</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#getScale() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Scale(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#getTable <em>Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#getTable() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Table(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUnique <em>Unique</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Unique</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#isUnique() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Unique(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Column#isUpdatable <em>Updatable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Updatable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Column#isUpdatable() + * @see #getColumn() + * @generated + */ + EAttribute getColumn_Updatable(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.ColumnResult <em>Column Result</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Column Result</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ColumnResult + * @generated + */ + EClass getColumnResult(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ColumnResult#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ColumnResult#getName() + * @see #getColumnResult() + * @generated + */ + EAttribute getColumnResult_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn <em>Discriminator Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Discriminator Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn + * @generated + */ + EClass getDiscriminatorColumn(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getColumnDefinition <em>Column Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Column Definition</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getColumnDefinition() + * @see #getDiscriminatorColumn() + * @generated + */ + EAttribute getDiscriminatorColumn_ColumnDefinition(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getDiscriminatorType <em>Discriminator Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Discriminator Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getDiscriminatorType() + * @see #getDiscriminatorColumn() + * @generated + */ + EAttribute getDiscriminatorColumn_DiscriminatorType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getLength <em>Length</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Length</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getLength() + * @see #getDiscriminatorColumn() + * @generated + */ + EAttribute getDiscriminatorColumn_Length(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn#getName() + * @see #getDiscriminatorColumn() + * @generated + */ + EAttribute getDiscriminatorColumn_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot <em>Document Root</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Document Root</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DocumentRoot + * @generated + */ + EClass getDocumentRoot(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getMixed <em>Mixed</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Mixed</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getMixed() + * @see #getDocumentRoot() + * @generated + */ + EAttribute getDocumentRoot_Mixed(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the map '<em>XMLNS Prefix Map</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getXMLNSPrefixMap() + * @see #getDocumentRoot() + * @generated + */ + EReference getDocumentRoot_XMLNSPrefixMap(); + + /** + * Returns the meta object for the map '{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getXSISchemaLocation <em>XSI Schema Location</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the map '<em>XSI Schema Location</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getXSISchemaLocation() + * @see #getDocumentRoot() + * @generated + */ + EReference getDocumentRoot_XSISchemaLocation(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getEntityMappings <em>Entity Mappings</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Entity Mappings</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DocumentRoot#getEntityMappings() + * @see #getDocumentRoot() + * @generated + */ + EReference getDocumentRoot_EntityMappings(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable <em>Embeddable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Embeddable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embeddable + * @generated + */ + EClass getEmbeddable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embeddable#getDescription() + * @see #getEmbeddable() + * @generated + */ + EAttribute getEmbeddable_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAttributes <em>Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Attributes</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embeddable#getAttributes() + * @see #getEmbeddable() + * @generated + */ + EReference getEmbeddable_Attributes(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getAccess <em>Access</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Access</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embeddable#getAccess() + * @see #getEmbeddable() + * @generated + */ + EAttribute getEmbeddable_Access(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#getClass_ <em>Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embeddable#getClass_() + * @see #getEmbeddable() + * @generated + */ + EAttribute getEmbeddable_Class(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable#isMetadataComplete <em>Metadata Complete</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Metadata Complete</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embeddable#isMetadataComplete() + * @see #getEmbeddable() + * @generated + */ + EAttribute getEmbeddable_MetadataComplete(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes <em>Embeddable Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Embeddable Attributes</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes + * @generated + */ + EClass getEmbeddableAttributes(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes#getBasic <em>Basic</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Basic</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes#getBasic() + * @see #getEmbeddableAttributes() + * @generated + */ + EReference getEmbeddableAttributes_Basic(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes#getTransient <em>Transient</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Transient</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes#getTransient() + * @see #getEmbeddableAttributes() + * @generated + */ + EReference getEmbeddableAttributes_Transient(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Embedded <em>Embedded</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Embedded</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embedded + * @generated + */ + EClass getEmbedded(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Embedded#getAttributeOverride <em>Attribute Override</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Attribute Override</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embedded#getAttributeOverride() + * @see #getEmbedded() + * @generated + */ + EReference getEmbedded_AttributeOverride(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Embedded#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Embedded#getName() + * @see #getEmbedded() + * @generated + */ + EAttribute getEmbedded_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId <em>Embedded Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Embedded Id</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EmbeddedId + * @generated + */ + EClass getEmbeddedId(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId#getAttributeOverride <em>Attribute Override</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Attribute Override</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EmbeddedId#getAttributeOverride() + * @see #getEmbeddedId() + * @generated + */ + EReference getEmbeddedId_AttributeOverride(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EmbeddedId#getName() + * @see #getEmbeddedId() + * @generated + */ + EAttribute getEmbeddedId_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.EmptyType <em>Empty Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Empty Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EmptyType + * @generated + */ + EClass getEmptyType(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Entity <em>Entity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Entity</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity + * @generated + */ + EClass getEntity(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getDescription() + * @see #getEntity() + * @generated + */ + EAttribute getEntity_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getTable <em>Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getTable() + * @see #getEntity() + * @generated + */ + EReference getEntity_Table(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getSecondaryTable <em>Secondary Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Secondary Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getSecondaryTable() + * @see #getEntity() + * @generated + */ + EReference getEntity_SecondaryTable(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Primary Key Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPrimaryKeyJoinColumn() + * @see #getEntity() + * @generated + */ + EReference getEntity_PrimaryKeyJoinColumn(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getIdClass <em>Id Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Id Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getIdClass() + * @see #getEntity() + * @generated + */ + EReference getEntity_IdClass(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getInheritance <em>Inheritance</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Inheritance</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getInheritance() + * @see #getEntity() + * @generated + */ + EReference getEntity_Inheritance(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorValue <em>Discriminator Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Discriminator Value</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorValue() + * @see #getEntity() + * @generated + */ + EAttribute getEntity_DiscriminatorValue(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorColumn <em>Discriminator Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Discriminator Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getDiscriminatorColumn() + * @see #getEntity() + * @generated + */ + EReference getEntity_DiscriminatorColumn(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getSequenceGenerator <em>Sequence Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Sequence Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getSequenceGenerator() + * @see #getEntity() + * @generated + */ + EReference getEntity_SequenceGenerator(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getTableGenerator <em>Table Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Table Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getTableGenerator() + * @see #getEntity() + * @generated + */ + EReference getEntity_TableGenerator(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getNamedQuery <em>Named Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Named Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getNamedQuery() + * @see #getEntity() + * @generated + */ + EReference getEntity_NamedQuery(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getNamedNativeQuery <em>Named Native Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Named Native Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getNamedNativeQuery() + * @see #getEntity() + * @generated + */ + EReference getEntity_NamedNativeQuery(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getSqlResultSetMapping <em>Sql Result Set Mapping</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Sql Result Set Mapping</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getSqlResultSetMapping() + * @see #getEntity() + * @generated + */ + EReference getEntity_SqlResultSetMapping(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Exclude Default Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeDefaultListeners() + * @see #getEntity() + * @generated + */ + EReference getEntity_ExcludeDefaultListeners(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Exclude Superclass Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getExcludeSuperclassListeners() + * @see #getEntity() + * @generated + */ + EReference getEntity_ExcludeSuperclassListeners(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getEntityListeners <em>Entity Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Entity Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getEntityListeners() + * @see #getEntity() + * @generated + */ + EReference getEntity_EntityListeners(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPrePersist <em>Pre Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPrePersist() + * @see #getEntity() + * @generated + */ + EReference getEntity_PrePersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostPersist <em>Post Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPostPersist() + * @see #getEntity() + * @generated + */ + EReference getEntity_PostPersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPreRemove <em>Pre Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPreRemove() + * @see #getEntity() + * @generated + */ + EReference getEntity_PreRemove(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostRemove <em>Post Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPostRemove() + * @see #getEntity() + * @generated + */ + EReference getEntity_PostRemove(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPreUpdate <em>Pre Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPreUpdate() + * @see #getEntity() + * @generated + */ + EReference getEntity_PreUpdate(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostUpdate <em>Post Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPostUpdate() + * @see #getEntity() + * @generated + */ + EReference getEntity_PostUpdate(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getPostLoad <em>Post Load</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Load</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getPostLoad() + * @see #getEntity() + * @generated + */ + EReference getEntity_PostLoad(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAttributeOverride <em>Attribute Override</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Attribute Override</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getAttributeOverride() + * @see #getEntity() + * @generated + */ + EReference getEntity_AttributeOverride(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAssociationOverride <em>Association Override</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Association Override</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getAssociationOverride() + * @see #getEntity() + * @generated + */ + EReference getEntity_AssociationOverride(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAttributes <em>Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Attributes</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getAttributes() + * @see #getEntity() + * @generated + */ + EReference getEntity_Attributes(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getAccess <em>Access</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Access</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getAccess() + * @see #getEntity() + * @generated + */ + EAttribute getEntity_Access(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getClass_ <em>Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getClass_() + * @see #getEntity() + * @generated + */ + EAttribute getEntity_Class(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Entity#isMetadataComplete <em>Metadata Complete</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Metadata Complete</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#isMetadataComplete() + * @see #getEntity() + * @generated + */ + EAttribute getEntity_MetadataComplete(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Entity#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Entity#getName() + * @see #getEntity() + * @generated + */ + EAttribute getEntity_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener <em>Entity Listener</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Entity Listener</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener + * @generated + */ + EClass getEntityListener(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPrePersist <em>Pre Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getPrePersist() + * @see #getEntityListener() + * @generated + */ + EReference getEntityListener_PrePersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostPersist <em>Post Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostPersist() + * @see #getEntityListener() + * @generated + */ + EReference getEntityListener_PostPersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreRemove <em>Pre Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreRemove() + * @see #getEntityListener() + * @generated + */ + EReference getEntityListener_PreRemove(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostRemove <em>Post Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostRemove() + * @see #getEntityListener() + * @generated + */ + EReference getEntityListener_PostRemove(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreUpdate <em>Pre Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getPreUpdate() + * @see #getEntityListener() + * @generated + */ + EReference getEntityListener_PreUpdate(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostUpdate <em>Post Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostUpdate() + * @see #getEntityListener() + * @generated + */ + EReference getEntityListener_PostUpdate(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostLoad <em>Post Load</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Load</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getPostLoad() + * @see #getEntityListener() + * @generated + */ + EReference getEntityListener_PostLoad(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener#getClass_ <em>Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListener#getClass_() + * @see #getEntityListener() + * @generated + */ + EAttribute getEntityListener_Class(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.EntityListeners <em>Entity Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Entity Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListeners + * @generated + */ + EClass getEntityListeners(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityListeners#getEntityListener <em>Entity Listener</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Entity Listener</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityListeners#getEntityListener() + * @see #getEntityListeners() + * @generated + */ + EReference getEntityListeners_EntityListener(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType <em>Entity Mappings Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Entity Mappings Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType + * @generated + */ + EClass getEntityMappingsType(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getDescription() + * @see #getEntityMappingsType() + * @generated + */ + EAttribute getEntityMappingsType_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPersistenceUnitMetadata <em>Persistence Unit Metadata</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Persistence Unit Metadata</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPersistenceUnitMetadata() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_PersistenceUnitMetadata(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPackage <em>Package</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Package</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getPackage() + * @see #getEntityMappingsType() + * @generated + */ + EAttribute getEntityMappingsType_Package(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSchema <em>Schema</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Schema</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSchema() + * @see #getEntityMappingsType() + * @generated + */ + EAttribute getEntityMappingsType_Schema(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getCatalog <em>Catalog</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Catalog</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getCatalog() + * @see #getEntityMappingsType() + * @generated + */ + EAttribute getEntityMappingsType_Catalog(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getAccess <em>Access</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Access</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getAccess() + * @see #getEntityMappingsType() + * @generated + */ + EAttribute getEntityMappingsType_Access(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSequenceGenerator <em>Sequence Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Sequence Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSequenceGenerator() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_SequenceGenerator(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getTableGenerator <em>Table Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Table Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getTableGenerator() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_TableGenerator(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getNamedQuery <em>Named Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Named Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getNamedQuery() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_NamedQuery(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getNamedNativeQuery <em>Named Native Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Named Native Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getNamedNativeQuery() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_NamedNativeQuery(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSqlResultSetMapping <em>Sql Result Set Mapping</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Sql Result Set Mapping</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getSqlResultSetMapping() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_SqlResultSetMapping(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getMappedSuperclass <em>Mapped Superclass</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Mapped Superclass</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getMappedSuperclass() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_MappedSuperclass(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getEntity <em>Entity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Entity</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getEntity() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_Entity(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getEmbeddable <em>Embeddable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Embeddable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getEmbeddable() + * @see #getEntityMappingsType() + * @generated + */ + EReference getEntityMappingsType_Embeddable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getVersion <em>Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Version</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityMappingsType#getVersion() + * @see #getEntityMappingsType() + * @generated + */ + EAttribute getEntityMappingsType_Version(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.EntityResult <em>Entity Result</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Entity Result</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityResult + * @generated + */ + EClass getEntityResult(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getFieldResult <em>Field Result</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Field Result</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityResult#getFieldResult() + * @see #getEntityResult() + * @generated + */ + EReference getEntityResult_FieldResult(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getDiscriminatorColumn <em>Discriminator Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Discriminator Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityResult#getDiscriminatorColumn() + * @see #getEntityResult() + * @generated + */ + EAttribute getEntityResult_DiscriminatorColumn(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.EntityResult#getEntityClass <em>Entity Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Entity Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EntityResult#getEntityClass() + * @see #getEntityResult() + * @generated + */ + EAttribute getEntityResult_EntityClass(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.FieldResult <em>Field Result</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Field Result</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.FieldResult + * @generated + */ + EClass getFieldResult(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.FieldResult#getColumn <em>Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.FieldResult#getColumn() + * @see #getFieldResult() + * @generated + */ + EAttribute getFieldResult_Column(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.FieldResult#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.FieldResult#getName() + * @see #getFieldResult() + * @generated + */ + EAttribute getFieldResult_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue <em>Generated Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Generated Value</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.GeneratedValue + * @generated + */ + EClass getGeneratedValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getGenerator <em>Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getGenerator() + * @see #getGeneratedValue() + * @generated + */ + EAttribute getGeneratedValue_Generator(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getStrategy <em>Strategy</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Strategy</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.GeneratedValue#getStrategy() + * @see #getGeneratedValue() + * @generated + */ + EAttribute getGeneratedValue_Strategy(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Id <em>Id</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Id</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Id + * @generated + */ + EClass getId(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Id#getColumn <em>Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Id#getColumn() + * @see #getId() + * @generated + */ + EReference getId_Column(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Id#getGeneratedValue <em>Generated Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Generated Value</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Id#getGeneratedValue() + * @see #getId() + * @generated + */ + EReference getId_GeneratedValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Id#getTemporal <em>Temporal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Temporal</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Id#getTemporal() + * @see #getId() + * @generated + */ + EAttribute getId_Temporal(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Id#getTableGenerator <em>Table Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Table Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Id#getTableGenerator() + * @see #getId() + * @generated + */ + EReference getId_TableGenerator(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Id#getSequenceGenerator <em>Sequence Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Sequence Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Id#getSequenceGenerator() + * @see #getId() + * @generated + */ + EReference getId_SequenceGenerator(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Id#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Id#getName() + * @see #getId() + * @generated + */ + EAttribute getId_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.IdClass <em>Id Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Id Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.IdClass + * @generated + */ + EClass getIdClass(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.IdClass#getClass_ <em>Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.IdClass#getClass_() + * @see #getIdClass() + * @generated + */ + EAttribute getIdClass_Class(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Inheritance <em>Inheritance</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Inheritance</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Inheritance + * @generated + */ + EClass getInheritance(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Inheritance#getStrategy <em>Strategy</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Strategy</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Inheritance#getStrategy() + * @see #getInheritance() + * @generated + */ + EAttribute getInheritance_Strategy(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn <em>Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn + * @generated + */ + EClass getJoinColumn(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getColumnDefinition <em>Column Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Column Definition</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#getColumnDefinition() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_ColumnDefinition(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isInsertable <em>Insertable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Insertable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#isInsertable() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_Insertable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#getName() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isNullable <em>Nullable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Nullable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#isNullable() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_Nullable(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getReferencedColumnName <em>Referenced Column Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Referenced Column Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#getReferencedColumnName() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_ReferencedColumnName(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#getTable <em>Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#getTable() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_Table(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUnique <em>Unique</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Unique</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUnique() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_Unique(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUpdatable <em>Updatable</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Updatable</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinColumn#isUpdatable() + * @see #getJoinColumn() + * @generated + */ + EAttribute getJoinColumn_Updatable(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable <em>Join Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Join Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinTable + * @generated + */ + EClass getJoinTable(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getJoinColumn <em>Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinTable#getJoinColumn() + * @see #getJoinTable() + * @generated + */ + EReference getJoinTable_JoinColumn(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getInverseJoinColumn <em>Inverse Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Inverse Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinTable#getInverseJoinColumn() + * @see #getJoinTable() + * @generated + */ + EReference getJoinTable_InverseJoinColumn(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getUniqueConstraint <em>Unique Constraint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Unique Constraint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinTable#getUniqueConstraint() + * @see #getJoinTable() + * @generated + */ + EReference getJoinTable_UniqueConstraint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getCatalog <em>Catalog</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Catalog</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinTable#getCatalog() + * @see #getJoinTable() + * @generated + */ + EAttribute getJoinTable_Catalog(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinTable#getName() + * @see #getJoinTable() + * @generated + */ + EAttribute getJoinTable_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable#getSchema <em>Schema</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Schema</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.JoinTable#getSchema() + * @see #getJoinTable() + * @generated + */ + EAttribute getJoinTable_Schema(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Lob <em>Lob</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Lob</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Lob + * @generated + */ + EClass getLob(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany <em>Many To Many</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Many To Many</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany + * @generated + */ + EClass getManyToMany(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getOrderBy <em>Order By</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Order By</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getOrderBy() + * @see #getManyToMany() + * @generated + */ + EAttribute getManyToMany_OrderBy(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMapKey <em>Map Key</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Map Key</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMapKey() + * @see #getManyToMany() + * @generated + */ + EReference getManyToMany_MapKey(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getJoinTable <em>Join Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Join Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getJoinTable() + * @see #getManyToMany() + * @generated + */ + EReference getManyToMany_JoinTable(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getCascade <em>Cascade</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getCascade() + * @see #getManyToMany() + * @generated + */ + EReference getManyToMany_Cascade(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getFetch <em>Fetch</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Fetch</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getFetch() + * @see #getManyToMany() + * @generated + */ + EAttribute getManyToMany_Fetch(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMappedBy <em>Mapped By</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mapped By</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getMappedBy() + * @see #getManyToMany() + * @generated + */ + EAttribute getManyToMany_MappedBy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getName() + * @see #getManyToMany() + * @generated + */ + EAttribute getManyToMany_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany#getTargetEntity <em>Target Entity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Target Entity</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToMany#getTargetEntity() + * @see #getManyToMany() + * @generated + */ + EAttribute getManyToMany_TargetEntity(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne <em>Many To One</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Many To One</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne + * @generated + */ + EClass getManyToOne(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getJoinColumn <em>Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne#getJoinColumn() + * @see #getManyToOne() + * @generated + */ + EReference getManyToOne_JoinColumn(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getJoinTable <em>Join Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Join Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne#getJoinTable() + * @see #getManyToOne() + * @generated + */ + EReference getManyToOne_JoinTable(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getCascade <em>Cascade</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne#getCascade() + * @see #getManyToOne() + * @generated + */ + EReference getManyToOne_Cascade(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getFetch <em>Fetch</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Fetch</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne#getFetch() + * @see #getManyToOne() + * @generated + */ + EAttribute getManyToOne_Fetch(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne#getName() + * @see #getManyToOne() + * @generated + */ + EAttribute getManyToOne_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#isOptional <em>Optional</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Optional</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne#isOptional() + * @see #getManyToOne() + * @generated + */ + EAttribute getManyToOne_Optional(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne#getTargetEntity <em>Target Entity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Target Entity</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.ManyToOne#getTargetEntity() + * @see #getManyToOne() + * @generated + */ + EAttribute getManyToOne_TargetEntity(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.MapKey <em>Map Key</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Map Key</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MapKey + * @generated + */ + EClass getMapKey(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.MapKey#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MapKey#getName() + * @see #getMapKey() + * @generated + */ + EAttribute getMapKey_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass <em>Mapped Superclass</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Mapped Superclass</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass + * @generated + */ + EClass getMappedSuperclass(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getDescription <em>Description</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Description</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getDescription() + * @see #getMappedSuperclass() + * @generated + */ + EAttribute getMappedSuperclass_Description(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getIdClass <em>Id Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Id Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getIdClass() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_IdClass(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Exclude Default Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeDefaultListeners() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_ExcludeDefaultListeners(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Exclude Superclass Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getExcludeSuperclassListeners() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_ExcludeSuperclassListeners(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getEntityListeners <em>Entity Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Entity Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getEntityListeners() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_EntityListeners(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPrePersist <em>Pre Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPrePersist() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_PrePersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostPersist <em>Post Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostPersist() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_PostPersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreRemove <em>Pre Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreRemove() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_PreRemove(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostRemove <em>Post Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostRemove() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_PostRemove(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreUpdate <em>Pre Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Pre Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPreUpdate() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_PreUpdate(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostUpdate <em>Post Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostUpdate() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_PostUpdate(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostLoad <em>Post Load</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Post Load</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getPostLoad() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_PostLoad(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAttributes <em>Attributes</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Attributes</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAttributes() + * @see #getMappedSuperclass() + * @generated + */ + EReference getMappedSuperclass_Attributes(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAccess <em>Access</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Access</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getAccess() + * @see #getMappedSuperclass() + * @generated + */ + EAttribute getMappedSuperclass_Access(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getClass_ <em>Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#getClass_() + * @see #getMappedSuperclass() + * @generated + */ + EAttribute getMappedSuperclass_Class(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#isMetadataComplete <em>Metadata Complete</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Metadata Complete</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.MappedSuperclass#isMetadataComplete() + * @see #getMappedSuperclass() + * @generated + */ + EAttribute getMappedSuperclass_MetadataComplete(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery <em>Named Native Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Named Native Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery + * @generated + */ + EClass getNamedNativeQuery(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getQuery <em>Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getQuery() + * @see #getNamedNativeQuery() + * @generated + */ + EAttribute getNamedNativeQuery_Query(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getHint <em>Hint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Hint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getHint() + * @see #getNamedNativeQuery() + * @generated + */ + EReference getNamedNativeQuery_Hint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getName() + * @see #getNamedNativeQuery() + * @generated + */ + EAttribute getNamedNativeQuery_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultClass <em>Result Class</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Result Class</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultClass() + * @see #getNamedNativeQuery() + * @generated + */ + EAttribute getNamedNativeQuery_ResultClass(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultSetMapping <em>Result Set Mapping</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Result Set Mapping</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery#getResultSetMapping() + * @see #getNamedNativeQuery() + * @generated + */ + EAttribute getNamedNativeQuery_ResultSetMapping(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery <em>Named Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Named Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedQuery + * @generated + */ + EClass getNamedQuery(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getQuery <em>Query</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Query</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedQuery#getQuery() + * @see #getNamedQuery() + * @generated + */ + EAttribute getNamedQuery_Query(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getHint <em>Hint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Hint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedQuery#getHint() + * @see #getNamedQuery() + * @generated + */ + EReference getNamedQuery_Hint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.NamedQuery#getName() + * @see #getNamedQuery() + * @generated + */ + EAttribute getNamedQuery_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany <em>One To Many</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>One To Many</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany + * @generated + */ + EClass getOneToMany(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getOrderBy <em>Order By</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Order By</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getOrderBy() + * @see #getOneToMany() + * @generated + */ + EAttribute getOneToMany_OrderBy(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getMapKey <em>Map Key</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Map Key</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getMapKey() + * @see #getOneToMany() + * @generated + */ + EReference getOneToMany_MapKey(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getJoinTable <em>Join Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Join Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getJoinTable() + * @see #getOneToMany() + * @generated + */ + EReference getOneToMany_JoinTable(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getJoinColumn <em>Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getJoinColumn() + * @see #getOneToMany() + * @generated + */ + EReference getOneToMany_JoinColumn(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getCascade <em>Cascade</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getCascade() + * @see #getOneToMany() + * @generated + */ + EReference getOneToMany_Cascade(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getFetch <em>Fetch</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Fetch</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getFetch() + * @see #getOneToMany() + * @generated + */ + EAttribute getOneToMany_Fetch(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getMappedBy <em>Mapped By</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mapped By</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getMappedBy() + * @see #getOneToMany() + * @generated + */ + EAttribute getOneToMany_MappedBy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getName() + * @see #getOneToMany() + * @generated + */ + EAttribute getOneToMany_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany#getTargetEntity <em>Target Entity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Target Entity</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToMany#getTargetEntity() + * @see #getOneToMany() + * @generated + */ + EAttribute getOneToMany_TargetEntity(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne <em>One To One</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>One To One</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne + * @generated + */ + EClass getOneToOne(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Primary Key Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getPrimaryKeyJoinColumn() + * @see #getOneToOne() + * @generated + */ + EReference getOneToOne_PrimaryKeyJoinColumn(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getJoinColumn <em>Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getJoinColumn() + * @see #getOneToOne() + * @generated + */ + EReference getOneToOne_JoinColumn(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getJoinTable <em>Join Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Join Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getJoinTable() + * @see #getOneToOne() + * @generated + */ + EReference getOneToOne_JoinTable(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getCascade <em>Cascade</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getCascade() + * @see #getOneToOne() + * @generated + */ + EReference getOneToOne_Cascade(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getFetch <em>Fetch</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Fetch</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getFetch() + * @see #getOneToOne() + * @generated + */ + EAttribute getOneToOne_Fetch(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getMappedBy <em>Mapped By</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Mapped By</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getMappedBy() + * @see #getOneToOne() + * @generated + */ + EAttribute getOneToOne_MappedBy(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getName() + * @see #getOneToOne() + * @generated + */ + EAttribute getOneToOne_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#isOptional <em>Optional</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Optional</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#isOptional() + * @see #getOneToOne() + * @generated + */ + EAttribute getOneToOne_Optional(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne#getTargetEntity <em>Target Entity</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Target Entity</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.OneToOne#getTargetEntity() + * @see #getOneToOne() + * @generated + */ + EAttribute getOneToOne_TargetEntity(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults <em>Persistence Unit Defaults</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Persistence Unit Defaults</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults + * @generated + */ + EClass getPersistenceUnitDefaults(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getSchema <em>Schema</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Schema</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getSchema() + * @see #getPersistenceUnitDefaults() + * @generated + */ + EAttribute getPersistenceUnitDefaults_Schema(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCatalog <em>Catalog</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Catalog</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCatalog() + * @see #getPersistenceUnitDefaults() + * @generated + */ + EAttribute getPersistenceUnitDefaults_Catalog(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getAccess <em>Access</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Access</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getAccess() + * @see #getPersistenceUnitDefaults() + * @generated + */ + EAttribute getPersistenceUnitDefaults_Access(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCascadePersist <em>Cascade Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Cascade Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCascadePersist() + * @see #getPersistenceUnitDefaults() + * @generated + */ + EReference getPersistenceUnitDefaults_CascadePersist(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getEntityListeners <em>Entity Listeners</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Entity Listeners</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getEntityListeners() + * @see #getPersistenceUnitDefaults() + * @generated + */ + EReference getPersistenceUnitDefaults_EntityListeners(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata <em>Persistence Unit Metadata</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Persistence Unit Metadata</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata + * @generated + */ + EClass getPersistenceUnitMetadata(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getXmlMappingMetadataComplete <em>Xml Mapping Metadata Complete</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Xml Mapping Metadata Complete</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getXmlMappingMetadataComplete() + * @see #getPersistenceUnitMetadata() + * @generated + */ + EReference getPersistenceUnitMetadata_XmlMappingMetadataComplete(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getPersistenceUnitDefaults <em>Persistence Unit Defaults</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Persistence Unit Defaults</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getPersistenceUnitDefaults() + * @see #getPersistenceUnitMetadata() + * @generated + */ + EReference getPersistenceUnitMetadata_PersistenceUnitDefaults(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PostLoad <em>Post Load</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Post Load</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostLoad + * @generated + */ + EClass getPostLoad(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PostLoad#getMethodName <em>Method Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Method Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostLoad#getMethodName() + * @see #getPostLoad() + * @generated + */ + EAttribute getPostLoad_MethodName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PostPersist <em>Post Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Post Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostPersist + * @generated + */ + EClass getPostPersist(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PostPersist#getMethodName <em>Method Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Method Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostPersist#getMethodName() + * @see #getPostPersist() + * @generated + */ + EAttribute getPostPersist_MethodName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PostRemove <em>Post Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Post Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostRemove + * @generated + */ + EClass getPostRemove(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PostRemove#getMethodName <em>Method Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Method Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostRemove#getMethodName() + * @see #getPostRemove() + * @generated + */ + EAttribute getPostRemove_MethodName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PostUpdate <em>Post Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Post Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostUpdate + * @generated + */ + EClass getPostUpdate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PostUpdate#getMethodName <em>Method Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Method Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PostUpdate#getMethodName() + * @see #getPostUpdate() + * @generated + */ + EAttribute getPostUpdate_MethodName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PrePersist <em>Pre Persist</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Pre Persist</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PrePersist + * @generated + */ + EClass getPrePersist(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PrePersist#getMethodName <em>Method Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Method Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PrePersist#getMethodName() + * @see #getPrePersist() + * @generated + */ + EAttribute getPrePersist_MethodName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PreRemove <em>Pre Remove</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Pre Remove</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PreRemove + * @generated + */ + EClass getPreRemove(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PreRemove#getMethodName <em>Method Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Method Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PreRemove#getMethodName() + * @see #getPreRemove() + * @generated + */ + EAttribute getPreRemove_MethodName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PreUpdate <em>Pre Update</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Pre Update</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PreUpdate + * @generated + */ + EClass getPreUpdate(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PreUpdate#getMethodName <em>Method Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Method Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PreUpdate#getMethodName() + * @see #getPreUpdate() + * @generated + */ + EAttribute getPreUpdate_MethodName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn <em>Primary Key Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Primary Key Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn + * @generated + */ + EClass getPrimaryKeyJoinColumn(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getColumnDefinition <em>Column Definition</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Column Definition</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getColumnDefinition() + * @see #getPrimaryKeyJoinColumn() + * @generated + */ + EAttribute getPrimaryKeyJoinColumn_ColumnDefinition(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getName() + * @see #getPrimaryKeyJoinColumn() + * @generated + */ + EAttribute getPrimaryKeyJoinColumn_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getReferencedColumnName <em>Referenced Column Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Referenced Column Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getReferencedColumnName() + * @see #getPrimaryKeyJoinColumn() + * @generated + */ + EAttribute getPrimaryKeyJoinColumn_ReferencedColumnName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.QueryHint <em>Query Hint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Query Hint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.QueryHint + * @generated + */ + EClass getQueryHint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.QueryHint#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.QueryHint#getName() + * @see #getQueryHint() + * @generated + */ + EAttribute getQueryHint_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.QueryHint#getValue <em>Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.QueryHint#getValue() + * @see #getQueryHint() + * @generated + */ + EAttribute getQueryHint_Value(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable <em>Secondary Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Secondary Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SecondaryTable + * @generated + */ + EClass getSecondaryTable(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Primary Key Join Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getPrimaryKeyJoinColumn() + * @see #getSecondaryTable() + * @generated + */ + EReference getSecondaryTable_PrimaryKeyJoinColumn(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getUniqueConstraint <em>Unique Constraint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Unique Constraint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getUniqueConstraint() + * @see #getSecondaryTable() + * @generated + */ + EReference getSecondaryTable_UniqueConstraint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getCatalog <em>Catalog</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Catalog</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getCatalog() + * @see #getSecondaryTable() + * @generated + */ + EAttribute getSecondaryTable_Catalog(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getName() + * @see #getSecondaryTable() + * @generated + */ + EAttribute getSecondaryTable_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getSchema <em>Schema</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Schema</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getSchema() + * @see #getSecondaryTable() + * @generated + */ + EAttribute getSecondaryTable_Schema(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator <em>Sequence Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Sequence Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SequenceGenerator + * @generated + */ + EClass getSequenceGenerator(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getAllocationSize <em>Allocation Size</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Allocation Size</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getAllocationSize() + * @see #getSequenceGenerator() + * @generated + */ + EAttribute getSequenceGenerator_AllocationSize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getInitialValue <em>Initial Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Initial Value</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getInitialValue() + * @see #getSequenceGenerator() + * @generated + */ + EAttribute getSequenceGenerator_InitialValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getName() + * @see #getSequenceGenerator() + * @generated + */ + EAttribute getSequenceGenerator_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getSequenceName <em>Sequence Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Sequence Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getSequenceName() + * @see #getSequenceGenerator() + * @generated + */ + EAttribute getSequenceGenerator_SequenceName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping <em>Sql Result Set Mapping</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Sql Result Set Mapping</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping + * @generated + */ + EClass getSqlResultSetMapping(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getEntityResult <em>Entity Result</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Entity Result</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getEntityResult() + * @see #getSqlResultSetMapping() + * @generated + */ + EReference getSqlResultSetMapping_EntityResult(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getColumnResult <em>Column Result</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Column Result</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getColumnResult() + * @see #getSqlResultSetMapping() + * @generated + */ + EReference getSqlResultSetMapping_ColumnResult(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getName() + * @see #getSqlResultSetMapping() + * @generated + */ + EAttribute getSqlResultSetMapping_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Table <em>Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Table + * @generated + */ + EClass getTable(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.Table#getUniqueConstraint <em>Unique Constraint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Unique Constraint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Table#getUniqueConstraint() + * @see #getTable() + * @generated + */ + EReference getTable_UniqueConstraint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Table#getCatalog <em>Catalog</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Catalog</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Table#getCatalog() + * @see #getTable() + * @generated + */ + EAttribute getTable_Catalog(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Table#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Table#getName() + * @see #getTable() + * @generated + */ + EAttribute getTable_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Table#getSchema <em>Schema</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Schema</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Table#getSchema() + * @see #getTable() + * @generated + */ + EAttribute getTable_Schema(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator <em>Table Generator</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Table Generator</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator + * @generated + */ + EClass getTableGenerator(); + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getUniqueConstraint <em>Unique Constraint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference list '<em>Unique Constraint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getUniqueConstraint() + * @see #getTableGenerator() + * @generated + */ + EReference getTableGenerator_UniqueConstraint(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Allocation Size</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getAllocationSize() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_AllocationSize(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getCatalog <em>Catalog</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Catalog</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getCatalog() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_Catalog(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getInitialValue <em>Initial Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Initial Value</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getInitialValue() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_InitialValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getName() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_Name(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnName <em>Pk Column Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pk Column Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnName() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_PkColumnName(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnValue <em>Pk Column Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Pk Column Value</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnValue() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_PkColumnValue(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getSchema <em>Schema</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Schema</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getSchema() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_Schema(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getTable <em>Table</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Table</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getTable() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_Table(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getValueColumnName <em>Value Column Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Value Column Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TableGenerator#getValueColumnName() + * @see #getTableGenerator() + * @generated + */ + EAttribute getTableGenerator_ValueColumnName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Transient <em>Transient</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Transient</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Transient + * @generated + */ + EClass getTransient(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Transient#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Transient#getName() + * @see #getTransient() + * @generated + */ + EAttribute getTransient_Name(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint <em>Unique Constraint</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Unique Constraint</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.UniqueConstraint + * @generated + */ + EClass getUniqueConstraint(); + + /** + * Returns the meta object for the attribute list '{@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint#getColumnName <em>Column Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute list '<em>Column Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.UniqueConstraint#getColumnName() + * @see #getUniqueConstraint() + * @generated + */ + EAttribute getUniqueConstraint_ColumnName(); + + /** + * Returns the meta object for class '{@link org.eclipse.emf.teneo.jpa.orm.Version <em>Version</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for class '<em>Version</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Version + * @generated + */ + EClass getVersion(); + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.emf.teneo.jpa.orm.Version#getColumn <em>Column</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the containment reference '<em>Column</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Version#getColumn() + * @see #getVersion() + * @generated + */ + EReference getVersion_Column(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Version#getTemporal <em>Temporal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Temporal</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Version#getTemporal() + * @see #getVersion() + * @generated + */ + EAttribute getVersion_Temporal(); + + /** + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.jpa.orm.Version#getName <em>Name</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Name</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.Version#getName() + * @see #getVersion() + * @generated + */ + EAttribute getVersion_Name(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.jpa.orm.AccessType <em>Access Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Access Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @generated + */ + EEnum getAccessType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorType <em>Discriminator Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Discriminator Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @generated + */ + EEnum getDiscriminatorType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.jpa.orm.EnumType <em>Enum Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Enum Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @generated + */ + EEnum getEnumType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.jpa.orm.FetchType <em>Fetch Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Fetch Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @generated + */ + EEnum getFetchType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.jpa.orm.GenerationType <em>Generation Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Generation Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @generated + */ + EEnum getGenerationType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.jpa.orm.InheritanceType <em>Inheritance Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Inheritance Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @generated + */ + EEnum getInheritanceType(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.jpa.orm.TemporalType <em>Temporal Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for enum '<em>Temporal Type</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @generated + */ + EEnum getTemporalType(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.AccessType <em>Access Type Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Access Type Object</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.AccessType" + * extendedMetaData="name='access-type:Object' baseType='access-type'" + * @generated + */ + EDataType getAccessTypeObject(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorType <em>Discriminator Type Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Discriminator Type Object</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.DiscriminatorType" + * extendedMetaData="name='discriminator-type:Object' baseType='discriminator-type'" + * @generated + */ + EDataType getDiscriminatorTypeObject(); + + /** + * Returns the meta object for data type '{@link java.lang.String <em>Discriminator Value</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Discriminator Value</em>'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * extendedMetaData="name='discriminator-value' baseType='http://www.eclipse.org/emf/2003/XMLType#string'" + * @generated + */ + EDataType getDiscriminatorValue(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.EnumType <em>Enumerated</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Enumerated</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.EnumType" + * extendedMetaData="name='enumerated' baseType='enum-type'" + * @generated + */ + EDataType getEnumerated(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.EnumType <em>Enum Type Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Enum Type Object</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.EnumType" + * extendedMetaData="name='enum-type:Object' baseType='enum-type'" + * @generated + */ + EDataType getEnumTypeObject(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.FetchType <em>Fetch Type Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Fetch Type Object</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.FetchType" + * extendedMetaData="name='fetch-type:Object' baseType='fetch-type'" + * @generated + */ + EDataType getFetchTypeObject(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.GenerationType <em>Generation Type Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Generation Type Object</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.GenerationType" + * extendedMetaData="name='generation-type:Object' baseType='generation-type'" + * @generated + */ + EDataType getGenerationTypeObject(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.InheritanceType <em>Inheritance Type Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Inheritance Type Object</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.InheritanceType" + * extendedMetaData="name='inheritance-type:Object' baseType='inheritance-type'" + * @generated + */ + EDataType getInheritanceTypeObject(); + + /** + * Returns the meta object for data type '{@link java.lang.String <em>Order By</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Order By</em>'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * extendedMetaData="name='order-by' baseType='http://www.eclipse.org/emf/2003/XMLType#string'" + * @generated + */ + EDataType getOrderBy(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.TemporalType <em>Temporal</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Temporal</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.TemporalType" + * extendedMetaData="name='temporal' baseType='temporal-type'" + * @generated + */ + EDataType getTemporal(); + + /** + * Returns the meta object for data type '{@link org.eclipse.emf.teneo.jpa.orm.TemporalType <em>Temporal Type Object</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Temporal Type Object</em>'. + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @model instanceClass="org.eclipse.emf.teneo.jpa.orm.TemporalType" + * extendedMetaData="name='temporal-type:Object' baseType='temporal-type'" + * @generated + */ + EDataType getTemporalTypeObject(); + + /** + * Returns the meta object for data type '{@link java.lang.String <em>Version Type</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for data type '<em>Version Type</em>'. + * @see java.lang.String + * @model instanceClass="java.lang.String" + * extendedMetaData="name='versionType' baseType='http://www.eclipse.org/emf/2003/XMLType#token' pattern='[0-9]+(\\.[0-9]+)*'" + * @generated + */ + EDataType getVersionType(); + + /** + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the factory that creates the instances of the model. + * @generated + */ + OrmFactory getOrmFactory(); + + /** + * <!-- begin-user-doc --> + * Defines literals for the meta objects that represent + * <ul> + * <li>each class,</li> + * <li>each feature of each class,</li> + * <li>each enum,</li> + * <li>and each data type</li> + * </ul> + * <!-- end-user-doc --> + * @generated + */ + interface Literals { + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.AssociationOverrideImpl <em>Association Override</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.AssociationOverrideImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAssociationOverride() + * @generated + */ + EClass ASSOCIATION_OVERRIDE = eINSTANCE.getAssociationOverride(); + + /** + * The meta object literal for the '<em><b>Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ASSOCIATION_OVERRIDE__JOIN_COLUMN = eINSTANCE.getAssociationOverride_JoinColumn(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ASSOCIATION_OVERRIDE__NAME = eINSTANCE.getAssociationOverride_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributeOverrideImpl <em>Attribute Override</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.AttributeOverrideImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAttributeOverride() + * @generated + */ + EClass ATTRIBUTE_OVERRIDE = eINSTANCE.getAttributeOverride(); + + /** + * The meta object literal for the '<em><b>Column</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTE_OVERRIDE__COLUMN = eINSTANCE.getAttributeOverride_Column(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ATTRIBUTE_OVERRIDE__NAME = eINSTANCE.getAttributeOverride_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl <em>Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAttributes() + * @generated + */ + EClass ATTRIBUTES = eINSTANCE.getAttributes(); + + /** + * The meta object literal for the '<em><b>Id</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__ID = eINSTANCE.getAttributes_Id(); + + /** + * The meta object literal for the '<em><b>Embedded Id</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__EMBEDDED_ID = eINSTANCE.getAttributes_EmbeddedId(); + + /** + * The meta object literal for the '<em><b>Basic</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__BASIC = eINSTANCE.getAttributes_Basic(); + + /** + * The meta object literal for the '<em><b>Version</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__VERSION = eINSTANCE.getAttributes_Version(); + + /** + * The meta object literal for the '<em><b>Many To One</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__MANY_TO_ONE = eINSTANCE.getAttributes_ManyToOne(); + + /** + * The meta object literal for the '<em><b>One To Many</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__ONE_TO_MANY = eINSTANCE.getAttributes_OneToMany(); + + /** + * The meta object literal for the '<em><b>One To One</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__ONE_TO_ONE = eINSTANCE.getAttributes_OneToOne(); + + /** + * The meta object literal for the '<em><b>Many To Many</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__MANY_TO_MANY = eINSTANCE.getAttributes_ManyToMany(); + + /** + * The meta object literal for the '<em><b>Embedded</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__EMBEDDED = eINSTANCE.getAttributes_Embedded(); + + /** + * The meta object literal for the '<em><b>Transient</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ATTRIBUTES__TRANSIENT = eINSTANCE.getAttributes_Transient(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl <em>Basic</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getBasic() + * @generated + */ + EClass BASIC = eINSTANCE.getBasic(); + + /** + * The meta object literal for the '<em><b>Column</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference BASIC__COLUMN = eINSTANCE.getBasic_Column(); + + /** + * The meta object literal for the '<em><b>Lob</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference BASIC__LOB = eINSTANCE.getBasic_Lob(); + + /** + * The meta object literal for the '<em><b>Temporal</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute BASIC__TEMPORAL = eINSTANCE.getBasic_Temporal(); + + /** + * The meta object literal for the '<em><b>Enumerated</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute BASIC__ENUMERATED = eINSTANCE.getBasic_Enumerated(); + + /** + * The meta object literal for the '<em><b>Fetch</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute BASIC__FETCH = eINSTANCE.getBasic_Fetch(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute BASIC__NAME = eINSTANCE.getBasic_Name(); + + /** + * The meta object literal for the '<em><b>Optional</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute BASIC__OPTIONAL = eINSTANCE.getBasic_Optional(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl <em>Cascade Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getCascadeType() + * @generated + */ + EClass CASCADE_TYPE = eINSTANCE.getCascadeType(); + + /** + * The meta object literal for the '<em><b>Cascade All</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CASCADE_TYPE__CASCADE_ALL = eINSTANCE.getCascadeType_CascadeAll(); + + /** + * The meta object literal for the '<em><b>Cascade Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CASCADE_TYPE__CASCADE_PERSIST = eINSTANCE.getCascadeType_CascadePersist(); + + /** + * The meta object literal for the '<em><b>Cascade Merge</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CASCADE_TYPE__CASCADE_MERGE = eINSTANCE.getCascadeType_CascadeMerge(); + + /** + * The meta object literal for the '<em><b>Cascade Remove</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CASCADE_TYPE__CASCADE_REMOVE = eINSTANCE.getCascadeType_CascadeRemove(); + + /** + * The meta object literal for the '<em><b>Cascade Refresh</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference CASCADE_TYPE__CASCADE_REFRESH = eINSTANCE.getCascadeType_CascadeRefresh(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl <em>Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getColumn() + * @generated + */ + EClass COLUMN = eINSTANCE.getColumn(); + + /** + * The meta object literal for the '<em><b>Column Definition</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__COLUMN_DEFINITION = eINSTANCE.getColumn_ColumnDefinition(); + + /** + * The meta object literal for the '<em><b>Insertable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__INSERTABLE = eINSTANCE.getColumn_Insertable(); + + /** + * The meta object literal for the '<em><b>Length</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__LENGTH = eINSTANCE.getColumn_Length(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__NAME = eINSTANCE.getColumn_Name(); + + /** + * The meta object literal for the '<em><b>Nullable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__NULLABLE = eINSTANCE.getColumn_Nullable(); + + /** + * The meta object literal for the '<em><b>Precision</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__PRECISION = eINSTANCE.getColumn_Precision(); + + /** + * The meta object literal for the '<em><b>Scale</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__SCALE = eINSTANCE.getColumn_Scale(); + + /** + * The meta object literal for the '<em><b>Table</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__TABLE = eINSTANCE.getColumn_Table(); + + /** + * The meta object literal for the '<em><b>Unique</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__UNIQUE = eINSTANCE.getColumn_Unique(); + + /** + * The meta object literal for the '<em><b>Updatable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN__UPDATABLE = eINSTANCE.getColumn_Updatable(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnResultImpl <em>Column Result</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ColumnResultImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getColumnResult() + * @generated + */ + EClass COLUMN_RESULT = eINSTANCE.getColumnResult(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute COLUMN_RESULT__NAME = eINSTANCE.getColumnResult_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl <em>Discriminator Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorColumn() + * @generated + */ + EClass DISCRIMINATOR_COLUMN = eINSTANCE.getDiscriminatorColumn(); + + /** + * The meta object literal for the '<em><b>Column Definition</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DISCRIMINATOR_COLUMN__COLUMN_DEFINITION = eINSTANCE.getDiscriminatorColumn_ColumnDefinition(); + + /** + * The meta object literal for the '<em><b>Discriminator Type</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE = eINSTANCE.getDiscriminatorColumn_DiscriminatorType(); + + /** + * The meta object literal for the '<em><b>Length</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DISCRIMINATOR_COLUMN__LENGTH = eINSTANCE.getDiscriminatorColumn_Length(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DISCRIMINATOR_COLUMN__NAME = eINSTANCE.getDiscriminatorColumn_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl <em>Document Root</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDocumentRoot() + * @generated + */ + EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot(); + + /** + * The meta object literal for the '<em><b>Mixed</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed(); + + /** + * The meta object literal for the '<em><b>XMLNS Prefix Map</b></em>' map feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP = eINSTANCE.getDocumentRoot_XMLNSPrefixMap(); + + /** + * The meta object literal for the '<em><b>XSI Schema Location</b></em>' map feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = eINSTANCE.getDocumentRoot_XSISchemaLocation(); + + /** + * The meta object literal for the '<em><b>Entity Mappings</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference DOCUMENT_ROOT__ENTITY_MAPPINGS = eINSTANCE.getDocumentRoot_EntityMappings(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl <em>Embeddable</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbeddable() + * @generated + */ + EClass EMBEDDABLE = eINSTANCE.getEmbeddable(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EMBEDDABLE__DESCRIPTION = eINSTANCE.getEmbeddable_Description(); + + /** + * The meta object literal for the '<em><b>Attributes</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference EMBEDDABLE__ATTRIBUTES = eINSTANCE.getEmbeddable_Attributes(); + + /** + * The meta object literal for the '<em><b>Access</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EMBEDDABLE__ACCESS = eINSTANCE.getEmbeddable_Access(); + + /** + * The meta object literal for the '<em><b>Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EMBEDDABLE__CLASS = eINSTANCE.getEmbeddable_Class(); + + /** + * The meta object literal for the '<em><b>Metadata Complete</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EMBEDDABLE__METADATA_COMPLETE = eINSTANCE.getEmbeddable_MetadataComplete(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableAttributesImpl <em>Embeddable Attributes</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableAttributesImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbeddableAttributes() + * @generated + */ + EClass EMBEDDABLE_ATTRIBUTES = eINSTANCE.getEmbeddableAttributes(); + + /** + * The meta object literal for the '<em><b>Basic</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference EMBEDDABLE_ATTRIBUTES__BASIC = eINSTANCE.getEmbeddableAttributes_Basic(); + + /** + * The meta object literal for the '<em><b>Transient</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference EMBEDDABLE_ATTRIBUTES__TRANSIENT = eINSTANCE.getEmbeddableAttributes_Transient(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedImpl <em>Embedded</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbedded() + * @generated + */ + EClass EMBEDDED = eINSTANCE.getEmbedded(); + + /** + * The meta object literal for the '<em><b>Attribute Override</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference EMBEDDED__ATTRIBUTE_OVERRIDE = eINSTANCE.getEmbedded_AttributeOverride(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EMBEDDED__NAME = eINSTANCE.getEmbedded_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedIdImpl <em>Embedded Id</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedIdImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmbeddedId() + * @generated + */ + EClass EMBEDDED_ID = eINSTANCE.getEmbeddedId(); + + /** + * The meta object literal for the '<em><b>Attribute Override</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference EMBEDDED_ID__ATTRIBUTE_OVERRIDE = eINSTANCE.getEmbeddedId_AttributeOverride(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute EMBEDDED_ID__NAME = eINSTANCE.getEmbeddedId_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EmptyTypeImpl <em>Empty Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EmptyTypeImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEmptyType() + * @generated + */ + EClass EMPTY_TYPE = eINSTANCE.getEmptyType(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl <em>Entity</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntity() + * @generated + */ + EClass ENTITY = eINSTANCE.getEntity(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY__DESCRIPTION = eINSTANCE.getEntity_Description(); + + /** + * The meta object literal for the '<em><b>Table</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__TABLE = eINSTANCE.getEntity_Table(); + + /** + * The meta object literal for the '<em><b>Secondary Table</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__SECONDARY_TABLE = eINSTANCE.getEntity_SecondaryTable(); + + /** + * The meta object literal for the '<em><b>Primary Key Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__PRIMARY_KEY_JOIN_COLUMN = eINSTANCE.getEntity_PrimaryKeyJoinColumn(); + + /** + * The meta object literal for the '<em><b>Id Class</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__ID_CLASS = eINSTANCE.getEntity_IdClass(); + + /** + * The meta object literal for the '<em><b>Inheritance</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__INHERITANCE = eINSTANCE.getEntity_Inheritance(); + + /** + * The meta object literal for the '<em><b>Discriminator Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY__DISCRIMINATOR_VALUE = eINSTANCE.getEntity_DiscriminatorValue(); + + /** + * The meta object literal for the '<em><b>Discriminator Column</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__DISCRIMINATOR_COLUMN = eINSTANCE.getEntity_DiscriminatorColumn(); + + /** + * The meta object literal for the '<em><b>Sequence Generator</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__SEQUENCE_GENERATOR = eINSTANCE.getEntity_SequenceGenerator(); + + /** + * The meta object literal for the '<em><b>Table Generator</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__TABLE_GENERATOR = eINSTANCE.getEntity_TableGenerator(); + + /** + * The meta object literal for the '<em><b>Named Query</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__NAMED_QUERY = eINSTANCE.getEntity_NamedQuery(); + + /** + * The meta object literal for the '<em><b>Named Native Query</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__NAMED_NATIVE_QUERY = eINSTANCE.getEntity_NamedNativeQuery(); + + /** + * The meta object literal for the '<em><b>Sql Result Set Mapping</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__SQL_RESULT_SET_MAPPING = eINSTANCE.getEntity_SqlResultSetMapping(); + + /** + * The meta object literal for the '<em><b>Exclude Default Listeners</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__EXCLUDE_DEFAULT_LISTENERS = eINSTANCE.getEntity_ExcludeDefaultListeners(); + + /** + * The meta object literal for the '<em><b>Exclude Superclass Listeners</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__EXCLUDE_SUPERCLASS_LISTENERS = eINSTANCE.getEntity_ExcludeSuperclassListeners(); + + /** + * The meta object literal for the '<em><b>Entity Listeners</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__ENTITY_LISTENERS = eINSTANCE.getEntity_EntityListeners(); + + /** + * The meta object literal for the '<em><b>Pre Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__PRE_PERSIST = eINSTANCE.getEntity_PrePersist(); + + /** + * The meta object literal for the '<em><b>Post Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__POST_PERSIST = eINSTANCE.getEntity_PostPersist(); + + /** + * The meta object literal for the '<em><b>Pre Remove</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__PRE_REMOVE = eINSTANCE.getEntity_PreRemove(); + + /** + * The meta object literal for the '<em><b>Post Remove</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__POST_REMOVE = eINSTANCE.getEntity_PostRemove(); + + /** + * The meta object literal for the '<em><b>Pre Update</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__PRE_UPDATE = eINSTANCE.getEntity_PreUpdate(); + + /** + * The meta object literal for the '<em><b>Post Update</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__POST_UPDATE = eINSTANCE.getEntity_PostUpdate(); + + /** + * The meta object literal for the '<em><b>Post Load</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__POST_LOAD = eINSTANCE.getEntity_PostLoad(); + + /** + * The meta object literal for the '<em><b>Attribute Override</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__ATTRIBUTE_OVERRIDE = eINSTANCE.getEntity_AttributeOverride(); + + /** + * The meta object literal for the '<em><b>Association Override</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__ASSOCIATION_OVERRIDE = eINSTANCE.getEntity_AssociationOverride(); + + /** + * The meta object literal for the '<em><b>Attributes</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY__ATTRIBUTES = eINSTANCE.getEntity_Attributes(); + + /** + * The meta object literal for the '<em><b>Access</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY__ACCESS = eINSTANCE.getEntity_Access(); + + /** + * The meta object literal for the '<em><b>Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY__CLASS = eINSTANCE.getEntity_Class(); + + /** + * The meta object literal for the '<em><b>Metadata Complete</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY__METADATA_COMPLETE = eINSTANCE.getEntity_MetadataComplete(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY__NAME = eINSTANCE.getEntity_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl <em>Entity Listener</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityListener() + * @generated + */ + EClass ENTITY_LISTENER = eINSTANCE.getEntityListener(); + + /** + * The meta object literal for the '<em><b>Pre Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENER__PRE_PERSIST = eINSTANCE.getEntityListener_PrePersist(); + + /** + * The meta object literal for the '<em><b>Post Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENER__POST_PERSIST = eINSTANCE.getEntityListener_PostPersist(); + + /** + * The meta object literal for the '<em><b>Pre Remove</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENER__PRE_REMOVE = eINSTANCE.getEntityListener_PreRemove(); + + /** + * The meta object literal for the '<em><b>Post Remove</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENER__POST_REMOVE = eINSTANCE.getEntityListener_PostRemove(); + + /** + * The meta object literal for the '<em><b>Pre Update</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENER__PRE_UPDATE = eINSTANCE.getEntityListener_PreUpdate(); + + /** + * The meta object literal for the '<em><b>Post Update</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENER__POST_UPDATE = eINSTANCE.getEntityListener_PostUpdate(); + + /** + * The meta object literal for the '<em><b>Post Load</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENER__POST_LOAD = eINSTANCE.getEntityListener_PostLoad(); + + /** + * The meta object literal for the '<em><b>Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_LISTENER__CLASS = eINSTANCE.getEntityListener_Class(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenersImpl <em>Entity Listeners</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityListenersImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityListeners() + * @generated + */ + EClass ENTITY_LISTENERS = eINSTANCE.getEntityListeners(); + + /** + * The meta object literal for the '<em><b>Entity Listener</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_LISTENERS__ENTITY_LISTENER = eINSTANCE.getEntityListeners_EntityListener(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl <em>Entity Mappings Type</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityMappingsType() + * @generated + */ + EClass ENTITY_MAPPINGS_TYPE = eINSTANCE.getEntityMappingsType(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_MAPPINGS_TYPE__DESCRIPTION = eINSTANCE.getEntityMappingsType_Description(); + + /** + * The meta object literal for the '<em><b>Persistence Unit Metadata</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA = eINSTANCE.getEntityMappingsType_PersistenceUnitMetadata(); + + /** + * The meta object literal for the '<em><b>Package</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_MAPPINGS_TYPE__PACKAGE = eINSTANCE.getEntityMappingsType_Package(); + + /** + * The meta object literal for the '<em><b>Schema</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_MAPPINGS_TYPE__SCHEMA = eINSTANCE.getEntityMappingsType_Schema(); + + /** + * The meta object literal for the '<em><b>Catalog</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_MAPPINGS_TYPE__CATALOG = eINSTANCE.getEntityMappingsType_Catalog(); + + /** + * The meta object literal for the '<em><b>Access</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_MAPPINGS_TYPE__ACCESS = eINSTANCE.getEntityMappingsType_Access(); + + /** + * The meta object literal for the '<em><b>Sequence Generator</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR = eINSTANCE.getEntityMappingsType_SequenceGenerator(); + + /** + * The meta object literal for the '<em><b>Table Generator</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR = eINSTANCE.getEntityMappingsType_TableGenerator(); + + /** + * The meta object literal for the '<em><b>Named Query</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__NAMED_QUERY = eINSTANCE.getEntityMappingsType_NamedQuery(); + + /** + * The meta object literal for the '<em><b>Named Native Query</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY = eINSTANCE.getEntityMappingsType_NamedNativeQuery(); + + /** + * The meta object literal for the '<em><b>Sql Result Set Mapping</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING = eINSTANCE.getEntityMappingsType_SqlResultSetMapping(); + + /** + * The meta object literal for the '<em><b>Mapped Superclass</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS = eINSTANCE.getEntityMappingsType_MappedSuperclass(); + + /** + * The meta object literal for the '<em><b>Entity</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__ENTITY = eINSTANCE.getEntityMappingsType_Entity(); + + /** + * The meta object literal for the '<em><b>Embeddable</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_MAPPINGS_TYPE__EMBEDDABLE = eINSTANCE.getEntityMappingsType_Embeddable(); + + /** + * The meta object literal for the '<em><b>Version</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_MAPPINGS_TYPE__VERSION = eINSTANCE.getEntityMappingsType_Version(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityResultImpl <em>Entity Result</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.EntityResultImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEntityResult() + * @generated + */ + EClass ENTITY_RESULT = eINSTANCE.getEntityResult(); + + /** + * The meta object literal for the '<em><b>Field Result</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ENTITY_RESULT__FIELD_RESULT = eINSTANCE.getEntityResult_FieldResult(); + + /** + * The meta object literal for the '<em><b>Discriminator Column</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_RESULT__DISCRIMINATOR_COLUMN = eINSTANCE.getEntityResult_DiscriminatorColumn(); + + /** + * The meta object literal for the '<em><b>Entity Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ENTITY_RESULT__ENTITY_CLASS = eINSTANCE.getEntityResult_EntityClass(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.FieldResultImpl <em>Field Result</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.FieldResultImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getFieldResult() + * @generated + */ + EClass FIELD_RESULT = eINSTANCE.getFieldResult(); + + /** + * The meta object literal for the '<em><b>Column</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FIELD_RESULT__COLUMN = eINSTANCE.getFieldResult_Column(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute FIELD_RESULT__NAME = eINSTANCE.getFieldResult_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.GeneratedValueImpl <em>Generated Value</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.GeneratedValueImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getGeneratedValue() + * @generated + */ + EClass GENERATED_VALUE = eINSTANCE.getGeneratedValue(); + + /** + * The meta object literal for the '<em><b>Generator</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GENERATED_VALUE__GENERATOR = eINSTANCE.getGeneratedValue_Generator(); + + /** + * The meta object literal for the '<em><b>Strategy</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute GENERATED_VALUE__STRATEGY = eINSTANCE.getGeneratedValue_Strategy(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl <em>Id</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.IdImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getId() + * @generated + */ + EClass ID = eINSTANCE.getId(); + + /** + * The meta object literal for the '<em><b>Column</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ID__COLUMN = eINSTANCE.getId_Column(); + + /** + * The meta object literal for the '<em><b>Generated Value</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ID__GENERATED_VALUE = eINSTANCE.getId_GeneratedValue(); + + /** + * The meta object literal for the '<em><b>Temporal</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ID__TEMPORAL = eINSTANCE.getId_Temporal(); + + /** + * The meta object literal for the '<em><b>Table Generator</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ID__TABLE_GENERATOR = eINSTANCE.getId_TableGenerator(); + + /** + * The meta object literal for the '<em><b>Sequence Generator</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ID__SEQUENCE_GENERATOR = eINSTANCE.getId_SequenceGenerator(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ID__NAME = eINSTANCE.getId_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.IdClassImpl <em>Id Class</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.IdClassImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getIdClass() + * @generated + */ + EClass ID_CLASS = eINSTANCE.getIdClass(); + + /** + * The meta object literal for the '<em><b>Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ID_CLASS__CLASS = eINSTANCE.getIdClass_Class(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.InheritanceImpl <em>Inheritance</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.InheritanceImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getInheritance() + * @generated + */ + EClass INHERITANCE = eINSTANCE.getInheritance(); + + /** + * The meta object literal for the '<em><b>Strategy</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute INHERITANCE__STRATEGY = eINSTANCE.getInheritance_Strategy(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl <em>Join Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getJoinColumn() + * @generated + */ + EClass JOIN_COLUMN = eINSTANCE.getJoinColumn(); + + /** + * The meta object literal for the '<em><b>Column Definition</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__COLUMN_DEFINITION = eINSTANCE.getJoinColumn_ColumnDefinition(); + + /** + * The meta object literal for the '<em><b>Insertable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__INSERTABLE = eINSTANCE.getJoinColumn_Insertable(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__NAME = eINSTANCE.getJoinColumn_Name(); + + /** + * The meta object literal for the '<em><b>Nullable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__NULLABLE = eINSTANCE.getJoinColumn_Nullable(); + + /** + * The meta object literal for the '<em><b>Referenced Column Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__REFERENCED_COLUMN_NAME = eINSTANCE.getJoinColumn_ReferencedColumnName(); + + /** + * The meta object literal for the '<em><b>Table</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__TABLE = eINSTANCE.getJoinColumn_Table(); + + /** + * The meta object literal for the '<em><b>Unique</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__UNIQUE = eINSTANCE.getJoinColumn_Unique(); + + /** + * The meta object literal for the '<em><b>Updatable</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_COLUMN__UPDATABLE = eINSTANCE.getJoinColumn_Updatable(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl <em>Join Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getJoinTable() + * @generated + */ + EClass JOIN_TABLE = eINSTANCE.getJoinTable(); + + /** + * The meta object literal for the '<em><b>Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference JOIN_TABLE__JOIN_COLUMN = eINSTANCE.getJoinTable_JoinColumn(); + + /** + * The meta object literal for the '<em><b>Inverse Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference JOIN_TABLE__INVERSE_JOIN_COLUMN = eINSTANCE.getJoinTable_InverseJoinColumn(); + + /** + * The meta object literal for the '<em><b>Unique Constraint</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference JOIN_TABLE__UNIQUE_CONSTRAINT = eINSTANCE.getJoinTable_UniqueConstraint(); + + /** + * The meta object literal for the '<em><b>Catalog</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_TABLE__CATALOG = eINSTANCE.getJoinTable_Catalog(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_TABLE__NAME = eINSTANCE.getJoinTable_Name(); + + /** + * The meta object literal for the '<em><b>Schema</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute JOIN_TABLE__SCHEMA = eINSTANCE.getJoinTable_Schema(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.LobImpl <em>Lob</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.LobImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getLob() + * @generated + */ + EClass LOB = eINSTANCE.getLob(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl <em>Many To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getManyToMany() + * @generated + */ + EClass MANY_TO_MANY = eINSTANCE.getManyToMany(); + + /** + * The meta object literal for the '<em><b>Order By</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_MANY__ORDER_BY = eINSTANCE.getManyToMany_OrderBy(); + + /** + * The meta object literal for the '<em><b>Map Key</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANY_TO_MANY__MAP_KEY = eINSTANCE.getManyToMany_MapKey(); + + /** + * The meta object literal for the '<em><b>Join Table</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANY_TO_MANY__JOIN_TABLE = eINSTANCE.getManyToMany_JoinTable(); + + /** + * The meta object literal for the '<em><b>Cascade</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANY_TO_MANY__CASCADE = eINSTANCE.getManyToMany_Cascade(); + + /** + * The meta object literal for the '<em><b>Fetch</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_MANY__FETCH = eINSTANCE.getManyToMany_Fetch(); + + /** + * The meta object literal for the '<em><b>Mapped By</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_MANY__MAPPED_BY = eINSTANCE.getManyToMany_MappedBy(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_MANY__NAME = eINSTANCE.getManyToMany_Name(); + + /** + * The meta object literal for the '<em><b>Target Entity</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_MANY__TARGET_ENTITY = eINSTANCE.getManyToMany_TargetEntity(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl <em>Many To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getManyToOne() + * @generated + */ + EClass MANY_TO_ONE = eINSTANCE.getManyToOne(); + + /** + * The meta object literal for the '<em><b>Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANY_TO_ONE__JOIN_COLUMN = eINSTANCE.getManyToOne_JoinColumn(); + + /** + * The meta object literal for the '<em><b>Join Table</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANY_TO_ONE__JOIN_TABLE = eINSTANCE.getManyToOne_JoinTable(); + + /** + * The meta object literal for the '<em><b>Cascade</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MANY_TO_ONE__CASCADE = eINSTANCE.getManyToOne_Cascade(); + + /** + * The meta object literal for the '<em><b>Fetch</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_ONE__FETCH = eINSTANCE.getManyToOne_Fetch(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_ONE__NAME = eINSTANCE.getManyToOne_Name(); + + /** + * The meta object literal for the '<em><b>Optional</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_ONE__OPTIONAL = eINSTANCE.getManyToOne_Optional(); + + /** + * The meta object literal for the '<em><b>Target Entity</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MANY_TO_ONE__TARGET_ENTITY = eINSTANCE.getManyToOne_TargetEntity(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.MapKeyImpl <em>Map Key</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.MapKeyImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getMapKey() + * @generated + */ + EClass MAP_KEY = eINSTANCE.getMapKey(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAP_KEY__NAME = eINSTANCE.getMapKey_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl <em>Mapped Superclass</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getMappedSuperclass() + * @generated + */ + EClass MAPPED_SUPERCLASS = eINSTANCE.getMappedSuperclass(); + + /** + * The meta object literal for the '<em><b>Description</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAPPED_SUPERCLASS__DESCRIPTION = eINSTANCE.getMappedSuperclass_Description(); + + /** + * The meta object literal for the '<em><b>Id Class</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__ID_CLASS = eINSTANCE.getMappedSuperclass_IdClass(); + + /** + * The meta object literal for the '<em><b>Exclude Default Listeners</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS = eINSTANCE.getMappedSuperclass_ExcludeDefaultListeners(); + + /** + * The meta object literal for the '<em><b>Exclude Superclass Listeners</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS = eINSTANCE.getMappedSuperclass_ExcludeSuperclassListeners(); + + /** + * The meta object literal for the '<em><b>Entity Listeners</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__ENTITY_LISTENERS = eINSTANCE.getMappedSuperclass_EntityListeners(); + + /** + * The meta object literal for the '<em><b>Pre Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__PRE_PERSIST = eINSTANCE.getMappedSuperclass_PrePersist(); + + /** + * The meta object literal for the '<em><b>Post Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__POST_PERSIST = eINSTANCE.getMappedSuperclass_PostPersist(); + + /** + * The meta object literal for the '<em><b>Pre Remove</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__PRE_REMOVE = eINSTANCE.getMappedSuperclass_PreRemove(); + + /** + * The meta object literal for the '<em><b>Post Remove</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__POST_REMOVE = eINSTANCE.getMappedSuperclass_PostRemove(); + + /** + * The meta object literal for the '<em><b>Pre Update</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__PRE_UPDATE = eINSTANCE.getMappedSuperclass_PreUpdate(); + + /** + * The meta object literal for the '<em><b>Post Update</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__POST_UPDATE = eINSTANCE.getMappedSuperclass_PostUpdate(); + + /** + * The meta object literal for the '<em><b>Post Load</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__POST_LOAD = eINSTANCE.getMappedSuperclass_PostLoad(); + + /** + * The meta object literal for the '<em><b>Attributes</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference MAPPED_SUPERCLASS__ATTRIBUTES = eINSTANCE.getMappedSuperclass_Attributes(); + + /** + * The meta object literal for the '<em><b>Access</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAPPED_SUPERCLASS__ACCESS = eINSTANCE.getMappedSuperclass_Access(); + + /** + * The meta object literal for the '<em><b>Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAPPED_SUPERCLASS__CLASS = eINSTANCE.getMappedSuperclass_Class(); + + /** + * The meta object literal for the '<em><b>Metadata Complete</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute MAPPED_SUPERCLASS__METADATA_COMPLETE = eINSTANCE.getMappedSuperclass_MetadataComplete(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl <em>Named Native Query</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getNamedNativeQuery() + * @generated + */ + EClass NAMED_NATIVE_QUERY = eINSTANCE.getNamedNativeQuery(); + + /** + * The meta object literal for the '<em><b>Query</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NAMED_NATIVE_QUERY__QUERY = eINSTANCE.getNamedNativeQuery_Query(); + + /** + * The meta object literal for the '<em><b>Hint</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference NAMED_NATIVE_QUERY__HINT = eINSTANCE.getNamedNativeQuery_Hint(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NAMED_NATIVE_QUERY__NAME = eINSTANCE.getNamedNativeQuery_Name(); + + /** + * The meta object literal for the '<em><b>Result Class</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NAMED_NATIVE_QUERY__RESULT_CLASS = eINSTANCE.getNamedNativeQuery_ResultClass(); + + /** + * The meta object literal for the '<em><b>Result Set Mapping</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NAMED_NATIVE_QUERY__RESULT_SET_MAPPING = eINSTANCE.getNamedNativeQuery_ResultSetMapping(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedQueryImpl <em>Named Query</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.NamedQueryImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getNamedQuery() + * @generated + */ + EClass NAMED_QUERY = eINSTANCE.getNamedQuery(); + + /** + * The meta object literal for the '<em><b>Query</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NAMED_QUERY__QUERY = eINSTANCE.getNamedQuery_Query(); + + /** + * The meta object literal for the '<em><b>Hint</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference NAMED_QUERY__HINT = eINSTANCE.getNamedQuery_Hint(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute NAMED_QUERY__NAME = eINSTANCE.getNamedQuery_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl <em>One To Many</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getOneToMany() + * @generated + */ + EClass ONE_TO_MANY = eINSTANCE.getOneToMany(); + + /** + * The meta object literal for the '<em><b>Order By</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_MANY__ORDER_BY = eINSTANCE.getOneToMany_OrderBy(); + + /** + * The meta object literal for the '<em><b>Map Key</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_MANY__MAP_KEY = eINSTANCE.getOneToMany_MapKey(); + + /** + * The meta object literal for the '<em><b>Join Table</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_MANY__JOIN_TABLE = eINSTANCE.getOneToMany_JoinTable(); + + /** + * The meta object literal for the '<em><b>Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_MANY__JOIN_COLUMN = eINSTANCE.getOneToMany_JoinColumn(); + + /** + * The meta object literal for the '<em><b>Cascade</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_MANY__CASCADE = eINSTANCE.getOneToMany_Cascade(); + + /** + * The meta object literal for the '<em><b>Fetch</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_MANY__FETCH = eINSTANCE.getOneToMany_Fetch(); + + /** + * The meta object literal for the '<em><b>Mapped By</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_MANY__MAPPED_BY = eINSTANCE.getOneToMany_MappedBy(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_MANY__NAME = eINSTANCE.getOneToMany_Name(); + + /** + * The meta object literal for the '<em><b>Target Entity</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_MANY__TARGET_ENTITY = eINSTANCE.getOneToMany_TargetEntity(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl <em>One To One</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getOneToOne() + * @generated + */ + EClass ONE_TO_ONE = eINSTANCE.getOneToOne(); + + /** + * The meta object literal for the '<em><b>Primary Key Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN = eINSTANCE.getOneToOne_PrimaryKeyJoinColumn(); + + /** + * The meta object literal for the '<em><b>Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_ONE__JOIN_COLUMN = eINSTANCE.getOneToOne_JoinColumn(); + + /** + * The meta object literal for the '<em><b>Join Table</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_ONE__JOIN_TABLE = eINSTANCE.getOneToOne_JoinTable(); + + /** + * The meta object literal for the '<em><b>Cascade</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference ONE_TO_ONE__CASCADE = eINSTANCE.getOneToOne_Cascade(); + + /** + * The meta object literal for the '<em><b>Fetch</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_ONE__FETCH = eINSTANCE.getOneToOne_Fetch(); + + /** + * The meta object literal for the '<em><b>Mapped By</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_ONE__MAPPED_BY = eINSTANCE.getOneToOne_MappedBy(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_ONE__NAME = eINSTANCE.getOneToOne_Name(); + + /** + * The meta object literal for the '<em><b>Optional</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_ONE__OPTIONAL = eINSTANCE.getOneToOne_Optional(); + + /** + * The meta object literal for the '<em><b>Target Entity</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute ONE_TO_ONE__TARGET_ENTITY = eINSTANCE.getOneToOne_TargetEntity(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl <em>Persistence Unit Defaults</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPersistenceUnitDefaults() + * @generated + */ + EClass PERSISTENCE_UNIT_DEFAULTS = eINSTANCE.getPersistenceUnitDefaults(); + + /** + * The meta object literal for the '<em><b>Schema</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PERSISTENCE_UNIT_DEFAULTS__SCHEMA = eINSTANCE.getPersistenceUnitDefaults_Schema(); + + /** + * The meta object literal for the '<em><b>Catalog</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PERSISTENCE_UNIT_DEFAULTS__CATALOG = eINSTANCE.getPersistenceUnitDefaults_Catalog(); + + /** + * The meta object literal for the '<em><b>Access</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PERSISTENCE_UNIT_DEFAULTS__ACCESS = eINSTANCE.getPersistenceUnitDefaults_Access(); + + /** + * The meta object literal for the '<em><b>Cascade Persist</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST = eINSTANCE.getPersistenceUnitDefaults_CascadePersist(); + + /** + * The meta object literal for the '<em><b>Entity Listeners</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS = eINSTANCE.getPersistenceUnitDefaults_EntityListeners(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitMetadataImpl <em>Persistence Unit Metadata</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitMetadataImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPersistenceUnitMetadata() + * @generated + */ + EClass PERSISTENCE_UNIT_METADATA = eINSTANCE.getPersistenceUnitMetadata(); + + /** + * The meta object literal for the '<em><b>Xml Mapping Metadata Complete</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE = eINSTANCE.getPersistenceUnitMetadata_XmlMappingMetadataComplete(); + + /** + * The meta object literal for the '<em><b>Persistence Unit Defaults</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS = eINSTANCE.getPersistenceUnitMetadata_PersistenceUnitDefaults(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostLoadImpl <em>Post Load</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostLoadImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostLoad() + * @generated + */ + EClass POST_LOAD = eINSTANCE.getPostLoad(); + + /** + * The meta object literal for the '<em><b>Method Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute POST_LOAD__METHOD_NAME = eINSTANCE.getPostLoad_MethodName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostPersistImpl <em>Post Persist</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostPersistImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostPersist() + * @generated + */ + EClass POST_PERSIST = eINSTANCE.getPostPersist(); + + /** + * The meta object literal for the '<em><b>Method Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute POST_PERSIST__METHOD_NAME = eINSTANCE.getPostPersist_MethodName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostRemoveImpl <em>Post Remove</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostRemoveImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostRemove() + * @generated + */ + EClass POST_REMOVE = eINSTANCE.getPostRemove(); + + /** + * The meta object literal for the '<em><b>Method Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute POST_REMOVE__METHOD_NAME = eINSTANCE.getPostRemove_MethodName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PostUpdateImpl <em>Post Update</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PostUpdateImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPostUpdate() + * @generated + */ + EClass POST_UPDATE = eINSTANCE.getPostUpdate(); + + /** + * The meta object literal for the '<em><b>Method Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute POST_UPDATE__METHOD_NAME = eINSTANCE.getPostUpdate_MethodName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PrePersistImpl <em>Pre Persist</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PrePersistImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPrePersist() + * @generated + */ + EClass PRE_PERSIST = eINSTANCE.getPrePersist(); + + /** + * The meta object literal for the '<em><b>Method Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PRE_PERSIST__METHOD_NAME = eINSTANCE.getPrePersist_MethodName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PreRemoveImpl <em>Pre Remove</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PreRemoveImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPreRemove() + * @generated + */ + EClass PRE_REMOVE = eINSTANCE.getPreRemove(); + + /** + * The meta object literal for the '<em><b>Method Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PRE_REMOVE__METHOD_NAME = eINSTANCE.getPreRemove_MethodName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PreUpdateImpl <em>Pre Update</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PreUpdateImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPreUpdate() + * @generated + */ + EClass PRE_UPDATE = eINSTANCE.getPreUpdate(); + + /** + * The meta object literal for the '<em><b>Method Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PRE_UPDATE__METHOD_NAME = eINSTANCE.getPreUpdate_MethodName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.PrimaryKeyJoinColumnImpl <em>Primary Key Join Column</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.PrimaryKeyJoinColumnImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getPrimaryKeyJoinColumn() + * @generated + */ + EClass PRIMARY_KEY_JOIN_COLUMN = eINSTANCE.getPrimaryKeyJoinColumn(); + + /** + * The meta object literal for the '<em><b>Column Definition</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION = eINSTANCE.getPrimaryKeyJoinColumn_ColumnDefinition(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PRIMARY_KEY_JOIN_COLUMN__NAME = eINSTANCE.getPrimaryKeyJoinColumn_Name(); + + /** + * The meta object literal for the '<em><b>Referenced Column Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME = eINSTANCE.getPrimaryKeyJoinColumn_ReferencedColumnName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.QueryHintImpl <em>Query Hint</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.QueryHintImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getQueryHint() + * @generated + */ + EClass QUERY_HINT = eINSTANCE.getQueryHint(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute QUERY_HINT__NAME = eINSTANCE.getQueryHint_Name(); + + /** + * The meta object literal for the '<em><b>Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute QUERY_HINT__VALUE = eINSTANCE.getQueryHint_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl <em>Secondary Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getSecondaryTable() + * @generated + */ + EClass SECONDARY_TABLE = eINSTANCE.getSecondaryTable(); + + /** + * The meta object literal for the '<em><b>Primary Key Join Column</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN = eINSTANCE.getSecondaryTable_PrimaryKeyJoinColumn(); + + /** + * The meta object literal for the '<em><b>Unique Constraint</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SECONDARY_TABLE__UNIQUE_CONSTRAINT = eINSTANCE.getSecondaryTable_UniqueConstraint(); + + /** + * The meta object literal for the '<em><b>Catalog</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SECONDARY_TABLE__CATALOG = eINSTANCE.getSecondaryTable_Catalog(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SECONDARY_TABLE__NAME = eINSTANCE.getSecondaryTable_Name(); + + /** + * The meta object literal for the '<em><b>Schema</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SECONDARY_TABLE__SCHEMA = eINSTANCE.getSecondaryTable_Schema(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl <em>Sequence Generator</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getSequenceGenerator() + * @generated + */ + EClass SEQUENCE_GENERATOR = eINSTANCE.getSequenceGenerator(); + + /** + * The meta object literal for the '<em><b>Allocation Size</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SEQUENCE_GENERATOR__ALLOCATION_SIZE = eINSTANCE.getSequenceGenerator_AllocationSize(); + + /** + * The meta object literal for the '<em><b>Initial Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SEQUENCE_GENERATOR__INITIAL_VALUE = eINSTANCE.getSequenceGenerator_InitialValue(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SEQUENCE_GENERATOR__NAME = eINSTANCE.getSequenceGenerator_Name(); + + /** + * The meta object literal for the '<em><b>Sequence Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SEQUENCE_GENERATOR__SEQUENCE_NAME = eINSTANCE.getSequenceGenerator_SequenceName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.SqlResultSetMappingImpl <em>Sql Result Set Mapping</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.SqlResultSetMappingImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getSqlResultSetMapping() + * @generated + */ + EClass SQL_RESULT_SET_MAPPING = eINSTANCE.getSqlResultSetMapping(); + + /** + * The meta object literal for the '<em><b>Entity Result</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SQL_RESULT_SET_MAPPING__ENTITY_RESULT = eINSTANCE.getSqlResultSetMapping_EntityResult(); + + /** + * The meta object literal for the '<em><b>Column Result</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference SQL_RESULT_SET_MAPPING__COLUMN_RESULT = eINSTANCE.getSqlResultSetMapping_ColumnResult(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute SQL_RESULT_SET_MAPPING__NAME = eINSTANCE.getSqlResultSetMapping_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.TableImpl <em>Table</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.TableImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTable() + * @generated + */ + EClass TABLE = eINSTANCE.getTable(); + + /** + * The meta object literal for the '<em><b>Unique Constraint</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TABLE__UNIQUE_CONSTRAINT = eINSTANCE.getTable_UniqueConstraint(); + + /** + * The meta object literal for the '<em><b>Catalog</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE__CATALOG = eINSTANCE.getTable_Catalog(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE__NAME = eINSTANCE.getTable_Name(); + + /** + * The meta object literal for the '<em><b>Schema</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE__SCHEMA = eINSTANCE.getTable_Schema(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl <em>Table Generator</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTableGenerator() + * @generated + */ + EClass TABLE_GENERATOR = eINSTANCE.getTableGenerator(); + + /** + * The meta object literal for the '<em><b>Unique Constraint</b></em>' containment reference list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference TABLE_GENERATOR__UNIQUE_CONSTRAINT = eINSTANCE.getTableGenerator_UniqueConstraint(); + + /** + * The meta object literal for the '<em><b>Allocation Size</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__ALLOCATION_SIZE = eINSTANCE.getTableGenerator_AllocationSize(); + + /** + * The meta object literal for the '<em><b>Catalog</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__CATALOG = eINSTANCE.getTableGenerator_Catalog(); + + /** + * The meta object literal for the '<em><b>Initial Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__INITIAL_VALUE = eINSTANCE.getTableGenerator_InitialValue(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__NAME = eINSTANCE.getTableGenerator_Name(); + + /** + * The meta object literal for the '<em><b>Pk Column Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__PK_COLUMN_NAME = eINSTANCE.getTableGenerator_PkColumnName(); + + /** + * The meta object literal for the '<em><b>Pk Column Value</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__PK_COLUMN_VALUE = eINSTANCE.getTableGenerator_PkColumnValue(); + + /** + * The meta object literal for the '<em><b>Schema</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__SCHEMA = eINSTANCE.getTableGenerator_Schema(); + + /** + * The meta object literal for the '<em><b>Table</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__TABLE = eINSTANCE.getTableGenerator_Table(); + + /** + * The meta object literal for the '<em><b>Value Column Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TABLE_GENERATOR__VALUE_COLUMN_NAME = eINSTANCE.getTableGenerator_ValueColumnName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.TransientImpl <em>Transient</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.TransientImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTransient() + * @generated + */ + EClass TRANSIENT = eINSTANCE.getTransient(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TRANSIENT__NAME = eINSTANCE.getTransient_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.UniqueConstraintImpl <em>Unique Constraint</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.UniqueConstraintImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getUniqueConstraint() + * @generated + */ + EClass UNIQUE_CONSTRAINT = eINSTANCE.getUniqueConstraint(); + + /** + * The meta object literal for the '<em><b>Column Name</b></em>' attribute list feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute UNIQUE_CONSTRAINT__COLUMN_NAME = eINSTANCE.getUniqueConstraint_ColumnName(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.impl.VersionImpl <em>Version</em>}' class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.impl.VersionImpl + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getVersion() + * @generated + */ + EClass VERSION = eINSTANCE.getVersion(); + + /** + * The meta object literal for the '<em><b>Column</b></em>' containment reference feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EReference VERSION__COLUMN = eINSTANCE.getVersion_Column(); + + /** + * The meta object literal for the '<em><b>Temporal</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VERSION__TEMPORAL = eINSTANCE.getVersion_Temporal(); + + /** + * The meta object literal for the '<em><b>Name</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute VERSION__NAME = eINSTANCE.getVersion_Name(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.AccessType <em>Access Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAccessType() + * @generated + */ + EEnum ACCESS_TYPE = eINSTANCE.getAccessType(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorType <em>Discriminator Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorType() + * @generated + */ + EEnum DISCRIMINATOR_TYPE = eINSTANCE.getDiscriminatorType(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.EnumType <em>Enum Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEnumType() + * @generated + */ + EEnum ENUM_TYPE = eINSTANCE.getEnumType(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.FetchType <em>Fetch Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getFetchType() + * @generated + */ + EEnum FETCH_TYPE = eINSTANCE.getFetchType(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.GenerationType <em>Generation Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getGenerationType() + * @generated + */ + EEnum GENERATION_TYPE = eINSTANCE.getGenerationType(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.InheritanceType <em>Inheritance Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getInheritanceType() + * @generated + */ + EEnum INHERITANCE_TYPE = eINSTANCE.getInheritanceType(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.jpa.orm.TemporalType <em>Temporal Type</em>}' enum. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTemporalType() + * @generated + */ + EEnum TEMPORAL_TYPE = eINSTANCE.getTemporalType(); + + /** + * The meta object literal for the '<em>Access Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getAccessTypeObject() + * @generated + */ + EDataType ACCESS_TYPE_OBJECT = eINSTANCE.getAccessTypeObject(); + + /** + * The meta object literal for the '<em>Discriminator Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.DiscriminatorType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorTypeObject() + * @generated + */ + EDataType DISCRIMINATOR_TYPE_OBJECT = eINSTANCE.getDiscriminatorTypeObject(); + + /** + * The meta object literal for the '<em>Discriminator Value</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.lang.String + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getDiscriminatorValue() + * @generated + */ + EDataType DISCRIMINATOR_VALUE = eINSTANCE.getDiscriminatorValue(); + + /** + * The meta object literal for the '<em>Enumerated</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEnumerated() + * @generated + */ + EDataType ENUMERATED = eINSTANCE.getEnumerated(); + + /** + * The meta object literal for the '<em>Enum Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.EnumType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getEnumTypeObject() + * @generated + */ + EDataType ENUM_TYPE_OBJECT = eINSTANCE.getEnumTypeObject(); + + /** + * The meta object literal for the '<em>Fetch Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.FetchType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getFetchTypeObject() + * @generated + */ + EDataType FETCH_TYPE_OBJECT = eINSTANCE.getFetchTypeObject(); + + /** + * The meta object literal for the '<em>Generation Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.GenerationType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getGenerationTypeObject() + * @generated + */ + EDataType GENERATION_TYPE_OBJECT = eINSTANCE.getGenerationTypeObject(); + + /** + * The meta object literal for the '<em>Inheritance Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.InheritanceType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getInheritanceTypeObject() + * @generated + */ + EDataType INHERITANCE_TYPE_OBJECT = eINSTANCE.getInheritanceTypeObject(); + + /** + * The meta object literal for the '<em>Order By</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.lang.String + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getOrderBy() + * @generated + */ + EDataType ORDER_BY = eINSTANCE.getOrderBy(); + + /** + * The meta object literal for the '<em>Temporal</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTemporal() + * @generated + */ + EDataType TEMPORAL = eINSTANCE.getTemporal(); + + /** + * The meta object literal for the '<em>Temporal Type Object</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.TemporalType + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getTemporalTypeObject() + * @generated + */ + EDataType TEMPORAL_TYPE_OBJECT = eINSTANCE.getTemporalTypeObject(); + + /** + * The meta object literal for the '<em>Version Type</em>' data type. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see java.lang.String + * @see org.eclipse.emf.teneo.jpa.orm.impl.OrmPackageImpl#getVersionType() + * @generated + */ + EDataType VERSION_TYPE = eINSTANCE.getVersionType(); + + } + +} //OrmPackage diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PersistenceUnitDefaults.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PersistenceUnitDefaults.java new file mode 100755 index 000000000..4774184c5 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PersistenceUnitDefaults.java @@ -0,0 +1,218 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PersistenceUnitDefaults.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Persistence Unit Defaults</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * These defaults are applied to the persistence unit as a whole + * unless they are overridden by local annotation or XML + * element settings. + * + * schema - Used as the schema for all tables or secondary tables + * that apply to the persistence unit + * catalog - Used as the catalog for all tables or secondary tables + * that apply to the persistence unit + * access - Used as the access type for all managed classes in + * the persistence unit + * cascade-persist - Adds cascade-persist to the set of cascade options + * in entity relationships of the persistence unit + * entity-listeners - List of default entity listeners to be invoked + * on each entity in the persistence unit. + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getSchema <em>Schema</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCascadePersist <em>Cascade Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getEntityListeners <em>Entity Listeners</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitDefaults() + * @model extendedMetaData="name='persistence-unit-defaults' kind='elementOnly'" + * @generated + */ +public interface PersistenceUnitDefaults extends EObject { + /** + * Returns the value of the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' attribute. + * @see #setSchema(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitDefaults_Schema() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='schema' namespace='##targetNamespace'" + * @generated + */ + String getSchema(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getSchema <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' attribute. + * @see #getSchema() + * @generated + */ + void setSchema(String value); + + /** + * Returns the value of the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Catalog</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Catalog</em>' attribute. + * @see #setCatalog(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitDefaults_Catalog() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='element' name='catalog' namespace='##targetNamespace'" + * @generated + */ + String getCatalog(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCatalog <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Catalog</em>' attribute. + * @see #getCatalog() + * @generated + */ + void setCatalog(String value); + + /** + * Returns the value of the '<em><b>Access</b></em>' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.teneo.jpa.orm.AccessType}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Access</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #setAccess(AccessType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitDefaults_Access() + * @model unsettable="true" + * extendedMetaData="kind='element' name='access' namespace='##targetNamespace'" + * @generated + */ + AccessType getAccess(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Access</em>' attribute. + * @see org.eclipse.emf.teneo.jpa.orm.AccessType + * @see #isSetAccess() + * @see #unsetAccess() + * @see #getAccess() + * @generated + */ + void setAccess(AccessType value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getAccess <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + void unsetAccess(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getAccess <em>Access</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Access</em>' attribute is set. + * @see #unsetAccess() + * @see #getAccess() + * @see #setAccess(AccessType) + * @generated + */ + boolean isSetAccess(); + + /** + * Returns the value of the '<em><b>Cascade Persist</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Cascade Persist</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Cascade Persist</em>' containment reference. + * @see #setCascadePersist(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitDefaults_CascadePersist() + * @model containment="true" + * extendedMetaData="kind='element' name='cascade-persist' namespace='##targetNamespace'" + * @generated + */ + EmptyType getCascadePersist(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getCascadePersist <em>Cascade Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Cascade Persist</em>' containment reference. + * @see #getCascadePersist() + * @generated + */ + void setCascadePersist(EmptyType value); + + /** + * Returns the value of the '<em><b>Entity Listeners</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity Listeners</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity Listeners</em>' containment reference. + * @see #setEntityListeners(EntityListeners) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitDefaults_EntityListeners() + * @model containment="true" + * extendedMetaData="kind='element' name='entity-listeners' namespace='##targetNamespace'" + * @generated + */ + EntityListeners getEntityListeners(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults#getEntityListeners <em>Entity Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Entity Listeners</em>' containment reference. + * @see #getEntityListeners() + * @generated + */ + void setEntityListeners(EntityListeners value); + +} // PersistenceUnitDefaults diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PersistenceUnitMetadata.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PersistenceUnitMetadata.java new file mode 100755 index 000000000..351571853 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PersistenceUnitMetadata.java @@ -0,0 +1,96 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PersistenceUnitMetadata.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Persistence Unit Metadata</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * Metadata that applies to the persistence unit and not just to + * the mapping file in which it is contained. + * + * If the xml-mapping-metadata-complete element is specified then + * the complete set of mapping metadata for the persistence unit + * is contained in the XML mapping files for the persistence unit. + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getXmlMappingMetadataComplete <em>Xml Mapping Metadata Complete</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getPersistenceUnitDefaults <em>Persistence Unit Defaults</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitMetadata() + * @model extendedMetaData="name='persistence-unit-metadata' kind='elementOnly'" + * @generated + */ +public interface PersistenceUnitMetadata extends EObject { + /** + * Returns the value of the '<em><b>Xml Mapping Metadata Complete</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Xml Mapping Metadata Complete</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Xml Mapping Metadata Complete</em>' containment reference. + * @see #setXmlMappingMetadataComplete(EmptyType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitMetadata_XmlMappingMetadataComplete() + * @model containment="true" + * extendedMetaData="kind='element' name='xml-mapping-metadata-complete' namespace='##targetNamespace'" + * @generated + */ + EmptyType getXmlMappingMetadataComplete(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getXmlMappingMetadataComplete <em>Xml Mapping Metadata Complete</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Xml Mapping Metadata Complete</em>' containment reference. + * @see #getXmlMappingMetadataComplete() + * @generated + */ + void setXmlMappingMetadataComplete(EmptyType value); + + /** + * Returns the value of the '<em><b>Persistence Unit Defaults</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Persistence Unit Defaults</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Persistence Unit Defaults</em>' containment reference. + * @see #setPersistenceUnitDefaults(PersistenceUnitDefaults) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPersistenceUnitMetadata_PersistenceUnitDefaults() + * @model containment="true" + * extendedMetaData="kind='element' name='persistence-unit-defaults' namespace='##targetNamespace'" + * @generated + */ + PersistenceUnitDefaults getPersistenceUnitDefaults(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata#getPersistenceUnitDefaults <em>Persistence Unit Defaults</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Persistence Unit Defaults</em>' containment reference. + * @see #getPersistenceUnitDefaults() + * @generated + */ + void setPersistenceUnitDefaults(PersistenceUnitDefaults value); + +} // PersistenceUnitMetadata diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostLoad.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostLoad.java new file mode 100755 index 000000000..10e3bce65 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostLoad.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostLoad.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Post Load</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD}) @Retention(RUNTIME) + * public @interface PostLoad {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PostLoad#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostLoad() + * @model extendedMetaData="name='post-load' kind='empty'" + * @generated + */ +public interface PostLoad extends EObject { + /** + * Returns the value of the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Method Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Method Name</em>' attribute. + * @see #setMethodName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostLoad_MethodName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='method-name'" + * @generated + */ + String getMethodName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PostLoad#getMethodName <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Method Name</em>' attribute. + * @see #getMethodName() + * @generated + */ + void setMethodName(String value); + +} // PostLoad diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostPersist.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostPersist.java new file mode 100755 index 000000000..ef0548967 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostPersist.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostPersist.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Post Persist</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD}) @Retention(RUNTIME) + * public @interface PostPersist {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PostPersist#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostPersist() + * @model extendedMetaData="name='post-persist' kind='empty'" + * @generated + */ +public interface PostPersist extends EObject { + /** + * Returns the value of the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Method Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Method Name</em>' attribute. + * @see #setMethodName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostPersist_MethodName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='method-name'" + * @generated + */ + String getMethodName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PostPersist#getMethodName <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Method Name</em>' attribute. + * @see #getMethodName() + * @generated + */ + void setMethodName(String value); + +} // PostPersist diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostRemove.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostRemove.java new file mode 100755 index 000000000..2e2759c30 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostRemove.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostRemove.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Post Remove</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD}) @Retention(RUNTIME) + * public @interface PostRemove {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PostRemove#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostRemove() + * @model extendedMetaData="name='post-remove' kind='empty'" + * @generated + */ +public interface PostRemove extends EObject { + /** + * Returns the value of the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Method Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Method Name</em>' attribute. + * @see #setMethodName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostRemove_MethodName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='method-name'" + * @generated + */ + String getMethodName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PostRemove#getMethodName <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Method Name</em>' attribute. + * @see #getMethodName() + * @generated + */ + void setMethodName(String value); + +} // PostRemove diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostUpdate.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostUpdate.java new file mode 100755 index 000000000..2e3170e9d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PostUpdate.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostUpdate.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Post Update</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD}) @Retention(RUNTIME) + * public @interface PostUpdate {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PostUpdate#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostUpdate() + * @model extendedMetaData="name='post-update' kind='empty'" + * @generated + */ +public interface PostUpdate extends EObject { + /** + * Returns the value of the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Method Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Method Name</em>' attribute. + * @see #setMethodName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPostUpdate_MethodName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='method-name'" + * @generated + */ + String getMethodName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PostUpdate#getMethodName <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Method Name</em>' attribute. + * @see #getMethodName() + * @generated + */ + void setMethodName(String value); + +} // PostUpdate diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PrePersist.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PrePersist.java new file mode 100755 index 000000000..8f91387fb --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PrePersist.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PrePersist.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Pre Persist</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD}) @Retention(RUNTIME) + * public @interface PrePersist {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PrePersist#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPrePersist() + * @model extendedMetaData="name='pre-persist' kind='empty'" + * @generated + */ +public interface PrePersist extends EObject { + /** + * Returns the value of the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Method Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Method Name</em>' attribute. + * @see #setMethodName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPrePersist_MethodName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='method-name'" + * @generated + */ + String getMethodName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PrePersist#getMethodName <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Method Name</em>' attribute. + * @see #getMethodName() + * @generated + */ + void setMethodName(String value); + +} // PrePersist diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PreRemove.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PreRemove.java new file mode 100755 index 000000000..20aea3621 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PreRemove.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PreRemove.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Pre Remove</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD}) @Retention(RUNTIME) + * public @interface PreRemove {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PreRemove#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPreRemove() + * @model extendedMetaData="name='pre-remove' kind='empty'" + * @generated + */ +public interface PreRemove extends EObject { + /** + * Returns the value of the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Method Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Method Name</em>' attribute. + * @see #setMethodName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPreRemove_MethodName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='method-name'" + * @generated + */ + String getMethodName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PreRemove#getMethodName <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Method Name</em>' attribute. + * @see #getMethodName() + * @generated + */ + void setMethodName(String value); + +} // PreRemove diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PreUpdate.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PreUpdate.java new file mode 100755 index 000000000..58bab94bc --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PreUpdate.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PreUpdate.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Pre Update</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD}) @Retention(RUNTIME) + * public @interface PreUpdate {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PreUpdate#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPreUpdate() + * @model extendedMetaData="name='pre-update' kind='empty'" + * @generated + */ +public interface PreUpdate extends EObject { + /** + * Returns the value of the '<em><b>Method Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Method Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Method Name</em>' attribute. + * @see #setMethodName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPreUpdate_MethodName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='method-name'" + * @generated + */ + String getMethodName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PreUpdate#getMethodName <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Method Name</em>' attribute. + * @see #getMethodName() + * @generated + */ + void setMethodName(String value); + +} // PreUpdate diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PrimaryKeyJoinColumn.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PrimaryKeyJoinColumn.java new file mode 100755 index 000000000..ce7f60a97 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/PrimaryKeyJoinColumn.java @@ -0,0 +1,124 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PrimaryKeyJoinColumn.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Primary Key Join Column</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) + * public @interface PrimaryKeyJoinColumn { + * String name() default ""; + * String referencedColumnName() default ""; + * String columnDefinition() default ""; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getReferencedColumnName <em>Referenced Column Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPrimaryKeyJoinColumn() + * @model extendedMetaData="name='primary-key-join-column' kind='empty'" + * @generated + */ +public interface PrimaryKeyJoinColumn extends EObject { + /** + * Returns the value of the '<em><b>Column Definition</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column Definition</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column Definition</em>' attribute. + * @see #setColumnDefinition(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPrimaryKeyJoinColumn_ColumnDefinition() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='column-definition'" + * @generated + */ + String getColumnDefinition(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getColumnDefinition <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column Definition</em>' attribute. + * @see #getColumnDefinition() + * @generated + */ + void setColumnDefinition(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPrimaryKeyJoinColumn_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Referenced Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Referenced Column Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Referenced Column Name</em>' attribute. + * @see #setReferencedColumnName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getPrimaryKeyJoinColumn_ReferencedColumnName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='referenced-column-name'" + * @generated + */ + String getReferencedColumnName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn#getReferencedColumnName <em>Referenced Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Referenced Column Name</em>' attribute. + * @see #getReferencedColumnName() + * @generated + */ + void setReferencedColumnName(String value); + +} // PrimaryKeyJoinColumn diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/QueryHint.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/QueryHint.java new file mode 100755 index 000000000..356af088b --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/QueryHint.java @@ -0,0 +1,95 @@ +/** + * <copyright> + * </copyright> + * + * $Id: QueryHint.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Query Hint</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({}) @Retention(RUNTIME) + * public @interface QueryHint { + * String name(); + * String value(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.QueryHint#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.QueryHint#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getQueryHint() + * @model extendedMetaData="name='query-hint' kind='empty'" + * @generated + */ +public interface QueryHint extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getQueryHint_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.QueryHint#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value</em>' attribute. + * @see #setValue(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getQueryHint_Value() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='value'" + * @generated + */ + String getValue(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.QueryHint#getValue <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value</em>' attribute. + * @see #getValue() + * @generated + */ + void setValue(String value); + +} // QueryHint diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SecondaryTable.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SecondaryTable.java new file mode 100755 index 000000000..ca39c2f21 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SecondaryTable.java @@ -0,0 +1,164 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SecondaryTable.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Secondary Table</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface SecondaryTable { + * String name(); + * String catalog() default ""; + * String schema() default ""; + * PrimaryKeyJoinColumn[] pkJoinColumns() default {}; + * UniqueConstraint[] uniqueConstraints() default {}; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getSchema <em>Schema</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSecondaryTable() + * @model extendedMetaData="name='secondary-table' kind='elementOnly'" + * @generated + */ +public interface SecondaryTable extends EObject { + /** + * Returns the value of the '<em><b>Primary Key Join Column</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Primary Key Join Column</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Primary Key Join Column</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSecondaryTable_PrimaryKeyJoinColumn() + * @model containment="true" + * extendedMetaData="kind='element' name='primary-key-join-column' namespace='##targetNamespace'" + * @generated + */ + EList<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn(); + + /** + * Returns the value of the '<em><b>Unique Constraint</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unique Constraint</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unique Constraint</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSecondaryTable_UniqueConstraint() + * @model containment="true" + * extendedMetaData="kind='element' name='unique-constraint' namespace='##targetNamespace'" + * @generated + */ + EList<UniqueConstraint> getUniqueConstraint(); + + /** + * Returns the value of the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Catalog</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Catalog</em>' attribute. + * @see #setCatalog(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSecondaryTable_Catalog() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='catalog'" + * @generated + */ + String getCatalog(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getCatalog <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Catalog</em>' attribute. + * @see #getCatalog() + * @generated + */ + void setCatalog(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSecondaryTable_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' attribute. + * @see #setSchema(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSecondaryTable_Schema() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='schema'" + * @generated + */ + String getSchema(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable#getSchema <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' attribute. + * @see #getSchema() + * @generated + */ + void setSchema(String value); + +} // SecondaryTable diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SequenceGenerator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SequenceGenerator.java new file mode 100755 index 000000000..040e3bde6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SequenceGenerator.java @@ -0,0 +1,207 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SequenceGenerator.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Sequence Generator</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) + * public @interface SequenceGenerator { + * String name(); + * String sequenceName() default ""; + * int initialValue() default 1; + * int allocationSize() default 50; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getAllocationSize <em>Allocation Size</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getInitialValue <em>Initial Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getSequenceName <em>Sequence Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSequenceGenerator() + * @model extendedMetaData="name='sequence-generator' kind='empty'" + * @generated + */ +public interface SequenceGenerator extends EObject { + /** + * Returns the value of the '<em><b>Allocation Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Allocation Size</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Allocation Size</em>' attribute. + * @see #isSetAllocationSize() + * @see #unsetAllocationSize() + * @see #setAllocationSize(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSequenceGenerator_AllocationSize() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='allocation-size'" + * @generated + */ + int getAllocationSize(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getAllocationSize <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Allocation Size</em>' attribute. + * @see #isSetAllocationSize() + * @see #unsetAllocationSize() + * @see #getAllocationSize() + * @generated + */ + void setAllocationSize(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getAllocationSize <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetAllocationSize() + * @see #getAllocationSize() + * @see #setAllocationSize(int) + * @generated + */ + void unsetAllocationSize(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getAllocationSize <em>Allocation Size</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Allocation Size</em>' attribute is set. + * @see #unsetAllocationSize() + * @see #getAllocationSize() + * @see #setAllocationSize(int) + * @generated + */ + boolean isSetAllocationSize(); + + /** + * Returns the value of the '<em><b>Initial Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Initial Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Initial Value</em>' attribute. + * @see #isSetInitialValue() + * @see #unsetInitialValue() + * @see #setInitialValue(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSequenceGenerator_InitialValue() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='initial-value'" + * @generated + */ + int getInitialValue(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getInitialValue <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Initial Value</em>' attribute. + * @see #isSetInitialValue() + * @see #unsetInitialValue() + * @see #getInitialValue() + * @generated + */ + void setInitialValue(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getInitialValue <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetInitialValue() + * @see #getInitialValue() + * @see #setInitialValue(int) + * @generated + */ + void unsetInitialValue(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getInitialValue <em>Initial Value</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Initial Value</em>' attribute is set. + * @see #unsetInitialValue() + * @see #getInitialValue() + * @see #setInitialValue(int) + * @generated + */ + boolean isSetInitialValue(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSequenceGenerator_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Sequence Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Sequence Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Sequence Name</em>' attribute. + * @see #setSequenceName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSequenceGenerator_SequenceName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='sequence-name'" + * @generated + */ + String getSequenceName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator#getSequenceName <em>Sequence Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Sequence Name</em>' attribute. + * @see #getSequenceName() + * @generated + */ + void setSequenceName(String value); + +} // SequenceGenerator diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SqlResultSetMapping.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SqlResultSetMapping.java new file mode 100755 index 000000000..46c03cf9e --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/SqlResultSetMapping.java @@ -0,0 +1,106 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SqlResultSetMapping.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Sql Result Set Mapping</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface SqlResultSetMapping { + * String name(); + * EntityResult[] entities() default {}; + * ColumnResult[] columns() default {}; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getEntityResult <em>Entity Result</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getColumnResult <em>Column Result</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSqlResultSetMapping() + * @model extendedMetaData="name='sql-result-set-mapping' kind='elementOnly'" + * @generated + */ +public interface SqlResultSetMapping extends EObject { + /** + * Returns the value of the '<em><b>Entity Result</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.EntityResult}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Entity Result</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Entity Result</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSqlResultSetMapping_EntityResult() + * @model containment="true" + * extendedMetaData="kind='element' name='entity-result' namespace='##targetNamespace'" + * @generated + */ + EList<EntityResult> getEntityResult(); + + /** + * Returns the value of the '<em><b>Column Result</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.ColumnResult}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column Result</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column Result</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSqlResultSetMapping_ColumnResult() + * @model containment="true" + * extendedMetaData="kind='element' name='column-result' namespace='##targetNamespace'" + * @generated + */ + EList<ColumnResult> getColumnResult(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getSqlResultSetMapping_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // SqlResultSetMapping diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Table.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Table.java new file mode 100755 index 000000000..70dc86eaf --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Table.java @@ -0,0 +1,146 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Table.java,v 1.2 2009/03/23 19:01:40 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Table</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE}) @Retention(RUNTIME) + * public @interface Table { + * String name() default ""; + * String catalog() default ""; + * String schema() default ""; + * UniqueConstraint[] uniqueConstraints() default {}; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Table#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Table#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Table#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Table#getSchema <em>Schema</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTable() + * @model extendedMetaData="name='table' kind='elementOnly'" + * @generated + */ +public interface Table extends EObject { + /** + * Returns the value of the '<em><b>Unique Constraint</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unique Constraint</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unique Constraint</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTable_UniqueConstraint() + * @model containment="true" + * extendedMetaData="kind='element' name='unique-constraint' namespace='##targetNamespace'" + * @generated + */ + EList<UniqueConstraint> getUniqueConstraint(); + + /** + * Returns the value of the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Catalog</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Catalog</em>' attribute. + * @see #setCatalog(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTable_Catalog() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='catalog'" + * @generated + */ + String getCatalog(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Table#getCatalog <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Catalog</em>' attribute. + * @see #getCatalog() + * @generated + */ + void setCatalog(String value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTable_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='name'" + * annotation="teneo.escape value='true'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Table#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' attribute. + * @see #setSchema(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTable_Schema() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='schema'" + * @generated + */ + String getSchema(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Table#getSchema <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' attribute. + * @see #getSchema() + * @generated + */ + void setSchema(String value); + +} // Table diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/TableGenerator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/TableGenerator.java new file mode 100755 index 000000000..18ff2cdae --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/TableGenerator.java @@ -0,0 +1,373 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TableGenerator.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Table Generator</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) + * public @interface TableGenerator { + * String name(); + * String table() default ""; + * String catalog() default ""; + * String schema() default ""; + * String pkColumnName() default ""; + * String valueColumnName() default ""; + * String pkColumnValue() default ""; + * int initialValue() default 0; + * int allocationSize() default 50; + * UniqueConstraint[] uniqueConstraints() default {}; + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getInitialValue <em>Initial Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnName <em>Pk Column Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnValue <em>Pk Column Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getSchema <em>Schema</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getValueColumnName <em>Value Column Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator() + * @model extendedMetaData="name='table-generator' kind='elementOnly'" + * @generated + */ +public interface TableGenerator extends EObject { + /** + * Returns the value of the '<em><b>Unique Constraint</b></em>' containment reference list. + * The list contents are of type {@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Unique Constraint</em>' containment reference list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Unique Constraint</em>' containment reference list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_UniqueConstraint() + * @model containment="true" + * extendedMetaData="kind='element' name='unique-constraint' namespace='##targetNamespace'" + * @generated + */ + EList<UniqueConstraint> getUniqueConstraint(); + + /** + * Returns the value of the '<em><b>Allocation Size</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Allocation Size</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Allocation Size</em>' attribute. + * @see #isSetAllocationSize() + * @see #unsetAllocationSize() + * @see #setAllocationSize(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_AllocationSize() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='allocation-size'" + * @generated + */ + int getAllocationSize(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Allocation Size</em>' attribute. + * @see #isSetAllocationSize() + * @see #unsetAllocationSize() + * @see #getAllocationSize() + * @generated + */ + void setAllocationSize(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetAllocationSize() + * @see #getAllocationSize() + * @see #setAllocationSize(int) + * @generated + */ + void unsetAllocationSize(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getAllocationSize <em>Allocation Size</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Allocation Size</em>' attribute is set. + * @see #unsetAllocationSize() + * @see #getAllocationSize() + * @see #setAllocationSize(int) + * @generated + */ + boolean isSetAllocationSize(); + + /** + * Returns the value of the '<em><b>Catalog</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Catalog</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Catalog</em>' attribute. + * @see #setCatalog(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_Catalog() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='catalog'" + * @generated + */ + String getCatalog(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getCatalog <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Catalog</em>' attribute. + * @see #getCatalog() + * @generated + */ + void setCatalog(String value); + + /** + * Returns the value of the '<em><b>Initial Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Initial Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Initial Value</em>' attribute. + * @see #isSetInitialValue() + * @see #unsetInitialValue() + * @see #setInitialValue(int) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_InitialValue() + * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int" + * extendedMetaData="kind='attribute' name='initial-value'" + * @generated + */ + int getInitialValue(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getInitialValue <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Initial Value</em>' attribute. + * @see #isSetInitialValue() + * @see #unsetInitialValue() + * @see #getInitialValue() + * @generated + */ + void setInitialValue(int value); + + /** + * Unsets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getInitialValue <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isSetInitialValue() + * @see #getInitialValue() + * @see #setInitialValue(int) + * @generated + */ + void unsetInitialValue(); + + /** + * Returns whether the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getInitialValue <em>Initial Value</em>}' attribute is set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return whether the value of the '<em>Initial Value</em>' attribute is set. + * @see #unsetInitialValue() + * @see #getInitialValue() + * @see #setInitialValue(int) + * @generated + */ + boolean isSetInitialValue(); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + + /** + * Returns the value of the '<em><b>Pk Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pk Column Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pk Column Name</em>' attribute. + * @see #setPkColumnName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_PkColumnName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='pk-column-name'" + * @generated + */ + String getPkColumnName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnName <em>Pk Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pk Column Name</em>' attribute. + * @see #getPkColumnName() + * @generated + */ + void setPkColumnName(String value); + + /** + * Returns the value of the '<em><b>Pk Column Value</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Pk Column Value</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Pk Column Value</em>' attribute. + * @see #setPkColumnValue(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_PkColumnValue() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='pk-column-value'" + * @generated + */ + String getPkColumnValue(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getPkColumnValue <em>Pk Column Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Pk Column Value</em>' attribute. + * @see #getPkColumnValue() + * @generated + */ + void setPkColumnValue(String value); + + /** + * Returns the value of the '<em><b>Schema</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Schema</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Schema</em>' attribute. + * @see #setSchema(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_Schema() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='schema'" + * @generated + */ + String getSchema(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getSchema <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Schema</em>' attribute. + * @see #getSchema() + * @generated + */ + void setSchema(String value); + + /** + * Returns the value of the '<em><b>Table</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Table</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Table</em>' attribute. + * @see #setTable(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_Table() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='table'" + * @generated + */ + String getTable(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getTable <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Table</em>' attribute. + * @see #getTable() + * @generated + */ + void setTable(String value); + + /** + * Returns the value of the '<em><b>Value Column Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Value Column Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Value Column Name</em>' attribute. + * @see #setValueColumnName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTableGenerator_ValueColumnName() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" + * extendedMetaData="kind='attribute' name='value-column-name'" + * @generated + */ + String getValueColumnName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator#getValueColumnName <em>Value Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Value Column Name</em>' attribute. + * @see #getValueColumnName() + * @generated + */ + void setValueColumnName(String value); + +} // TableGenerator diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/TemporalType.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/TemporalType.java new file mode 100755 index 000000000..206544834 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/TemporalType.java @@ -0,0 +1,250 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TemporalType.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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>Temporal Type</b></em>', + * and utility methods for working with them. + * <!-- end-user-doc --> + * <!-- begin-model-doc --> + * + * + * public enum TemporalType { + * DATE, // java.sql.Date + * TIME, // java.sql.Time + * TIMESTAMP // java.sql.Timestamp + * } + * + * + * <!-- end-model-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTemporalType() + * @model extendedMetaData="name='temporal-type'" + * @generated + */ +public enum TemporalType implements Enumerator { + /** + * The '<em><b>DATE</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #DATE_VALUE + * @generated + * @ordered + */ + DATE(0, "DATE", "DATE"), + + /** + * The '<em><b>TIME</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #TIME_VALUE + * @generated + * @ordered + */ + TIME(1, "TIME", "TIME"), + + /** + * The '<em><b>TIMESTAMP</b></em>' literal object. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #TIMESTAMP_VALUE + * @generated + * @ordered + */ + TIMESTAMP(2, "TIMESTAMP", "TIMESTAMP"); + + /** + * The '<em><b>DATE</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>DATE</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #DATE + * @model + * @generated + * @ordered + */ + public static final int DATE_VALUE = 0; + + /** + * The '<em><b>TIME</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>TIME</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #TIME + * @model + * @generated + * @ordered + */ + public static final int TIME_VALUE = 1; + + /** + * The '<em><b>TIMESTAMP</b></em>' literal value. + * <!-- begin-user-doc --> + * <p> + * If the meaning of '<em><b>TIMESTAMP</b></em>' literal object isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @see #TIMESTAMP + * @model + * @generated + * @ordered + */ + public static final int TIMESTAMP_VALUE = 2; + + /** + * An array of all the '<em><b>Temporal Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final TemporalType[] VALUES_ARRAY = + new TemporalType[] { + DATE, + TIME, + TIMESTAMP, + }; + + /** + * A public read-only list of all the '<em><b>Temporal Type</b></em>' enumerators. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final List<TemporalType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the '<em><b>Temporal Type</b></em>' literal with the specified literal value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static TemporalType get(String literal) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TemporalType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Temporal Type</b></em>' literal with the specified name. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static TemporalType getByName(String name) { + for (int i = 0; i < VALUES_ARRAY.length; ++i) { + TemporalType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) { + return result; + } + } + return null; + } + + /** + * Returns the '<em><b>Temporal Type</b></em>' literal with the specified integer value. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static TemporalType get(int value) { + switch (value) { + case DATE_VALUE: return DATE; + case TIME_VALUE: return TIME; + case TIMESTAMP_VALUE: return TIMESTAMP; + } + 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 TemporalType(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; + } + +} //TemporalType diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Transient.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Transient.java new file mode 100755 index 000000000..55c065297 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Transient.java @@ -0,0 +1,64 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Transient.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Transient</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface Transient {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Transient#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTransient() + * @model extendedMetaData="name='transient' kind='empty'" + * @generated + */ +public interface Transient extends EObject { + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getTransient_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Transient#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // Transient diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/UniqueConstraint.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/UniqueConstraint.java new file mode 100755 index 000000000..44d94f92c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/UniqueConstraint.java @@ -0,0 +1,59 @@ +/** + * <copyright> + * </copyright> + * + * $Id: UniqueConstraint.java,v 1.2 2009/03/23 19:01:40 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Unique Constraint</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({}) @Retention(RUNTIME) + * public @interface UniqueConstraint { + * String[] columnNames(); + * } + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint#getColumnName <em>Column Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getUniqueConstraint() + * @model extendedMetaData="name='unique-constraint' kind='elementOnly'" + * @generated + */ +public interface UniqueConstraint extends EObject { + /** + * Returns the value of the '<em><b>Column Name</b></em>' attribute list. + * The list contents are of type {@link java.lang.String}. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column Name</em>' attribute list isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column Name</em>' attribute list. + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getUniqueConstraint_ColumnName() + * @model unique="false" dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='element' name='column-name' namespace='##targetNamespace'" + * annotation="teneo.escape value='true'" + * @generated + */ + EList<String> getColumnName(); + +} // UniqueConstraint diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Version.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Version.java new file mode 100755 index 000000000..5112533c3 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/Version.java @@ -0,0 +1,120 @@ +/** + * <copyright> + * </copyright> + * + * $Id: Version.java,v 1.1 2009/03/15 23:45:00 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm; + +import org.eclipse.emf.ecore.EObject; + +/** + * <!-- begin-user-doc --> + * A representation of the model object '<em><b>Version</b></em>'. + * <!-- end-user-doc --> + * + * <!-- begin-model-doc --> + * + * + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface Version {} + * + * + * <!-- end-model-doc --> + * + * <p> + * The following features are supported: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Version#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Version#getTemporal <em>Temporal</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.Version#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getVersion() + * @model extendedMetaData="name='version' kind='elementOnly'" + * @generated + */ +public interface Version extends EObject { + /** + * Returns the value of the '<em><b>Column</b></em>' containment reference. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Column</em>' containment reference isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Column</em>' containment reference. + * @see #setColumn(Column) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getVersion_Column() + * @model containment="true" + * extendedMetaData="kind='element' name='column' namespace='##targetNamespace'" + * @generated + */ + Column getColumn(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Version#getColumn <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Column</em>' containment reference. + * @see #getColumn() + * @generated + */ + void setColumn(Column value); + + /** + * Returns the value of the '<em><b>Temporal</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Temporal</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Temporal</em>' attribute. + * @see #setTemporal(TemporalType) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getVersion_Temporal() + * @model dataType="org.eclipse.emf.teneo.jpa.orm.Temporal" + * extendedMetaData="kind='element' name='temporal' namespace='##targetNamespace'" + * @generated + */ + TemporalType getTemporal(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Version#getTemporal <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Temporal</em>' attribute. + * @see #getTemporal() + * @generated + */ + void setTemporal(TemporalType value); + + /** + * Returns the value of the '<em><b>Name</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Name</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Name</em>' attribute. + * @see #setName(String) + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#getVersion_Name() + * @model dataType="org.eclipse.emf.ecore.xml.type.String" required="true" + * extendedMetaData="kind='attribute' name='name'" + * @generated + */ + String getName(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.jpa.orm.Version#getName <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Name</em>' attribute. + * @see #getName() + * @generated + */ + void setName(String value); + +} // Version diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AssociationOverrideImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AssociationOverrideImpl.java new file mode 100755 index 000000000..068ddd2ff --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AssociationOverrideImpl.java @@ -0,0 +1,226 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AssociationOverrideImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.AssociationOverride; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Association Override</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AssociationOverrideImpl#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AssociationOverrideImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AssociationOverrideImpl extends EObjectImpl implements AssociationOverride { + /** + * The cached value of the '{@link #getJoinColumn() <em>Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinColumn() + * @generated + * @ordered + */ + protected EList<JoinColumn> joinColumn; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AssociationOverrideImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ASSOCIATION_OVERRIDE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<JoinColumn> getJoinColumn() { + if (joinColumn == null) { + joinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this, OrmPackage.ASSOCIATION_OVERRIDE__JOIN_COLUMN); + } + return joinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ASSOCIATION_OVERRIDE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ASSOCIATION_OVERRIDE__JOIN_COLUMN: + return ((InternalEList<?>)getJoinColumn()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ASSOCIATION_OVERRIDE__JOIN_COLUMN: + return getJoinColumn(); + case OrmPackage.ASSOCIATION_OVERRIDE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ASSOCIATION_OVERRIDE__JOIN_COLUMN: + getJoinColumn().clear(); + getJoinColumn().addAll((Collection<? extends JoinColumn>)newValue); + return; + case OrmPackage.ASSOCIATION_OVERRIDE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ASSOCIATION_OVERRIDE__JOIN_COLUMN: + getJoinColumn().clear(); + return; + case OrmPackage.ASSOCIATION_OVERRIDE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ASSOCIATION_OVERRIDE__JOIN_COLUMN: + return joinColumn != null && !joinColumn.isEmpty(); + case OrmPackage.ASSOCIATION_OVERRIDE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //AssociationOverrideImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AttributeOverrideImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AttributeOverrideImpl.java new file mode 100755 index 000000000..5b674e7d2 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AttributeOverrideImpl.java @@ -0,0 +1,248 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AttributeOverrideImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Attribute Override</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributeOverrideImpl#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributeOverrideImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AttributeOverrideImpl extends EObjectImpl implements AttributeOverride { + /** + * The cached value of the '{@link #getColumn() <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumn() + * @generated + * @ordered + */ + protected Column column; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AttributeOverrideImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ATTRIBUTE_OVERRIDE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Column getColumn() { + return column; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetColumn(Column newColumn, NotificationChain msgs) { + Column oldColumn = column; + column = newColumn; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN, oldColumn, newColumn); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumn(Column newColumn) { + if (newColumn != column) { + NotificationChain msgs = null; + if (column != null) + msgs = ((InternalEObject)column).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN, null, msgs); + if (newColumn != null) + msgs = ((InternalEObject)newColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN, null, msgs); + msgs = basicSetColumn(newColumn, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN, newColumn, newColumn)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ATTRIBUTE_OVERRIDE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN: + return basicSetColumn(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN: + return getColumn(); + case OrmPackage.ATTRIBUTE_OVERRIDE__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN: + setColumn((Column)newValue); + return; + case OrmPackage.ATTRIBUTE_OVERRIDE__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN: + setColumn((Column)null); + return; + case OrmPackage.ATTRIBUTE_OVERRIDE__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ATTRIBUTE_OVERRIDE__COLUMN: + return column != null; + case OrmPackage.ATTRIBUTE_OVERRIDE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //AttributeOverrideImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AttributesImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AttributesImpl.java new file mode 100755 index 000000000..2cefb50e6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/AttributesImpl.java @@ -0,0 +1,521 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AttributesImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.Attributes; +import org.eclipse.emf.teneo.jpa.orm.Basic; +import org.eclipse.emf.teneo.jpa.orm.Embedded; +import org.eclipse.emf.teneo.jpa.orm.EmbeddedId; +import org.eclipse.emf.teneo.jpa.orm.Id; +import org.eclipse.emf.teneo.jpa.orm.ManyToMany; +import org.eclipse.emf.teneo.jpa.orm.ManyToOne; +import org.eclipse.emf.teneo.jpa.orm.OneToMany; +import org.eclipse.emf.teneo.jpa.orm.OneToOne; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.Transient; +import org.eclipse.emf.teneo.jpa.orm.Version; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Attributes</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getEmbeddedId <em>Embedded Id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getBasic <em>Basic</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getVersion <em>Version</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getManyToOne <em>Many To One</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getOneToMany <em>One To Many</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getOneToOne <em>One To One</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getManyToMany <em>Many To Many</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getEmbedded <em>Embedded</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.AttributesImpl#getTransient <em>Transient</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class AttributesImpl extends EObjectImpl implements Attributes { + /** + * The cached value of the '{@link #getId() <em>Id</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getId() + * @generated + * @ordered + */ + protected EList<Id> id; + + /** + * The cached value of the '{@link #getEmbeddedId() <em>Embedded Id</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEmbeddedId() + * @generated + * @ordered + */ + protected EmbeddedId embeddedId; + + /** + * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBasic() + * @generated + * @ordered + */ + protected EList<Basic> basic; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected EList<Version> version; + + /** + * The cached value of the '{@link #getManyToOne() <em>Many To One</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManyToOne() + * @generated + * @ordered + */ + protected EList<ManyToOne> manyToOne; + + /** + * The cached value of the '{@link #getOneToMany() <em>One To Many</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOneToMany() + * @generated + * @ordered + */ + protected EList<OneToMany> oneToMany; + + /** + * The cached value of the '{@link #getOneToOne() <em>One To One</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOneToOne() + * @generated + * @ordered + */ + protected EList<OneToOne> oneToOne; + + /** + * The cached value of the '{@link #getManyToMany() <em>Many To Many</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getManyToMany() + * @generated + * @ordered + */ + protected EList<ManyToMany> manyToMany; + + /** + * The cached value of the '{@link #getEmbedded() <em>Embedded</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEmbedded() + * @generated + * @ordered + */ + protected EList<Embedded> embedded; + + /** + * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTransient() + * @generated + * @ordered + */ + protected EList<Transient> transient_; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected AttributesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ATTRIBUTES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Id> getId() { + if (id == null) { + id = new EObjectContainmentEList<Id>(Id.class, this, OrmPackage.ATTRIBUTES__ID); + } + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmbeddedId getEmbeddedId() { + return embeddedId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetEmbeddedId(EmbeddedId newEmbeddedId, NotificationChain msgs) { + EmbeddedId oldEmbeddedId = embeddedId; + embeddedId = newEmbeddedId; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ATTRIBUTES__EMBEDDED_ID, oldEmbeddedId, newEmbeddedId); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEmbeddedId(EmbeddedId newEmbeddedId) { + if (newEmbeddedId != embeddedId) { + NotificationChain msgs = null; + if (embeddedId != null) + msgs = ((InternalEObject)embeddedId).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ATTRIBUTES__EMBEDDED_ID, null, msgs); + if (newEmbeddedId != null) + msgs = ((InternalEObject)newEmbeddedId).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ATTRIBUTES__EMBEDDED_ID, null, msgs); + msgs = basicSetEmbeddedId(newEmbeddedId, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ATTRIBUTES__EMBEDDED_ID, newEmbeddedId, newEmbeddedId)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Basic> getBasic() { + if (basic == null) { + basic = new EObjectContainmentEList<Basic>(Basic.class, this, OrmPackage.ATTRIBUTES__BASIC); + } + return basic; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Version> getVersion() { + if (version == null) { + version = new EObjectContainmentEList<Version>(Version.class, this, OrmPackage.ATTRIBUTES__VERSION); + } + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ManyToOne> getManyToOne() { + if (manyToOne == null) { + manyToOne = new EObjectContainmentEList<ManyToOne>(ManyToOne.class, this, OrmPackage.ATTRIBUTES__MANY_TO_ONE); + } + return manyToOne; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<OneToMany> getOneToMany() { + if (oneToMany == null) { + oneToMany = new EObjectContainmentEList<OneToMany>(OneToMany.class, this, OrmPackage.ATTRIBUTES__ONE_TO_MANY); + } + return oneToMany; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<OneToOne> getOneToOne() { + if (oneToOne == null) { + oneToOne = new EObjectContainmentEList<OneToOne>(OneToOne.class, this, OrmPackage.ATTRIBUTES__ONE_TO_ONE); + } + return oneToOne; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ManyToMany> getManyToMany() { + if (manyToMany == null) { + manyToMany = new EObjectContainmentEList<ManyToMany>(ManyToMany.class, this, OrmPackage.ATTRIBUTES__MANY_TO_MANY); + } + return manyToMany; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Embedded> getEmbedded() { + if (embedded == null) { + embedded = new EObjectContainmentEList<Embedded>(Embedded.class, this, OrmPackage.ATTRIBUTES__EMBEDDED); + } + return embedded; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Transient> getTransient() { + if (transient_ == null) { + transient_ = new EObjectContainmentEList<Transient>(Transient.class, this, OrmPackage.ATTRIBUTES__TRANSIENT); + } + return transient_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ATTRIBUTES__ID: + return ((InternalEList<?>)getId()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__EMBEDDED_ID: + return basicSetEmbeddedId(null, msgs); + case OrmPackage.ATTRIBUTES__BASIC: + return ((InternalEList<?>)getBasic()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__VERSION: + return ((InternalEList<?>)getVersion()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__MANY_TO_ONE: + return ((InternalEList<?>)getManyToOne()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__ONE_TO_MANY: + return ((InternalEList<?>)getOneToMany()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__ONE_TO_ONE: + return ((InternalEList<?>)getOneToOne()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__MANY_TO_MANY: + return ((InternalEList<?>)getManyToMany()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__EMBEDDED: + return ((InternalEList<?>)getEmbedded()).basicRemove(otherEnd, msgs); + case OrmPackage.ATTRIBUTES__TRANSIENT: + return ((InternalEList<?>)getTransient()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ATTRIBUTES__ID: + return getId(); + case OrmPackage.ATTRIBUTES__EMBEDDED_ID: + return getEmbeddedId(); + case OrmPackage.ATTRIBUTES__BASIC: + return getBasic(); + case OrmPackage.ATTRIBUTES__VERSION: + return getVersion(); + case OrmPackage.ATTRIBUTES__MANY_TO_ONE: + return getManyToOne(); + case OrmPackage.ATTRIBUTES__ONE_TO_MANY: + return getOneToMany(); + case OrmPackage.ATTRIBUTES__ONE_TO_ONE: + return getOneToOne(); + case OrmPackage.ATTRIBUTES__MANY_TO_MANY: + return getManyToMany(); + case OrmPackage.ATTRIBUTES__EMBEDDED: + return getEmbedded(); + case OrmPackage.ATTRIBUTES__TRANSIENT: + return getTransient(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ATTRIBUTES__ID: + getId().clear(); + getId().addAll((Collection<? extends Id>)newValue); + return; + case OrmPackage.ATTRIBUTES__EMBEDDED_ID: + setEmbeddedId((EmbeddedId)newValue); + return; + case OrmPackage.ATTRIBUTES__BASIC: + getBasic().clear(); + getBasic().addAll((Collection<? extends Basic>)newValue); + return; + case OrmPackage.ATTRIBUTES__VERSION: + getVersion().clear(); + getVersion().addAll((Collection<? extends Version>)newValue); + return; + case OrmPackage.ATTRIBUTES__MANY_TO_ONE: + getManyToOne().clear(); + getManyToOne().addAll((Collection<? extends ManyToOne>)newValue); + return; + case OrmPackage.ATTRIBUTES__ONE_TO_MANY: + getOneToMany().clear(); + getOneToMany().addAll((Collection<? extends OneToMany>)newValue); + return; + case OrmPackage.ATTRIBUTES__ONE_TO_ONE: + getOneToOne().clear(); + getOneToOne().addAll((Collection<? extends OneToOne>)newValue); + return; + case OrmPackage.ATTRIBUTES__MANY_TO_MANY: + getManyToMany().clear(); + getManyToMany().addAll((Collection<? extends ManyToMany>)newValue); + return; + case OrmPackage.ATTRIBUTES__EMBEDDED: + getEmbedded().clear(); + getEmbedded().addAll((Collection<? extends Embedded>)newValue); + return; + case OrmPackage.ATTRIBUTES__TRANSIENT: + getTransient().clear(); + getTransient().addAll((Collection<? extends Transient>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ATTRIBUTES__ID: + getId().clear(); + return; + case OrmPackage.ATTRIBUTES__EMBEDDED_ID: + setEmbeddedId((EmbeddedId)null); + return; + case OrmPackage.ATTRIBUTES__BASIC: + getBasic().clear(); + return; + case OrmPackage.ATTRIBUTES__VERSION: + getVersion().clear(); + return; + case OrmPackage.ATTRIBUTES__MANY_TO_ONE: + getManyToOne().clear(); + return; + case OrmPackage.ATTRIBUTES__ONE_TO_MANY: + getOneToMany().clear(); + return; + case OrmPackage.ATTRIBUTES__ONE_TO_ONE: + getOneToOne().clear(); + return; + case OrmPackage.ATTRIBUTES__MANY_TO_MANY: + getManyToMany().clear(); + return; + case OrmPackage.ATTRIBUTES__EMBEDDED: + getEmbedded().clear(); + return; + case OrmPackage.ATTRIBUTES__TRANSIENT: + getTransient().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ATTRIBUTES__ID: + return id != null && !id.isEmpty(); + case OrmPackage.ATTRIBUTES__EMBEDDED_ID: + return embeddedId != null; + case OrmPackage.ATTRIBUTES__BASIC: + return basic != null && !basic.isEmpty(); + case OrmPackage.ATTRIBUTES__VERSION: + return version != null && !version.isEmpty(); + case OrmPackage.ATTRIBUTES__MANY_TO_ONE: + return manyToOne != null && !manyToOne.isEmpty(); + case OrmPackage.ATTRIBUTES__ONE_TO_MANY: + return oneToMany != null && !oneToMany.isEmpty(); + case OrmPackage.ATTRIBUTES__ONE_TO_ONE: + return oneToOne != null && !oneToOne.isEmpty(); + case OrmPackage.ATTRIBUTES__MANY_TO_MANY: + return manyToMany != null && !manyToMany.isEmpty(); + case OrmPackage.ATTRIBUTES__EMBEDDED: + return embedded != null && !embedded.isEmpty(); + case OrmPackage.ATTRIBUTES__TRANSIENT: + return transient_ != null && !transient_.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //AttributesImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/BasicImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/BasicImpl.java new file mode 100755 index 000000000..7a50e0423 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/BasicImpl.java @@ -0,0 +1,602 @@ +/** + * <copyright> + * </copyright> + * + * $Id: BasicImpl.java,v 1.2 2009/07/23 11:16:30 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.Basic; +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.EnumType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.Lob; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.TemporalType; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Basic</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl#getLob <em>Lob</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl#getTemporal <em>Temporal</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl#getEnumerated <em>Enumerated</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.BasicImpl#isOptional <em>Optional</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class BasicImpl extends EObjectImpl implements Basic { + /** + * The cached value of the '{@link #getColumn() <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumn() + * @generated + * @ordered + */ + protected Column column; + + /** + * The cached value of the '{@link #getLob() <em>Lob</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLob() + * @generated + * @ordered + */ + protected Lob lob; + + /** + * The default value of the '{@link #getTemporal() <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemporal() + * @generated + * @ordered + */ + protected static final TemporalType TEMPORAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTemporal() <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemporal() + * @generated + * @ordered + */ + protected TemporalType temporal = TEMPORAL_EDEFAULT; + + /** + * The default value of the '{@link #getEnumerated() <em>Enumerated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnumerated() + * @generated + * @ordered + */ + protected static final EnumType ENUMERATED_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEnumerated() <em>Enumerated</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEnumerated() + * @generated + * @ordered + */ + protected EnumType enumerated = ENUMERATED_EDEFAULT; + + /** + * The default value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected static final FetchType FETCH_EDEFAULT = FetchType.LAZY; + + /** + * The cached value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected FetchType fetch = FETCH_EDEFAULT; + + /** + * This is true if the Fetch attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean fetchESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #isOptional() <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOptional() + * @generated + * @ordered + */ + protected static final boolean OPTIONAL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOptional() <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOptional() + * @generated + * @ordered + */ + protected boolean optional = OPTIONAL_EDEFAULT; + + /** + * This is true if the Optional attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean optionalESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected BasicImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.BASIC; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Column getColumn() { + return column; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetColumn(Column newColumn, NotificationChain msgs) { + Column oldColumn = column; + column = newColumn; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__COLUMN, oldColumn, newColumn); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumn(Column newColumn) { + if (newColumn != column) { + NotificationChain msgs = null; + if (column != null) + msgs = ((InternalEObject)column).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.BASIC__COLUMN, null, msgs); + if (newColumn != null) + msgs = ((InternalEObject)newColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.BASIC__COLUMN, null, msgs); + msgs = basicSetColumn(newColumn, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__COLUMN, newColumn, newColumn)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Lob getLob() { + return lob; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetLob(Lob newLob, NotificationChain msgs) { + Lob oldLob = lob; + lob = newLob; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__LOB, oldLob, newLob); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLob(Lob newLob) { + if (newLob != lob) { + NotificationChain msgs = null; + if (lob != null) + msgs = ((InternalEObject)lob).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.BASIC__LOB, null, msgs); + if (newLob != null) + msgs = ((InternalEObject)newLob).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.BASIC__LOB, null, msgs); + msgs = basicSetLob(newLob, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__LOB, newLob, newLob)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TemporalType getTemporal() { + return temporal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTemporal(TemporalType newTemporal) { + TemporalType oldTemporal = temporal; + temporal = newTemporal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__TEMPORAL, oldTemporal, temporal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EnumType getEnumerated() { + return enumerated; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEnumerated(EnumType newEnumerated) { + EnumType oldEnumerated = enumerated; + enumerated = newEnumerated; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__ENUMERATED, oldEnumerated, enumerated)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FetchType getFetch() { + return fetch; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFetch(FetchType newFetch) { + FetchType oldFetch = fetch; + fetch = newFetch == null ? FETCH_EDEFAULT : newFetch; + boolean oldFetchESet = fetchESet; + fetchESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__FETCH, oldFetch, fetch, !oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetFetch() { + FetchType oldFetch = fetch; + boolean oldFetchESet = fetchESet; + fetch = FETCH_EDEFAULT; + fetchESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.BASIC__FETCH, oldFetch, FETCH_EDEFAULT, oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetFetch() { + return fetchESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isOptional() { + return optional; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOptional(boolean newOptional) { + boolean oldOptional = optional; + optional = newOptional; + boolean oldOptionalESet = optionalESet; + optionalESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.BASIC__OPTIONAL, oldOptional, optional, !oldOptionalESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetOptional() { + boolean oldOptional = optional; + boolean oldOptionalESet = optionalESet; + optional = OPTIONAL_EDEFAULT; + optionalESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.BASIC__OPTIONAL, oldOptional, OPTIONAL_EDEFAULT, oldOptionalESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetOptional() { + return optionalESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.BASIC__COLUMN: + return basicSetColumn(null, msgs); + case OrmPackage.BASIC__LOB: + return basicSetLob(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.BASIC__COLUMN: + return getColumn(); + case OrmPackage.BASIC__LOB: + return getLob(); + case OrmPackage.BASIC__TEMPORAL: + return getTemporal(); + case OrmPackage.BASIC__ENUMERATED: + return getEnumerated(); + case OrmPackage.BASIC__FETCH: + return getFetch(); + case OrmPackage.BASIC__NAME: + return getName(); + case OrmPackage.BASIC__OPTIONAL: + return isOptional(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.BASIC__COLUMN: + setColumn((Column)newValue); + return; + case OrmPackage.BASIC__LOB: + setLob((Lob)newValue); + return; + case OrmPackage.BASIC__TEMPORAL: + setTemporal((TemporalType)newValue); + return; + case OrmPackage.BASIC__ENUMERATED: + setEnumerated((EnumType)newValue); + return; + case OrmPackage.BASIC__FETCH: + setFetch((FetchType)newValue); + return; + case OrmPackage.BASIC__NAME: + setName((String)newValue); + return; + case OrmPackage.BASIC__OPTIONAL: + setOptional((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.BASIC__COLUMN: + setColumn((Column)null); + return; + case OrmPackage.BASIC__LOB: + setLob((Lob)null); + return; + case OrmPackage.BASIC__TEMPORAL: + setTemporal(TEMPORAL_EDEFAULT); + return; + case OrmPackage.BASIC__ENUMERATED: + setEnumerated(ENUMERATED_EDEFAULT); + return; + case OrmPackage.BASIC__FETCH: + unsetFetch(); + return; + case OrmPackage.BASIC__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.BASIC__OPTIONAL: + unsetOptional(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.BASIC__COLUMN: + return column != null; + case OrmPackage.BASIC__LOB: + return lob != null; + case OrmPackage.BASIC__TEMPORAL: + return TEMPORAL_EDEFAULT == null ? temporal != null : !TEMPORAL_EDEFAULT.equals(temporal); + case OrmPackage.BASIC__ENUMERATED: + return ENUMERATED_EDEFAULT == null ? enumerated != null : !ENUMERATED_EDEFAULT.equals(enumerated); + case OrmPackage.BASIC__FETCH: + return isSetFetch(); + case OrmPackage.BASIC__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.BASIC__OPTIONAL: + return isSetOptional(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (temporal: "); + result.append(temporal); + result.append(", enumerated: "); + result.append(enumerated); + result.append(", fetch: "); + if (fetchESet) result.append(fetch); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(", optional: "); + if (optionalESet) result.append(optional); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //BasicImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/CascadeTypeImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/CascadeTypeImpl.java new file mode 100755 index 000000000..4545fb5a6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/CascadeTypeImpl.java @@ -0,0 +1,444 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CascadeTypeImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Cascade Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl#getCascadeAll <em>Cascade All</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl#getCascadePersist <em>Cascade Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl#getCascadeMerge <em>Cascade Merge</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl#getCascadeRemove <em>Cascade Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.CascadeTypeImpl#getCascadeRefresh <em>Cascade Refresh</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class CascadeTypeImpl extends EObjectImpl implements CascadeType { + /** + * The cached value of the '{@link #getCascadeAll() <em>Cascade All</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascadeAll() + * @generated + * @ordered + */ + protected EmptyType cascadeAll; + + /** + * The cached value of the '{@link #getCascadePersist() <em>Cascade Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascadePersist() + * @generated + * @ordered + */ + protected EmptyType cascadePersist; + + /** + * The cached value of the '{@link #getCascadeMerge() <em>Cascade Merge</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascadeMerge() + * @generated + * @ordered + */ + protected EmptyType cascadeMerge; + + /** + * The cached value of the '{@link #getCascadeRemove() <em>Cascade Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascadeRemove() + * @generated + * @ordered + */ + protected EmptyType cascadeRemove; + + /** + * The cached value of the '{@link #getCascadeRefresh() <em>Cascade Refresh</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascadeRefresh() + * @generated + * @ordered + */ + protected EmptyType cascadeRefresh; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CascadeTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.CASCADE_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getCascadeAll() { + return cascadeAll; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascadeAll(EmptyType newCascadeAll, NotificationChain msgs) { + EmptyType oldCascadeAll = cascadeAll; + cascadeAll = newCascadeAll; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_ALL, oldCascadeAll, newCascadeAll); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascadeAll(EmptyType newCascadeAll) { + if (newCascadeAll != cascadeAll) { + NotificationChain msgs = null; + if (cascadeAll != null) + msgs = ((InternalEObject)cascadeAll).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_ALL, null, msgs); + if (newCascadeAll != null) + msgs = ((InternalEObject)newCascadeAll).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_ALL, null, msgs); + msgs = basicSetCascadeAll(newCascadeAll, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_ALL, newCascadeAll, newCascadeAll)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getCascadePersist() { + return cascadePersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascadePersist(EmptyType newCascadePersist, NotificationChain msgs) { + EmptyType oldCascadePersist = cascadePersist; + cascadePersist = newCascadePersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_PERSIST, oldCascadePersist, newCascadePersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascadePersist(EmptyType newCascadePersist) { + if (newCascadePersist != cascadePersist) { + NotificationChain msgs = null; + if (cascadePersist != null) + msgs = ((InternalEObject)cascadePersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_PERSIST, null, msgs); + if (newCascadePersist != null) + msgs = ((InternalEObject)newCascadePersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_PERSIST, null, msgs); + msgs = basicSetCascadePersist(newCascadePersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_PERSIST, newCascadePersist, newCascadePersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getCascadeMerge() { + return cascadeMerge; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascadeMerge(EmptyType newCascadeMerge, NotificationChain msgs) { + EmptyType oldCascadeMerge = cascadeMerge; + cascadeMerge = newCascadeMerge; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_MERGE, oldCascadeMerge, newCascadeMerge); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascadeMerge(EmptyType newCascadeMerge) { + if (newCascadeMerge != cascadeMerge) { + NotificationChain msgs = null; + if (cascadeMerge != null) + msgs = ((InternalEObject)cascadeMerge).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_MERGE, null, msgs); + if (newCascadeMerge != null) + msgs = ((InternalEObject)newCascadeMerge).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_MERGE, null, msgs); + msgs = basicSetCascadeMerge(newCascadeMerge, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_MERGE, newCascadeMerge, newCascadeMerge)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getCascadeRemove() { + return cascadeRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascadeRemove(EmptyType newCascadeRemove, NotificationChain msgs) { + EmptyType oldCascadeRemove = cascadeRemove; + cascadeRemove = newCascadeRemove; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_REMOVE, oldCascadeRemove, newCascadeRemove); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascadeRemove(EmptyType newCascadeRemove) { + if (newCascadeRemove != cascadeRemove) { + NotificationChain msgs = null; + if (cascadeRemove != null) + msgs = ((InternalEObject)cascadeRemove).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_REMOVE, null, msgs); + if (newCascadeRemove != null) + msgs = ((InternalEObject)newCascadeRemove).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_REMOVE, null, msgs); + msgs = basicSetCascadeRemove(newCascadeRemove, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_REMOVE, newCascadeRemove, newCascadeRemove)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getCascadeRefresh() { + return cascadeRefresh; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascadeRefresh(EmptyType newCascadeRefresh, NotificationChain msgs) { + EmptyType oldCascadeRefresh = cascadeRefresh; + cascadeRefresh = newCascadeRefresh; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_REFRESH, oldCascadeRefresh, newCascadeRefresh); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascadeRefresh(EmptyType newCascadeRefresh) { + if (newCascadeRefresh != cascadeRefresh) { + NotificationChain msgs = null; + if (cascadeRefresh != null) + msgs = ((InternalEObject)cascadeRefresh).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_REFRESH, null, msgs); + if (newCascadeRefresh != null) + msgs = ((InternalEObject)newCascadeRefresh).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.CASCADE_TYPE__CASCADE_REFRESH, null, msgs); + msgs = basicSetCascadeRefresh(newCascadeRefresh, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.CASCADE_TYPE__CASCADE_REFRESH, newCascadeRefresh, newCascadeRefresh)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.CASCADE_TYPE__CASCADE_ALL: + return basicSetCascadeAll(null, msgs); + case OrmPackage.CASCADE_TYPE__CASCADE_PERSIST: + return basicSetCascadePersist(null, msgs); + case OrmPackage.CASCADE_TYPE__CASCADE_MERGE: + return basicSetCascadeMerge(null, msgs); + case OrmPackage.CASCADE_TYPE__CASCADE_REMOVE: + return basicSetCascadeRemove(null, msgs); + case OrmPackage.CASCADE_TYPE__CASCADE_REFRESH: + return basicSetCascadeRefresh(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.CASCADE_TYPE__CASCADE_ALL: + return getCascadeAll(); + case OrmPackage.CASCADE_TYPE__CASCADE_PERSIST: + return getCascadePersist(); + case OrmPackage.CASCADE_TYPE__CASCADE_MERGE: + return getCascadeMerge(); + case OrmPackage.CASCADE_TYPE__CASCADE_REMOVE: + return getCascadeRemove(); + case OrmPackage.CASCADE_TYPE__CASCADE_REFRESH: + return getCascadeRefresh(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.CASCADE_TYPE__CASCADE_ALL: + setCascadeAll((EmptyType)newValue); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_PERSIST: + setCascadePersist((EmptyType)newValue); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_MERGE: + setCascadeMerge((EmptyType)newValue); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_REMOVE: + setCascadeRemove((EmptyType)newValue); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_REFRESH: + setCascadeRefresh((EmptyType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.CASCADE_TYPE__CASCADE_ALL: + setCascadeAll((EmptyType)null); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_PERSIST: + setCascadePersist((EmptyType)null); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_MERGE: + setCascadeMerge((EmptyType)null); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_REMOVE: + setCascadeRemove((EmptyType)null); + return; + case OrmPackage.CASCADE_TYPE__CASCADE_REFRESH: + setCascadeRefresh((EmptyType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.CASCADE_TYPE__CASCADE_ALL: + return cascadeAll != null; + case OrmPackage.CASCADE_TYPE__CASCADE_PERSIST: + return cascadePersist != null; + case OrmPackage.CASCADE_TYPE__CASCADE_MERGE: + return cascadeMerge != null; + case OrmPackage.CASCADE_TYPE__CASCADE_REMOVE: + return cascadeRemove != null; + case OrmPackage.CASCADE_TYPE__CASCADE_REFRESH: + return cascadeRefresh != null; + } + return super.eIsSet(featureID); + } + +} //CascadeTypeImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ColumnImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ColumnImpl.java new file mode 100755 index 000000000..6c0393d32 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ColumnImpl.java @@ -0,0 +1,891 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ColumnImpl.java,v 1.2 2009/07/23 11:16:30 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#isInsertable <em>Insertable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#getLength <em>Length</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#isNullable <em>Nullable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#getPrecision <em>Precision</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#getScale <em>Scale</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#isUnique <em>Unique</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnImpl#isUpdatable <em>Updatable</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ColumnImpl extends EObjectImpl implements Column { + /** + * The default value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected static final String COLUMN_DEFINITION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected String columnDefinition = COLUMN_DEFINITION_EDEFAULT; + + /** + * The default value of the '{@link #isInsertable() <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isInsertable() + * @generated + * @ordered + */ + protected static final boolean INSERTABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isInsertable() <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isInsertable() + * @generated + * @ordered + */ + protected boolean insertable = INSERTABLE_EDEFAULT; + + /** + * This is true if the Insertable attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean insertableESet; + + /** + * The default value of the '{@link #getLength() <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLength() + * @generated + * @ordered + */ + protected static final int LENGTH_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getLength() <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLength() + * @generated + * @ordered + */ + protected int length = LENGTH_EDEFAULT; + + /** + * This is true if the Length attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean lengthESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #isNullable() <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isNullable() + * @generated + * @ordered + */ + protected static final boolean NULLABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isNullable() <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isNullable() + * @generated + * @ordered + */ + protected boolean nullable = NULLABLE_EDEFAULT; + + /** + * This is true if the Nullable attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean nullableESet; + + /** + * The default value of the '{@link #getPrecision() <em>Precision</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrecision() + * @generated + * @ordered + */ + protected static final int PRECISION_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getPrecision() <em>Precision</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrecision() + * @generated + * @ordered + */ + protected int precision = PRECISION_EDEFAULT; + + /** + * This is true if the Precision attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean precisionESet; + + /** + * The default value of the '{@link #getScale() <em>Scale</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getScale() + * @generated + * @ordered + */ + protected static final int SCALE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getScale() <em>Scale</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getScale() + * @generated + * @ordered + */ + protected int scale = SCALE_EDEFAULT; + + /** + * This is true if the Scale attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean scaleESet; + + /** + * The default value of the '{@link #getTable() <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTable() + * @generated + * @ordered + */ + protected static final String TABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTable() <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTable() + * @generated + * @ordered + */ + protected String table = TABLE_EDEFAULT; + + /** + * The default value of the '{@link #isUnique() <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUnique() + * @generated + * @ordered + */ + protected static final boolean UNIQUE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUnique() <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUnique() + * @generated + * @ordered + */ + protected boolean unique = UNIQUE_EDEFAULT; + + /** + * This is true if the Unique attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean uniqueESet; + + /** + * The default value of the '{@link #isUpdatable() <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUpdatable() + * @generated + * @ordered + */ + protected static final boolean UPDATABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUpdatable() <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUpdatable() + * @generated + * @ordered + */ + protected boolean updatable = UPDATABLE_EDEFAULT; + + /** + * This is true if the Updatable attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean updatableESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getColumnDefinition() { + return columnDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumnDefinition(String newColumnDefinition) { + String oldColumnDefinition = columnDefinition; + columnDefinition = newColumnDefinition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__COLUMN_DEFINITION, oldColumnDefinition, columnDefinition)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isInsertable() { + return insertable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInsertable(boolean newInsertable) { + boolean oldInsertable = insertable; + insertable = newInsertable; + boolean oldInsertableESet = insertableESet; + insertableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__INSERTABLE, oldInsertable, insertable, !oldInsertableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetInsertable() { + boolean oldInsertable = insertable; + boolean oldInsertableESet = insertableESet; + insertable = INSERTABLE_EDEFAULT; + insertableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.COLUMN__INSERTABLE, oldInsertable, INSERTABLE_EDEFAULT, oldInsertableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetInsertable() { + return insertableESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getLength() { + return length; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLength(int newLength) { + int oldLength = length; + length = newLength; + boolean oldLengthESet = lengthESet; + lengthESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__LENGTH, oldLength, length, !oldLengthESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetLength() { + int oldLength = length; + boolean oldLengthESet = lengthESet; + length = LENGTH_EDEFAULT; + lengthESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.COLUMN__LENGTH, oldLength, LENGTH_EDEFAULT, oldLengthESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetLength() { + return lengthESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isNullable() { + return nullable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNullable(boolean newNullable) { + boolean oldNullable = nullable; + nullable = newNullable; + boolean oldNullableESet = nullableESet; + nullableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__NULLABLE, oldNullable, nullable, !oldNullableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetNullable() { + boolean oldNullable = nullable; + boolean oldNullableESet = nullableESet; + nullable = NULLABLE_EDEFAULT; + nullableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.COLUMN__NULLABLE, oldNullable, NULLABLE_EDEFAULT, oldNullableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetNullable() { + return nullableESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getPrecision() { + return precision; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrecision(int newPrecision) { + int oldPrecision = precision; + precision = newPrecision; + boolean oldPrecisionESet = precisionESet; + precisionESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__PRECISION, oldPrecision, precision, !oldPrecisionESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetPrecision() { + int oldPrecision = precision; + boolean oldPrecisionESet = precisionESet; + precision = PRECISION_EDEFAULT; + precisionESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.COLUMN__PRECISION, oldPrecision, PRECISION_EDEFAULT, oldPrecisionESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetPrecision() { + return precisionESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getScale() { + return scale; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setScale(int newScale) { + int oldScale = scale; + scale = newScale; + boolean oldScaleESet = scaleESet; + scaleESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__SCALE, oldScale, scale, !oldScaleESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetScale() { + int oldScale = scale; + boolean oldScaleESet = scaleESet; + scale = SCALE_EDEFAULT; + scaleESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.COLUMN__SCALE, oldScale, SCALE_EDEFAULT, oldScaleESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetScale() { + return scaleESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTable() { + return table; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTable(String newTable) { + String oldTable = table; + table = newTable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__TABLE, oldTable, table)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isUnique() { + return unique; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUnique(boolean newUnique) { + boolean oldUnique = unique; + unique = newUnique; + boolean oldUniqueESet = uniqueESet; + uniqueESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__UNIQUE, oldUnique, unique, !oldUniqueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetUnique() { + boolean oldUnique = unique; + boolean oldUniqueESet = uniqueESet; + unique = UNIQUE_EDEFAULT; + uniqueESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.COLUMN__UNIQUE, oldUnique, UNIQUE_EDEFAULT, oldUniqueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetUnique() { + return uniqueESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isUpdatable() { + return updatable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUpdatable(boolean newUpdatable) { + boolean oldUpdatable = updatable; + updatable = newUpdatable; + boolean oldUpdatableESet = updatableESet; + updatableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN__UPDATABLE, oldUpdatable, updatable, !oldUpdatableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetUpdatable() { + boolean oldUpdatable = updatable; + boolean oldUpdatableESet = updatableESet; + updatable = UPDATABLE_EDEFAULT; + updatableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.COLUMN__UPDATABLE, oldUpdatable, UPDATABLE_EDEFAULT, oldUpdatableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetUpdatable() { + return updatableESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.COLUMN__COLUMN_DEFINITION: + return getColumnDefinition(); + case OrmPackage.COLUMN__INSERTABLE: + return isInsertable(); + case OrmPackage.COLUMN__LENGTH: + return getLength(); + case OrmPackage.COLUMN__NAME: + return getName(); + case OrmPackage.COLUMN__NULLABLE: + return isNullable(); + case OrmPackage.COLUMN__PRECISION: + return getPrecision(); + case OrmPackage.COLUMN__SCALE: + return getScale(); + case OrmPackage.COLUMN__TABLE: + return getTable(); + case OrmPackage.COLUMN__UNIQUE: + return isUnique(); + case OrmPackage.COLUMN__UPDATABLE: + return isUpdatable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.COLUMN__COLUMN_DEFINITION: + setColumnDefinition((String)newValue); + return; + case OrmPackage.COLUMN__INSERTABLE: + setInsertable((Boolean)newValue); + return; + case OrmPackage.COLUMN__LENGTH: + setLength((Integer)newValue); + return; + case OrmPackage.COLUMN__NAME: + setName((String)newValue); + return; + case OrmPackage.COLUMN__NULLABLE: + setNullable((Boolean)newValue); + return; + case OrmPackage.COLUMN__PRECISION: + setPrecision((Integer)newValue); + return; + case OrmPackage.COLUMN__SCALE: + setScale((Integer)newValue); + return; + case OrmPackage.COLUMN__TABLE: + setTable((String)newValue); + return; + case OrmPackage.COLUMN__UNIQUE: + setUnique((Boolean)newValue); + return; + case OrmPackage.COLUMN__UPDATABLE: + setUpdatable((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.COLUMN__COLUMN_DEFINITION: + setColumnDefinition(COLUMN_DEFINITION_EDEFAULT); + return; + case OrmPackage.COLUMN__INSERTABLE: + unsetInsertable(); + return; + case OrmPackage.COLUMN__LENGTH: + unsetLength(); + return; + case OrmPackage.COLUMN__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.COLUMN__NULLABLE: + unsetNullable(); + return; + case OrmPackage.COLUMN__PRECISION: + unsetPrecision(); + return; + case OrmPackage.COLUMN__SCALE: + unsetScale(); + return; + case OrmPackage.COLUMN__TABLE: + setTable(TABLE_EDEFAULT); + return; + case OrmPackage.COLUMN__UNIQUE: + unsetUnique(); + return; + case OrmPackage.COLUMN__UPDATABLE: + unsetUpdatable(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.COLUMN__COLUMN_DEFINITION: + return COLUMN_DEFINITION_EDEFAULT == null ? columnDefinition != null : !COLUMN_DEFINITION_EDEFAULT.equals(columnDefinition); + case OrmPackage.COLUMN__INSERTABLE: + return isSetInsertable(); + case OrmPackage.COLUMN__LENGTH: + return isSetLength(); + case OrmPackage.COLUMN__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.COLUMN__NULLABLE: + return isSetNullable(); + case OrmPackage.COLUMN__PRECISION: + return isSetPrecision(); + case OrmPackage.COLUMN__SCALE: + return isSetScale(); + case OrmPackage.COLUMN__TABLE: + return TABLE_EDEFAULT == null ? table != null : !TABLE_EDEFAULT.equals(table); + case OrmPackage.COLUMN__UNIQUE: + return isSetUnique(); + case OrmPackage.COLUMN__UPDATABLE: + return isSetUpdatable(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (columnDefinition: "); + result.append(columnDefinition); + result.append(", insertable: "); + if (insertableESet) result.append(insertable); else result.append("<unset>"); + result.append(", length: "); + if (lengthESet) result.append(length); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(", nullable: "); + if (nullableESet) result.append(nullable); else result.append("<unset>"); + result.append(", precision: "); + if (precisionESet) result.append(precision); else result.append("<unset>"); + result.append(", scale: "); + if (scaleESet) result.append(scale); else result.append("<unset>"); + result.append(", table: "); + result.append(table); + result.append(", unique: "); + if (uniqueESet) result.append(unique); else result.append("<unset>"); + result.append(", updatable: "); + if (updatableESet) result.append(updatable); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //ColumnImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ColumnResultImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ColumnResultImpl.java new file mode 100755 index 000000000..7ba52234a --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ColumnResultImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ColumnResultImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.ColumnResult; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Column Result</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ColumnResultImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ColumnResultImpl extends EObjectImpl implements ColumnResult { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ColumnResultImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.COLUMN_RESULT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.COLUMN_RESULT__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.COLUMN_RESULT__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.COLUMN_RESULT__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.COLUMN_RESULT__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.COLUMN_RESULT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //ColumnResultImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/DiscriminatorColumnImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/DiscriminatorColumnImpl.java new file mode 100755 index 000000000..6e727c8fb --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/DiscriminatorColumnImpl.java @@ -0,0 +1,398 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DiscriminatorColumnImpl.java,v 1.2 2009/07/23 11:16:30 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn; +import org.eclipse.emf.teneo.jpa.orm.DiscriminatorType; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Discriminator Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl#getDiscriminatorType <em>Discriminator Type</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl#getLength <em>Length</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DiscriminatorColumnImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DiscriminatorColumnImpl extends EObjectImpl implements DiscriminatorColumn { + /** + * The default value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected static final String COLUMN_DEFINITION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected String columnDefinition = COLUMN_DEFINITION_EDEFAULT; + + /** + * The default value of the '{@link #getDiscriminatorType() <em>Discriminator Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDiscriminatorType() + * @generated + * @ordered + */ + protected static final DiscriminatorType DISCRIMINATOR_TYPE_EDEFAULT = DiscriminatorType.STRING; + + /** + * The cached value of the '{@link #getDiscriminatorType() <em>Discriminator Type</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDiscriminatorType() + * @generated + * @ordered + */ + protected DiscriminatorType discriminatorType = DISCRIMINATOR_TYPE_EDEFAULT; + + /** + * This is true if the Discriminator Type attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean discriminatorTypeESet; + + /** + * The default value of the '{@link #getLength() <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLength() + * @generated + * @ordered + */ + protected static final int LENGTH_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getLength() <em>Length</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getLength() + * @generated + * @ordered + */ + protected int length = LENGTH_EDEFAULT; + + /** + * This is true if the Length attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean lengthESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DiscriminatorColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.DISCRIMINATOR_COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getColumnDefinition() { + return columnDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumnDefinition(String newColumnDefinition) { + String oldColumnDefinition = columnDefinition; + columnDefinition = newColumnDefinition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.DISCRIMINATOR_COLUMN__COLUMN_DEFINITION, oldColumnDefinition, columnDefinition)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DiscriminatorType getDiscriminatorType() { + return discriminatorType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDiscriminatorType(DiscriminatorType newDiscriminatorType) { + DiscriminatorType oldDiscriminatorType = discriminatorType; + discriminatorType = newDiscriminatorType == null ? DISCRIMINATOR_TYPE_EDEFAULT : newDiscriminatorType; + boolean oldDiscriminatorTypeESet = discriminatorTypeESet; + discriminatorTypeESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE, oldDiscriminatorType, discriminatorType, !oldDiscriminatorTypeESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetDiscriminatorType() { + DiscriminatorType oldDiscriminatorType = discriminatorType; + boolean oldDiscriminatorTypeESet = discriminatorTypeESet; + discriminatorType = DISCRIMINATOR_TYPE_EDEFAULT; + discriminatorTypeESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE, oldDiscriminatorType, DISCRIMINATOR_TYPE_EDEFAULT, oldDiscriminatorTypeESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetDiscriminatorType() { + return discriminatorTypeESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getLength() { + return length; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setLength(int newLength) { + int oldLength = length; + length = newLength; + boolean oldLengthESet = lengthESet; + lengthESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.DISCRIMINATOR_COLUMN__LENGTH, oldLength, length, !oldLengthESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetLength() { + int oldLength = length; + boolean oldLengthESet = lengthESet; + length = LENGTH_EDEFAULT; + lengthESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.DISCRIMINATOR_COLUMN__LENGTH, oldLength, LENGTH_EDEFAULT, oldLengthESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetLength() { + return lengthESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.DISCRIMINATOR_COLUMN__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.DISCRIMINATOR_COLUMN__COLUMN_DEFINITION: + return getColumnDefinition(); + case OrmPackage.DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE: + return getDiscriminatorType(); + case OrmPackage.DISCRIMINATOR_COLUMN__LENGTH: + return getLength(); + case OrmPackage.DISCRIMINATOR_COLUMN__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.DISCRIMINATOR_COLUMN__COLUMN_DEFINITION: + setColumnDefinition((String)newValue); + return; + case OrmPackage.DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE: + setDiscriminatorType((DiscriminatorType)newValue); + return; + case OrmPackage.DISCRIMINATOR_COLUMN__LENGTH: + setLength((Integer)newValue); + return; + case OrmPackage.DISCRIMINATOR_COLUMN__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.DISCRIMINATOR_COLUMN__COLUMN_DEFINITION: + setColumnDefinition(COLUMN_DEFINITION_EDEFAULT); + return; + case OrmPackage.DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE: + unsetDiscriminatorType(); + return; + case OrmPackage.DISCRIMINATOR_COLUMN__LENGTH: + unsetLength(); + return; + case OrmPackage.DISCRIMINATOR_COLUMN__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.DISCRIMINATOR_COLUMN__COLUMN_DEFINITION: + return COLUMN_DEFINITION_EDEFAULT == null ? columnDefinition != null : !COLUMN_DEFINITION_EDEFAULT.equals(columnDefinition); + case OrmPackage.DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE: + return isSetDiscriminatorType(); + case OrmPackage.DISCRIMINATOR_COLUMN__LENGTH: + return isSetLength(); + case OrmPackage.DISCRIMINATOR_COLUMN__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (columnDefinition: "); + result.append(columnDefinition); + result.append(", discriminatorType: "); + if (discriminatorTypeESet) result.append(discriminatorType); else result.append("<unset>"); + result.append(", length: "); + if (lengthESet) result.append(length); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //DiscriminatorColumnImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/DocumentRootImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/DocumentRootImpl.java new file mode 100755 index 000000000..da6c5e52b --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/DocumentRootImpl.java @@ -0,0 +1,286 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DocumentRootImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EMap; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.emf.ecore.EcorePackage; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl; + +import org.eclipse.emf.ecore.util.BasicFeatureMap; +import org.eclipse.emf.ecore.util.EcoreEMap; +import org.eclipse.emf.ecore.util.FeatureMap; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.DocumentRoot; +import org.eclipse.emf.teneo.jpa.orm.EntityMappingsType; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Document Root</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl#getMixed <em>Mixed</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS Prefix Map</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI Schema Location</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.DocumentRootImpl#getEntityMappings <em>Entity Mappings</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class DocumentRootImpl extends EObjectImpl implements DocumentRoot { + /** + * The cached value of the '{@link #getMixed() <em>Mixed</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMixed() + * @generated + * @ordered + */ + protected FeatureMap mixed; + + /** + * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix Map</em>}' map. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXMLNSPrefixMap() + * @generated + * @ordered + */ + protected EMap<String, String> xMLNSPrefixMap; + + /** + * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema Location</em>}' map. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXSISchemaLocation() + * @generated + * @ordered + */ + protected EMap<String, String> xSISchemaLocation; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected DocumentRootImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.DOCUMENT_ROOT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FeatureMap getMixed() { + if (mixed == null) { + mixed = new BasicFeatureMap(this, OrmPackage.DOCUMENT_ROOT__MIXED); + } + return mixed; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EMap<String, String> getXMLNSPrefixMap() { + if (xMLNSPrefixMap == null) { + xMLNSPrefixMap = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, OrmPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP); + } + return xMLNSPrefixMap; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EMap<String, String> getXSISchemaLocation() { + if (xSISchemaLocation == null) { + xSISchemaLocation = new EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY, EStringToStringMapEntryImpl.class, this, OrmPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); + } + return xSISchemaLocation; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityMappingsType getEntityMappings() { + return (EntityMappingsType)getMixed().get(OrmPackage.Literals.DOCUMENT_ROOT__ENTITY_MAPPINGS, true); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetEntityMappings(EntityMappingsType newEntityMappings, NotificationChain msgs) { + return ((FeatureMap.Internal)getMixed()).basicAdd(OrmPackage.Literals.DOCUMENT_ROOT__ENTITY_MAPPINGS, newEntityMappings, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEntityMappings(EntityMappingsType newEntityMappings) { + ((FeatureMap.Internal)getMixed()).set(OrmPackage.Literals.DOCUMENT_ROOT__ENTITY_MAPPINGS, newEntityMappings); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.DOCUMENT_ROOT__MIXED: + return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs); + case OrmPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: + return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs); + case OrmPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: + return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs); + case OrmPackage.DOCUMENT_ROOT__ENTITY_MAPPINGS: + return basicSetEntityMappings(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.DOCUMENT_ROOT__MIXED: + if (coreType) return getMixed(); + return ((FeatureMap.Internal)getMixed()).getWrapper(); + case OrmPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: + if (coreType) return getXMLNSPrefixMap(); + else return getXMLNSPrefixMap().map(); + case OrmPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: + if (coreType) return getXSISchemaLocation(); + else return getXSISchemaLocation().map(); + case OrmPackage.DOCUMENT_ROOT__ENTITY_MAPPINGS: + return getEntityMappings(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.DOCUMENT_ROOT__MIXED: + ((FeatureMap.Internal)getMixed()).set(newValue); + return; + case OrmPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: + ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue); + return; + case OrmPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: + ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue); + return; + case OrmPackage.DOCUMENT_ROOT__ENTITY_MAPPINGS: + setEntityMappings((EntityMappingsType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.DOCUMENT_ROOT__MIXED: + getMixed().clear(); + return; + case OrmPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: + getXMLNSPrefixMap().clear(); + return; + case OrmPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: + getXSISchemaLocation().clear(); + return; + case OrmPackage.DOCUMENT_ROOT__ENTITY_MAPPINGS: + setEntityMappings((EntityMappingsType)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.DOCUMENT_ROOT__MIXED: + return mixed != null && !mixed.isEmpty(); + case OrmPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP: + return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty(); + case OrmPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: + return xSISchemaLocation != null && !xSISchemaLocation.isEmpty(); + case OrmPackage.DOCUMENT_ROOT__ENTITY_MAPPINGS: + return getEntityMappings() != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (mixed: "); + result.append(mixed); + result.append(')'); + return result.toString(); + } + +} //DocumentRootImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddableAttributesImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddableAttributesImpl.java new file mode 100755 index 000000000..4e43b4706 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddableAttributesImpl.java @@ -0,0 +1,193 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddableAttributesImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.Basic; +import org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.Transient; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Embeddable Attributes</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableAttributesImpl#getBasic <em>Basic</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableAttributesImpl#getTransient <em>Transient</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EmbeddableAttributesImpl extends EObjectImpl implements EmbeddableAttributes { + /** + * The cached value of the '{@link #getBasic() <em>Basic</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getBasic() + * @generated + * @ordered + */ + protected EList<Basic> basic; + + /** + * The cached value of the '{@link #getTransient() <em>Transient</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTransient() + * @generated + * @ordered + */ + protected EList<Transient> transient_; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EmbeddableAttributesImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.EMBEDDABLE_ATTRIBUTES; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Basic> getBasic() { + if (basic == null) { + basic = new EObjectContainmentEList<Basic>(Basic.class, this, OrmPackage.EMBEDDABLE_ATTRIBUTES__BASIC); + } + return basic; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Transient> getTransient() { + if (transient_ == null) { + transient_ = new EObjectContainmentEList<Transient>(Transient.class, this, OrmPackage.EMBEDDABLE_ATTRIBUTES__TRANSIENT); + } + return transient_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.EMBEDDABLE_ATTRIBUTES__BASIC: + return ((InternalEList<?>)getBasic()).basicRemove(otherEnd, msgs); + case OrmPackage.EMBEDDABLE_ATTRIBUTES__TRANSIENT: + return ((InternalEList<?>)getTransient()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.EMBEDDABLE_ATTRIBUTES__BASIC: + return getBasic(); + case OrmPackage.EMBEDDABLE_ATTRIBUTES__TRANSIENT: + return getTransient(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.EMBEDDABLE_ATTRIBUTES__BASIC: + getBasic().clear(); + getBasic().addAll((Collection<? extends Basic>)newValue); + return; + case OrmPackage.EMBEDDABLE_ATTRIBUTES__TRANSIENT: + getTransient().clear(); + getTransient().addAll((Collection<? extends Transient>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDABLE_ATTRIBUTES__BASIC: + getBasic().clear(); + return; + case OrmPackage.EMBEDDABLE_ATTRIBUTES__TRANSIENT: + getTransient().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDABLE_ATTRIBUTES__BASIC: + return basic != null && !basic.isEmpty(); + case OrmPackage.EMBEDDABLE_ATTRIBUTES__TRANSIENT: + return transient_ != null && !transient_.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //EmbeddableAttributesImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddableImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddableImpl.java new file mode 100755 index 000000000..13a3ec9ce --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddableImpl.java @@ -0,0 +1,479 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddableImpl.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.Embeddable; +import org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Embeddable</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl#getAttributes <em>Attributes</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddableImpl#isMetadataComplete <em>Metadata Complete</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EmbeddableImpl extends EObjectImpl implements Embeddable { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttributes() + * @generated + * @ordered + */ + protected EmbeddableAttributes attributes; + + /** + * The default value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected static final AccessType ACCESS_EDEFAULT = AccessType.PROPERTY; + + /** + * The cached value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected AccessType access = ACCESS_EDEFAULT; + + /** + * This is true if the Access attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean accessESet; + + /** + * The default value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected static final String CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected String class_ = CLASS_EDEFAULT; + + /** + * The default value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMetadataComplete() + * @generated + * @ordered + */ + protected static final boolean METADATA_COMPLETE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMetadataComplete() + * @generated + * @ordered + */ + protected boolean metadataComplete = METADATA_COMPLETE_EDEFAULT; + + /** + * This is true if the Metadata Complete attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean metadataCompleteESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EmbeddableImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.EMBEDDABLE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDABLE__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmbeddableAttributes getAttributes() { + return attributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAttributes(EmbeddableAttributes newAttributes, NotificationChain msgs) { + EmbeddableAttributes oldAttributes = attributes; + attributes = newAttributes; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDABLE__ATTRIBUTES, oldAttributes, newAttributes); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAttributes(EmbeddableAttributes newAttributes) { + if (newAttributes != attributes) { + NotificationChain msgs = null; + if (attributes != null) + msgs = ((InternalEObject)attributes).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.EMBEDDABLE__ATTRIBUTES, null, msgs); + if (newAttributes != null) + msgs = ((InternalEObject)newAttributes).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.EMBEDDABLE__ATTRIBUTES, null, msgs); + msgs = basicSetAttributes(newAttributes, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDABLE__ATTRIBUTES, newAttributes, newAttributes)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AccessType getAccess() { + return access; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAccess(AccessType newAccess) { + AccessType oldAccess = access; + access = newAccess == null ? ACCESS_EDEFAULT : newAccess; + boolean oldAccessESet = accessESet; + accessESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDABLE__ACCESS, oldAccess, access, !oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetAccess() { + AccessType oldAccess = access; + boolean oldAccessESet = accessESet; + access = ACCESS_EDEFAULT; + accessESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.EMBEDDABLE__ACCESS, oldAccess, ACCESS_EDEFAULT, oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetAccess() { + return accessESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getClass_() { + return class_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setClass(String newClass) { + String oldClass = class_; + class_ = newClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDABLE__CLASS, oldClass, class_)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isMetadataComplete() { + return metadataComplete; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMetadataComplete(boolean newMetadataComplete) { + boolean oldMetadataComplete = metadataComplete; + metadataComplete = newMetadataComplete; + boolean oldMetadataCompleteESet = metadataCompleteESet; + metadataCompleteESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDABLE__METADATA_COMPLETE, oldMetadataComplete, metadataComplete, !oldMetadataCompleteESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetMetadataComplete() { + boolean oldMetadataComplete = metadataComplete; + boolean oldMetadataCompleteESet = metadataCompleteESet; + metadataComplete = METADATA_COMPLETE_EDEFAULT; + metadataCompleteESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.EMBEDDABLE__METADATA_COMPLETE, oldMetadataComplete, METADATA_COMPLETE_EDEFAULT, oldMetadataCompleteESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetMetadataComplete() { + return metadataCompleteESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.EMBEDDABLE__ATTRIBUTES: + return basicSetAttributes(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.EMBEDDABLE__DESCRIPTION: + return getDescription(); + case OrmPackage.EMBEDDABLE__ATTRIBUTES: + return getAttributes(); + case OrmPackage.EMBEDDABLE__ACCESS: + return getAccess(); + case OrmPackage.EMBEDDABLE__CLASS: + return getClass_(); + case OrmPackage.EMBEDDABLE__METADATA_COMPLETE: + return isMetadataComplete(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.EMBEDDABLE__DESCRIPTION: + setDescription((String)newValue); + return; + case OrmPackage.EMBEDDABLE__ATTRIBUTES: + setAttributes((EmbeddableAttributes)newValue); + return; + case OrmPackage.EMBEDDABLE__ACCESS: + setAccess((AccessType)newValue); + return; + case OrmPackage.EMBEDDABLE__CLASS: + setClass((String)newValue); + return; + case OrmPackage.EMBEDDABLE__METADATA_COMPLETE: + setMetadataComplete((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDABLE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case OrmPackage.EMBEDDABLE__ATTRIBUTES: + setAttributes((EmbeddableAttributes)null); + return; + case OrmPackage.EMBEDDABLE__ACCESS: + unsetAccess(); + return; + case OrmPackage.EMBEDDABLE__CLASS: + setClass(CLASS_EDEFAULT); + return; + case OrmPackage.EMBEDDABLE__METADATA_COMPLETE: + unsetMetadataComplete(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDABLE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case OrmPackage.EMBEDDABLE__ATTRIBUTES: + return attributes != null; + case OrmPackage.EMBEDDABLE__ACCESS: + return isSetAccess(); + case OrmPackage.EMBEDDABLE__CLASS: + return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_); + case OrmPackage.EMBEDDABLE__METADATA_COMPLETE: + return isSetMetadataComplete(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", access: "); + if (accessESet) result.append(access); else result.append("<unset>"); + result.append(", class: "); + result.append(class_); + result.append(", metadataComplete: "); + if (metadataCompleteESet) result.append(metadataComplete); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //EmbeddableImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddedIdImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddedIdImpl.java new file mode 100755 index 000000000..3972be710 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddedIdImpl.java @@ -0,0 +1,226 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddedIdImpl.java,v 1.1 2009/03/15 23:45:03 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; +import org.eclipse.emf.teneo.jpa.orm.EmbeddedId; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Embedded Id</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedIdImpl#getAttributeOverride <em>Attribute Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedIdImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EmbeddedIdImpl extends EObjectImpl implements EmbeddedId { + /** + * The cached value of the '{@link #getAttributeOverride() <em>Attribute Override</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttributeOverride() + * @generated + * @ordered + */ + protected EList<AttributeOverride> attributeOverride; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EmbeddedIdImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.EMBEDDED_ID; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AttributeOverride> getAttributeOverride() { + if (attributeOverride == null) { + attributeOverride = new EObjectContainmentEList<AttributeOverride>(AttributeOverride.class, this, OrmPackage.EMBEDDED_ID__ATTRIBUTE_OVERRIDE); + } + return attributeOverride; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDED_ID__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.EMBEDDED_ID__ATTRIBUTE_OVERRIDE: + return ((InternalEList<?>)getAttributeOverride()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.EMBEDDED_ID__ATTRIBUTE_OVERRIDE: + return getAttributeOverride(); + case OrmPackage.EMBEDDED_ID__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.EMBEDDED_ID__ATTRIBUTE_OVERRIDE: + getAttributeOverride().clear(); + getAttributeOverride().addAll((Collection<? extends AttributeOverride>)newValue); + return; + case OrmPackage.EMBEDDED_ID__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDED_ID__ATTRIBUTE_OVERRIDE: + getAttributeOverride().clear(); + return; + case OrmPackage.EMBEDDED_ID__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDED_ID__ATTRIBUTE_OVERRIDE: + return attributeOverride != null && !attributeOverride.isEmpty(); + case OrmPackage.EMBEDDED_ID__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //EmbeddedIdImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddedImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddedImpl.java new file mode 100755 index 000000000..66e3af3d5 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmbeddedImpl.java @@ -0,0 +1,226 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddedImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; +import org.eclipse.emf.teneo.jpa.orm.Embedded; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Embedded</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedImpl#getAttributeOverride <em>Attribute Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EmbeddedImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EmbeddedImpl extends EObjectImpl implements Embedded { + /** + * The cached value of the '{@link #getAttributeOverride() <em>Attribute Override</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttributeOverride() + * @generated + * @ordered + */ + protected EList<AttributeOverride> attributeOverride; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EmbeddedImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.EMBEDDED; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AttributeOverride> getAttributeOverride() { + if (attributeOverride == null) { + attributeOverride = new EObjectContainmentEList<AttributeOverride>(AttributeOverride.class, this, OrmPackage.EMBEDDED__ATTRIBUTE_OVERRIDE); + } + return attributeOverride; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.EMBEDDED__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.EMBEDDED__ATTRIBUTE_OVERRIDE: + return ((InternalEList<?>)getAttributeOverride()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.EMBEDDED__ATTRIBUTE_OVERRIDE: + return getAttributeOverride(); + case OrmPackage.EMBEDDED__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.EMBEDDED__ATTRIBUTE_OVERRIDE: + getAttributeOverride().clear(); + getAttributeOverride().addAll((Collection<? extends AttributeOverride>)newValue); + return; + case OrmPackage.EMBEDDED__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDED__ATTRIBUTE_OVERRIDE: + getAttributeOverride().clear(); + return; + case OrmPackage.EMBEDDED__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.EMBEDDED__ATTRIBUTE_OVERRIDE: + return attributeOverride != null && !attributeOverride.isEmpty(); + case OrmPackage.EMBEDDED__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //EmbeddedImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmptyTypeImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmptyTypeImpl.java new file mode 100755 index 000000000..65bd66551 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EmptyTypeImpl.java @@ -0,0 +1,45 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmptyTypeImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Empty Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class EmptyTypeImpl extends EObjectImpl implements EmptyType { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EmptyTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.EMPTY_TYPE; + } + +} //EmptyTypeImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityImpl.java new file mode 100755 index 000000000..031ebecde --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityImpl.java @@ -0,0 +1,1925 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityImpl.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.AssociationOverride; +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; +import org.eclipse.emf.teneo.jpa.orm.Attributes; +import org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.Entity; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; +import org.eclipse.emf.teneo.jpa.orm.IdClass; +import org.eclipse.emf.teneo.jpa.orm.Inheritance; +import org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery; +import org.eclipse.emf.teneo.jpa.orm.NamedQuery; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PostLoad; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; +import org.eclipse.emf.teneo.jpa.orm.SecondaryTable; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; +import org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping; +import org.eclipse.emf.teneo.jpa.orm.Table; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Entity</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getSecondaryTable <em>Secondary Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getIdClass <em>Id Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getInheritance <em>Inheritance</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getDiscriminatorValue <em>Discriminator Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getDiscriminatorColumn <em>Discriminator Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getSequenceGenerator <em>Sequence Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getTableGenerator <em>Table Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getNamedQuery <em>Named Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getNamedNativeQuery <em>Named Native Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getSqlResultSetMapping <em>Sql Result Set Mapping</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getEntityListeners <em>Entity Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPrePersist <em>Pre Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPostPersist <em>Post Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPreRemove <em>Pre Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPostRemove <em>Post Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPreUpdate <em>Pre Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPostUpdate <em>Post Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getPostLoad <em>Post Load</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getAttributeOverride <em>Attribute Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getAssociationOverride <em>Association Override</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getAttributes <em>Attributes</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#isMetadataComplete <em>Metadata Complete</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EntityImpl extends EObjectImpl implements Entity { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getTable() <em>Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTable() + * @generated + * @ordered + */ + protected Table table; + + /** + * The cached value of the '{@link #getSecondaryTable() <em>Secondary Table</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSecondaryTable() + * @generated + * @ordered + */ + protected EList<SecondaryTable> secondaryTable; + + /** + * The cached value of the '{@link #getPrimaryKeyJoinColumn() <em>Primary Key Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrimaryKeyJoinColumn() + * @generated + * @ordered + */ + protected EList<PrimaryKeyJoinColumn> primaryKeyJoinColumn; + + /** + * The cached value of the '{@link #getIdClass() <em>Id Class</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIdClass() + * @generated + * @ordered + */ + protected IdClass idClass; + + /** + * The cached value of the '{@link #getInheritance() <em>Inheritance</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInheritance() + * @generated + * @ordered + */ + protected Inheritance inheritance; + + /** + * The default value of the '{@link #getDiscriminatorValue() <em>Discriminator Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDiscriminatorValue() + * @generated + * @ordered + */ + protected static final String DISCRIMINATOR_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDiscriminatorValue() <em>Discriminator Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDiscriminatorValue() + * @generated + * @ordered + */ + protected String discriminatorValue = DISCRIMINATOR_VALUE_EDEFAULT; + + /** + * The cached value of the '{@link #getDiscriminatorColumn() <em>Discriminator Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDiscriminatorColumn() + * @generated + * @ordered + */ + protected DiscriminatorColumn discriminatorColumn; + + /** + * The cached value of the '{@link #getSequenceGenerator() <em>Sequence Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSequenceGenerator() + * @generated + * @ordered + */ + protected SequenceGenerator sequenceGenerator; + + /** + * The cached value of the '{@link #getTableGenerator() <em>Table Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTableGenerator() + * @generated + * @ordered + */ + protected TableGenerator tableGenerator; + + /** + * The cached value of the '{@link #getNamedQuery() <em>Named Query</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNamedQuery() + * @generated + * @ordered + */ + protected EList<NamedQuery> namedQuery; + + /** + * The cached value of the '{@link #getNamedNativeQuery() <em>Named Native Query</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNamedNativeQuery() + * @generated + * @ordered + */ + protected EList<NamedNativeQuery> namedNativeQuery; + + /** + * The cached value of the '{@link #getSqlResultSetMapping() <em>Sql Result Set Mapping</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSqlResultSetMapping() + * @generated + * @ordered + */ + protected EList<SqlResultSetMapping> sqlResultSetMapping; + + /** + * The cached value of the '{@link #getExcludeDefaultListeners() <em>Exclude Default Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExcludeDefaultListeners() + * @generated + * @ordered + */ + protected EmptyType excludeDefaultListeners; + + /** + * The cached value of the '{@link #getExcludeSuperclassListeners() <em>Exclude Superclass Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExcludeSuperclassListeners() + * @generated + * @ordered + */ + protected EmptyType excludeSuperclassListeners; + + /** + * The cached value of the '{@link #getEntityListeners() <em>Entity Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntityListeners() + * @generated + * @ordered + */ + protected EntityListeners entityListeners; + + /** + * The cached value of the '{@link #getPrePersist() <em>Pre Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrePersist() + * @generated + * @ordered + */ + protected PrePersist prePersist; + + /** + * The cached value of the '{@link #getPostPersist() <em>Post Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostPersist() + * @generated + * @ordered + */ + protected PostPersist postPersist; + + /** + * The cached value of the '{@link #getPreRemove() <em>Pre Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPreRemove() + * @generated + * @ordered + */ + protected PreRemove preRemove; + + /** + * The cached value of the '{@link #getPostRemove() <em>Post Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostRemove() + * @generated + * @ordered + */ + protected PostRemove postRemove; + + /** + * The cached value of the '{@link #getPreUpdate() <em>Pre Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPreUpdate() + * @generated + * @ordered + */ + protected PreUpdate preUpdate; + + /** + * The cached value of the '{@link #getPostUpdate() <em>Post Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostUpdate() + * @generated + * @ordered + */ + protected PostUpdate postUpdate; + + /** + * The cached value of the '{@link #getPostLoad() <em>Post Load</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostLoad() + * @generated + * @ordered + */ + protected PostLoad postLoad; + + /** + * The cached value of the '{@link #getAttributeOverride() <em>Attribute Override</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttributeOverride() + * @generated + * @ordered + */ + protected EList<AttributeOverride> attributeOverride; + + /** + * The cached value of the '{@link #getAssociationOverride() <em>Association Override</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAssociationOverride() + * @generated + * @ordered + */ + protected EList<AssociationOverride> associationOverride; + + /** + * The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttributes() + * @generated + * @ordered + */ + protected Attributes attributes; + + /** + * The default value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected static final AccessType ACCESS_EDEFAULT = AccessType.PROPERTY; + + /** + * The cached value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected AccessType access = ACCESS_EDEFAULT; + + /** + * This is true if the Access attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean accessESet; + + /** + * The default value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected static final String CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected String class_ = CLASS_EDEFAULT; + + /** + * The default value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMetadataComplete() + * @generated + * @ordered + */ + protected static final boolean METADATA_COMPLETE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMetadataComplete() + * @generated + * @ordered + */ + protected boolean metadataComplete = METADATA_COMPLETE_EDEFAULT; + + /** + * This is true if the Metadata Complete attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean metadataCompleteESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EntityImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ENTITY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Table getTable() { + return table; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTable(Table newTable, NotificationChain msgs) { + Table oldTable = table; + table = newTable; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__TABLE, oldTable, newTable); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTable(Table newTable) { + if (newTable != table) { + NotificationChain msgs = null; + if (table != null) + msgs = ((InternalEObject)table).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__TABLE, null, msgs); + if (newTable != null) + msgs = ((InternalEObject)newTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__TABLE, null, msgs); + msgs = basicSetTable(newTable, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__TABLE, newTable, newTable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SecondaryTable> getSecondaryTable() { + if (secondaryTable == null) { + secondaryTable = new EObjectContainmentEList<SecondaryTable>(SecondaryTable.class, this, OrmPackage.ENTITY__SECONDARY_TABLE); + } + return secondaryTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn() { + if (primaryKeyJoinColumn == null) { + primaryKeyJoinColumn = new EObjectContainmentEList<PrimaryKeyJoinColumn>(PrimaryKeyJoinColumn.class, this, OrmPackage.ENTITY__PRIMARY_KEY_JOIN_COLUMN); + } + return primaryKeyJoinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IdClass getIdClass() { + return idClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetIdClass(IdClass newIdClass, NotificationChain msgs) { + IdClass oldIdClass = idClass; + idClass = newIdClass; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__ID_CLASS, oldIdClass, newIdClass); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIdClass(IdClass newIdClass) { + if (newIdClass != idClass) { + NotificationChain msgs = null; + if (idClass != null) + msgs = ((InternalEObject)idClass).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__ID_CLASS, null, msgs); + if (newIdClass != null) + msgs = ((InternalEObject)newIdClass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__ID_CLASS, null, msgs); + msgs = basicSetIdClass(newIdClass, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__ID_CLASS, newIdClass, newIdClass)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Inheritance getInheritance() { + return inheritance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetInheritance(Inheritance newInheritance, NotificationChain msgs) { + Inheritance oldInheritance = inheritance; + inheritance = newInheritance; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__INHERITANCE, oldInheritance, newInheritance); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInheritance(Inheritance newInheritance) { + if (newInheritance != inheritance) { + NotificationChain msgs = null; + if (inheritance != null) + msgs = ((InternalEObject)inheritance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__INHERITANCE, null, msgs); + if (newInheritance != null) + msgs = ((InternalEObject)newInheritance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__INHERITANCE, null, msgs); + msgs = basicSetInheritance(newInheritance, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__INHERITANCE, newInheritance, newInheritance)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDiscriminatorValue() { + return discriminatorValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDiscriminatorValue(String newDiscriminatorValue) { + String oldDiscriminatorValue = discriminatorValue; + discriminatorValue = newDiscriminatorValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__DISCRIMINATOR_VALUE, oldDiscriminatorValue, discriminatorValue)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DiscriminatorColumn getDiscriminatorColumn() { + return discriminatorColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetDiscriminatorColumn(DiscriminatorColumn newDiscriminatorColumn, NotificationChain msgs) { + DiscriminatorColumn oldDiscriminatorColumn = discriminatorColumn; + discriminatorColumn = newDiscriminatorColumn; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__DISCRIMINATOR_COLUMN, oldDiscriminatorColumn, newDiscriminatorColumn); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDiscriminatorColumn(DiscriminatorColumn newDiscriminatorColumn) { + if (newDiscriminatorColumn != discriminatorColumn) { + NotificationChain msgs = null; + if (discriminatorColumn != null) + msgs = ((InternalEObject)discriminatorColumn).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__DISCRIMINATOR_COLUMN, null, msgs); + if (newDiscriminatorColumn != null) + msgs = ((InternalEObject)newDiscriminatorColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__DISCRIMINATOR_COLUMN, null, msgs); + msgs = basicSetDiscriminatorColumn(newDiscriminatorColumn, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__DISCRIMINATOR_COLUMN, newDiscriminatorColumn, newDiscriminatorColumn)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SequenceGenerator getSequenceGenerator() { + return sequenceGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSequenceGenerator(SequenceGenerator newSequenceGenerator, NotificationChain msgs) { + SequenceGenerator oldSequenceGenerator = sequenceGenerator; + sequenceGenerator = newSequenceGenerator; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__SEQUENCE_GENERATOR, oldSequenceGenerator, newSequenceGenerator); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSequenceGenerator(SequenceGenerator newSequenceGenerator) { + if (newSequenceGenerator != sequenceGenerator) { + NotificationChain msgs = null; + if (sequenceGenerator != null) + msgs = ((InternalEObject)sequenceGenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__SEQUENCE_GENERATOR, null, msgs); + if (newSequenceGenerator != null) + msgs = ((InternalEObject)newSequenceGenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__SEQUENCE_GENERATOR, null, msgs); + msgs = basicSetSequenceGenerator(newSequenceGenerator, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__SEQUENCE_GENERATOR, newSequenceGenerator, newSequenceGenerator)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableGenerator getTableGenerator() { + return tableGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTableGenerator(TableGenerator newTableGenerator, NotificationChain msgs) { + TableGenerator oldTableGenerator = tableGenerator; + tableGenerator = newTableGenerator; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__TABLE_GENERATOR, oldTableGenerator, newTableGenerator); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTableGenerator(TableGenerator newTableGenerator) { + if (newTableGenerator != tableGenerator) { + NotificationChain msgs = null; + if (tableGenerator != null) + msgs = ((InternalEObject)tableGenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__TABLE_GENERATOR, null, msgs); + if (newTableGenerator != null) + msgs = ((InternalEObject)newTableGenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__TABLE_GENERATOR, null, msgs); + msgs = basicSetTableGenerator(newTableGenerator, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__TABLE_GENERATOR, newTableGenerator, newTableGenerator)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<NamedQuery> getNamedQuery() { + if (namedQuery == null) { + namedQuery = new EObjectContainmentEList<NamedQuery>(NamedQuery.class, this, OrmPackage.ENTITY__NAMED_QUERY); + } + return namedQuery; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<NamedNativeQuery> getNamedNativeQuery() { + if (namedNativeQuery == null) { + namedNativeQuery = new EObjectContainmentEList<NamedNativeQuery>(NamedNativeQuery.class, this, OrmPackage.ENTITY__NAMED_NATIVE_QUERY); + } + return namedNativeQuery; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SqlResultSetMapping> getSqlResultSetMapping() { + if (sqlResultSetMapping == null) { + sqlResultSetMapping = new EObjectContainmentEList<SqlResultSetMapping>(SqlResultSetMapping.class, this, OrmPackage.ENTITY__SQL_RESULT_SET_MAPPING); + } + return sqlResultSetMapping; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getExcludeDefaultListeners() { + return excludeDefaultListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetExcludeDefaultListeners(EmptyType newExcludeDefaultListeners, NotificationChain msgs) { + EmptyType oldExcludeDefaultListeners = excludeDefaultListeners; + excludeDefaultListeners = newExcludeDefaultListeners; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS, oldExcludeDefaultListeners, newExcludeDefaultListeners); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExcludeDefaultListeners(EmptyType newExcludeDefaultListeners) { + if (newExcludeDefaultListeners != excludeDefaultListeners) { + NotificationChain msgs = null; + if (excludeDefaultListeners != null) + msgs = ((InternalEObject)excludeDefaultListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS, null, msgs); + if (newExcludeDefaultListeners != null) + msgs = ((InternalEObject)newExcludeDefaultListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS, null, msgs); + msgs = basicSetExcludeDefaultListeners(newExcludeDefaultListeners, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS, newExcludeDefaultListeners, newExcludeDefaultListeners)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getExcludeSuperclassListeners() { + return excludeSuperclassListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetExcludeSuperclassListeners(EmptyType newExcludeSuperclassListeners, NotificationChain msgs) { + EmptyType oldExcludeSuperclassListeners = excludeSuperclassListeners; + excludeSuperclassListeners = newExcludeSuperclassListeners; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS, oldExcludeSuperclassListeners, newExcludeSuperclassListeners); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExcludeSuperclassListeners(EmptyType newExcludeSuperclassListeners) { + if (newExcludeSuperclassListeners != excludeSuperclassListeners) { + NotificationChain msgs = null; + if (excludeSuperclassListeners != null) + msgs = ((InternalEObject)excludeSuperclassListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS, null, msgs); + if (newExcludeSuperclassListeners != null) + msgs = ((InternalEObject)newExcludeSuperclassListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS, null, msgs); + msgs = basicSetExcludeSuperclassListeners(newExcludeSuperclassListeners, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS, newExcludeSuperclassListeners, newExcludeSuperclassListeners)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityListeners getEntityListeners() { + return entityListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetEntityListeners(EntityListeners newEntityListeners, NotificationChain msgs) { + EntityListeners oldEntityListeners = entityListeners; + entityListeners = newEntityListeners; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__ENTITY_LISTENERS, oldEntityListeners, newEntityListeners); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEntityListeners(EntityListeners newEntityListeners) { + if (newEntityListeners != entityListeners) { + NotificationChain msgs = null; + if (entityListeners != null) + msgs = ((InternalEObject)entityListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__ENTITY_LISTENERS, null, msgs); + if (newEntityListeners != null) + msgs = ((InternalEObject)newEntityListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__ENTITY_LISTENERS, null, msgs); + msgs = basicSetEntityListeners(newEntityListeners, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__ENTITY_LISTENERS, newEntityListeners, newEntityListeners)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PrePersist getPrePersist() { + return prePersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPrePersist(PrePersist newPrePersist, NotificationChain msgs) { + PrePersist oldPrePersist = prePersist; + prePersist = newPrePersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__PRE_PERSIST, oldPrePersist, newPrePersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrePersist(PrePersist newPrePersist) { + if (newPrePersist != prePersist) { + NotificationChain msgs = null; + if (prePersist != null) + msgs = ((InternalEObject)prePersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__PRE_PERSIST, null, msgs); + if (newPrePersist != null) + msgs = ((InternalEObject)newPrePersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__PRE_PERSIST, null, msgs); + msgs = basicSetPrePersist(newPrePersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__PRE_PERSIST, newPrePersist, newPrePersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostPersist getPostPersist() { + return postPersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostPersist(PostPersist newPostPersist, NotificationChain msgs) { + PostPersist oldPostPersist = postPersist; + postPersist = newPostPersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_PERSIST, oldPostPersist, newPostPersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostPersist(PostPersist newPostPersist) { + if (newPostPersist != postPersist) { + NotificationChain msgs = null; + if (postPersist != null) + msgs = ((InternalEObject)postPersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_PERSIST, null, msgs); + if (newPostPersist != null) + msgs = ((InternalEObject)newPostPersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_PERSIST, null, msgs); + msgs = basicSetPostPersist(newPostPersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_PERSIST, newPostPersist, newPostPersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreRemove getPreRemove() { + return preRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPreRemove(PreRemove newPreRemove, NotificationChain msgs) { + PreRemove oldPreRemove = preRemove; + preRemove = newPreRemove; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__PRE_REMOVE, oldPreRemove, newPreRemove); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPreRemove(PreRemove newPreRemove) { + if (newPreRemove != preRemove) { + NotificationChain msgs = null; + if (preRemove != null) + msgs = ((InternalEObject)preRemove).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__PRE_REMOVE, null, msgs); + if (newPreRemove != null) + msgs = ((InternalEObject)newPreRemove).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__PRE_REMOVE, null, msgs); + msgs = basicSetPreRemove(newPreRemove, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__PRE_REMOVE, newPreRemove, newPreRemove)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostRemove getPostRemove() { + return postRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostRemove(PostRemove newPostRemove, NotificationChain msgs) { + PostRemove oldPostRemove = postRemove; + postRemove = newPostRemove; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_REMOVE, oldPostRemove, newPostRemove); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostRemove(PostRemove newPostRemove) { + if (newPostRemove != postRemove) { + NotificationChain msgs = null; + if (postRemove != null) + msgs = ((InternalEObject)postRemove).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_REMOVE, null, msgs); + if (newPostRemove != null) + msgs = ((InternalEObject)newPostRemove).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_REMOVE, null, msgs); + msgs = basicSetPostRemove(newPostRemove, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_REMOVE, newPostRemove, newPostRemove)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreUpdate getPreUpdate() { + return preUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPreUpdate(PreUpdate newPreUpdate, NotificationChain msgs) { + PreUpdate oldPreUpdate = preUpdate; + preUpdate = newPreUpdate; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__PRE_UPDATE, oldPreUpdate, newPreUpdate); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPreUpdate(PreUpdate newPreUpdate) { + if (newPreUpdate != preUpdate) { + NotificationChain msgs = null; + if (preUpdate != null) + msgs = ((InternalEObject)preUpdate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__PRE_UPDATE, null, msgs); + if (newPreUpdate != null) + msgs = ((InternalEObject)newPreUpdate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__PRE_UPDATE, null, msgs); + msgs = basicSetPreUpdate(newPreUpdate, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__PRE_UPDATE, newPreUpdate, newPreUpdate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostUpdate getPostUpdate() { + return postUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostUpdate(PostUpdate newPostUpdate, NotificationChain msgs) { + PostUpdate oldPostUpdate = postUpdate; + postUpdate = newPostUpdate; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_UPDATE, oldPostUpdate, newPostUpdate); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostUpdate(PostUpdate newPostUpdate) { + if (newPostUpdate != postUpdate) { + NotificationChain msgs = null; + if (postUpdate != null) + msgs = ((InternalEObject)postUpdate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_UPDATE, null, msgs); + if (newPostUpdate != null) + msgs = ((InternalEObject)newPostUpdate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_UPDATE, null, msgs); + msgs = basicSetPostUpdate(newPostUpdate, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_UPDATE, newPostUpdate, newPostUpdate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostLoad getPostLoad() { + return postLoad; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostLoad(PostLoad newPostLoad, NotificationChain msgs) { + PostLoad oldPostLoad = postLoad; + postLoad = newPostLoad; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_LOAD, oldPostLoad, newPostLoad); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostLoad(PostLoad newPostLoad) { + if (newPostLoad != postLoad) { + NotificationChain msgs = null; + if (postLoad != null) + msgs = ((InternalEObject)postLoad).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_LOAD, null, msgs); + if (newPostLoad != null) + msgs = ((InternalEObject)newPostLoad).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__POST_LOAD, null, msgs); + msgs = basicSetPostLoad(newPostLoad, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__POST_LOAD, newPostLoad, newPostLoad)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AttributeOverride> getAttributeOverride() { + if (attributeOverride == null) { + attributeOverride = new EObjectContainmentEList<AttributeOverride>(AttributeOverride.class, this, OrmPackage.ENTITY__ATTRIBUTE_OVERRIDE); + } + return attributeOverride; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<AssociationOverride> getAssociationOverride() { + if (associationOverride == null) { + associationOverride = new EObjectContainmentEList<AssociationOverride>(AssociationOverride.class, this, OrmPackage.ENTITY__ASSOCIATION_OVERRIDE); + } + return associationOverride; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Attributes getAttributes() { + return attributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAttributes(Attributes newAttributes, NotificationChain msgs) { + Attributes oldAttributes = attributes; + attributes = newAttributes; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__ATTRIBUTES, oldAttributes, newAttributes); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAttributes(Attributes newAttributes) { + if (newAttributes != attributes) { + NotificationChain msgs = null; + if (attributes != null) + msgs = ((InternalEObject)attributes).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__ATTRIBUTES, null, msgs); + if (newAttributes != null) + msgs = ((InternalEObject)newAttributes).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY__ATTRIBUTES, null, msgs); + msgs = basicSetAttributes(newAttributes, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__ATTRIBUTES, newAttributes, newAttributes)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AccessType getAccess() { + return access; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAccess(AccessType newAccess) { + AccessType oldAccess = access; + access = newAccess == null ? ACCESS_EDEFAULT : newAccess; + boolean oldAccessESet = accessESet; + accessESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__ACCESS, oldAccess, access, !oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetAccess() { + AccessType oldAccess = access; + boolean oldAccessESet = accessESet; + access = ACCESS_EDEFAULT; + accessESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.ENTITY__ACCESS, oldAccess, ACCESS_EDEFAULT, oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetAccess() { + return accessESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getClass_() { + return class_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setClass(String newClass) { + String oldClass = class_; + class_ = newClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__CLASS, oldClass, class_)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isMetadataComplete() { + return metadataComplete; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMetadataComplete(boolean newMetadataComplete) { + boolean oldMetadataComplete = metadataComplete; + metadataComplete = newMetadataComplete; + boolean oldMetadataCompleteESet = metadataCompleteESet; + metadataCompleteESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__METADATA_COMPLETE, oldMetadataComplete, metadataComplete, !oldMetadataCompleteESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetMetadataComplete() { + boolean oldMetadataComplete = metadataComplete; + boolean oldMetadataCompleteESet = metadataCompleteESet; + metadataComplete = METADATA_COMPLETE_EDEFAULT; + metadataCompleteESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.ENTITY__METADATA_COMPLETE, oldMetadataComplete, METADATA_COMPLETE_EDEFAULT, oldMetadataCompleteESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetMetadataComplete() { + return metadataCompleteESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ENTITY__TABLE: + return basicSetTable(null, msgs); + case OrmPackage.ENTITY__SECONDARY_TABLE: + return ((InternalEList<?>)getSecondaryTable()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY__PRIMARY_KEY_JOIN_COLUMN: + return ((InternalEList<?>)getPrimaryKeyJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY__ID_CLASS: + return basicSetIdClass(null, msgs); + case OrmPackage.ENTITY__INHERITANCE: + return basicSetInheritance(null, msgs); + case OrmPackage.ENTITY__DISCRIMINATOR_COLUMN: + return basicSetDiscriminatorColumn(null, msgs); + case OrmPackage.ENTITY__SEQUENCE_GENERATOR: + return basicSetSequenceGenerator(null, msgs); + case OrmPackage.ENTITY__TABLE_GENERATOR: + return basicSetTableGenerator(null, msgs); + case OrmPackage.ENTITY__NAMED_QUERY: + return ((InternalEList<?>)getNamedQuery()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY__NAMED_NATIVE_QUERY: + return ((InternalEList<?>)getNamedNativeQuery()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY__SQL_RESULT_SET_MAPPING: + return ((InternalEList<?>)getSqlResultSetMapping()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS: + return basicSetExcludeDefaultListeners(null, msgs); + case OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS: + return basicSetExcludeSuperclassListeners(null, msgs); + case OrmPackage.ENTITY__ENTITY_LISTENERS: + return basicSetEntityListeners(null, msgs); + case OrmPackage.ENTITY__PRE_PERSIST: + return basicSetPrePersist(null, msgs); + case OrmPackage.ENTITY__POST_PERSIST: + return basicSetPostPersist(null, msgs); + case OrmPackage.ENTITY__PRE_REMOVE: + return basicSetPreRemove(null, msgs); + case OrmPackage.ENTITY__POST_REMOVE: + return basicSetPostRemove(null, msgs); + case OrmPackage.ENTITY__PRE_UPDATE: + return basicSetPreUpdate(null, msgs); + case OrmPackage.ENTITY__POST_UPDATE: + return basicSetPostUpdate(null, msgs); + case OrmPackage.ENTITY__POST_LOAD: + return basicSetPostLoad(null, msgs); + case OrmPackage.ENTITY__ATTRIBUTE_OVERRIDE: + return ((InternalEList<?>)getAttributeOverride()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY__ASSOCIATION_OVERRIDE: + return ((InternalEList<?>)getAssociationOverride()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY__ATTRIBUTES: + return basicSetAttributes(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ENTITY__DESCRIPTION: + return getDescription(); + case OrmPackage.ENTITY__TABLE: + return getTable(); + case OrmPackage.ENTITY__SECONDARY_TABLE: + return getSecondaryTable(); + case OrmPackage.ENTITY__PRIMARY_KEY_JOIN_COLUMN: + return getPrimaryKeyJoinColumn(); + case OrmPackage.ENTITY__ID_CLASS: + return getIdClass(); + case OrmPackage.ENTITY__INHERITANCE: + return getInheritance(); + case OrmPackage.ENTITY__DISCRIMINATOR_VALUE: + return getDiscriminatorValue(); + case OrmPackage.ENTITY__DISCRIMINATOR_COLUMN: + return getDiscriminatorColumn(); + case OrmPackage.ENTITY__SEQUENCE_GENERATOR: + return getSequenceGenerator(); + case OrmPackage.ENTITY__TABLE_GENERATOR: + return getTableGenerator(); + case OrmPackage.ENTITY__NAMED_QUERY: + return getNamedQuery(); + case OrmPackage.ENTITY__NAMED_NATIVE_QUERY: + return getNamedNativeQuery(); + case OrmPackage.ENTITY__SQL_RESULT_SET_MAPPING: + return getSqlResultSetMapping(); + case OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS: + return getExcludeDefaultListeners(); + case OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS: + return getExcludeSuperclassListeners(); + case OrmPackage.ENTITY__ENTITY_LISTENERS: + return getEntityListeners(); + case OrmPackage.ENTITY__PRE_PERSIST: + return getPrePersist(); + case OrmPackage.ENTITY__POST_PERSIST: + return getPostPersist(); + case OrmPackage.ENTITY__PRE_REMOVE: + return getPreRemove(); + case OrmPackage.ENTITY__POST_REMOVE: + return getPostRemove(); + case OrmPackage.ENTITY__PRE_UPDATE: + return getPreUpdate(); + case OrmPackage.ENTITY__POST_UPDATE: + return getPostUpdate(); + case OrmPackage.ENTITY__POST_LOAD: + return getPostLoad(); + case OrmPackage.ENTITY__ATTRIBUTE_OVERRIDE: + return getAttributeOverride(); + case OrmPackage.ENTITY__ASSOCIATION_OVERRIDE: + return getAssociationOverride(); + case OrmPackage.ENTITY__ATTRIBUTES: + return getAttributes(); + case OrmPackage.ENTITY__ACCESS: + return getAccess(); + case OrmPackage.ENTITY__CLASS: + return getClass_(); + case OrmPackage.ENTITY__METADATA_COMPLETE: + return isMetadataComplete(); + case OrmPackage.ENTITY__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ENTITY__DESCRIPTION: + setDescription((String)newValue); + return; + case OrmPackage.ENTITY__TABLE: + setTable((Table)newValue); + return; + case OrmPackage.ENTITY__SECONDARY_TABLE: + getSecondaryTable().clear(); + getSecondaryTable().addAll((Collection<? extends SecondaryTable>)newValue); + return; + case OrmPackage.ENTITY__PRIMARY_KEY_JOIN_COLUMN: + getPrimaryKeyJoinColumn().clear(); + getPrimaryKeyJoinColumn().addAll((Collection<? extends PrimaryKeyJoinColumn>)newValue); + return; + case OrmPackage.ENTITY__ID_CLASS: + setIdClass((IdClass)newValue); + return; + case OrmPackage.ENTITY__INHERITANCE: + setInheritance((Inheritance)newValue); + return; + case OrmPackage.ENTITY__DISCRIMINATOR_VALUE: + setDiscriminatorValue((String)newValue); + return; + case OrmPackage.ENTITY__DISCRIMINATOR_COLUMN: + setDiscriminatorColumn((DiscriminatorColumn)newValue); + return; + case OrmPackage.ENTITY__SEQUENCE_GENERATOR: + setSequenceGenerator((SequenceGenerator)newValue); + return; + case OrmPackage.ENTITY__TABLE_GENERATOR: + setTableGenerator((TableGenerator)newValue); + return; + case OrmPackage.ENTITY__NAMED_QUERY: + getNamedQuery().clear(); + getNamedQuery().addAll((Collection<? extends NamedQuery>)newValue); + return; + case OrmPackage.ENTITY__NAMED_NATIVE_QUERY: + getNamedNativeQuery().clear(); + getNamedNativeQuery().addAll((Collection<? extends NamedNativeQuery>)newValue); + return; + case OrmPackage.ENTITY__SQL_RESULT_SET_MAPPING: + getSqlResultSetMapping().clear(); + getSqlResultSetMapping().addAll((Collection<? extends SqlResultSetMapping>)newValue); + return; + case OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS: + setExcludeDefaultListeners((EmptyType)newValue); + return; + case OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS: + setExcludeSuperclassListeners((EmptyType)newValue); + return; + case OrmPackage.ENTITY__ENTITY_LISTENERS: + setEntityListeners((EntityListeners)newValue); + return; + case OrmPackage.ENTITY__PRE_PERSIST: + setPrePersist((PrePersist)newValue); + return; + case OrmPackage.ENTITY__POST_PERSIST: + setPostPersist((PostPersist)newValue); + return; + case OrmPackage.ENTITY__PRE_REMOVE: + setPreRemove((PreRemove)newValue); + return; + case OrmPackage.ENTITY__POST_REMOVE: + setPostRemove((PostRemove)newValue); + return; + case OrmPackage.ENTITY__PRE_UPDATE: + setPreUpdate((PreUpdate)newValue); + return; + case OrmPackage.ENTITY__POST_UPDATE: + setPostUpdate((PostUpdate)newValue); + return; + case OrmPackage.ENTITY__POST_LOAD: + setPostLoad((PostLoad)newValue); + return; + case OrmPackage.ENTITY__ATTRIBUTE_OVERRIDE: + getAttributeOverride().clear(); + getAttributeOverride().addAll((Collection<? extends AttributeOverride>)newValue); + return; + case OrmPackage.ENTITY__ASSOCIATION_OVERRIDE: + getAssociationOverride().clear(); + getAssociationOverride().addAll((Collection<? extends AssociationOverride>)newValue); + return; + case OrmPackage.ENTITY__ATTRIBUTES: + setAttributes((Attributes)newValue); + return; + case OrmPackage.ENTITY__ACCESS: + setAccess((AccessType)newValue); + return; + case OrmPackage.ENTITY__CLASS: + setClass((String)newValue); + return; + case OrmPackage.ENTITY__METADATA_COMPLETE: + setMetadataComplete((Boolean)newValue); + return; + case OrmPackage.ENTITY__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case OrmPackage.ENTITY__TABLE: + setTable((Table)null); + return; + case OrmPackage.ENTITY__SECONDARY_TABLE: + getSecondaryTable().clear(); + return; + case OrmPackage.ENTITY__PRIMARY_KEY_JOIN_COLUMN: + getPrimaryKeyJoinColumn().clear(); + return; + case OrmPackage.ENTITY__ID_CLASS: + setIdClass((IdClass)null); + return; + case OrmPackage.ENTITY__INHERITANCE: + setInheritance((Inheritance)null); + return; + case OrmPackage.ENTITY__DISCRIMINATOR_VALUE: + setDiscriminatorValue(DISCRIMINATOR_VALUE_EDEFAULT); + return; + case OrmPackage.ENTITY__DISCRIMINATOR_COLUMN: + setDiscriminatorColumn((DiscriminatorColumn)null); + return; + case OrmPackage.ENTITY__SEQUENCE_GENERATOR: + setSequenceGenerator((SequenceGenerator)null); + return; + case OrmPackage.ENTITY__TABLE_GENERATOR: + setTableGenerator((TableGenerator)null); + return; + case OrmPackage.ENTITY__NAMED_QUERY: + getNamedQuery().clear(); + return; + case OrmPackage.ENTITY__NAMED_NATIVE_QUERY: + getNamedNativeQuery().clear(); + return; + case OrmPackage.ENTITY__SQL_RESULT_SET_MAPPING: + getSqlResultSetMapping().clear(); + return; + case OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS: + setExcludeDefaultListeners((EmptyType)null); + return; + case OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS: + setExcludeSuperclassListeners((EmptyType)null); + return; + case OrmPackage.ENTITY__ENTITY_LISTENERS: + setEntityListeners((EntityListeners)null); + return; + case OrmPackage.ENTITY__PRE_PERSIST: + setPrePersist((PrePersist)null); + return; + case OrmPackage.ENTITY__POST_PERSIST: + setPostPersist((PostPersist)null); + return; + case OrmPackage.ENTITY__PRE_REMOVE: + setPreRemove((PreRemove)null); + return; + case OrmPackage.ENTITY__POST_REMOVE: + setPostRemove((PostRemove)null); + return; + case OrmPackage.ENTITY__PRE_UPDATE: + setPreUpdate((PreUpdate)null); + return; + case OrmPackage.ENTITY__POST_UPDATE: + setPostUpdate((PostUpdate)null); + return; + case OrmPackage.ENTITY__POST_LOAD: + setPostLoad((PostLoad)null); + return; + case OrmPackage.ENTITY__ATTRIBUTE_OVERRIDE: + getAttributeOverride().clear(); + return; + case OrmPackage.ENTITY__ASSOCIATION_OVERRIDE: + getAssociationOverride().clear(); + return; + case OrmPackage.ENTITY__ATTRIBUTES: + setAttributes((Attributes)null); + return; + case OrmPackage.ENTITY__ACCESS: + unsetAccess(); + return; + case OrmPackage.ENTITY__CLASS: + setClass(CLASS_EDEFAULT); + return; + case OrmPackage.ENTITY__METADATA_COMPLETE: + unsetMetadataComplete(); + return; + case OrmPackage.ENTITY__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case OrmPackage.ENTITY__TABLE: + return table != null; + case OrmPackage.ENTITY__SECONDARY_TABLE: + return secondaryTable != null && !secondaryTable.isEmpty(); + case OrmPackage.ENTITY__PRIMARY_KEY_JOIN_COLUMN: + return primaryKeyJoinColumn != null && !primaryKeyJoinColumn.isEmpty(); + case OrmPackage.ENTITY__ID_CLASS: + return idClass != null; + case OrmPackage.ENTITY__INHERITANCE: + return inheritance != null; + case OrmPackage.ENTITY__DISCRIMINATOR_VALUE: + return DISCRIMINATOR_VALUE_EDEFAULT == null ? discriminatorValue != null : !DISCRIMINATOR_VALUE_EDEFAULT.equals(discriminatorValue); + case OrmPackage.ENTITY__DISCRIMINATOR_COLUMN: + return discriminatorColumn != null; + case OrmPackage.ENTITY__SEQUENCE_GENERATOR: + return sequenceGenerator != null; + case OrmPackage.ENTITY__TABLE_GENERATOR: + return tableGenerator != null; + case OrmPackage.ENTITY__NAMED_QUERY: + return namedQuery != null && !namedQuery.isEmpty(); + case OrmPackage.ENTITY__NAMED_NATIVE_QUERY: + return namedNativeQuery != null && !namedNativeQuery.isEmpty(); + case OrmPackage.ENTITY__SQL_RESULT_SET_MAPPING: + return sqlResultSetMapping != null && !sqlResultSetMapping.isEmpty(); + case OrmPackage.ENTITY__EXCLUDE_DEFAULT_LISTENERS: + return excludeDefaultListeners != null; + case OrmPackage.ENTITY__EXCLUDE_SUPERCLASS_LISTENERS: + return excludeSuperclassListeners != null; + case OrmPackage.ENTITY__ENTITY_LISTENERS: + return entityListeners != null; + case OrmPackage.ENTITY__PRE_PERSIST: + return prePersist != null; + case OrmPackage.ENTITY__POST_PERSIST: + return postPersist != null; + case OrmPackage.ENTITY__PRE_REMOVE: + return preRemove != null; + case OrmPackage.ENTITY__POST_REMOVE: + return postRemove != null; + case OrmPackage.ENTITY__PRE_UPDATE: + return preUpdate != null; + case OrmPackage.ENTITY__POST_UPDATE: + return postUpdate != null; + case OrmPackage.ENTITY__POST_LOAD: + return postLoad != null; + case OrmPackage.ENTITY__ATTRIBUTE_OVERRIDE: + return attributeOverride != null && !attributeOverride.isEmpty(); + case OrmPackage.ENTITY__ASSOCIATION_OVERRIDE: + return associationOverride != null && !associationOverride.isEmpty(); + case OrmPackage.ENTITY__ATTRIBUTES: + return attributes != null; + case OrmPackage.ENTITY__ACCESS: + return isSetAccess(); + case OrmPackage.ENTITY__CLASS: + return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_); + case OrmPackage.ENTITY__METADATA_COMPLETE: + return isSetMetadataComplete(); + case OrmPackage.ENTITY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", discriminatorValue: "); + result.append(discriminatorValue); + result.append(", access: "); + if (accessESet) result.append(access); else result.append("<unset>"); + result.append(", class: "); + result.append(class_); + result.append(", metadataComplete: "); + if (metadataCompleteESet) result.append(metadataComplete); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //EntityImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityListenerImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityListenerImpl.java new file mode 100755 index 000000000..2b2180206 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityListenerImpl.java @@ -0,0 +1,650 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityListenerImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.EntityListener; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PostLoad; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Entity Listener</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getPrePersist <em>Pre Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getPostPersist <em>Post Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getPreRemove <em>Pre Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getPostRemove <em>Post Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getPreUpdate <em>Pre Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getPostUpdate <em>Post Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getPostLoad <em>Post Load</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenerImpl#getClass_ <em>Class</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EntityListenerImpl extends EObjectImpl implements EntityListener { + /** + * The cached value of the '{@link #getPrePersist() <em>Pre Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrePersist() + * @generated + * @ordered + */ + protected PrePersist prePersist; + + /** + * The cached value of the '{@link #getPostPersist() <em>Post Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostPersist() + * @generated + * @ordered + */ + protected PostPersist postPersist; + + /** + * The cached value of the '{@link #getPreRemove() <em>Pre Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPreRemove() + * @generated + * @ordered + */ + protected PreRemove preRemove; + + /** + * The cached value of the '{@link #getPostRemove() <em>Post Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostRemove() + * @generated + * @ordered + */ + protected PostRemove postRemove; + + /** + * The cached value of the '{@link #getPreUpdate() <em>Pre Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPreUpdate() + * @generated + * @ordered + */ + protected PreUpdate preUpdate; + + /** + * The cached value of the '{@link #getPostUpdate() <em>Post Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostUpdate() + * @generated + * @ordered + */ + protected PostUpdate postUpdate; + + /** + * The cached value of the '{@link #getPostLoad() <em>Post Load</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostLoad() + * @generated + * @ordered + */ + protected PostLoad postLoad; + + /** + * The default value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected static final String CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected String class_ = CLASS_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EntityListenerImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ENTITY_LISTENER; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PrePersist getPrePersist() { + return prePersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPrePersist(PrePersist newPrePersist, NotificationChain msgs) { + PrePersist oldPrePersist = prePersist; + prePersist = newPrePersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__PRE_PERSIST, oldPrePersist, newPrePersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrePersist(PrePersist newPrePersist) { + if (newPrePersist != prePersist) { + NotificationChain msgs = null; + if (prePersist != null) + msgs = ((InternalEObject)prePersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__PRE_PERSIST, null, msgs); + if (newPrePersist != null) + msgs = ((InternalEObject)newPrePersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__PRE_PERSIST, null, msgs); + msgs = basicSetPrePersist(newPrePersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__PRE_PERSIST, newPrePersist, newPrePersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostPersist getPostPersist() { + return postPersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostPersist(PostPersist newPostPersist, NotificationChain msgs) { + PostPersist oldPostPersist = postPersist; + postPersist = newPostPersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_PERSIST, oldPostPersist, newPostPersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostPersist(PostPersist newPostPersist) { + if (newPostPersist != postPersist) { + NotificationChain msgs = null; + if (postPersist != null) + msgs = ((InternalEObject)postPersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_PERSIST, null, msgs); + if (newPostPersist != null) + msgs = ((InternalEObject)newPostPersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_PERSIST, null, msgs); + msgs = basicSetPostPersist(newPostPersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_PERSIST, newPostPersist, newPostPersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreRemove getPreRemove() { + return preRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPreRemove(PreRemove newPreRemove, NotificationChain msgs) { + PreRemove oldPreRemove = preRemove; + preRemove = newPreRemove; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__PRE_REMOVE, oldPreRemove, newPreRemove); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPreRemove(PreRemove newPreRemove) { + if (newPreRemove != preRemove) { + NotificationChain msgs = null; + if (preRemove != null) + msgs = ((InternalEObject)preRemove).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__PRE_REMOVE, null, msgs); + if (newPreRemove != null) + msgs = ((InternalEObject)newPreRemove).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__PRE_REMOVE, null, msgs); + msgs = basicSetPreRemove(newPreRemove, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__PRE_REMOVE, newPreRemove, newPreRemove)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostRemove getPostRemove() { + return postRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostRemove(PostRemove newPostRemove, NotificationChain msgs) { + PostRemove oldPostRemove = postRemove; + postRemove = newPostRemove; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_REMOVE, oldPostRemove, newPostRemove); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostRemove(PostRemove newPostRemove) { + if (newPostRemove != postRemove) { + NotificationChain msgs = null; + if (postRemove != null) + msgs = ((InternalEObject)postRemove).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_REMOVE, null, msgs); + if (newPostRemove != null) + msgs = ((InternalEObject)newPostRemove).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_REMOVE, null, msgs); + msgs = basicSetPostRemove(newPostRemove, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_REMOVE, newPostRemove, newPostRemove)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreUpdate getPreUpdate() { + return preUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPreUpdate(PreUpdate newPreUpdate, NotificationChain msgs) { + PreUpdate oldPreUpdate = preUpdate; + preUpdate = newPreUpdate; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__PRE_UPDATE, oldPreUpdate, newPreUpdate); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPreUpdate(PreUpdate newPreUpdate) { + if (newPreUpdate != preUpdate) { + NotificationChain msgs = null; + if (preUpdate != null) + msgs = ((InternalEObject)preUpdate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__PRE_UPDATE, null, msgs); + if (newPreUpdate != null) + msgs = ((InternalEObject)newPreUpdate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__PRE_UPDATE, null, msgs); + msgs = basicSetPreUpdate(newPreUpdate, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__PRE_UPDATE, newPreUpdate, newPreUpdate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostUpdate getPostUpdate() { + return postUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostUpdate(PostUpdate newPostUpdate, NotificationChain msgs) { + PostUpdate oldPostUpdate = postUpdate; + postUpdate = newPostUpdate; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_UPDATE, oldPostUpdate, newPostUpdate); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostUpdate(PostUpdate newPostUpdate) { + if (newPostUpdate != postUpdate) { + NotificationChain msgs = null; + if (postUpdate != null) + msgs = ((InternalEObject)postUpdate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_UPDATE, null, msgs); + if (newPostUpdate != null) + msgs = ((InternalEObject)newPostUpdate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_UPDATE, null, msgs); + msgs = basicSetPostUpdate(newPostUpdate, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_UPDATE, newPostUpdate, newPostUpdate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostLoad getPostLoad() { + return postLoad; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostLoad(PostLoad newPostLoad, NotificationChain msgs) { + PostLoad oldPostLoad = postLoad; + postLoad = newPostLoad; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_LOAD, oldPostLoad, newPostLoad); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostLoad(PostLoad newPostLoad) { + if (newPostLoad != postLoad) { + NotificationChain msgs = null; + if (postLoad != null) + msgs = ((InternalEObject)postLoad).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_LOAD, null, msgs); + if (newPostLoad != null) + msgs = ((InternalEObject)newPostLoad).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_LISTENER__POST_LOAD, null, msgs); + msgs = basicSetPostLoad(newPostLoad, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__POST_LOAD, newPostLoad, newPostLoad)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getClass_() { + return class_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setClass(String newClass) { + String oldClass = class_; + class_ = newClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_LISTENER__CLASS, oldClass, class_)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENER__PRE_PERSIST: + return basicSetPrePersist(null, msgs); + case OrmPackage.ENTITY_LISTENER__POST_PERSIST: + return basicSetPostPersist(null, msgs); + case OrmPackage.ENTITY_LISTENER__PRE_REMOVE: + return basicSetPreRemove(null, msgs); + case OrmPackage.ENTITY_LISTENER__POST_REMOVE: + return basicSetPostRemove(null, msgs); + case OrmPackage.ENTITY_LISTENER__PRE_UPDATE: + return basicSetPreUpdate(null, msgs); + case OrmPackage.ENTITY_LISTENER__POST_UPDATE: + return basicSetPostUpdate(null, msgs); + case OrmPackage.ENTITY_LISTENER__POST_LOAD: + return basicSetPostLoad(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENER__PRE_PERSIST: + return getPrePersist(); + case OrmPackage.ENTITY_LISTENER__POST_PERSIST: + return getPostPersist(); + case OrmPackage.ENTITY_LISTENER__PRE_REMOVE: + return getPreRemove(); + case OrmPackage.ENTITY_LISTENER__POST_REMOVE: + return getPostRemove(); + case OrmPackage.ENTITY_LISTENER__PRE_UPDATE: + return getPreUpdate(); + case OrmPackage.ENTITY_LISTENER__POST_UPDATE: + return getPostUpdate(); + case OrmPackage.ENTITY_LISTENER__POST_LOAD: + return getPostLoad(); + case OrmPackage.ENTITY_LISTENER__CLASS: + return getClass_(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENER__PRE_PERSIST: + setPrePersist((PrePersist)newValue); + return; + case OrmPackage.ENTITY_LISTENER__POST_PERSIST: + setPostPersist((PostPersist)newValue); + return; + case OrmPackage.ENTITY_LISTENER__PRE_REMOVE: + setPreRemove((PreRemove)newValue); + return; + case OrmPackage.ENTITY_LISTENER__POST_REMOVE: + setPostRemove((PostRemove)newValue); + return; + case OrmPackage.ENTITY_LISTENER__PRE_UPDATE: + setPreUpdate((PreUpdate)newValue); + return; + case OrmPackage.ENTITY_LISTENER__POST_UPDATE: + setPostUpdate((PostUpdate)newValue); + return; + case OrmPackage.ENTITY_LISTENER__POST_LOAD: + setPostLoad((PostLoad)newValue); + return; + case OrmPackage.ENTITY_LISTENER__CLASS: + setClass((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENER__PRE_PERSIST: + setPrePersist((PrePersist)null); + return; + case OrmPackage.ENTITY_LISTENER__POST_PERSIST: + setPostPersist((PostPersist)null); + return; + case OrmPackage.ENTITY_LISTENER__PRE_REMOVE: + setPreRemove((PreRemove)null); + return; + case OrmPackage.ENTITY_LISTENER__POST_REMOVE: + setPostRemove((PostRemove)null); + return; + case OrmPackage.ENTITY_LISTENER__PRE_UPDATE: + setPreUpdate((PreUpdate)null); + return; + case OrmPackage.ENTITY_LISTENER__POST_UPDATE: + setPostUpdate((PostUpdate)null); + return; + case OrmPackage.ENTITY_LISTENER__POST_LOAD: + setPostLoad((PostLoad)null); + return; + case OrmPackage.ENTITY_LISTENER__CLASS: + setClass(CLASS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENER__PRE_PERSIST: + return prePersist != null; + case OrmPackage.ENTITY_LISTENER__POST_PERSIST: + return postPersist != null; + case OrmPackage.ENTITY_LISTENER__PRE_REMOVE: + return preRemove != null; + case OrmPackage.ENTITY_LISTENER__POST_REMOVE: + return postRemove != null; + case OrmPackage.ENTITY_LISTENER__PRE_UPDATE: + return preUpdate != null; + case OrmPackage.ENTITY_LISTENER__POST_UPDATE: + return postUpdate != null; + case OrmPackage.ENTITY_LISTENER__POST_LOAD: + return postLoad != null; + case OrmPackage.ENTITY_LISTENER__CLASS: + return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (class: "); + result.append(class_); + result.append(')'); + return result.toString(); + } + +} //EntityListenerImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityListenersImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityListenersImpl.java new file mode 100755 index 000000000..b92f2bc9e --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityListenersImpl.java @@ -0,0 +1,156 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityListenersImpl.java,v 1.1 2009/03/15 23:45:03 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.EntityListener; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Entity Listeners</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityListenersImpl#getEntityListener <em>Entity Listener</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EntityListenersImpl extends EObjectImpl implements EntityListeners { + /** + * The cached value of the '{@link #getEntityListener() <em>Entity Listener</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntityListener() + * @generated + * @ordered + */ + protected EList<EntityListener> entityListener; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EntityListenersImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ENTITY_LISTENERS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<EntityListener> getEntityListener() { + if (entityListener == null) { + entityListener = new EObjectContainmentEList<EntityListener>(EntityListener.class, this, OrmPackage.ENTITY_LISTENERS__ENTITY_LISTENER); + } + return entityListener; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENERS__ENTITY_LISTENER: + return ((InternalEList<?>)getEntityListener()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENERS__ENTITY_LISTENER: + return getEntityListener(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENERS__ENTITY_LISTENER: + getEntityListener().clear(); + getEntityListener().addAll((Collection<? extends EntityListener>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENERS__ENTITY_LISTENER: + getEntityListener().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_LISTENERS__ENTITY_LISTENER: + return entityListener != null && !entityListener.isEmpty(); + } + return super.eIsSet(featureID); + } + +} //EntityListenersImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityMappingsTypeImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityMappingsTypeImpl.java new file mode 100755 index 000000000..ed3089036 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityMappingsTypeImpl.java @@ -0,0 +1,891 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityMappingsTypeImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.Embeddable; +import org.eclipse.emf.teneo.jpa.orm.Entity; +import org.eclipse.emf.teneo.jpa.orm.EntityMappingsType; +import org.eclipse.emf.teneo.jpa.orm.MappedSuperclass; +import org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery; +import org.eclipse.emf.teneo.jpa.orm.NamedQuery; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; +import org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Entity Mappings Type</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getPersistenceUnitMetadata <em>Persistence Unit Metadata</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getPackage <em>Package</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getSchema <em>Schema</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getSequenceGenerator <em>Sequence Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getTableGenerator <em>Table Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getNamedQuery <em>Named Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getNamedNativeQuery <em>Named Native Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getSqlResultSetMapping <em>Sql Result Set Mapping</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getMappedSuperclass <em>Mapped Superclass</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getEntity <em>Entity</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getEmbeddable <em>Embeddable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityMappingsTypeImpl#getVersion <em>Version</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EntityMappingsTypeImpl extends EObjectImpl implements EntityMappingsType { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getPersistenceUnitMetadata() <em>Persistence Unit Metadata</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPersistenceUnitMetadata() + * @generated + * @ordered + */ + protected PersistenceUnitMetadata persistenceUnitMetadata; + + /** + * The default value of the '{@link #getPackage() <em>Package</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPackage() + * @generated + * @ordered + */ + protected static final String PACKAGE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPackage() <em>Package</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPackage() + * @generated + * @ordered + */ + protected String package_ = PACKAGE_EDEFAULT; + + /** + * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected static final String SCHEMA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected String schema = SCHEMA_EDEFAULT; + + /** + * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected static final String CATALOG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected String catalog = CATALOG_EDEFAULT; + + /** + * The default value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected static final AccessType ACCESS_EDEFAULT = AccessType.PROPERTY; + + /** + * The cached value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected AccessType access = ACCESS_EDEFAULT; + + /** + * This is true if the Access attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean accessESet; + + /** + * The cached value of the '{@link #getSequenceGenerator() <em>Sequence Generator</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSequenceGenerator() + * @generated + * @ordered + */ + protected EList<SequenceGenerator> sequenceGenerator; + + /** + * The cached value of the '{@link #getTableGenerator() <em>Table Generator</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTableGenerator() + * @generated + * @ordered + */ + protected EList<TableGenerator> tableGenerator; + + /** + * The cached value of the '{@link #getNamedQuery() <em>Named Query</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNamedQuery() + * @generated + * @ordered + */ + protected EList<NamedQuery> namedQuery; + + /** + * The cached value of the '{@link #getNamedNativeQuery() <em>Named Native Query</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getNamedNativeQuery() + * @generated + * @ordered + */ + protected EList<NamedNativeQuery> namedNativeQuery; + + /** + * The cached value of the '{@link #getSqlResultSetMapping() <em>Sql Result Set Mapping</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSqlResultSetMapping() + * @generated + * @ordered + */ + protected EList<SqlResultSetMapping> sqlResultSetMapping; + + /** + * The cached value of the '{@link #getMappedSuperclass() <em>Mapped Superclass</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMappedSuperclass() + * @generated + * @ordered + */ + protected EList<MappedSuperclass> mappedSuperclass; + + /** + * The cached value of the '{@link #getEntity() <em>Entity</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntity() + * @generated + * @ordered + */ + protected EList<Entity> entity; + + /** + * The cached value of the '{@link #getEmbeddable() <em>Embeddable</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEmbeddable() + * @generated + * @ordered + */ + protected EList<Embeddable> embeddable; + + /** + * The default value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected static final String VERSION_EDEFAULT = "1.0"; + + /** + * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getVersion() + * @generated + * @ordered + */ + protected String version = VERSION_EDEFAULT; + + /** + * This is true if the Version attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean versionESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EntityMappingsTypeImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ENTITY_MAPPINGS_TYPE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PersistenceUnitMetadata getPersistenceUnitMetadata() { + return persistenceUnitMetadata; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPersistenceUnitMetadata(PersistenceUnitMetadata newPersistenceUnitMetadata, NotificationChain msgs) { + PersistenceUnitMetadata oldPersistenceUnitMetadata = persistenceUnitMetadata; + persistenceUnitMetadata = newPersistenceUnitMetadata; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA, oldPersistenceUnitMetadata, newPersistenceUnitMetadata); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPersistenceUnitMetadata(PersistenceUnitMetadata newPersistenceUnitMetadata) { + if (newPersistenceUnitMetadata != persistenceUnitMetadata) { + NotificationChain msgs = null; + if (persistenceUnitMetadata != null) + msgs = ((InternalEObject)persistenceUnitMetadata).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA, null, msgs); + if (newPersistenceUnitMetadata != null) + msgs = ((InternalEObject)newPersistenceUnitMetadata).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA, null, msgs); + msgs = basicSetPersistenceUnitMetadata(newPersistenceUnitMetadata, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA, newPersistenceUnitMetadata, newPersistenceUnitMetadata)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPackage() { + return package_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPackage(String newPackage) { + String oldPackage = package_; + package_ = newPackage; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__PACKAGE, oldPackage, package_)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSchema() { + return schema; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSchema(String newSchema) { + String oldSchema = schema; + schema = newSchema; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__SCHEMA, oldSchema, schema)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCatalog() { + return catalog; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCatalog(String newCatalog) { + String oldCatalog = catalog; + catalog = newCatalog; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__CATALOG, oldCatalog, catalog)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AccessType getAccess() { + return access; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAccess(AccessType newAccess) { + AccessType oldAccess = access; + access = newAccess == null ? ACCESS_EDEFAULT : newAccess; + boolean oldAccessESet = accessESet; + accessESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__ACCESS, oldAccess, access, !oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetAccess() { + AccessType oldAccess = access; + boolean oldAccessESet = accessESet; + access = ACCESS_EDEFAULT; + accessESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.ENTITY_MAPPINGS_TYPE__ACCESS, oldAccess, ACCESS_EDEFAULT, oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetAccess() { + return accessESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SequenceGenerator> getSequenceGenerator() { + if (sequenceGenerator == null) { + sequenceGenerator = new EObjectContainmentEList<SequenceGenerator>(SequenceGenerator.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR); + } + return sequenceGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<TableGenerator> getTableGenerator() { + if (tableGenerator == null) { + tableGenerator = new EObjectContainmentEList<TableGenerator>(TableGenerator.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR); + } + return tableGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<NamedQuery> getNamedQuery() { + if (namedQuery == null) { + namedQuery = new EObjectContainmentEList<NamedQuery>(NamedQuery.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_QUERY); + } + return namedQuery; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<NamedNativeQuery> getNamedNativeQuery() { + if (namedNativeQuery == null) { + namedNativeQuery = new EObjectContainmentEList<NamedNativeQuery>(NamedNativeQuery.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY); + } + return namedNativeQuery; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<SqlResultSetMapping> getSqlResultSetMapping() { + if (sqlResultSetMapping == null) { + sqlResultSetMapping = new EObjectContainmentEList<SqlResultSetMapping>(SqlResultSetMapping.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING); + } + return sqlResultSetMapping; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<MappedSuperclass> getMappedSuperclass() { + if (mappedSuperclass == null) { + mappedSuperclass = new EObjectContainmentEList<MappedSuperclass>(MappedSuperclass.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS); + } + return mappedSuperclass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Entity> getEntity() { + if (entity == null) { + entity = new EObjectContainmentEList<Entity>(Entity.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__ENTITY); + } + return entity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<Embeddable> getEmbeddable() { + if (embeddable == null) { + embeddable = new EObjectContainmentEList<Embeddable>(Embeddable.class, this, OrmPackage.ENTITY_MAPPINGS_TYPE__EMBEDDABLE); + } + return embeddable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getVersion() { + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setVersion(String newVersion) { + String oldVersion = version; + version = newVersion; + boolean oldVersionESet = versionESet; + versionESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_MAPPINGS_TYPE__VERSION, oldVersion, version, !oldVersionESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetVersion() { + String oldVersion = version; + boolean oldVersionESet = versionESet; + version = VERSION_EDEFAULT; + versionESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.ENTITY_MAPPINGS_TYPE__VERSION, oldVersion, VERSION_EDEFAULT, oldVersionESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetVersion() { + return versionESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA: + return basicSetPersistenceUnitMetadata(null, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR: + return ((InternalEList<?>)getSequenceGenerator()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR: + return ((InternalEList<?>)getTableGenerator()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_QUERY: + return ((InternalEList<?>)getNamedQuery()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY: + return ((InternalEList<?>)getNamedNativeQuery()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING: + return ((InternalEList<?>)getSqlResultSetMapping()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS: + return ((InternalEList<?>)getMappedSuperclass()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__ENTITY: + return ((InternalEList<?>)getEntity()).basicRemove(otherEnd, msgs); + case OrmPackage.ENTITY_MAPPINGS_TYPE__EMBEDDABLE: + return ((InternalEList<?>)getEmbeddable()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ENTITY_MAPPINGS_TYPE__DESCRIPTION: + return getDescription(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA: + return getPersistenceUnitMetadata(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__PACKAGE: + return getPackage(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SCHEMA: + return getSchema(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__CATALOG: + return getCatalog(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__ACCESS: + return getAccess(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR: + return getSequenceGenerator(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR: + return getTableGenerator(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_QUERY: + return getNamedQuery(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY: + return getNamedNativeQuery(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING: + return getSqlResultSetMapping(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS: + return getMappedSuperclass(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__ENTITY: + return getEntity(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__EMBEDDABLE: + return getEmbeddable(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__VERSION: + return getVersion(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ENTITY_MAPPINGS_TYPE__DESCRIPTION: + setDescription((String)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA: + setPersistenceUnitMetadata((PersistenceUnitMetadata)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__PACKAGE: + setPackage((String)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__SCHEMA: + setSchema((String)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__CATALOG: + setCatalog((String)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__ACCESS: + setAccess((AccessType)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR: + getSequenceGenerator().clear(); + getSequenceGenerator().addAll((Collection<? extends SequenceGenerator>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR: + getTableGenerator().clear(); + getTableGenerator().addAll((Collection<? extends TableGenerator>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_QUERY: + getNamedQuery().clear(); + getNamedQuery().addAll((Collection<? extends NamedQuery>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY: + getNamedNativeQuery().clear(); + getNamedNativeQuery().addAll((Collection<? extends NamedNativeQuery>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING: + getSqlResultSetMapping().clear(); + getSqlResultSetMapping().addAll((Collection<? extends SqlResultSetMapping>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS: + getMappedSuperclass().clear(); + getMappedSuperclass().addAll((Collection<? extends MappedSuperclass>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__ENTITY: + getEntity().clear(); + getEntity().addAll((Collection<? extends Entity>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__EMBEDDABLE: + getEmbeddable().clear(); + getEmbeddable().addAll((Collection<? extends Embeddable>)newValue); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__VERSION: + setVersion((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_MAPPINGS_TYPE__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA: + setPersistenceUnitMetadata((PersistenceUnitMetadata)null); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__PACKAGE: + setPackage(PACKAGE_EDEFAULT); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__SCHEMA: + setSchema(SCHEMA_EDEFAULT); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__CATALOG: + setCatalog(CATALOG_EDEFAULT); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__ACCESS: + unsetAccess(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR: + getSequenceGenerator().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR: + getTableGenerator().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_QUERY: + getNamedQuery().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY: + getNamedNativeQuery().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING: + getSqlResultSetMapping().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS: + getMappedSuperclass().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__ENTITY: + getEntity().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__EMBEDDABLE: + getEmbeddable().clear(); + return; + case OrmPackage.ENTITY_MAPPINGS_TYPE__VERSION: + unsetVersion(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_MAPPINGS_TYPE__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case OrmPackage.ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA: + return persistenceUnitMetadata != null; + case OrmPackage.ENTITY_MAPPINGS_TYPE__PACKAGE: + return PACKAGE_EDEFAULT == null ? package_ != null : !PACKAGE_EDEFAULT.equals(package_); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SCHEMA: + return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema); + case OrmPackage.ENTITY_MAPPINGS_TYPE__CATALOG: + return CATALOG_EDEFAULT == null ? catalog != null : !CATALOG_EDEFAULT.equals(catalog); + case OrmPackage.ENTITY_MAPPINGS_TYPE__ACCESS: + return isSetAccess(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR: + return sequenceGenerator != null && !sequenceGenerator.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR: + return tableGenerator != null && !tableGenerator.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_QUERY: + return namedQuery != null && !namedQuery.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY: + return namedNativeQuery != null && !namedNativeQuery.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING: + return sqlResultSetMapping != null && !sqlResultSetMapping.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS: + return mappedSuperclass != null && !mappedSuperclass.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__ENTITY: + return entity != null && !entity.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__EMBEDDABLE: + return embeddable != null && !embeddable.isEmpty(); + case OrmPackage.ENTITY_MAPPINGS_TYPE__VERSION: + return isSetVersion(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", package: "); + result.append(package_); + result.append(", schema: "); + result.append(schema); + result.append(", catalog: "); + result.append(catalog); + result.append(", access: "); + if (accessESet) result.append(access); else result.append("<unset>"); + result.append(", version: "); + if (versionESet) result.append(version); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //EntityMappingsTypeImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityResultImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityResultImpl.java new file mode 100755 index 000000000..2d8db76af --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/EntityResultImpl.java @@ -0,0 +1,280 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityResultImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.EntityResult; +import org.eclipse.emf.teneo.jpa.orm.FieldResult; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Entity Result</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityResultImpl#getFieldResult <em>Field Result</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityResultImpl#getDiscriminatorColumn <em>Discriminator Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.EntityResultImpl#getEntityClass <em>Entity Class</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class EntityResultImpl extends EObjectImpl implements EntityResult { + /** + * The cached value of the '{@link #getFieldResult() <em>Field Result</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFieldResult() + * @generated + * @ordered + */ + protected EList<FieldResult> fieldResult; + + /** + * The default value of the '{@link #getDiscriminatorColumn() <em>Discriminator Column</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDiscriminatorColumn() + * @generated + * @ordered + */ + protected static final String DISCRIMINATOR_COLUMN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDiscriminatorColumn() <em>Discriminator Column</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDiscriminatorColumn() + * @generated + * @ordered + */ + protected String discriminatorColumn = DISCRIMINATOR_COLUMN_EDEFAULT; + + /** + * The default value of the '{@link #getEntityClass() <em>Entity Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntityClass() + * @generated + * @ordered + */ + protected static final String ENTITY_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getEntityClass() <em>Entity Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntityClass() + * @generated + * @ordered + */ + protected String entityClass = ENTITY_CLASS_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected EntityResultImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ENTITY_RESULT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<FieldResult> getFieldResult() { + if (fieldResult == null) { + fieldResult = new EObjectContainmentEList<FieldResult>(FieldResult.class, this, OrmPackage.ENTITY_RESULT__FIELD_RESULT); + } + return fieldResult; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDiscriminatorColumn() { + return discriminatorColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDiscriminatorColumn(String newDiscriminatorColumn) { + String oldDiscriminatorColumn = discriminatorColumn; + discriminatorColumn = newDiscriminatorColumn; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_RESULT__DISCRIMINATOR_COLUMN, oldDiscriminatorColumn, discriminatorColumn)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getEntityClass() { + return entityClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEntityClass(String newEntityClass) { + String oldEntityClass = entityClass; + entityClass = newEntityClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ENTITY_RESULT__ENTITY_CLASS, oldEntityClass, entityClass)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ENTITY_RESULT__FIELD_RESULT: + return ((InternalEList<?>)getFieldResult()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ENTITY_RESULT__FIELD_RESULT: + return getFieldResult(); + case OrmPackage.ENTITY_RESULT__DISCRIMINATOR_COLUMN: + return getDiscriminatorColumn(); + case OrmPackage.ENTITY_RESULT__ENTITY_CLASS: + return getEntityClass(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ENTITY_RESULT__FIELD_RESULT: + getFieldResult().clear(); + getFieldResult().addAll((Collection<? extends FieldResult>)newValue); + return; + case OrmPackage.ENTITY_RESULT__DISCRIMINATOR_COLUMN: + setDiscriminatorColumn((String)newValue); + return; + case OrmPackage.ENTITY_RESULT__ENTITY_CLASS: + setEntityClass((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_RESULT__FIELD_RESULT: + getFieldResult().clear(); + return; + case OrmPackage.ENTITY_RESULT__DISCRIMINATOR_COLUMN: + setDiscriminatorColumn(DISCRIMINATOR_COLUMN_EDEFAULT); + return; + case OrmPackage.ENTITY_RESULT__ENTITY_CLASS: + setEntityClass(ENTITY_CLASS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ENTITY_RESULT__FIELD_RESULT: + return fieldResult != null && !fieldResult.isEmpty(); + case OrmPackage.ENTITY_RESULT__DISCRIMINATOR_COLUMN: + return DISCRIMINATOR_COLUMN_EDEFAULT == null ? discriminatorColumn != null : !DISCRIMINATOR_COLUMN_EDEFAULT.equals(discriminatorColumn); + case OrmPackage.ENTITY_RESULT__ENTITY_CLASS: + return ENTITY_CLASS_EDEFAULT == null ? entityClass != null : !ENTITY_CLASS_EDEFAULT.equals(entityClass); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (discriminatorColumn: "); + result.append(discriminatorColumn); + result.append(", entityClass: "); + result.append(entityClass); + result.append(')'); + return result.toString(); + } + +} //EntityResultImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/FieldResultImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/FieldResultImpl.java new file mode 100755 index 000000000..1f8ee400d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/FieldResultImpl.java @@ -0,0 +1,221 @@ +/** + * <copyright> + * </copyright> + * + * $Id: FieldResultImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.FieldResult; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Field Result</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.FieldResultImpl#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.FieldResultImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class FieldResultImpl extends EObjectImpl implements FieldResult { + /** + * The default value of the '{@link #getColumn() <em>Column</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumn() + * @generated + * @ordered + */ + protected static final String COLUMN_EDEFAULT = null; + + /** + * The cached value of the '{@link #getColumn() <em>Column</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumn() + * @generated + * @ordered + */ + protected String column = COLUMN_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected FieldResultImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.FIELD_RESULT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getColumn() { + return column; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumn(String newColumn) { + String oldColumn = column; + column = newColumn; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.FIELD_RESULT__COLUMN, oldColumn, column)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.FIELD_RESULT__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.FIELD_RESULT__COLUMN: + return getColumn(); + case OrmPackage.FIELD_RESULT__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.FIELD_RESULT__COLUMN: + setColumn((String)newValue); + return; + case OrmPackage.FIELD_RESULT__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.FIELD_RESULT__COLUMN: + setColumn(COLUMN_EDEFAULT); + return; + case OrmPackage.FIELD_RESULT__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.FIELD_RESULT__COLUMN: + return COLUMN_EDEFAULT == null ? column != null : !COLUMN_EDEFAULT.equals(column); + case OrmPackage.FIELD_RESULT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (column: "); + result.append(column); + result.append(", name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //FieldResultImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/GeneratedValueImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/GeneratedValueImpl.java new file mode 100755 index 000000000..d9b65558c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/GeneratedValueImpl.java @@ -0,0 +1,256 @@ +/** + * <copyright> + * </copyright> + * + * $Id: GeneratedValueImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.GeneratedValue; +import org.eclipse.emf.teneo.jpa.orm.GenerationType; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Generated Value</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.GeneratedValueImpl#getGenerator <em>Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.GeneratedValueImpl#getStrategy <em>Strategy</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class GeneratedValueImpl extends EObjectImpl implements GeneratedValue { + /** + * The default value of the '{@link #getGenerator() <em>Generator</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGenerator() + * @generated + * @ordered + */ + protected static final String GENERATOR_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGenerator() <em>Generator</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGenerator() + * @generated + * @ordered + */ + protected String generator = GENERATOR_EDEFAULT; + + /** + * The default value of the '{@link #getStrategy() <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStrategy() + * @generated + * @ordered + */ + protected static final GenerationType STRATEGY_EDEFAULT = GenerationType.TABLE; + + /** + * The cached value of the '{@link #getStrategy() <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStrategy() + * @generated + * @ordered + */ + protected GenerationType strategy = STRATEGY_EDEFAULT; + + /** + * This is true if the Strategy attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean strategyESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected GeneratedValueImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.GENERATED_VALUE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getGenerator() { + return generator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setGenerator(String newGenerator) { + String oldGenerator = generator; + generator = newGenerator; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.GENERATED_VALUE__GENERATOR, oldGenerator, generator)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GenerationType getStrategy() { + return strategy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStrategy(GenerationType newStrategy) { + GenerationType oldStrategy = strategy; + strategy = newStrategy == null ? STRATEGY_EDEFAULT : newStrategy; + boolean oldStrategyESet = strategyESet; + strategyESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.GENERATED_VALUE__STRATEGY, oldStrategy, strategy, !oldStrategyESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetStrategy() { + GenerationType oldStrategy = strategy; + boolean oldStrategyESet = strategyESet; + strategy = STRATEGY_EDEFAULT; + strategyESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.GENERATED_VALUE__STRATEGY, oldStrategy, STRATEGY_EDEFAULT, oldStrategyESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetStrategy() { + return strategyESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.GENERATED_VALUE__GENERATOR: + return getGenerator(); + case OrmPackage.GENERATED_VALUE__STRATEGY: + return getStrategy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.GENERATED_VALUE__GENERATOR: + setGenerator((String)newValue); + return; + case OrmPackage.GENERATED_VALUE__STRATEGY: + setStrategy((GenerationType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.GENERATED_VALUE__GENERATOR: + setGenerator(GENERATOR_EDEFAULT); + return; + case OrmPackage.GENERATED_VALUE__STRATEGY: + unsetStrategy(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.GENERATED_VALUE__GENERATOR: + return GENERATOR_EDEFAULT == null ? generator != null : !GENERATOR_EDEFAULT.equals(generator); + case OrmPackage.GENERATED_VALUE__STRATEGY: + return isSetStrategy(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (generator: "); + result.append(generator); + result.append(", strategy: "); + if (strategyESet) result.append(strategy); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //GeneratedValueImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/IdClassImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/IdClassImpl.java new file mode 100755 index 000000000..6be9f1ffa --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/IdClassImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: IdClassImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.IdClass; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Id Class</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.IdClassImpl#getClass_ <em>Class</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class IdClassImpl extends EObjectImpl implements IdClass { + /** + * The default value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected static final String CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected String class_ = CLASS_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected IdClassImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ID_CLASS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getClass_() { + return class_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setClass(String newClass) { + String oldClass = class_; + class_ = newClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ID_CLASS__CLASS, oldClass, class_)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ID_CLASS__CLASS: + return getClass_(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ID_CLASS__CLASS: + setClass((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ID_CLASS__CLASS: + setClass(CLASS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ID_CLASS__CLASS: + return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (class: "); + result.append(class_); + result.append(')'); + return result.toString(); + } + +} //IdClassImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/IdImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/IdImpl.java new file mode 100755 index 000000000..6313c12d4 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/IdImpl.java @@ -0,0 +1,504 @@ +/** + * <copyright> + * </copyright> + * + * $Id: IdImpl.java,v 1.1 2009/03/15 23:45:03 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.GeneratedValue; +import org.eclipse.emf.teneo.jpa.orm.Id; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; +import org.eclipse.emf.teneo.jpa.orm.TemporalType; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Id</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl#getGeneratedValue <em>Generated Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl#getTemporal <em>Temporal</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl#getTableGenerator <em>Table Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl#getSequenceGenerator <em>Sequence Generator</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.IdImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class IdImpl extends EObjectImpl implements Id { + /** + * The cached value of the '{@link #getColumn() <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumn() + * @generated + * @ordered + */ + protected Column column; + + /** + * The cached value of the '{@link #getGeneratedValue() <em>Generated Value</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getGeneratedValue() + * @generated + * @ordered + */ + protected GeneratedValue generatedValue; + + /** + * The default value of the '{@link #getTemporal() <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemporal() + * @generated + * @ordered + */ + protected static final TemporalType TEMPORAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTemporal() <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemporal() + * @generated + * @ordered + */ + protected TemporalType temporal = TEMPORAL_EDEFAULT; + + /** + * The cached value of the '{@link #getTableGenerator() <em>Table Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTableGenerator() + * @generated + * @ordered + */ + protected TableGenerator tableGenerator; + + /** + * The cached value of the '{@link #getSequenceGenerator() <em>Sequence Generator</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSequenceGenerator() + * @generated + * @ordered + */ + protected SequenceGenerator sequenceGenerator; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected IdImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ID; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Column getColumn() { + return column; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetColumn(Column newColumn, NotificationChain msgs) { + Column oldColumn = column; + column = newColumn; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ID__COLUMN, oldColumn, newColumn); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumn(Column newColumn) { + if (newColumn != column) { + NotificationChain msgs = null; + if (column != null) + msgs = ((InternalEObject)column).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__COLUMN, null, msgs); + if (newColumn != null) + msgs = ((InternalEObject)newColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__COLUMN, null, msgs); + msgs = basicSetColumn(newColumn, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ID__COLUMN, newColumn, newColumn)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GeneratedValue getGeneratedValue() { + return generatedValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetGeneratedValue(GeneratedValue newGeneratedValue, NotificationChain msgs) { + GeneratedValue oldGeneratedValue = generatedValue; + generatedValue = newGeneratedValue; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ID__GENERATED_VALUE, oldGeneratedValue, newGeneratedValue); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setGeneratedValue(GeneratedValue newGeneratedValue) { + if (newGeneratedValue != generatedValue) { + NotificationChain msgs = null; + if (generatedValue != null) + msgs = ((InternalEObject)generatedValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__GENERATED_VALUE, null, msgs); + if (newGeneratedValue != null) + msgs = ((InternalEObject)newGeneratedValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__GENERATED_VALUE, null, msgs); + msgs = basicSetGeneratedValue(newGeneratedValue, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ID__GENERATED_VALUE, newGeneratedValue, newGeneratedValue)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TemporalType getTemporal() { + return temporal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTemporal(TemporalType newTemporal) { + TemporalType oldTemporal = temporal; + temporal = newTemporal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ID__TEMPORAL, oldTemporal, temporal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableGenerator getTableGenerator() { + return tableGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetTableGenerator(TableGenerator newTableGenerator, NotificationChain msgs) { + TableGenerator oldTableGenerator = tableGenerator; + tableGenerator = newTableGenerator; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ID__TABLE_GENERATOR, oldTableGenerator, newTableGenerator); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTableGenerator(TableGenerator newTableGenerator) { + if (newTableGenerator != tableGenerator) { + NotificationChain msgs = null; + if (tableGenerator != null) + msgs = ((InternalEObject)tableGenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__TABLE_GENERATOR, null, msgs); + if (newTableGenerator != null) + msgs = ((InternalEObject)newTableGenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__TABLE_GENERATOR, null, msgs); + msgs = basicSetTableGenerator(newTableGenerator, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ID__TABLE_GENERATOR, newTableGenerator, newTableGenerator)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SequenceGenerator getSequenceGenerator() { + return sequenceGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetSequenceGenerator(SequenceGenerator newSequenceGenerator, NotificationChain msgs) { + SequenceGenerator oldSequenceGenerator = sequenceGenerator; + sequenceGenerator = newSequenceGenerator; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ID__SEQUENCE_GENERATOR, oldSequenceGenerator, newSequenceGenerator); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSequenceGenerator(SequenceGenerator newSequenceGenerator) { + if (newSequenceGenerator != sequenceGenerator) { + NotificationChain msgs = null; + if (sequenceGenerator != null) + msgs = ((InternalEObject)sequenceGenerator).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__SEQUENCE_GENERATOR, null, msgs); + if (newSequenceGenerator != null) + msgs = ((InternalEObject)newSequenceGenerator).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ID__SEQUENCE_GENERATOR, null, msgs); + msgs = basicSetSequenceGenerator(newSequenceGenerator, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ID__SEQUENCE_GENERATOR, newSequenceGenerator, newSequenceGenerator)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ID__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ID__COLUMN: + return basicSetColumn(null, msgs); + case OrmPackage.ID__GENERATED_VALUE: + return basicSetGeneratedValue(null, msgs); + case OrmPackage.ID__TABLE_GENERATOR: + return basicSetTableGenerator(null, msgs); + case OrmPackage.ID__SEQUENCE_GENERATOR: + return basicSetSequenceGenerator(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ID__COLUMN: + return getColumn(); + case OrmPackage.ID__GENERATED_VALUE: + return getGeneratedValue(); + case OrmPackage.ID__TEMPORAL: + return getTemporal(); + case OrmPackage.ID__TABLE_GENERATOR: + return getTableGenerator(); + case OrmPackage.ID__SEQUENCE_GENERATOR: + return getSequenceGenerator(); + case OrmPackage.ID__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ID__COLUMN: + setColumn((Column)newValue); + return; + case OrmPackage.ID__GENERATED_VALUE: + setGeneratedValue((GeneratedValue)newValue); + return; + case OrmPackage.ID__TEMPORAL: + setTemporal((TemporalType)newValue); + return; + case OrmPackage.ID__TABLE_GENERATOR: + setTableGenerator((TableGenerator)newValue); + return; + case OrmPackage.ID__SEQUENCE_GENERATOR: + setSequenceGenerator((SequenceGenerator)newValue); + return; + case OrmPackage.ID__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ID__COLUMN: + setColumn((Column)null); + return; + case OrmPackage.ID__GENERATED_VALUE: + setGeneratedValue((GeneratedValue)null); + return; + case OrmPackage.ID__TEMPORAL: + setTemporal(TEMPORAL_EDEFAULT); + return; + case OrmPackage.ID__TABLE_GENERATOR: + setTableGenerator((TableGenerator)null); + return; + case OrmPackage.ID__SEQUENCE_GENERATOR: + setSequenceGenerator((SequenceGenerator)null); + return; + case OrmPackage.ID__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ID__COLUMN: + return column != null; + case OrmPackage.ID__GENERATED_VALUE: + return generatedValue != null; + case OrmPackage.ID__TEMPORAL: + return TEMPORAL_EDEFAULT == null ? temporal != null : !TEMPORAL_EDEFAULT.equals(temporal); + case OrmPackage.ID__TABLE_GENERATOR: + return tableGenerator != null; + case OrmPackage.ID__SEQUENCE_GENERATOR: + return sequenceGenerator != null; + case OrmPackage.ID__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (temporal: "); + result.append(temporal); + result.append(", name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //IdImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/InheritanceImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/InheritanceImpl.java new file mode 100755 index 000000000..caecb5ae5 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/InheritanceImpl.java @@ -0,0 +1,202 @@ +/** + * <copyright> + * </copyright> + * + * $Id: InheritanceImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.Inheritance; +import org.eclipse.emf.teneo.jpa.orm.InheritanceType; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Inheritance</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.InheritanceImpl#getStrategy <em>Strategy</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class InheritanceImpl extends EObjectImpl implements Inheritance { + /** + * The default value of the '{@link #getStrategy() <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStrategy() + * @generated + * @ordered + */ + protected static final InheritanceType STRATEGY_EDEFAULT = InheritanceType.SINGLETABLE; + + /** + * The cached value of the '{@link #getStrategy() <em>Strategy</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getStrategy() + * @generated + * @ordered + */ + protected InheritanceType strategy = STRATEGY_EDEFAULT; + + /** + * This is true if the Strategy attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean strategyESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected InheritanceImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.INHERITANCE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InheritanceType getStrategy() { + return strategy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setStrategy(InheritanceType newStrategy) { + InheritanceType oldStrategy = strategy; + strategy = newStrategy == null ? STRATEGY_EDEFAULT : newStrategy; + boolean oldStrategyESet = strategyESet; + strategyESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.INHERITANCE__STRATEGY, oldStrategy, strategy, !oldStrategyESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetStrategy() { + InheritanceType oldStrategy = strategy; + boolean oldStrategyESet = strategyESet; + strategy = STRATEGY_EDEFAULT; + strategyESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.INHERITANCE__STRATEGY, oldStrategy, STRATEGY_EDEFAULT, oldStrategyESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetStrategy() { + return strategyESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.INHERITANCE__STRATEGY: + return getStrategy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.INHERITANCE__STRATEGY: + setStrategy((InheritanceType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.INHERITANCE__STRATEGY: + unsetStrategy(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.INHERITANCE__STRATEGY: + return isSetStrategy(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (strategy: "); + if (strategyESet) result.append(strategy); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //InheritanceImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/JoinColumnImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/JoinColumnImpl.java new file mode 100755 index 000000000..5eab33c7c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/JoinColumnImpl.java @@ -0,0 +1,681 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JoinColumnImpl.java,v 1.2 2009/07/23 11:16:30 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Join Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#isInsertable <em>Insertable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#isNullable <em>Nullable</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#getReferencedColumnName <em>Referenced Column Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#isUnique <em>Unique</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinColumnImpl#isUpdatable <em>Updatable</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class JoinColumnImpl extends EObjectImpl implements JoinColumn { + /** + * The default value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected static final String COLUMN_DEFINITION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected String columnDefinition = COLUMN_DEFINITION_EDEFAULT; + + /** + * The default value of the '{@link #isInsertable() <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isInsertable() + * @generated + * @ordered + */ + protected static final boolean INSERTABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isInsertable() <em>Insertable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isInsertable() + * @generated + * @ordered + */ + protected boolean insertable = INSERTABLE_EDEFAULT; + + /** + * This is true if the Insertable attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean insertableESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #isNullable() <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isNullable() + * @generated + * @ordered + */ + protected static final boolean NULLABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isNullable() <em>Nullable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isNullable() + * @generated + * @ordered + */ + protected boolean nullable = NULLABLE_EDEFAULT; + + /** + * This is true if the Nullable attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean nullableESet; + + /** + * The default value of the '{@link #getReferencedColumnName() <em>Referenced Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getReferencedColumnName() + * @generated + * @ordered + */ + protected static final String REFERENCED_COLUMN_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getReferencedColumnName() <em>Referenced Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getReferencedColumnName() + * @generated + * @ordered + */ + protected String referencedColumnName = REFERENCED_COLUMN_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTable() <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTable() + * @generated + * @ordered + */ + protected static final String TABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTable() <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTable() + * @generated + * @ordered + */ + protected String table = TABLE_EDEFAULT; + + /** + * The default value of the '{@link #isUnique() <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUnique() + * @generated + * @ordered + */ + protected static final boolean UNIQUE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUnique() <em>Unique</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUnique() + * @generated + * @ordered + */ + protected boolean unique = UNIQUE_EDEFAULT; + + /** + * This is true if the Unique attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean uniqueESet; + + /** + * The default value of the '{@link #isUpdatable() <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUpdatable() + * @generated + * @ordered + */ + protected static final boolean UPDATABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isUpdatable() <em>Updatable</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isUpdatable() + * @generated + * @ordered + */ + protected boolean updatable = UPDATABLE_EDEFAULT; + + /** + * This is true if the Updatable attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean updatableESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected JoinColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.JOIN_COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getColumnDefinition() { + return columnDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumnDefinition(String newColumnDefinition) { + String oldColumnDefinition = columnDefinition; + columnDefinition = newColumnDefinition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__COLUMN_DEFINITION, oldColumnDefinition, columnDefinition)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isInsertable() { + return insertable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInsertable(boolean newInsertable) { + boolean oldInsertable = insertable; + insertable = newInsertable; + boolean oldInsertableESet = insertableESet; + insertableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__INSERTABLE, oldInsertable, insertable, !oldInsertableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetInsertable() { + boolean oldInsertable = insertable; + boolean oldInsertableESet = insertableESet; + insertable = INSERTABLE_EDEFAULT; + insertableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.JOIN_COLUMN__INSERTABLE, oldInsertable, INSERTABLE_EDEFAULT, oldInsertableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetInsertable() { + return insertableESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isNullable() { + return nullable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setNullable(boolean newNullable) { + boolean oldNullable = nullable; + nullable = newNullable; + boolean oldNullableESet = nullableESet; + nullableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__NULLABLE, oldNullable, nullable, !oldNullableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetNullable() { + boolean oldNullable = nullable; + boolean oldNullableESet = nullableESet; + nullable = NULLABLE_EDEFAULT; + nullableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.JOIN_COLUMN__NULLABLE, oldNullable, NULLABLE_EDEFAULT, oldNullableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetNullable() { + return nullableESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getReferencedColumnName() { + return referencedColumnName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setReferencedColumnName(String newReferencedColumnName) { + String oldReferencedColumnName = referencedColumnName; + referencedColumnName = newReferencedColumnName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__REFERENCED_COLUMN_NAME, oldReferencedColumnName, referencedColumnName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTable() { + return table; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTable(String newTable) { + String oldTable = table; + table = newTable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__TABLE, oldTable, table)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isUnique() { + return unique; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUnique(boolean newUnique) { + boolean oldUnique = unique; + unique = newUnique; + boolean oldUniqueESet = uniqueESet; + uniqueESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__UNIQUE, oldUnique, unique, !oldUniqueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetUnique() { + boolean oldUnique = unique; + boolean oldUniqueESet = uniqueESet; + unique = UNIQUE_EDEFAULT; + uniqueESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.JOIN_COLUMN__UNIQUE, oldUnique, UNIQUE_EDEFAULT, oldUniqueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetUnique() { + return uniqueESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isUpdatable() { + return updatable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setUpdatable(boolean newUpdatable) { + boolean oldUpdatable = updatable; + updatable = newUpdatable; + boolean oldUpdatableESet = updatableESet; + updatableESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_COLUMN__UPDATABLE, oldUpdatable, updatable, !oldUpdatableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetUpdatable() { + boolean oldUpdatable = updatable; + boolean oldUpdatableESet = updatableESet; + updatable = UPDATABLE_EDEFAULT; + updatableESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.JOIN_COLUMN__UPDATABLE, oldUpdatable, UPDATABLE_EDEFAULT, oldUpdatableESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetUpdatable() { + return updatableESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.JOIN_COLUMN__COLUMN_DEFINITION: + return getColumnDefinition(); + case OrmPackage.JOIN_COLUMN__INSERTABLE: + return isInsertable(); + case OrmPackage.JOIN_COLUMN__NAME: + return getName(); + case OrmPackage.JOIN_COLUMN__NULLABLE: + return isNullable(); + case OrmPackage.JOIN_COLUMN__REFERENCED_COLUMN_NAME: + return getReferencedColumnName(); + case OrmPackage.JOIN_COLUMN__TABLE: + return getTable(); + case OrmPackage.JOIN_COLUMN__UNIQUE: + return isUnique(); + case OrmPackage.JOIN_COLUMN__UPDATABLE: + return isUpdatable(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.JOIN_COLUMN__COLUMN_DEFINITION: + setColumnDefinition((String)newValue); + return; + case OrmPackage.JOIN_COLUMN__INSERTABLE: + setInsertable((Boolean)newValue); + return; + case OrmPackage.JOIN_COLUMN__NAME: + setName((String)newValue); + return; + case OrmPackage.JOIN_COLUMN__NULLABLE: + setNullable((Boolean)newValue); + return; + case OrmPackage.JOIN_COLUMN__REFERENCED_COLUMN_NAME: + setReferencedColumnName((String)newValue); + return; + case OrmPackage.JOIN_COLUMN__TABLE: + setTable((String)newValue); + return; + case OrmPackage.JOIN_COLUMN__UNIQUE: + setUnique((Boolean)newValue); + return; + case OrmPackage.JOIN_COLUMN__UPDATABLE: + setUpdatable((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.JOIN_COLUMN__COLUMN_DEFINITION: + setColumnDefinition(COLUMN_DEFINITION_EDEFAULT); + return; + case OrmPackage.JOIN_COLUMN__INSERTABLE: + unsetInsertable(); + return; + case OrmPackage.JOIN_COLUMN__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.JOIN_COLUMN__NULLABLE: + unsetNullable(); + return; + case OrmPackage.JOIN_COLUMN__REFERENCED_COLUMN_NAME: + setReferencedColumnName(REFERENCED_COLUMN_NAME_EDEFAULT); + return; + case OrmPackage.JOIN_COLUMN__TABLE: + setTable(TABLE_EDEFAULT); + return; + case OrmPackage.JOIN_COLUMN__UNIQUE: + unsetUnique(); + return; + case OrmPackage.JOIN_COLUMN__UPDATABLE: + unsetUpdatable(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.JOIN_COLUMN__COLUMN_DEFINITION: + return COLUMN_DEFINITION_EDEFAULT == null ? columnDefinition != null : !COLUMN_DEFINITION_EDEFAULT.equals(columnDefinition); + case OrmPackage.JOIN_COLUMN__INSERTABLE: + return isSetInsertable(); + case OrmPackage.JOIN_COLUMN__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.JOIN_COLUMN__NULLABLE: + return isSetNullable(); + case OrmPackage.JOIN_COLUMN__REFERENCED_COLUMN_NAME: + return REFERENCED_COLUMN_NAME_EDEFAULT == null ? referencedColumnName != null : !REFERENCED_COLUMN_NAME_EDEFAULT.equals(referencedColumnName); + case OrmPackage.JOIN_COLUMN__TABLE: + return TABLE_EDEFAULT == null ? table != null : !TABLE_EDEFAULT.equals(table); + case OrmPackage.JOIN_COLUMN__UNIQUE: + return isSetUnique(); + case OrmPackage.JOIN_COLUMN__UPDATABLE: + return isSetUpdatable(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (columnDefinition: "); + result.append(columnDefinition); + result.append(", insertable: "); + if (insertableESet) result.append(insertable); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(", nullable: "); + if (nullableESet) result.append(nullable); else result.append("<unset>"); + result.append(", referencedColumnName: "); + result.append(referencedColumnName); + result.append(", table: "); + result.append(table); + result.append(", unique: "); + if (uniqueESet) result.append(unique); else result.append("<unset>"); + result.append(", updatable: "); + if (updatableESet) result.append(updatable); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //JoinColumnImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/JoinTableImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/JoinTableImpl.java new file mode 100755 index 000000000..3c4bd9ad6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/JoinTableImpl.java @@ -0,0 +1,407 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JoinTableImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Join Table</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl#getInverseJoinColumn <em>Inverse Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.JoinTableImpl#getSchema <em>Schema</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class JoinTableImpl extends EObjectImpl implements JoinTable { + /** + * The cached value of the '{@link #getJoinColumn() <em>Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinColumn() + * @generated + * @ordered + */ + protected EList<JoinColumn> joinColumn; + + /** + * The cached value of the '{@link #getInverseJoinColumn() <em>Inverse Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInverseJoinColumn() + * @generated + * @ordered + */ + protected EList<JoinColumn> inverseJoinColumn; + + /** + * The cached value of the '{@link #getUniqueConstraint() <em>Unique Constraint</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUniqueConstraint() + * @generated + * @ordered + */ + protected EList<UniqueConstraint> uniqueConstraint; + + /** + * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected static final String CATALOG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected String catalog = CATALOG_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected static final String SCHEMA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected String schema = SCHEMA_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected JoinTableImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.JOIN_TABLE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<JoinColumn> getJoinColumn() { + if (joinColumn == null) { + joinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this, OrmPackage.JOIN_TABLE__JOIN_COLUMN); + } + return joinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<JoinColumn> getInverseJoinColumn() { + if (inverseJoinColumn == null) { + inverseJoinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this, OrmPackage.JOIN_TABLE__INVERSE_JOIN_COLUMN); + } + return inverseJoinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<UniqueConstraint> getUniqueConstraint() { + if (uniqueConstraint == null) { + uniqueConstraint = new EObjectContainmentEList<UniqueConstraint>(UniqueConstraint.class, this, OrmPackage.JOIN_TABLE__UNIQUE_CONSTRAINT); + } + return uniqueConstraint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCatalog() { + return catalog; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCatalog(String newCatalog) { + String oldCatalog = catalog; + catalog = newCatalog; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_TABLE__CATALOG, oldCatalog, catalog)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_TABLE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSchema() { + return schema; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSchema(String newSchema) { + String oldSchema = schema; + schema = newSchema; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.JOIN_TABLE__SCHEMA, oldSchema, schema)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.JOIN_TABLE__JOIN_COLUMN: + return ((InternalEList<?>)getJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.JOIN_TABLE__INVERSE_JOIN_COLUMN: + return ((InternalEList<?>)getInverseJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.JOIN_TABLE__UNIQUE_CONSTRAINT: + return ((InternalEList<?>)getUniqueConstraint()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.JOIN_TABLE__JOIN_COLUMN: + return getJoinColumn(); + case OrmPackage.JOIN_TABLE__INVERSE_JOIN_COLUMN: + return getInverseJoinColumn(); + case OrmPackage.JOIN_TABLE__UNIQUE_CONSTRAINT: + return getUniqueConstraint(); + case OrmPackage.JOIN_TABLE__CATALOG: + return getCatalog(); + case OrmPackage.JOIN_TABLE__NAME: + return getName(); + case OrmPackage.JOIN_TABLE__SCHEMA: + return getSchema(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.JOIN_TABLE__JOIN_COLUMN: + getJoinColumn().clear(); + getJoinColumn().addAll((Collection<? extends JoinColumn>)newValue); + return; + case OrmPackage.JOIN_TABLE__INVERSE_JOIN_COLUMN: + getInverseJoinColumn().clear(); + getInverseJoinColumn().addAll((Collection<? extends JoinColumn>)newValue); + return; + case OrmPackage.JOIN_TABLE__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + getUniqueConstraint().addAll((Collection<? extends UniqueConstraint>)newValue); + return; + case OrmPackage.JOIN_TABLE__CATALOG: + setCatalog((String)newValue); + return; + case OrmPackage.JOIN_TABLE__NAME: + setName((String)newValue); + return; + case OrmPackage.JOIN_TABLE__SCHEMA: + setSchema((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.JOIN_TABLE__JOIN_COLUMN: + getJoinColumn().clear(); + return; + case OrmPackage.JOIN_TABLE__INVERSE_JOIN_COLUMN: + getInverseJoinColumn().clear(); + return; + case OrmPackage.JOIN_TABLE__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + return; + case OrmPackage.JOIN_TABLE__CATALOG: + setCatalog(CATALOG_EDEFAULT); + return; + case OrmPackage.JOIN_TABLE__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.JOIN_TABLE__SCHEMA: + setSchema(SCHEMA_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.JOIN_TABLE__JOIN_COLUMN: + return joinColumn != null && !joinColumn.isEmpty(); + case OrmPackage.JOIN_TABLE__INVERSE_JOIN_COLUMN: + return inverseJoinColumn != null && !inverseJoinColumn.isEmpty(); + case OrmPackage.JOIN_TABLE__UNIQUE_CONSTRAINT: + return uniqueConstraint != null && !uniqueConstraint.isEmpty(); + case OrmPackage.JOIN_TABLE__CATALOG: + return CATALOG_EDEFAULT == null ? catalog != null : !CATALOG_EDEFAULT.equals(catalog); + case OrmPackage.JOIN_TABLE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.JOIN_TABLE__SCHEMA: + return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (catalog: "); + result.append(catalog); + result.append(", name: "); + result.append(name); + result.append(", schema: "); + result.append(schema); + result.append(')'); + return result.toString(); + } + +} //JoinTableImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/LobImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/LobImpl.java new file mode 100755 index 000000000..6994361c3 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/LobImpl.java @@ -0,0 +1,45 @@ +/** + * <copyright> + * </copyright> + * + * $Id: LobImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.Lob; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Lob</b></em>'. + * <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class LobImpl extends EObjectImpl implements Lob { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected LobImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.LOB; + } + +} //LobImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ManyToManyImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ManyToManyImpl.java new file mode 100755 index 000000000..dae39e7bb --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ManyToManyImpl.java @@ -0,0 +1,633 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ManyToManyImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.ManyToMany; +import org.eclipse.emf.teneo.jpa.orm.MapKey; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Many To Many</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getOrderBy <em>Order By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getMapKey <em>Map Key</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getMappedBy <em>Mapped By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToManyImpl#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ManyToManyImpl extends EObjectImpl implements ManyToMany { + /** + * The default value of the '{@link #getOrderBy() <em>Order By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOrderBy() + * @generated + * @ordered + */ + protected static final String ORDER_BY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOrderBy() <em>Order By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOrderBy() + * @generated + * @ordered + */ + protected String orderBy = ORDER_BY_EDEFAULT; + + /** + * The cached value of the '{@link #getMapKey() <em>Map Key</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMapKey() + * @generated + * @ordered + */ + protected MapKey mapKey; + + /** + * The cached value of the '{@link #getJoinTable() <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinTable() + * @generated + * @ordered + */ + protected JoinTable joinTable; + + /** + * The cached value of the '{@link #getCascade() <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascade() + * @generated + * @ordered + */ + protected CascadeType cascade; + + /** + * The default value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected static final FetchType FETCH_EDEFAULT = FetchType.LAZY; + + /** + * The cached value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected FetchType fetch = FETCH_EDEFAULT; + + /** + * This is true if the Fetch attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean fetchESet; + + /** + * The default value of the '{@link #getMappedBy() <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMappedBy() + * @generated + * @ordered + */ + protected static final String MAPPED_BY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMappedBy() <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMappedBy() + * @generated + * @ordered + */ + protected String mappedBy = MAPPED_BY_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected static final String TARGET_ENTITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected String targetEntity = TARGET_ENTITY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ManyToManyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.MANY_TO_MANY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOrderBy() { + return orderBy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOrderBy(String newOrderBy) { + String oldOrderBy = orderBy; + orderBy = newOrderBy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__ORDER_BY, oldOrderBy, orderBy)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MapKey getMapKey() { + return mapKey; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetMapKey(MapKey newMapKey, NotificationChain msgs) { + MapKey oldMapKey = mapKey; + mapKey = newMapKey; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__MAP_KEY, oldMapKey, newMapKey); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMapKey(MapKey newMapKey) { + if (newMapKey != mapKey) { + NotificationChain msgs = null; + if (mapKey != null) + msgs = ((InternalEObject)mapKey).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_MANY__MAP_KEY, null, msgs); + if (newMapKey != null) + msgs = ((InternalEObject)newMapKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_MANY__MAP_KEY, null, msgs); + msgs = basicSetMapKey(newMapKey, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__MAP_KEY, newMapKey, newMapKey)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JoinTable getJoinTable() { + return joinTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetJoinTable(JoinTable newJoinTable, NotificationChain msgs) { + JoinTable oldJoinTable = joinTable; + joinTable = newJoinTable; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__JOIN_TABLE, oldJoinTable, newJoinTable); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setJoinTable(JoinTable newJoinTable) { + if (newJoinTable != joinTable) { + NotificationChain msgs = null; + if (joinTable != null) + msgs = ((InternalEObject)joinTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_MANY__JOIN_TABLE, null, msgs); + if (newJoinTable != null) + msgs = ((InternalEObject)newJoinTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_MANY__JOIN_TABLE, null, msgs); + msgs = basicSetJoinTable(newJoinTable, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__JOIN_TABLE, newJoinTable, newJoinTable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CascadeType getCascade() { + return cascade; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascade(CascadeType newCascade, NotificationChain msgs) { + CascadeType oldCascade = cascade; + cascade = newCascade; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__CASCADE, oldCascade, newCascade); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascade(CascadeType newCascade) { + if (newCascade != cascade) { + NotificationChain msgs = null; + if (cascade != null) + msgs = ((InternalEObject)cascade).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_MANY__CASCADE, null, msgs); + if (newCascade != null) + msgs = ((InternalEObject)newCascade).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_MANY__CASCADE, null, msgs); + msgs = basicSetCascade(newCascade, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__CASCADE, newCascade, newCascade)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FetchType getFetch() { + return fetch; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFetch(FetchType newFetch) { + FetchType oldFetch = fetch; + fetch = newFetch == null ? FETCH_EDEFAULT : newFetch; + boolean oldFetchESet = fetchESet; + fetchESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__FETCH, oldFetch, fetch, !oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetFetch() { + FetchType oldFetch = fetch; + boolean oldFetchESet = fetchESet; + fetch = FETCH_EDEFAULT; + fetchESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.MANY_TO_MANY__FETCH, oldFetch, FETCH_EDEFAULT, oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetFetch() { + return fetchESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMappedBy() { + return mappedBy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMappedBy(String newMappedBy) { + String oldMappedBy = mappedBy; + mappedBy = newMappedBy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__MAPPED_BY, oldMappedBy, mappedBy)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTargetEntity() { + return targetEntity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTargetEntity(String newTargetEntity) { + String oldTargetEntity = targetEntity; + targetEntity = newTargetEntity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_MANY__TARGET_ENTITY, oldTargetEntity, targetEntity)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.MANY_TO_MANY__MAP_KEY: + return basicSetMapKey(null, msgs); + case OrmPackage.MANY_TO_MANY__JOIN_TABLE: + return basicSetJoinTable(null, msgs); + case OrmPackage.MANY_TO_MANY__CASCADE: + return basicSetCascade(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.MANY_TO_MANY__ORDER_BY: + return getOrderBy(); + case OrmPackage.MANY_TO_MANY__MAP_KEY: + return getMapKey(); + case OrmPackage.MANY_TO_MANY__JOIN_TABLE: + return getJoinTable(); + case OrmPackage.MANY_TO_MANY__CASCADE: + return getCascade(); + case OrmPackage.MANY_TO_MANY__FETCH: + return getFetch(); + case OrmPackage.MANY_TO_MANY__MAPPED_BY: + return getMappedBy(); + case OrmPackage.MANY_TO_MANY__NAME: + return getName(); + case OrmPackage.MANY_TO_MANY__TARGET_ENTITY: + return getTargetEntity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.MANY_TO_MANY__ORDER_BY: + setOrderBy((String)newValue); + return; + case OrmPackage.MANY_TO_MANY__MAP_KEY: + setMapKey((MapKey)newValue); + return; + case OrmPackage.MANY_TO_MANY__JOIN_TABLE: + setJoinTable((JoinTable)newValue); + return; + case OrmPackage.MANY_TO_MANY__CASCADE: + setCascade((CascadeType)newValue); + return; + case OrmPackage.MANY_TO_MANY__FETCH: + setFetch((FetchType)newValue); + return; + case OrmPackage.MANY_TO_MANY__MAPPED_BY: + setMappedBy((String)newValue); + return; + case OrmPackage.MANY_TO_MANY__NAME: + setName((String)newValue); + return; + case OrmPackage.MANY_TO_MANY__TARGET_ENTITY: + setTargetEntity((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.MANY_TO_MANY__ORDER_BY: + setOrderBy(ORDER_BY_EDEFAULT); + return; + case OrmPackage.MANY_TO_MANY__MAP_KEY: + setMapKey((MapKey)null); + return; + case OrmPackage.MANY_TO_MANY__JOIN_TABLE: + setJoinTable((JoinTable)null); + return; + case OrmPackage.MANY_TO_MANY__CASCADE: + setCascade((CascadeType)null); + return; + case OrmPackage.MANY_TO_MANY__FETCH: + unsetFetch(); + return; + case OrmPackage.MANY_TO_MANY__MAPPED_BY: + setMappedBy(MAPPED_BY_EDEFAULT); + return; + case OrmPackage.MANY_TO_MANY__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.MANY_TO_MANY__TARGET_ENTITY: + setTargetEntity(TARGET_ENTITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.MANY_TO_MANY__ORDER_BY: + return ORDER_BY_EDEFAULT == null ? orderBy != null : !ORDER_BY_EDEFAULT.equals(orderBy); + case OrmPackage.MANY_TO_MANY__MAP_KEY: + return mapKey != null; + case OrmPackage.MANY_TO_MANY__JOIN_TABLE: + return joinTable != null; + case OrmPackage.MANY_TO_MANY__CASCADE: + return cascade != null; + case OrmPackage.MANY_TO_MANY__FETCH: + return isSetFetch(); + case OrmPackage.MANY_TO_MANY__MAPPED_BY: + return MAPPED_BY_EDEFAULT == null ? mappedBy != null : !MAPPED_BY_EDEFAULT.equals(mappedBy); + case OrmPackage.MANY_TO_MANY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.MANY_TO_MANY__TARGET_ENTITY: + return TARGET_ENTITY_EDEFAULT == null ? targetEntity != null : !TARGET_ENTITY_EDEFAULT.equals(targetEntity); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (orderBy: "); + result.append(orderBy); + result.append(", fetch: "); + if (fetchESet) result.append(fetch); else result.append("<unset>"); + result.append(", mappedBy: "); + result.append(mappedBy); + result.append(", name: "); + result.append(name); + result.append(", targetEntity: "); + result.append(targetEntity); + result.append(')'); + return result.toString(); + } + +} //ManyToManyImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ManyToOneImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ManyToOneImpl.java new file mode 100755 index 000000000..825c22078 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/ManyToOneImpl.java @@ -0,0 +1,591 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ManyToOneImpl.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.ManyToOne; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Many To One</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl#isOptional <em>Optional</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.ManyToOneImpl#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class ManyToOneImpl extends EObjectImpl implements ManyToOne { + /** + * The cached value of the '{@link #getJoinColumn() <em>Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinColumn() + * @generated + * @ordered + */ + protected EList<JoinColumn> joinColumn; + + /** + * The cached value of the '{@link #getJoinTable() <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinTable() + * @generated + * @ordered + */ + protected JoinTable joinTable; + + /** + * The cached value of the '{@link #getCascade() <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascade() + * @generated + * @ordered + */ + protected CascadeType cascade; + + /** + * The default value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected static final FetchType FETCH_EDEFAULT = FetchType.LAZY; + + /** + * The cached value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected FetchType fetch = FETCH_EDEFAULT; + + /** + * This is true if the Fetch attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean fetchESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #isOptional() <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOptional() + * @generated + * @ordered + */ + protected static final boolean OPTIONAL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOptional() <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOptional() + * @generated + * @ordered + */ + protected boolean optional = OPTIONAL_EDEFAULT; + + /** + * This is true if the Optional attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean optionalESet; + + /** + * The default value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected static final String TARGET_ENTITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected String targetEntity = TARGET_ENTITY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ManyToOneImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.MANY_TO_ONE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<JoinColumn> getJoinColumn() { + if (joinColumn == null) { + joinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this, OrmPackage.MANY_TO_ONE__JOIN_COLUMN); + } + return joinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JoinTable getJoinTable() { + return joinTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetJoinTable(JoinTable newJoinTable, NotificationChain msgs) { + JoinTable oldJoinTable = joinTable; + joinTable = newJoinTable; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__JOIN_TABLE, oldJoinTable, newJoinTable); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setJoinTable(JoinTable newJoinTable) { + if (newJoinTable != joinTable) { + NotificationChain msgs = null; + if (joinTable != null) + msgs = ((InternalEObject)joinTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_ONE__JOIN_TABLE, null, msgs); + if (newJoinTable != null) + msgs = ((InternalEObject)newJoinTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_ONE__JOIN_TABLE, null, msgs); + msgs = basicSetJoinTable(newJoinTable, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__JOIN_TABLE, newJoinTable, newJoinTable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CascadeType getCascade() { + return cascade; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascade(CascadeType newCascade, NotificationChain msgs) { + CascadeType oldCascade = cascade; + cascade = newCascade; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__CASCADE, oldCascade, newCascade); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascade(CascadeType newCascade) { + if (newCascade != cascade) { + NotificationChain msgs = null; + if (cascade != null) + msgs = ((InternalEObject)cascade).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_ONE__CASCADE, null, msgs); + if (newCascade != null) + msgs = ((InternalEObject)newCascade).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MANY_TO_ONE__CASCADE, null, msgs); + msgs = basicSetCascade(newCascade, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__CASCADE, newCascade, newCascade)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FetchType getFetch() { + return fetch; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFetch(FetchType newFetch) { + FetchType oldFetch = fetch; + fetch = newFetch == null ? FETCH_EDEFAULT : newFetch; + boolean oldFetchESet = fetchESet; + fetchESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__FETCH, oldFetch, fetch, !oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetFetch() { + FetchType oldFetch = fetch; + boolean oldFetchESet = fetchESet; + fetch = FETCH_EDEFAULT; + fetchESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.MANY_TO_ONE__FETCH, oldFetch, FETCH_EDEFAULT, oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetFetch() { + return fetchESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isOptional() { + return optional; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOptional(boolean newOptional) { + boolean oldOptional = optional; + optional = newOptional; + boolean oldOptionalESet = optionalESet; + optionalESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__OPTIONAL, oldOptional, optional, !oldOptionalESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetOptional() { + boolean oldOptional = optional; + boolean oldOptionalESet = optionalESet; + optional = OPTIONAL_EDEFAULT; + optionalESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.MANY_TO_ONE__OPTIONAL, oldOptional, OPTIONAL_EDEFAULT, oldOptionalESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetOptional() { + return optionalESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTargetEntity() { + return targetEntity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTargetEntity(String newTargetEntity) { + String oldTargetEntity = targetEntity; + targetEntity = newTargetEntity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MANY_TO_ONE__TARGET_ENTITY, oldTargetEntity, targetEntity)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.MANY_TO_ONE__JOIN_COLUMN: + return ((InternalEList<?>)getJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.MANY_TO_ONE__JOIN_TABLE: + return basicSetJoinTable(null, msgs); + case OrmPackage.MANY_TO_ONE__CASCADE: + return basicSetCascade(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.MANY_TO_ONE__JOIN_COLUMN: + return getJoinColumn(); + case OrmPackage.MANY_TO_ONE__JOIN_TABLE: + return getJoinTable(); + case OrmPackage.MANY_TO_ONE__CASCADE: + return getCascade(); + case OrmPackage.MANY_TO_ONE__FETCH: + return getFetch(); + case OrmPackage.MANY_TO_ONE__NAME: + return getName(); + case OrmPackage.MANY_TO_ONE__OPTIONAL: + return isOptional(); + case OrmPackage.MANY_TO_ONE__TARGET_ENTITY: + return getTargetEntity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.MANY_TO_ONE__JOIN_COLUMN: + getJoinColumn().clear(); + getJoinColumn().addAll((Collection<? extends JoinColumn>)newValue); + return; + case OrmPackage.MANY_TO_ONE__JOIN_TABLE: + setJoinTable((JoinTable)newValue); + return; + case OrmPackage.MANY_TO_ONE__CASCADE: + setCascade((CascadeType)newValue); + return; + case OrmPackage.MANY_TO_ONE__FETCH: + setFetch((FetchType)newValue); + return; + case OrmPackage.MANY_TO_ONE__NAME: + setName((String)newValue); + return; + case OrmPackage.MANY_TO_ONE__OPTIONAL: + setOptional((Boolean)newValue); + return; + case OrmPackage.MANY_TO_ONE__TARGET_ENTITY: + setTargetEntity((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.MANY_TO_ONE__JOIN_COLUMN: + getJoinColumn().clear(); + return; + case OrmPackage.MANY_TO_ONE__JOIN_TABLE: + setJoinTable((JoinTable)null); + return; + case OrmPackage.MANY_TO_ONE__CASCADE: + setCascade((CascadeType)null); + return; + case OrmPackage.MANY_TO_ONE__FETCH: + unsetFetch(); + return; + case OrmPackage.MANY_TO_ONE__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.MANY_TO_ONE__OPTIONAL: + unsetOptional(); + return; + case OrmPackage.MANY_TO_ONE__TARGET_ENTITY: + setTargetEntity(TARGET_ENTITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.MANY_TO_ONE__JOIN_COLUMN: + return joinColumn != null && !joinColumn.isEmpty(); + case OrmPackage.MANY_TO_ONE__JOIN_TABLE: + return joinTable != null; + case OrmPackage.MANY_TO_ONE__CASCADE: + return cascade != null; + case OrmPackage.MANY_TO_ONE__FETCH: + return isSetFetch(); + case OrmPackage.MANY_TO_ONE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.MANY_TO_ONE__OPTIONAL: + return isSetOptional(); + case OrmPackage.MANY_TO_ONE__TARGET_ENTITY: + return TARGET_ENTITY_EDEFAULT == null ? targetEntity != null : !TARGET_ENTITY_EDEFAULT.equals(targetEntity); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (fetch: "); + if (fetchESet) result.append(fetch); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(", optional: "); + if (optionalESet) result.append(optional); else result.append("<unset>"); + result.append(", targetEntity: "); + result.append(targetEntity); + result.append(')'); + return result.toString(); + } + +} //ManyToOneImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/MapKeyImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/MapKeyImpl.java new file mode 100755 index 000000000..2e0f11233 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/MapKeyImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: MapKeyImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.MapKey; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Map Key</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MapKeyImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class MapKeyImpl extends EObjectImpl implements MapKey { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected MapKeyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.MAP_KEY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAP_KEY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.MAP_KEY__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.MAP_KEY__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.MAP_KEY__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.MAP_KEY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //MapKeyImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/MappedSuperclassImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/MappedSuperclassImpl.java new file mode 100755 index 000000000..689fb243d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/MappedSuperclassImpl.java @@ -0,0 +1,1215 @@ +/** + * <copyright> + * </copyright> + * + * $Id: MappedSuperclassImpl.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.Attributes; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; +import org.eclipse.emf.teneo.jpa.orm.IdClass; +import org.eclipse.emf.teneo.jpa.orm.MappedSuperclass; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PostLoad; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Mapped Superclass</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getIdClass <em>Id Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getExcludeDefaultListeners <em>Exclude Default Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getExcludeSuperclassListeners <em>Exclude Superclass Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getEntityListeners <em>Entity Listeners</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getPrePersist <em>Pre Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getPostPersist <em>Post Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getPreRemove <em>Pre Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getPostRemove <em>Post Remove</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getPreUpdate <em>Pre Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getPostUpdate <em>Post Update</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getPostLoad <em>Post Load</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getAttributes <em>Attributes</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#getClass_ <em>Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.MappedSuperclassImpl#isMetadataComplete <em>Metadata Complete</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class MappedSuperclassImpl extends EObjectImpl implements MappedSuperclass { + /** + * The default value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected static final String DESCRIPTION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDescription() <em>Description</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDescription() + * @generated + * @ordered + */ + protected String description = DESCRIPTION_EDEFAULT; + + /** + * The cached value of the '{@link #getIdClass() <em>Id Class</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getIdClass() + * @generated + * @ordered + */ + protected IdClass idClass; + + /** + * The cached value of the '{@link #getExcludeDefaultListeners() <em>Exclude Default Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExcludeDefaultListeners() + * @generated + * @ordered + */ + protected EmptyType excludeDefaultListeners; + + /** + * The cached value of the '{@link #getExcludeSuperclassListeners() <em>Exclude Superclass Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getExcludeSuperclassListeners() + * @generated + * @ordered + */ + protected EmptyType excludeSuperclassListeners; + + /** + * The cached value of the '{@link #getEntityListeners() <em>Entity Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntityListeners() + * @generated + * @ordered + */ + protected EntityListeners entityListeners; + + /** + * The cached value of the '{@link #getPrePersist() <em>Pre Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrePersist() + * @generated + * @ordered + */ + protected PrePersist prePersist; + + /** + * The cached value of the '{@link #getPostPersist() <em>Post Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostPersist() + * @generated + * @ordered + */ + protected PostPersist postPersist; + + /** + * The cached value of the '{@link #getPreRemove() <em>Pre Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPreRemove() + * @generated + * @ordered + */ + protected PreRemove preRemove; + + /** + * The cached value of the '{@link #getPostRemove() <em>Post Remove</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostRemove() + * @generated + * @ordered + */ + protected PostRemove postRemove; + + /** + * The cached value of the '{@link #getPreUpdate() <em>Pre Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPreUpdate() + * @generated + * @ordered + */ + protected PreUpdate preUpdate; + + /** + * The cached value of the '{@link #getPostUpdate() <em>Post Update</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostUpdate() + * @generated + * @ordered + */ + protected PostUpdate postUpdate; + + /** + * The cached value of the '{@link #getPostLoad() <em>Post Load</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPostLoad() + * @generated + * @ordered + */ + protected PostLoad postLoad; + + /** + * The cached value of the '{@link #getAttributes() <em>Attributes</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAttributes() + * @generated + * @ordered + */ + protected Attributes attributes; + + /** + * The default value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected static final AccessType ACCESS_EDEFAULT = AccessType.PROPERTY; + + /** + * The cached value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected AccessType access = ACCESS_EDEFAULT; + + /** + * This is true if the Access attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean accessESet; + + /** + * The default value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected static final String CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClass_() <em>Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getClass_() + * @generated + * @ordered + */ + protected String class_ = CLASS_EDEFAULT; + + /** + * The default value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMetadataComplete() + * @generated + * @ordered + */ + protected static final boolean METADATA_COMPLETE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isMetadataComplete() <em>Metadata Complete</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isMetadataComplete() + * @generated + * @ordered + */ + protected boolean metadataComplete = METADATA_COMPLETE_EDEFAULT; + + /** + * This is true if the Metadata Complete attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean metadataCompleteESet; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected MappedSuperclassImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.MAPPED_SUPERCLASS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDescription() { + return description; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDescription(String newDescription) { + String oldDescription = description; + description = newDescription; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__DESCRIPTION, oldDescription, description)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IdClass getIdClass() { + return idClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetIdClass(IdClass newIdClass, NotificationChain msgs) { + IdClass oldIdClass = idClass; + idClass = newIdClass; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__ID_CLASS, oldIdClass, newIdClass); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setIdClass(IdClass newIdClass) { + if (newIdClass != idClass) { + NotificationChain msgs = null; + if (idClass != null) + msgs = ((InternalEObject)idClass).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__ID_CLASS, null, msgs); + if (newIdClass != null) + msgs = ((InternalEObject)newIdClass).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__ID_CLASS, null, msgs); + msgs = basicSetIdClass(newIdClass, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__ID_CLASS, newIdClass, newIdClass)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getExcludeDefaultListeners() { + return excludeDefaultListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetExcludeDefaultListeners(EmptyType newExcludeDefaultListeners, NotificationChain msgs) { + EmptyType oldExcludeDefaultListeners = excludeDefaultListeners; + excludeDefaultListeners = newExcludeDefaultListeners; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS, oldExcludeDefaultListeners, newExcludeDefaultListeners); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExcludeDefaultListeners(EmptyType newExcludeDefaultListeners) { + if (newExcludeDefaultListeners != excludeDefaultListeners) { + NotificationChain msgs = null; + if (excludeDefaultListeners != null) + msgs = ((InternalEObject)excludeDefaultListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS, null, msgs); + if (newExcludeDefaultListeners != null) + msgs = ((InternalEObject)newExcludeDefaultListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS, null, msgs); + msgs = basicSetExcludeDefaultListeners(newExcludeDefaultListeners, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS, newExcludeDefaultListeners, newExcludeDefaultListeners)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getExcludeSuperclassListeners() { + return excludeSuperclassListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetExcludeSuperclassListeners(EmptyType newExcludeSuperclassListeners, NotificationChain msgs) { + EmptyType oldExcludeSuperclassListeners = excludeSuperclassListeners; + excludeSuperclassListeners = newExcludeSuperclassListeners; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS, oldExcludeSuperclassListeners, newExcludeSuperclassListeners); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setExcludeSuperclassListeners(EmptyType newExcludeSuperclassListeners) { + if (newExcludeSuperclassListeners != excludeSuperclassListeners) { + NotificationChain msgs = null; + if (excludeSuperclassListeners != null) + msgs = ((InternalEObject)excludeSuperclassListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS, null, msgs); + if (newExcludeSuperclassListeners != null) + msgs = ((InternalEObject)newExcludeSuperclassListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS, null, msgs); + msgs = basicSetExcludeSuperclassListeners(newExcludeSuperclassListeners, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS, newExcludeSuperclassListeners, newExcludeSuperclassListeners)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityListeners getEntityListeners() { + return entityListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetEntityListeners(EntityListeners newEntityListeners, NotificationChain msgs) { + EntityListeners oldEntityListeners = entityListeners; + entityListeners = newEntityListeners; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS, oldEntityListeners, newEntityListeners); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEntityListeners(EntityListeners newEntityListeners) { + if (newEntityListeners != entityListeners) { + NotificationChain msgs = null; + if (entityListeners != null) + msgs = ((InternalEObject)entityListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS, null, msgs); + if (newEntityListeners != null) + msgs = ((InternalEObject)newEntityListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS, null, msgs); + msgs = basicSetEntityListeners(newEntityListeners, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS, newEntityListeners, newEntityListeners)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PrePersist getPrePersist() { + return prePersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPrePersist(PrePersist newPrePersist, NotificationChain msgs) { + PrePersist oldPrePersist = prePersist; + prePersist = newPrePersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST, oldPrePersist, newPrePersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPrePersist(PrePersist newPrePersist) { + if (newPrePersist != prePersist) { + NotificationChain msgs = null; + if (prePersist != null) + msgs = ((InternalEObject)prePersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST, null, msgs); + if (newPrePersist != null) + msgs = ((InternalEObject)newPrePersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST, null, msgs); + msgs = basicSetPrePersist(newPrePersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST, newPrePersist, newPrePersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostPersist getPostPersist() { + return postPersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostPersist(PostPersist newPostPersist, NotificationChain msgs) { + PostPersist oldPostPersist = postPersist; + postPersist = newPostPersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST, oldPostPersist, newPostPersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostPersist(PostPersist newPostPersist) { + if (newPostPersist != postPersist) { + NotificationChain msgs = null; + if (postPersist != null) + msgs = ((InternalEObject)postPersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST, null, msgs); + if (newPostPersist != null) + msgs = ((InternalEObject)newPostPersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST, null, msgs); + msgs = basicSetPostPersist(newPostPersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST, newPostPersist, newPostPersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreRemove getPreRemove() { + return preRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPreRemove(PreRemove newPreRemove, NotificationChain msgs) { + PreRemove oldPreRemove = preRemove; + preRemove = newPreRemove; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE, oldPreRemove, newPreRemove); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPreRemove(PreRemove newPreRemove) { + if (newPreRemove != preRemove) { + NotificationChain msgs = null; + if (preRemove != null) + msgs = ((InternalEObject)preRemove).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE, null, msgs); + if (newPreRemove != null) + msgs = ((InternalEObject)newPreRemove).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE, null, msgs); + msgs = basicSetPreRemove(newPreRemove, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE, newPreRemove, newPreRemove)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostRemove getPostRemove() { + return postRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostRemove(PostRemove newPostRemove, NotificationChain msgs) { + PostRemove oldPostRemove = postRemove; + postRemove = newPostRemove; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE, oldPostRemove, newPostRemove); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostRemove(PostRemove newPostRemove) { + if (newPostRemove != postRemove) { + NotificationChain msgs = null; + if (postRemove != null) + msgs = ((InternalEObject)postRemove).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE, null, msgs); + if (newPostRemove != null) + msgs = ((InternalEObject)newPostRemove).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE, null, msgs); + msgs = basicSetPostRemove(newPostRemove, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE, newPostRemove, newPostRemove)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreUpdate getPreUpdate() { + return preUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPreUpdate(PreUpdate newPreUpdate, NotificationChain msgs) { + PreUpdate oldPreUpdate = preUpdate; + preUpdate = newPreUpdate; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE, oldPreUpdate, newPreUpdate); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPreUpdate(PreUpdate newPreUpdate) { + if (newPreUpdate != preUpdate) { + NotificationChain msgs = null; + if (preUpdate != null) + msgs = ((InternalEObject)preUpdate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE, null, msgs); + if (newPreUpdate != null) + msgs = ((InternalEObject)newPreUpdate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE, null, msgs); + msgs = basicSetPreUpdate(newPreUpdate, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE, newPreUpdate, newPreUpdate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostUpdate getPostUpdate() { + return postUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostUpdate(PostUpdate newPostUpdate, NotificationChain msgs) { + PostUpdate oldPostUpdate = postUpdate; + postUpdate = newPostUpdate; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE, oldPostUpdate, newPostUpdate); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostUpdate(PostUpdate newPostUpdate) { + if (newPostUpdate != postUpdate) { + NotificationChain msgs = null; + if (postUpdate != null) + msgs = ((InternalEObject)postUpdate).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE, null, msgs); + if (newPostUpdate != null) + msgs = ((InternalEObject)newPostUpdate).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE, null, msgs); + msgs = basicSetPostUpdate(newPostUpdate, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE, newPostUpdate, newPostUpdate)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostLoad getPostLoad() { + return postLoad; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPostLoad(PostLoad newPostLoad, NotificationChain msgs) { + PostLoad oldPostLoad = postLoad; + postLoad = newPostLoad; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_LOAD, oldPostLoad, newPostLoad); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPostLoad(PostLoad newPostLoad) { + if (newPostLoad != postLoad) { + NotificationChain msgs = null; + if (postLoad != null) + msgs = ((InternalEObject)postLoad).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_LOAD, null, msgs); + if (newPostLoad != null) + msgs = ((InternalEObject)newPostLoad).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__POST_LOAD, null, msgs); + msgs = basicSetPostLoad(newPostLoad, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__POST_LOAD, newPostLoad, newPostLoad)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Attributes getAttributes() { + return attributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetAttributes(Attributes newAttributes, NotificationChain msgs) { + Attributes oldAttributes = attributes; + attributes = newAttributes; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES, oldAttributes, newAttributes); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAttributes(Attributes newAttributes) { + if (newAttributes != attributes) { + NotificationChain msgs = null; + if (attributes != null) + msgs = ((InternalEObject)attributes).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES, null, msgs); + if (newAttributes != null) + msgs = ((InternalEObject)newAttributes).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES, null, msgs); + msgs = basicSetAttributes(newAttributes, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES, newAttributes, newAttributes)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AccessType getAccess() { + return access; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAccess(AccessType newAccess) { + AccessType oldAccess = access; + access = newAccess == null ? ACCESS_EDEFAULT : newAccess; + boolean oldAccessESet = accessESet; + accessESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__ACCESS, oldAccess, access, !oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetAccess() { + AccessType oldAccess = access; + boolean oldAccessESet = accessESet; + access = ACCESS_EDEFAULT; + accessESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.MAPPED_SUPERCLASS__ACCESS, oldAccess, ACCESS_EDEFAULT, oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetAccess() { + return accessESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getClass_() { + return class_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setClass(String newClass) { + String oldClass = class_; + class_ = newClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__CLASS, oldClass, class_)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isMetadataComplete() { + return metadataComplete; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMetadataComplete(boolean newMetadataComplete) { + boolean oldMetadataComplete = metadataComplete; + metadataComplete = newMetadataComplete; + boolean oldMetadataCompleteESet = metadataCompleteESet; + metadataCompleteESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.MAPPED_SUPERCLASS__METADATA_COMPLETE, oldMetadataComplete, metadataComplete, !oldMetadataCompleteESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetMetadataComplete() { + boolean oldMetadataComplete = metadataComplete; + boolean oldMetadataCompleteESet = metadataCompleteESet; + metadataComplete = METADATA_COMPLETE_EDEFAULT; + metadataCompleteESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.MAPPED_SUPERCLASS__METADATA_COMPLETE, oldMetadataComplete, METADATA_COMPLETE_EDEFAULT, oldMetadataCompleteESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetMetadataComplete() { + return metadataCompleteESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.MAPPED_SUPERCLASS__ID_CLASS: + return basicSetIdClass(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS: + return basicSetExcludeDefaultListeners(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS: + return basicSetExcludeSuperclassListeners(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS: + return basicSetEntityListeners(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST: + return basicSetPrePersist(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST: + return basicSetPostPersist(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE: + return basicSetPreRemove(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE: + return basicSetPostRemove(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE: + return basicSetPreUpdate(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE: + return basicSetPostUpdate(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__POST_LOAD: + return basicSetPostLoad(null, msgs); + case OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES: + return basicSetAttributes(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.MAPPED_SUPERCLASS__DESCRIPTION: + return getDescription(); + case OrmPackage.MAPPED_SUPERCLASS__ID_CLASS: + return getIdClass(); + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS: + return getExcludeDefaultListeners(); + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS: + return getExcludeSuperclassListeners(); + case OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS: + return getEntityListeners(); + case OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST: + return getPrePersist(); + case OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST: + return getPostPersist(); + case OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE: + return getPreRemove(); + case OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE: + return getPostRemove(); + case OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE: + return getPreUpdate(); + case OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE: + return getPostUpdate(); + case OrmPackage.MAPPED_SUPERCLASS__POST_LOAD: + return getPostLoad(); + case OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES: + return getAttributes(); + case OrmPackage.MAPPED_SUPERCLASS__ACCESS: + return getAccess(); + case OrmPackage.MAPPED_SUPERCLASS__CLASS: + return getClass_(); + case OrmPackage.MAPPED_SUPERCLASS__METADATA_COMPLETE: + return isMetadataComplete(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.MAPPED_SUPERCLASS__DESCRIPTION: + setDescription((String)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__ID_CLASS: + setIdClass((IdClass)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS: + setExcludeDefaultListeners((EmptyType)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS: + setExcludeSuperclassListeners((EmptyType)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS: + setEntityListeners((EntityListeners)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST: + setPrePersist((PrePersist)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST: + setPostPersist((PostPersist)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE: + setPreRemove((PreRemove)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE: + setPostRemove((PostRemove)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE: + setPreUpdate((PreUpdate)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE: + setPostUpdate((PostUpdate)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_LOAD: + setPostLoad((PostLoad)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES: + setAttributes((Attributes)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__ACCESS: + setAccess((AccessType)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__CLASS: + setClass((String)newValue); + return; + case OrmPackage.MAPPED_SUPERCLASS__METADATA_COMPLETE: + setMetadataComplete((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.MAPPED_SUPERCLASS__DESCRIPTION: + setDescription(DESCRIPTION_EDEFAULT); + return; + case OrmPackage.MAPPED_SUPERCLASS__ID_CLASS: + setIdClass((IdClass)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS: + setExcludeDefaultListeners((EmptyType)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS: + setExcludeSuperclassListeners((EmptyType)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS: + setEntityListeners((EntityListeners)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST: + setPrePersist((PrePersist)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST: + setPostPersist((PostPersist)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE: + setPreRemove((PreRemove)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE: + setPostRemove((PostRemove)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE: + setPreUpdate((PreUpdate)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE: + setPostUpdate((PostUpdate)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__POST_LOAD: + setPostLoad((PostLoad)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES: + setAttributes((Attributes)null); + return; + case OrmPackage.MAPPED_SUPERCLASS__ACCESS: + unsetAccess(); + return; + case OrmPackage.MAPPED_SUPERCLASS__CLASS: + setClass(CLASS_EDEFAULT); + return; + case OrmPackage.MAPPED_SUPERCLASS__METADATA_COMPLETE: + unsetMetadataComplete(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.MAPPED_SUPERCLASS__DESCRIPTION: + return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); + case OrmPackage.MAPPED_SUPERCLASS__ID_CLASS: + return idClass != null; + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS: + return excludeDefaultListeners != null; + case OrmPackage.MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS: + return excludeSuperclassListeners != null; + case OrmPackage.MAPPED_SUPERCLASS__ENTITY_LISTENERS: + return entityListeners != null; + case OrmPackage.MAPPED_SUPERCLASS__PRE_PERSIST: + return prePersist != null; + case OrmPackage.MAPPED_SUPERCLASS__POST_PERSIST: + return postPersist != null; + case OrmPackage.MAPPED_SUPERCLASS__PRE_REMOVE: + return preRemove != null; + case OrmPackage.MAPPED_SUPERCLASS__POST_REMOVE: + return postRemove != null; + case OrmPackage.MAPPED_SUPERCLASS__PRE_UPDATE: + return preUpdate != null; + case OrmPackage.MAPPED_SUPERCLASS__POST_UPDATE: + return postUpdate != null; + case OrmPackage.MAPPED_SUPERCLASS__POST_LOAD: + return postLoad != null; + case OrmPackage.MAPPED_SUPERCLASS__ATTRIBUTES: + return attributes != null; + case OrmPackage.MAPPED_SUPERCLASS__ACCESS: + return isSetAccess(); + case OrmPackage.MAPPED_SUPERCLASS__CLASS: + return CLASS_EDEFAULT == null ? class_ != null : !CLASS_EDEFAULT.equals(class_); + case OrmPackage.MAPPED_SUPERCLASS__METADATA_COMPLETE: + return isSetMetadataComplete(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (description: "); + result.append(description); + result.append(", access: "); + if (accessESet) result.append(access); else result.append("<unset>"); + result.append(", class: "); + result.append(class_); + result.append(", metadataComplete: "); + if (metadataCompleteESet) result.append(metadataComplete); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //MappedSuperclassImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/NamedNativeQueryImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/NamedNativeQueryImpl.java new file mode 100755 index 000000000..4ea0dbd62 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/NamedNativeQueryImpl.java @@ -0,0 +1,388 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NamedNativeQueryImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.QueryHint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Named Native Query</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl#getQuery <em>Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl#getHint <em>Hint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl#getResultClass <em>Result Class</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedNativeQueryImpl#getResultSetMapping <em>Result Set Mapping</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NamedNativeQueryImpl extends EObjectImpl implements NamedNativeQuery { + /** + * The default value of the '{@link #getQuery() <em>Query</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQuery() + * @generated + * @ordered + */ + protected static final String QUERY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getQuery() <em>Query</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQuery() + * @generated + * @ordered + */ + protected String query = QUERY_EDEFAULT; + + /** + * The cached value of the '{@link #getHint() <em>Hint</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHint() + * @generated + * @ordered + */ + protected EList<QueryHint> hint; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getResultClass() <em>Result Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getResultClass() + * @generated + * @ordered + */ + protected static final String RESULT_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getResultClass() <em>Result Class</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getResultClass() + * @generated + * @ordered + */ + protected String resultClass = RESULT_CLASS_EDEFAULT; + + /** + * The default value of the '{@link #getResultSetMapping() <em>Result Set Mapping</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getResultSetMapping() + * @generated + * @ordered + */ + protected static final String RESULT_SET_MAPPING_EDEFAULT = null; + + /** + * The cached value of the '{@link #getResultSetMapping() <em>Result Set Mapping</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getResultSetMapping() + * @generated + * @ordered + */ + protected String resultSetMapping = RESULT_SET_MAPPING_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NamedNativeQueryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.NAMED_NATIVE_QUERY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getQuery() { + return query; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setQuery(String newQuery) { + String oldQuery = query; + query = newQuery; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.NAMED_NATIVE_QUERY__QUERY, oldQuery, query)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<QueryHint> getHint() { + if (hint == null) { + hint = new EObjectContainmentEList<QueryHint>(QueryHint.class, this, OrmPackage.NAMED_NATIVE_QUERY__HINT); + } + return hint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.NAMED_NATIVE_QUERY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getResultClass() { + return resultClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setResultClass(String newResultClass) { + String oldResultClass = resultClass; + resultClass = newResultClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.NAMED_NATIVE_QUERY__RESULT_CLASS, oldResultClass, resultClass)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getResultSetMapping() { + return resultSetMapping; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setResultSetMapping(String newResultSetMapping) { + String oldResultSetMapping = resultSetMapping; + resultSetMapping = newResultSetMapping; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.NAMED_NATIVE_QUERY__RESULT_SET_MAPPING, oldResultSetMapping, resultSetMapping)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.NAMED_NATIVE_QUERY__HINT: + return ((InternalEList<?>)getHint()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.NAMED_NATIVE_QUERY__QUERY: + return getQuery(); + case OrmPackage.NAMED_NATIVE_QUERY__HINT: + return getHint(); + case OrmPackage.NAMED_NATIVE_QUERY__NAME: + return getName(); + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_CLASS: + return getResultClass(); + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_SET_MAPPING: + return getResultSetMapping(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.NAMED_NATIVE_QUERY__QUERY: + setQuery((String)newValue); + return; + case OrmPackage.NAMED_NATIVE_QUERY__HINT: + getHint().clear(); + getHint().addAll((Collection<? extends QueryHint>)newValue); + return; + case OrmPackage.NAMED_NATIVE_QUERY__NAME: + setName((String)newValue); + return; + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_CLASS: + setResultClass((String)newValue); + return; + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_SET_MAPPING: + setResultSetMapping((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.NAMED_NATIVE_QUERY__QUERY: + setQuery(QUERY_EDEFAULT); + return; + case OrmPackage.NAMED_NATIVE_QUERY__HINT: + getHint().clear(); + return; + case OrmPackage.NAMED_NATIVE_QUERY__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_CLASS: + setResultClass(RESULT_CLASS_EDEFAULT); + return; + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_SET_MAPPING: + setResultSetMapping(RESULT_SET_MAPPING_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.NAMED_NATIVE_QUERY__QUERY: + return QUERY_EDEFAULT == null ? query != null : !QUERY_EDEFAULT.equals(query); + case OrmPackage.NAMED_NATIVE_QUERY__HINT: + return hint != null && !hint.isEmpty(); + case OrmPackage.NAMED_NATIVE_QUERY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_CLASS: + return RESULT_CLASS_EDEFAULT == null ? resultClass != null : !RESULT_CLASS_EDEFAULT.equals(resultClass); + case OrmPackage.NAMED_NATIVE_QUERY__RESULT_SET_MAPPING: + return RESULT_SET_MAPPING_EDEFAULT == null ? resultSetMapping != null : !RESULT_SET_MAPPING_EDEFAULT.equals(resultSetMapping); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (query: "); + result.append(query); + result.append(", name: "); + result.append(name); + result.append(", resultClass: "); + result.append(resultClass); + result.append(", resultSetMapping: "); + result.append(resultSetMapping); + result.append(')'); + return result.toString(); + } + +} //NamedNativeQueryImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/NamedQueryImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/NamedQueryImpl.java new file mode 100755 index 000000000..6e4016bf3 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/NamedQueryImpl.java @@ -0,0 +1,280 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NamedQueryImpl.java,v 1.1 2009/03/15 23:45:03 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.NamedQuery; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.QueryHint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Named Query</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedQueryImpl#getQuery <em>Query</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedQueryImpl#getHint <em>Hint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.NamedQueryImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class NamedQueryImpl extends EObjectImpl implements NamedQuery { + /** + * The default value of the '{@link #getQuery() <em>Query</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQuery() + * @generated + * @ordered + */ + protected static final String QUERY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getQuery() <em>Query</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getQuery() + * @generated + * @ordered + */ + protected String query = QUERY_EDEFAULT; + + /** + * The cached value of the '{@link #getHint() <em>Hint</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getHint() + * @generated + * @ordered + */ + protected EList<QueryHint> hint; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected NamedQueryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.NAMED_QUERY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getQuery() { + return query; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setQuery(String newQuery) { + String oldQuery = query; + query = newQuery; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.NAMED_QUERY__QUERY, oldQuery, query)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<QueryHint> getHint() { + if (hint == null) { + hint = new EObjectContainmentEList<QueryHint>(QueryHint.class, this, OrmPackage.NAMED_QUERY__HINT); + } + return hint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.NAMED_QUERY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.NAMED_QUERY__HINT: + return ((InternalEList<?>)getHint()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.NAMED_QUERY__QUERY: + return getQuery(); + case OrmPackage.NAMED_QUERY__HINT: + return getHint(); + case OrmPackage.NAMED_QUERY__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.NAMED_QUERY__QUERY: + setQuery((String)newValue); + return; + case OrmPackage.NAMED_QUERY__HINT: + getHint().clear(); + getHint().addAll((Collection<? extends QueryHint>)newValue); + return; + case OrmPackage.NAMED_QUERY__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.NAMED_QUERY__QUERY: + setQuery(QUERY_EDEFAULT); + return; + case OrmPackage.NAMED_QUERY__HINT: + getHint().clear(); + return; + case OrmPackage.NAMED_QUERY__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.NAMED_QUERY__QUERY: + return QUERY_EDEFAULT == null ? query != null : !QUERY_EDEFAULT.equals(query); + case OrmPackage.NAMED_QUERY__HINT: + return hint != null && !hint.isEmpty(); + case OrmPackage.NAMED_QUERY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (query: "); + result.append(query); + result.append(", name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //NamedQueryImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OneToManyImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OneToManyImpl.java new file mode 100755 index 000000000..ff7c7608d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OneToManyImpl.java @@ -0,0 +1,678 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OneToManyImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.MapKey; +import org.eclipse.emf.teneo.jpa.orm.OneToMany; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>One To Many</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getOrderBy <em>Order By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getMapKey <em>Map Key</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getMappedBy <em>Mapped By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToManyImpl#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OneToManyImpl extends EObjectImpl implements OneToMany { + /** + * The default value of the '{@link #getOrderBy() <em>Order By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOrderBy() + * @generated + * @ordered + */ + protected static final String ORDER_BY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getOrderBy() <em>Order By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getOrderBy() + * @generated + * @ordered + */ + protected String orderBy = ORDER_BY_EDEFAULT; + + /** + * The cached value of the '{@link #getMapKey() <em>Map Key</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMapKey() + * @generated + * @ordered + */ + protected MapKey mapKey; + + /** + * The cached value of the '{@link #getJoinTable() <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinTable() + * @generated + * @ordered + */ + protected JoinTable joinTable; + + /** + * The cached value of the '{@link #getJoinColumn() <em>Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinColumn() + * @generated + * @ordered + */ + protected EList<JoinColumn> joinColumn; + + /** + * The cached value of the '{@link #getCascade() <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascade() + * @generated + * @ordered + */ + protected CascadeType cascade; + + /** + * The default value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected static final FetchType FETCH_EDEFAULT = FetchType.LAZY; + + /** + * The cached value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected FetchType fetch = FETCH_EDEFAULT; + + /** + * This is true if the Fetch attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean fetchESet; + + /** + * The default value of the '{@link #getMappedBy() <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMappedBy() + * @generated + * @ordered + */ + protected static final String MAPPED_BY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMappedBy() <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMappedBy() + * @generated + * @ordered + */ + protected String mappedBy = MAPPED_BY_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected static final String TARGET_ENTITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected String targetEntity = TARGET_ENTITY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OneToManyImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ONE_TO_MANY; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getOrderBy() { + return orderBy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOrderBy(String newOrderBy) { + String oldOrderBy = orderBy; + orderBy = newOrderBy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__ORDER_BY, oldOrderBy, orderBy)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MapKey getMapKey() { + return mapKey; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetMapKey(MapKey newMapKey, NotificationChain msgs) { + MapKey oldMapKey = mapKey; + mapKey = newMapKey; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__MAP_KEY, oldMapKey, newMapKey); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMapKey(MapKey newMapKey) { + if (newMapKey != mapKey) { + NotificationChain msgs = null; + if (mapKey != null) + msgs = ((InternalEObject)mapKey).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_MANY__MAP_KEY, null, msgs); + if (newMapKey != null) + msgs = ((InternalEObject)newMapKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_MANY__MAP_KEY, null, msgs); + msgs = basicSetMapKey(newMapKey, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__MAP_KEY, newMapKey, newMapKey)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JoinTable getJoinTable() { + return joinTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetJoinTable(JoinTable newJoinTable, NotificationChain msgs) { + JoinTable oldJoinTable = joinTable; + joinTable = newJoinTable; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__JOIN_TABLE, oldJoinTable, newJoinTable); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setJoinTable(JoinTable newJoinTable) { + if (newJoinTable != joinTable) { + NotificationChain msgs = null; + if (joinTable != null) + msgs = ((InternalEObject)joinTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_MANY__JOIN_TABLE, null, msgs); + if (newJoinTable != null) + msgs = ((InternalEObject)newJoinTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_MANY__JOIN_TABLE, null, msgs); + msgs = basicSetJoinTable(newJoinTable, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__JOIN_TABLE, newJoinTable, newJoinTable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<JoinColumn> getJoinColumn() { + if (joinColumn == null) { + joinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this, OrmPackage.ONE_TO_MANY__JOIN_COLUMN); + } + return joinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CascadeType getCascade() { + return cascade; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascade(CascadeType newCascade, NotificationChain msgs) { + CascadeType oldCascade = cascade; + cascade = newCascade; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__CASCADE, oldCascade, newCascade); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascade(CascadeType newCascade) { + if (newCascade != cascade) { + NotificationChain msgs = null; + if (cascade != null) + msgs = ((InternalEObject)cascade).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_MANY__CASCADE, null, msgs); + if (newCascade != null) + msgs = ((InternalEObject)newCascade).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_MANY__CASCADE, null, msgs); + msgs = basicSetCascade(newCascade, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__CASCADE, newCascade, newCascade)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FetchType getFetch() { + return fetch; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFetch(FetchType newFetch) { + FetchType oldFetch = fetch; + fetch = newFetch == null ? FETCH_EDEFAULT : newFetch; + boolean oldFetchESet = fetchESet; + fetchESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__FETCH, oldFetch, fetch, !oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetFetch() { + FetchType oldFetch = fetch; + boolean oldFetchESet = fetchESet; + fetch = FETCH_EDEFAULT; + fetchESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.ONE_TO_MANY__FETCH, oldFetch, FETCH_EDEFAULT, oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetFetch() { + return fetchESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMappedBy() { + return mappedBy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMappedBy(String newMappedBy) { + String oldMappedBy = mappedBy; + mappedBy = newMappedBy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__MAPPED_BY, oldMappedBy, mappedBy)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTargetEntity() { + return targetEntity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTargetEntity(String newTargetEntity) { + String oldTargetEntity = targetEntity; + targetEntity = newTargetEntity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_MANY__TARGET_ENTITY, oldTargetEntity, targetEntity)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ONE_TO_MANY__MAP_KEY: + return basicSetMapKey(null, msgs); + case OrmPackage.ONE_TO_MANY__JOIN_TABLE: + return basicSetJoinTable(null, msgs); + case OrmPackage.ONE_TO_MANY__JOIN_COLUMN: + return ((InternalEList<?>)getJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.ONE_TO_MANY__CASCADE: + return basicSetCascade(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ONE_TO_MANY__ORDER_BY: + return getOrderBy(); + case OrmPackage.ONE_TO_MANY__MAP_KEY: + return getMapKey(); + case OrmPackage.ONE_TO_MANY__JOIN_TABLE: + return getJoinTable(); + case OrmPackage.ONE_TO_MANY__JOIN_COLUMN: + return getJoinColumn(); + case OrmPackage.ONE_TO_MANY__CASCADE: + return getCascade(); + case OrmPackage.ONE_TO_MANY__FETCH: + return getFetch(); + case OrmPackage.ONE_TO_MANY__MAPPED_BY: + return getMappedBy(); + case OrmPackage.ONE_TO_MANY__NAME: + return getName(); + case OrmPackage.ONE_TO_MANY__TARGET_ENTITY: + return getTargetEntity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ONE_TO_MANY__ORDER_BY: + setOrderBy((String)newValue); + return; + case OrmPackage.ONE_TO_MANY__MAP_KEY: + setMapKey((MapKey)newValue); + return; + case OrmPackage.ONE_TO_MANY__JOIN_TABLE: + setJoinTable((JoinTable)newValue); + return; + case OrmPackage.ONE_TO_MANY__JOIN_COLUMN: + getJoinColumn().clear(); + getJoinColumn().addAll((Collection<? extends JoinColumn>)newValue); + return; + case OrmPackage.ONE_TO_MANY__CASCADE: + setCascade((CascadeType)newValue); + return; + case OrmPackage.ONE_TO_MANY__FETCH: + setFetch((FetchType)newValue); + return; + case OrmPackage.ONE_TO_MANY__MAPPED_BY: + setMappedBy((String)newValue); + return; + case OrmPackage.ONE_TO_MANY__NAME: + setName((String)newValue); + return; + case OrmPackage.ONE_TO_MANY__TARGET_ENTITY: + setTargetEntity((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ONE_TO_MANY__ORDER_BY: + setOrderBy(ORDER_BY_EDEFAULT); + return; + case OrmPackage.ONE_TO_MANY__MAP_KEY: + setMapKey((MapKey)null); + return; + case OrmPackage.ONE_TO_MANY__JOIN_TABLE: + setJoinTable((JoinTable)null); + return; + case OrmPackage.ONE_TO_MANY__JOIN_COLUMN: + getJoinColumn().clear(); + return; + case OrmPackage.ONE_TO_MANY__CASCADE: + setCascade((CascadeType)null); + return; + case OrmPackage.ONE_TO_MANY__FETCH: + unsetFetch(); + return; + case OrmPackage.ONE_TO_MANY__MAPPED_BY: + setMappedBy(MAPPED_BY_EDEFAULT); + return; + case OrmPackage.ONE_TO_MANY__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.ONE_TO_MANY__TARGET_ENTITY: + setTargetEntity(TARGET_ENTITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ONE_TO_MANY__ORDER_BY: + return ORDER_BY_EDEFAULT == null ? orderBy != null : !ORDER_BY_EDEFAULT.equals(orderBy); + case OrmPackage.ONE_TO_MANY__MAP_KEY: + return mapKey != null; + case OrmPackage.ONE_TO_MANY__JOIN_TABLE: + return joinTable != null; + case OrmPackage.ONE_TO_MANY__JOIN_COLUMN: + return joinColumn != null && !joinColumn.isEmpty(); + case OrmPackage.ONE_TO_MANY__CASCADE: + return cascade != null; + case OrmPackage.ONE_TO_MANY__FETCH: + return isSetFetch(); + case OrmPackage.ONE_TO_MANY__MAPPED_BY: + return MAPPED_BY_EDEFAULT == null ? mappedBy != null : !MAPPED_BY_EDEFAULT.equals(mappedBy); + case OrmPackage.ONE_TO_MANY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.ONE_TO_MANY__TARGET_ENTITY: + return TARGET_ENTITY_EDEFAULT == null ? targetEntity != null : !TARGET_ENTITY_EDEFAULT.equals(targetEntity); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (orderBy: "); + result.append(orderBy); + result.append(", fetch: "); + if (fetchESet) result.append(fetch); else result.append("<unset>"); + result.append(", mappedBy: "); + result.append(mappedBy); + result.append(", name: "); + result.append(name); + result.append(", targetEntity: "); + result.append(targetEntity); + result.append(')'); + return result.toString(); + } + +} //OneToManyImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OneToOneImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OneToOneImpl.java new file mode 100755 index 000000000..2e7c7f613 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OneToOneImpl.java @@ -0,0 +1,682 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OneToOneImpl.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.OneToOne; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>One To One</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getJoinColumn <em>Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getJoinTable <em>Join Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getCascade <em>Cascade</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getFetch <em>Fetch</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getMappedBy <em>Mapped By</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#isOptional <em>Optional</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.OneToOneImpl#getTargetEntity <em>Target Entity</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class OneToOneImpl extends EObjectImpl implements OneToOne { + /** + * The cached value of the '{@link #getPrimaryKeyJoinColumn() <em>Primary Key Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrimaryKeyJoinColumn() + * @generated + * @ordered + */ + protected EList<PrimaryKeyJoinColumn> primaryKeyJoinColumn; + + /** + * The cached value of the '{@link #getJoinColumn() <em>Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinColumn() + * @generated + * @ordered + */ + protected EList<JoinColumn> joinColumn; + + /** + * The cached value of the '{@link #getJoinTable() <em>Join Table</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getJoinTable() + * @generated + * @ordered + */ + protected JoinTable joinTable; + + /** + * The cached value of the '{@link #getCascade() <em>Cascade</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascade() + * @generated + * @ordered + */ + protected CascadeType cascade; + + /** + * The default value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected static final FetchType FETCH_EDEFAULT = FetchType.LAZY; + + /** + * The cached value of the '{@link #getFetch() <em>Fetch</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getFetch() + * @generated + * @ordered + */ + protected FetchType fetch = FETCH_EDEFAULT; + + /** + * This is true if the Fetch attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean fetchESet; + + /** + * The default value of the '{@link #getMappedBy() <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMappedBy() + * @generated + * @ordered + */ + protected static final String MAPPED_BY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMappedBy() <em>Mapped By</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMappedBy() + * @generated + * @ordered + */ + protected String mappedBy = MAPPED_BY_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #isOptional() <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOptional() + * @generated + * @ordered + */ + protected static final boolean OPTIONAL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isOptional() <em>Optional</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #isOptional() + * @generated + * @ordered + */ + protected boolean optional = OPTIONAL_EDEFAULT; + + /** + * This is true if the Optional attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean optionalESet; + + /** + * The default value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected static final String TARGET_ENTITY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTargetEntity() <em>Target Entity</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTargetEntity() + * @generated + * @ordered + */ + protected String targetEntity = TARGET_ENTITY_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected OneToOneImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.ONE_TO_ONE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn() { + if (primaryKeyJoinColumn == null) { + primaryKeyJoinColumn = new EObjectContainmentEList<PrimaryKeyJoinColumn>(PrimaryKeyJoinColumn.class, this, OrmPackage.ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN); + } + return primaryKeyJoinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<JoinColumn> getJoinColumn() { + if (joinColumn == null) { + joinColumn = new EObjectContainmentEList<JoinColumn>(JoinColumn.class, this, OrmPackage.ONE_TO_ONE__JOIN_COLUMN); + } + return joinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JoinTable getJoinTable() { + return joinTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetJoinTable(JoinTable newJoinTable, NotificationChain msgs) { + JoinTable oldJoinTable = joinTable; + joinTable = newJoinTable; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__JOIN_TABLE, oldJoinTable, newJoinTable); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setJoinTable(JoinTable newJoinTable) { + if (newJoinTable != joinTable) { + NotificationChain msgs = null; + if (joinTable != null) + msgs = ((InternalEObject)joinTable).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_ONE__JOIN_TABLE, null, msgs); + if (newJoinTable != null) + msgs = ((InternalEObject)newJoinTable).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_ONE__JOIN_TABLE, null, msgs); + msgs = basicSetJoinTable(newJoinTable, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__JOIN_TABLE, newJoinTable, newJoinTable)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CascadeType getCascade() { + return cascade; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascade(CascadeType newCascade, NotificationChain msgs) { + CascadeType oldCascade = cascade; + cascade = newCascade; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__CASCADE, oldCascade, newCascade); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascade(CascadeType newCascade) { + if (newCascade != cascade) { + NotificationChain msgs = null; + if (cascade != null) + msgs = ((InternalEObject)cascade).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_ONE__CASCADE, null, msgs); + if (newCascade != null) + msgs = ((InternalEObject)newCascade).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.ONE_TO_ONE__CASCADE, null, msgs); + msgs = basicSetCascade(newCascade, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__CASCADE, newCascade, newCascade)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FetchType getFetch() { + return fetch; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setFetch(FetchType newFetch) { + FetchType oldFetch = fetch; + fetch = newFetch == null ? FETCH_EDEFAULT : newFetch; + boolean oldFetchESet = fetchESet; + fetchESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__FETCH, oldFetch, fetch, !oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetFetch() { + FetchType oldFetch = fetch; + boolean oldFetchESet = fetchESet; + fetch = FETCH_EDEFAULT; + fetchESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.ONE_TO_ONE__FETCH, oldFetch, FETCH_EDEFAULT, oldFetchESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetFetch() { + return fetchESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMappedBy() { + return mappedBy; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMappedBy(String newMappedBy) { + String oldMappedBy = mappedBy; + mappedBy = newMappedBy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__MAPPED_BY, oldMappedBy, mappedBy)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isOptional() { + return optional; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setOptional(boolean newOptional) { + boolean oldOptional = optional; + optional = newOptional; + boolean oldOptionalESet = optionalESet; + optionalESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__OPTIONAL, oldOptional, optional, !oldOptionalESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetOptional() { + boolean oldOptional = optional; + boolean oldOptionalESet = optionalESet; + optional = OPTIONAL_EDEFAULT; + optionalESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.ONE_TO_ONE__OPTIONAL, oldOptional, OPTIONAL_EDEFAULT, oldOptionalESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetOptional() { + return optionalESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTargetEntity() { + return targetEntity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTargetEntity(String newTargetEntity) { + String oldTargetEntity = targetEntity; + targetEntity = newTargetEntity; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.ONE_TO_ONE__TARGET_ENTITY, oldTargetEntity, targetEntity)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN: + return ((InternalEList<?>)getPrimaryKeyJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.ONE_TO_ONE__JOIN_COLUMN: + return ((InternalEList<?>)getJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.ONE_TO_ONE__JOIN_TABLE: + return basicSetJoinTable(null, msgs); + case OrmPackage.ONE_TO_ONE__CASCADE: + return basicSetCascade(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN: + return getPrimaryKeyJoinColumn(); + case OrmPackage.ONE_TO_ONE__JOIN_COLUMN: + return getJoinColumn(); + case OrmPackage.ONE_TO_ONE__JOIN_TABLE: + return getJoinTable(); + case OrmPackage.ONE_TO_ONE__CASCADE: + return getCascade(); + case OrmPackage.ONE_TO_ONE__FETCH: + return getFetch(); + case OrmPackage.ONE_TO_ONE__MAPPED_BY: + return getMappedBy(); + case OrmPackage.ONE_TO_ONE__NAME: + return getName(); + case OrmPackage.ONE_TO_ONE__OPTIONAL: + return isOptional(); + case OrmPackage.ONE_TO_ONE__TARGET_ENTITY: + return getTargetEntity(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN: + getPrimaryKeyJoinColumn().clear(); + getPrimaryKeyJoinColumn().addAll((Collection<? extends PrimaryKeyJoinColumn>)newValue); + return; + case OrmPackage.ONE_TO_ONE__JOIN_COLUMN: + getJoinColumn().clear(); + getJoinColumn().addAll((Collection<? extends JoinColumn>)newValue); + return; + case OrmPackage.ONE_TO_ONE__JOIN_TABLE: + setJoinTable((JoinTable)newValue); + return; + case OrmPackage.ONE_TO_ONE__CASCADE: + setCascade((CascadeType)newValue); + return; + case OrmPackage.ONE_TO_ONE__FETCH: + setFetch((FetchType)newValue); + return; + case OrmPackage.ONE_TO_ONE__MAPPED_BY: + setMappedBy((String)newValue); + return; + case OrmPackage.ONE_TO_ONE__NAME: + setName((String)newValue); + return; + case OrmPackage.ONE_TO_ONE__OPTIONAL: + setOptional((Boolean)newValue); + return; + case OrmPackage.ONE_TO_ONE__TARGET_ENTITY: + setTargetEntity((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN: + getPrimaryKeyJoinColumn().clear(); + return; + case OrmPackage.ONE_TO_ONE__JOIN_COLUMN: + getJoinColumn().clear(); + return; + case OrmPackage.ONE_TO_ONE__JOIN_TABLE: + setJoinTable((JoinTable)null); + return; + case OrmPackage.ONE_TO_ONE__CASCADE: + setCascade((CascadeType)null); + return; + case OrmPackage.ONE_TO_ONE__FETCH: + unsetFetch(); + return; + case OrmPackage.ONE_TO_ONE__MAPPED_BY: + setMappedBy(MAPPED_BY_EDEFAULT); + return; + case OrmPackage.ONE_TO_ONE__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.ONE_TO_ONE__OPTIONAL: + unsetOptional(); + return; + case OrmPackage.ONE_TO_ONE__TARGET_ENTITY: + setTargetEntity(TARGET_ENTITY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN: + return primaryKeyJoinColumn != null && !primaryKeyJoinColumn.isEmpty(); + case OrmPackage.ONE_TO_ONE__JOIN_COLUMN: + return joinColumn != null && !joinColumn.isEmpty(); + case OrmPackage.ONE_TO_ONE__JOIN_TABLE: + return joinTable != null; + case OrmPackage.ONE_TO_ONE__CASCADE: + return cascade != null; + case OrmPackage.ONE_TO_ONE__FETCH: + return isSetFetch(); + case OrmPackage.ONE_TO_ONE__MAPPED_BY: + return MAPPED_BY_EDEFAULT == null ? mappedBy != null : !MAPPED_BY_EDEFAULT.equals(mappedBy); + case OrmPackage.ONE_TO_ONE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.ONE_TO_ONE__OPTIONAL: + return isSetOptional(); + case OrmPackage.ONE_TO_ONE__TARGET_ENTITY: + return TARGET_ENTITY_EDEFAULT == null ? targetEntity != null : !TARGET_ENTITY_EDEFAULT.equals(targetEntity); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (fetch: "); + if (fetchESet) result.append(fetch); else result.append("<unset>"); + result.append(", mappedBy: "); + result.append(mappedBy); + result.append(", name: "); + result.append(name); + result.append(", optional: "); + if (optionalESet) result.append(optional); else result.append("<unset>"); + result.append(", targetEntity: "); + result.append(targetEntity); + result.append(')'); + return result.toString(); + } + +} //OneToOneImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OrmFactoryImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OrmFactoryImpl.java new file mode 100755 index 000000000..8327deb0a --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OrmFactoryImpl.java @@ -0,0 +1,1144 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmFactoryImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +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; + +import org.eclipse.emf.ecore.plugin.EcorePlugin; + +import org.eclipse.emf.ecore.xml.type.XMLTypeFactory; +import org.eclipse.emf.ecore.xml.type.XMLTypePackage; + +import org.eclipse.emf.teneo.jpa.orm.*; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Factory</b>. + * <!-- end-user-doc --> + * @generated + */ +public class OrmFactoryImpl extends EFactoryImpl implements OrmFactory { + /** + * Creates the default factory implementation. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static OrmFactory init() { + try { + OrmFactory theOrmFactory = (OrmFactory)EPackage.Registry.INSTANCE.getEFactory("http://java.sun.com/xml/ns/persistence/orm"); + if (theOrmFactory != null) { + return theOrmFactory; + } + } + catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new OrmFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmFactoryImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case OrmPackage.ASSOCIATION_OVERRIDE: return createAssociationOverride(); + case OrmPackage.ATTRIBUTE_OVERRIDE: return createAttributeOverride(); + case OrmPackage.ATTRIBUTES: return createAttributes(); + case OrmPackage.BASIC: return createBasic(); + case OrmPackage.CASCADE_TYPE: return createCascadeType(); + case OrmPackage.COLUMN: return createColumn(); + case OrmPackage.COLUMN_RESULT: return createColumnResult(); + case OrmPackage.DISCRIMINATOR_COLUMN: return createDiscriminatorColumn(); + case OrmPackage.DOCUMENT_ROOT: return createDocumentRoot(); + case OrmPackage.EMBEDDABLE: return createEmbeddable(); + case OrmPackage.EMBEDDABLE_ATTRIBUTES: return createEmbeddableAttributes(); + case OrmPackage.EMBEDDED: return createEmbedded(); + case OrmPackage.EMBEDDED_ID: return createEmbeddedId(); + case OrmPackage.EMPTY_TYPE: return createEmptyType(); + case OrmPackage.ENTITY: return createEntity(); + case OrmPackage.ENTITY_LISTENER: return createEntityListener(); + case OrmPackage.ENTITY_LISTENERS: return createEntityListeners(); + case OrmPackage.ENTITY_MAPPINGS_TYPE: return createEntityMappingsType(); + case OrmPackage.ENTITY_RESULT: return createEntityResult(); + case OrmPackage.FIELD_RESULT: return createFieldResult(); + case OrmPackage.GENERATED_VALUE: return createGeneratedValue(); + case OrmPackage.ID: return createId(); + case OrmPackage.ID_CLASS: return createIdClass(); + case OrmPackage.INHERITANCE: return createInheritance(); + case OrmPackage.JOIN_COLUMN: return createJoinColumn(); + case OrmPackage.JOIN_TABLE: return createJoinTable(); + case OrmPackage.LOB: return createLob(); + case OrmPackage.MANY_TO_MANY: return createManyToMany(); + case OrmPackage.MANY_TO_ONE: return createManyToOne(); + case OrmPackage.MAP_KEY: return createMapKey(); + case OrmPackage.MAPPED_SUPERCLASS: return createMappedSuperclass(); + case OrmPackage.NAMED_NATIVE_QUERY: return createNamedNativeQuery(); + case OrmPackage.NAMED_QUERY: return createNamedQuery(); + case OrmPackage.ONE_TO_MANY: return createOneToMany(); + case OrmPackage.ONE_TO_ONE: return createOneToOne(); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS: return createPersistenceUnitDefaults(); + case OrmPackage.PERSISTENCE_UNIT_METADATA: return createPersistenceUnitMetadata(); + case OrmPackage.POST_LOAD: return createPostLoad(); + case OrmPackage.POST_PERSIST: return createPostPersist(); + case OrmPackage.POST_REMOVE: return createPostRemove(); + case OrmPackage.POST_UPDATE: return createPostUpdate(); + case OrmPackage.PRE_PERSIST: return createPrePersist(); + case OrmPackage.PRE_REMOVE: return createPreRemove(); + case OrmPackage.PRE_UPDATE: return createPreUpdate(); + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN: return createPrimaryKeyJoinColumn(); + case OrmPackage.QUERY_HINT: return createQueryHint(); + case OrmPackage.SECONDARY_TABLE: return createSecondaryTable(); + case OrmPackage.SEQUENCE_GENERATOR: return createSequenceGenerator(); + case OrmPackage.SQL_RESULT_SET_MAPPING: return createSqlResultSetMapping(); + case OrmPackage.TABLE: return createTable(); + case OrmPackage.TABLE_GENERATOR: return createTableGenerator(); + case OrmPackage.TRANSIENT: return createTransient(); + case OrmPackage.UNIQUE_CONSTRAINT: return createUniqueConstraint(); + case OrmPackage.VERSION: return createVersion(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case OrmPackage.ACCESS_TYPE: + return createAccessTypeFromString(eDataType, initialValue); + case OrmPackage.DISCRIMINATOR_TYPE: + return createDiscriminatorTypeFromString(eDataType, initialValue); + case OrmPackage.ENUM_TYPE: + return createEnumTypeFromString(eDataType, initialValue); + case OrmPackage.FETCH_TYPE: + return createFetchTypeFromString(eDataType, initialValue); + case OrmPackage.GENERATION_TYPE: + return createGenerationTypeFromString(eDataType, initialValue); + case OrmPackage.INHERITANCE_TYPE: + return createInheritanceTypeFromString(eDataType, initialValue); + case OrmPackage.TEMPORAL_TYPE: + return createTemporalTypeFromString(eDataType, initialValue); + case OrmPackage.ACCESS_TYPE_OBJECT: + return createAccessTypeObjectFromString(eDataType, initialValue); + case OrmPackage.DISCRIMINATOR_TYPE_OBJECT: + return createDiscriminatorTypeObjectFromString(eDataType, initialValue); + case OrmPackage.DISCRIMINATOR_VALUE: + return createDiscriminatorValueFromString(eDataType, initialValue); + case OrmPackage.ENUMERATED: + return createEnumeratedFromString(eDataType, initialValue); + case OrmPackage.ENUM_TYPE_OBJECT: + return createEnumTypeObjectFromString(eDataType, initialValue); + case OrmPackage.FETCH_TYPE_OBJECT: + return createFetchTypeObjectFromString(eDataType, initialValue); + case OrmPackage.GENERATION_TYPE_OBJECT: + return createGenerationTypeObjectFromString(eDataType, initialValue); + case OrmPackage.INHERITANCE_TYPE_OBJECT: + return createInheritanceTypeObjectFromString(eDataType, initialValue); + case OrmPackage.ORDER_BY: + return createOrderByFromString(eDataType, initialValue); + case OrmPackage.TEMPORAL: + return createTemporalFromString(eDataType, initialValue); + case OrmPackage.TEMPORAL_TYPE_OBJECT: + return createTemporalTypeObjectFromString(eDataType, initialValue); + case OrmPackage.VERSION_TYPE: + return createVersionTypeFromString(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 OrmPackage.ACCESS_TYPE: + return convertAccessTypeToString(eDataType, instanceValue); + case OrmPackage.DISCRIMINATOR_TYPE: + return convertDiscriminatorTypeToString(eDataType, instanceValue); + case OrmPackage.ENUM_TYPE: + return convertEnumTypeToString(eDataType, instanceValue); + case OrmPackage.FETCH_TYPE: + return convertFetchTypeToString(eDataType, instanceValue); + case OrmPackage.GENERATION_TYPE: + return convertGenerationTypeToString(eDataType, instanceValue); + case OrmPackage.INHERITANCE_TYPE: + return convertInheritanceTypeToString(eDataType, instanceValue); + case OrmPackage.TEMPORAL_TYPE: + return convertTemporalTypeToString(eDataType, instanceValue); + case OrmPackage.ACCESS_TYPE_OBJECT: + return convertAccessTypeObjectToString(eDataType, instanceValue); + case OrmPackage.DISCRIMINATOR_TYPE_OBJECT: + return convertDiscriminatorTypeObjectToString(eDataType, instanceValue); + case OrmPackage.DISCRIMINATOR_VALUE: + return convertDiscriminatorValueToString(eDataType, instanceValue); + case OrmPackage.ENUMERATED: + return convertEnumeratedToString(eDataType, instanceValue); + case OrmPackage.ENUM_TYPE_OBJECT: + return convertEnumTypeObjectToString(eDataType, instanceValue); + case OrmPackage.FETCH_TYPE_OBJECT: + return convertFetchTypeObjectToString(eDataType, instanceValue); + case OrmPackage.GENERATION_TYPE_OBJECT: + return convertGenerationTypeObjectToString(eDataType, instanceValue); + case OrmPackage.INHERITANCE_TYPE_OBJECT: + return convertInheritanceTypeObjectToString(eDataType, instanceValue); + case OrmPackage.ORDER_BY: + return convertOrderByToString(eDataType, instanceValue); + case OrmPackage.TEMPORAL: + return convertTemporalToString(eDataType, instanceValue); + case OrmPackage.TEMPORAL_TYPE_OBJECT: + return convertTemporalTypeObjectToString(eDataType, instanceValue); + case OrmPackage.VERSION_TYPE: + return convertVersionTypeToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AssociationOverride createAssociationOverride() { + AssociationOverrideImpl associationOverride = new AssociationOverrideImpl(); + return associationOverride; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AttributeOverride createAttributeOverride() { + AttributeOverrideImpl attributeOverride = new AttributeOverrideImpl(); + return attributeOverride; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Attributes createAttributes() { + AttributesImpl attributes = new AttributesImpl(); + return attributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Basic createBasic() { + BasicImpl basic = new BasicImpl(); + return basic; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public CascadeType createCascadeType() { + CascadeTypeImpl cascadeType = new CascadeTypeImpl(); + return cascadeType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Column createColumn() { + ColumnImpl column = new ColumnImpl(); + return column; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ColumnResult createColumnResult() { + ColumnResultImpl columnResult = new ColumnResultImpl(); + return columnResult; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DiscriminatorColumn createDiscriminatorColumn() { + DiscriminatorColumnImpl discriminatorColumn = new DiscriminatorColumnImpl(); + return discriminatorColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DocumentRoot createDocumentRoot() { + DocumentRootImpl documentRoot = new DocumentRootImpl(); + return documentRoot; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Embeddable createEmbeddable() { + EmbeddableImpl embeddable = new EmbeddableImpl(); + return embeddable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmbeddableAttributes createEmbeddableAttributes() { + EmbeddableAttributesImpl embeddableAttributes = new EmbeddableAttributesImpl(); + return embeddableAttributes; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Embedded createEmbedded() { + EmbeddedImpl embedded = new EmbeddedImpl(); + return embedded; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmbeddedId createEmbeddedId() { + EmbeddedIdImpl embeddedId = new EmbeddedIdImpl(); + return embeddedId; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType createEmptyType() { + EmptyTypeImpl emptyType = new EmptyTypeImpl(); + return emptyType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Entity createEntity() { + EntityImpl entity = new EntityImpl(); + return entity; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityListener createEntityListener() { + EntityListenerImpl entityListener = new EntityListenerImpl(); + return entityListener; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityListeners createEntityListeners() { + EntityListenersImpl entityListeners = new EntityListenersImpl(); + return entityListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityMappingsType createEntityMappingsType() { + EntityMappingsTypeImpl entityMappingsType = new EntityMappingsTypeImpl(); + return entityMappingsType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityResult createEntityResult() { + EntityResultImpl entityResult = new EntityResultImpl(); + return entityResult; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FieldResult createFieldResult() { + FieldResultImpl fieldResult = new FieldResultImpl(); + return fieldResult; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GeneratedValue createGeneratedValue() { + GeneratedValueImpl generatedValue = new GeneratedValueImpl(); + return generatedValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Id createId() { + IdImpl id = new IdImpl(); + return id; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public IdClass createIdClass() { + IdClassImpl idClass = new IdClassImpl(); + return idClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Inheritance createInheritance() { + InheritanceImpl inheritance = new InheritanceImpl(); + return inheritance; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JoinColumn createJoinColumn() { + JoinColumnImpl joinColumn = new JoinColumnImpl(); + return joinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public JoinTable createJoinTable() { + JoinTableImpl joinTable = new JoinTableImpl(); + return joinTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Lob createLob() { + LobImpl lob = new LobImpl(); + return lob; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ManyToMany createManyToMany() { + ManyToManyImpl manyToMany = new ManyToManyImpl(); + return manyToMany; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public ManyToOne createManyToOne() { + ManyToOneImpl manyToOne = new ManyToOneImpl(); + return manyToOne; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MapKey createMapKey() { + MapKeyImpl mapKey = new MapKeyImpl(); + return mapKey; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public MappedSuperclass createMappedSuperclass() { + MappedSuperclassImpl mappedSuperclass = new MappedSuperclassImpl(); + return mappedSuperclass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NamedNativeQuery createNamedNativeQuery() { + NamedNativeQueryImpl namedNativeQuery = new NamedNativeQueryImpl(); + return namedNativeQuery; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NamedQuery createNamedQuery() { + NamedQueryImpl namedQuery = new NamedQueryImpl(); + return namedQuery; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OneToMany createOneToMany() { + OneToManyImpl oneToMany = new OneToManyImpl(); + return oneToMany; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OneToOne createOneToOne() { + OneToOneImpl oneToOne = new OneToOneImpl(); + return oneToOne; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PersistenceUnitDefaults createPersistenceUnitDefaults() { + PersistenceUnitDefaultsImpl persistenceUnitDefaults = new PersistenceUnitDefaultsImpl(); + return persistenceUnitDefaults; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PersistenceUnitMetadata createPersistenceUnitMetadata() { + PersistenceUnitMetadataImpl persistenceUnitMetadata = new PersistenceUnitMetadataImpl(); + return persistenceUnitMetadata; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostLoad createPostLoad() { + PostLoadImpl postLoad = new PostLoadImpl(); + return postLoad; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostPersist createPostPersist() { + PostPersistImpl postPersist = new PostPersistImpl(); + return postPersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostRemove createPostRemove() { + PostRemoveImpl postRemove = new PostRemoveImpl(); + return postRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PostUpdate createPostUpdate() { + PostUpdateImpl postUpdate = new PostUpdateImpl(); + return postUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PrePersist createPrePersist() { + PrePersistImpl prePersist = new PrePersistImpl(); + return prePersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreRemove createPreRemove() { + PreRemoveImpl preRemove = new PreRemoveImpl(); + return preRemove; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PreUpdate createPreUpdate() { + PreUpdateImpl preUpdate = new PreUpdateImpl(); + return preUpdate; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PrimaryKeyJoinColumn createPrimaryKeyJoinColumn() { + PrimaryKeyJoinColumnImpl primaryKeyJoinColumn = new PrimaryKeyJoinColumnImpl(); + return primaryKeyJoinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public QueryHint createQueryHint() { + QueryHintImpl queryHint = new QueryHintImpl(); + return queryHint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SecondaryTable createSecondaryTable() { + SecondaryTableImpl secondaryTable = new SecondaryTableImpl(); + return secondaryTable; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SequenceGenerator createSequenceGenerator() { + SequenceGeneratorImpl sequenceGenerator = new SequenceGeneratorImpl(); + return sequenceGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public SqlResultSetMapping createSqlResultSetMapping() { + SqlResultSetMappingImpl sqlResultSetMapping = new SqlResultSetMappingImpl(); + return sqlResultSetMapping; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Table createTable() { + TableImpl table = new TableImpl(); + return table; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TableGenerator createTableGenerator() { + TableGeneratorImpl tableGenerator = new TableGeneratorImpl(); + return tableGenerator; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Transient createTransient() { + TransientImpl transient_ = new TransientImpl(); + return transient_; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public UniqueConstraint createUniqueConstraint() { + UniqueConstraintImpl uniqueConstraint = new UniqueConstraintImpl(); + return uniqueConstraint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Version createVersion() { + VersionImpl version = new VersionImpl(); + return version; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AccessType createAccessTypeFromString(EDataType eDataType, String initialValue) { + AccessType result = AccessType.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 convertAccessTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DiscriminatorType createDiscriminatorTypeFromString(EDataType eDataType, String initialValue) { + DiscriminatorType result = DiscriminatorType.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 convertDiscriminatorTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EnumType createEnumTypeFromString(EDataType eDataType, String initialValue) { + EnumType result = EnumType.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 convertEnumTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FetchType createFetchTypeFromString(EDataType eDataType, String initialValue) { + FetchType result = FetchType.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 convertFetchTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GenerationType createGenerationTypeFromString(EDataType eDataType, String initialValue) { + GenerationType result = GenerationType.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 convertGenerationTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InheritanceType createInheritanceTypeFromString(EDataType eDataType, String initialValue) { + InheritanceType result = InheritanceType.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 convertInheritanceTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TemporalType createTemporalTypeFromString(EDataType eDataType, String initialValue) { + TemporalType result = TemporalType.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 convertTemporalTypeToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AccessType createAccessTypeObjectFromString(EDataType eDataType, String initialValue) { + return createAccessTypeFromString(OrmPackage.Literals.ACCESS_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertAccessTypeObjectToString(EDataType eDataType, Object instanceValue) { + return convertAccessTypeToString(OrmPackage.Literals.ACCESS_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public DiscriminatorType createDiscriminatorTypeObjectFromString(EDataType eDataType, String initialValue) { + return createDiscriminatorTypeFromString(OrmPackage.Literals.DISCRIMINATOR_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertDiscriminatorTypeObjectToString(EDataType eDataType, Object instanceValue) { + return convertDiscriminatorTypeToString(OrmPackage.Literals.DISCRIMINATOR_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String createDiscriminatorValueFromString(EDataType eDataType, String initialValue) { + return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertDiscriminatorValueToString(EDataType eDataType, Object instanceValue) { + return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EnumType createEnumeratedFromString(EDataType eDataType, String initialValue) { + return createEnumTypeFromString(OrmPackage.Literals.ENUM_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertEnumeratedToString(EDataType eDataType, Object instanceValue) { + return convertEnumTypeToString(OrmPackage.Literals.ENUM_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EnumType createEnumTypeObjectFromString(EDataType eDataType, String initialValue) { + return createEnumTypeFromString(OrmPackage.Literals.ENUM_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertEnumTypeObjectToString(EDataType eDataType, Object instanceValue) { + return convertEnumTypeToString(OrmPackage.Literals.ENUM_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public FetchType createFetchTypeObjectFromString(EDataType eDataType, String initialValue) { + return createFetchTypeFromString(OrmPackage.Literals.FETCH_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertFetchTypeObjectToString(EDataType eDataType, Object instanceValue) { + return convertFetchTypeToString(OrmPackage.Literals.FETCH_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public GenerationType createGenerationTypeObjectFromString(EDataType eDataType, String initialValue) { + return createGenerationTypeFromString(OrmPackage.Literals.GENERATION_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertGenerationTypeObjectToString(EDataType eDataType, Object instanceValue) { + return convertGenerationTypeToString(OrmPackage.Literals.GENERATION_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public InheritanceType createInheritanceTypeObjectFromString(EDataType eDataType, String initialValue) { + return createInheritanceTypeFromString(OrmPackage.Literals.INHERITANCE_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertInheritanceTypeObjectToString(EDataType eDataType, Object instanceValue) { + return convertInheritanceTypeToString(OrmPackage.Literals.INHERITANCE_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String createOrderByFromString(EDataType eDataType, String initialValue) { + return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertOrderByToString(EDataType eDataType, Object instanceValue) { + return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TemporalType createTemporalFromString(EDataType eDataType, String initialValue) { + return createTemporalTypeFromString(OrmPackage.Literals.TEMPORAL_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertTemporalToString(EDataType eDataType, Object instanceValue) { + return convertTemporalTypeToString(OrmPackage.Literals.TEMPORAL_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TemporalType createTemporalTypeObjectFromString(EDataType eDataType, String initialValue) { + return createTemporalTypeFromString(OrmPackage.Literals.TEMPORAL_TYPE, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertTemporalTypeObjectToString(EDataType eDataType, Object instanceValue) { + return convertTemporalTypeToString(OrmPackage.Literals.TEMPORAL_TYPE, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String createVersionTypeFromString(EDataType eDataType, String initialValue) { + return (String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.TOKEN, initialValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String convertVersionTypeToString(EDataType eDataType, Object instanceValue) { + return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.TOKEN, instanceValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmPackage getOrmPackage() { + return (OrmPackage)getEPackage(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @deprecated + * @generated + */ + @Deprecated + public static OrmPackage getPackage() { + return OrmPackage.eINSTANCE; + } + +} //OrmFactoryImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OrmPackageImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OrmPackageImpl.java new file mode 100755 index 000000000..e81de8d07 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/OrmPackageImpl.java @@ -0,0 +1,6841 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmPackageImpl.java,v 1.5 2010/03/07 05:36:57 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EValidator; + +import org.eclipse.emf.ecore.impl.EPackageImpl; + +import org.eclipse.emf.ecore.xml.type.XMLTypePackage; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.AssociationOverride; +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; +import org.eclipse.emf.teneo.jpa.orm.Attributes; +import org.eclipse.emf.teneo.jpa.orm.Basic; +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.ColumnResult; +import org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn; +import org.eclipse.emf.teneo.jpa.orm.DiscriminatorType; +import org.eclipse.emf.teneo.jpa.orm.DocumentRoot; +import org.eclipse.emf.teneo.jpa.orm.Embeddable; +import org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes; +import org.eclipse.emf.teneo.jpa.orm.Embedded; +import org.eclipse.emf.teneo.jpa.orm.EmbeddedId; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.Entity; +import org.eclipse.emf.teneo.jpa.orm.EntityListener; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; +import org.eclipse.emf.teneo.jpa.orm.EntityMappingsType; +import org.eclipse.emf.teneo.jpa.orm.EntityResult; +import org.eclipse.emf.teneo.jpa.orm.EnumType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.FieldResult; +import org.eclipse.emf.teneo.jpa.orm.GeneratedValue; +import org.eclipse.emf.teneo.jpa.orm.GenerationType; +import org.eclipse.emf.teneo.jpa.orm.Id; +import org.eclipse.emf.teneo.jpa.orm.IdClass; +import org.eclipse.emf.teneo.jpa.orm.Inheritance; +import org.eclipse.emf.teneo.jpa.orm.InheritanceType; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.Lob; +import org.eclipse.emf.teneo.jpa.orm.ManyToMany; +import org.eclipse.emf.teneo.jpa.orm.ManyToOne; +import org.eclipse.emf.teneo.jpa.orm.MapKey; +import org.eclipse.emf.teneo.jpa.orm.MappedSuperclass; +import org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery; +import org.eclipse.emf.teneo.jpa.orm.NamedQuery; +import org.eclipse.emf.teneo.jpa.orm.OneToMany; +import org.eclipse.emf.teneo.jpa.orm.OneToOne; +import org.eclipse.emf.teneo.jpa.orm.OrmFactory; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata; +import org.eclipse.emf.teneo.jpa.orm.PostLoad; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; +import org.eclipse.emf.teneo.jpa.orm.QueryHint; +import org.eclipse.emf.teneo.jpa.orm.SecondaryTable; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; +import org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping; +import org.eclipse.emf.teneo.jpa.orm.Table; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; +import org.eclipse.emf.teneo.jpa.orm.TemporalType; +import org.eclipse.emf.teneo.jpa.orm.Transient; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; +import org.eclipse.emf.teneo.jpa.orm.Version; + +import org.eclipse.emf.teneo.jpa.orm.util.OrmValidator; + +/** + * <!-- begin-user-doc --> + * An implementation of the model <b>Package</b>. + * <!-- end-user-doc --> + * @generated + */ +public class OrmPackageImpl extends EPackageImpl implements OrmPackage { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass associationOverrideEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass attributeOverrideEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass attributesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass basicEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass cascadeTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass columnEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass columnResultEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass discriminatorColumnEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass documentRootEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass embeddableEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass embeddableAttributesEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass embeddedEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass embeddedIdEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass emptyTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass entityEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass entityListenerEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass entityListenersEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass entityMappingsTypeEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass entityResultEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass fieldResultEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass generatedValueEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass idEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass idClassEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass inheritanceEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass joinColumnEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass joinTableEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass lobEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass manyToManyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass manyToOneEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass mapKeyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass mappedSuperclassEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass namedNativeQueryEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass namedQueryEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass oneToManyEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass oneToOneEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass persistenceUnitDefaultsEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass persistenceUnitMetadataEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass postLoadEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass postPersistEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass postRemoveEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass postUpdateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass prePersistEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass preRemoveEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass preUpdateEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass primaryKeyJoinColumnEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass queryHintEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass secondaryTableEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass sequenceGeneratorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass sqlResultSetMappingEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tableEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass tableGeneratorEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass transientEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass uniqueConstraintEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EClass versionEClass = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum accessTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum discriminatorTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum enumTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum fetchTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum generationTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum inheritanceTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EEnum temporalTypeEEnum = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType accessTypeObjectEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType discriminatorTypeObjectEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType discriminatorValueEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType enumeratedEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType enumTypeObjectEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType fetchTypeObjectEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType generationTypeObjectEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType inheritanceTypeObjectEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType orderByEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType temporalEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType temporalTypeObjectEDataType = null; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private EDataType versionTypeEDataType = null; + + /** + * Creates an instance of the model <b>Package</b>, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage#eNS_URI + * @see #init() + * @generated + */ + private OrmPackageImpl() { + super(eNS_URI, OrmFactory.eINSTANCE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link OrmPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static OrmPackage init() { + if (isInited) return (OrmPackage)EPackage.Registry.INSTANCE.getEPackage(OrmPackage.eNS_URI); + + // Obtain or create and register package + OrmPackageImpl theOrmPackage = (OrmPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OrmPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OrmPackageImpl()); + + isInited = true; + + // Initialize simple dependencies + XMLTypePackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theOrmPackage.createPackageContents(); + + // Initialize created meta-data + theOrmPackage.initializePackageContents(); + + // Register package validator + EValidator.Registry.INSTANCE.put + (theOrmPackage, + new EValidator.Descriptor() { + public EValidator getEValidator() { + return OrmValidator.INSTANCE; + } + }); + + // Mark meta-data to indicate it can't be changed + theOrmPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(OrmPackage.eNS_URI, theOrmPackage); + return theOrmPackage; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAssociationOverride() { + return associationOverrideEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAssociationOverride_JoinColumn() { + return (EReference)associationOverrideEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAssociationOverride_Name() { + return (EAttribute)associationOverrideEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAttributeOverride() { + return attributeOverrideEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributeOverride_Column() { + return (EReference)attributeOverrideEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getAttributeOverride_Name() { + return (EAttribute)attributeOverrideEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getAttributes() { + return attributesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_Id() { + return (EReference)attributesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_EmbeddedId() { + return (EReference)attributesEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_Basic() { + return (EReference)attributesEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_Version() { + return (EReference)attributesEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_ManyToOne() { + return (EReference)attributesEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_OneToMany() { + return (EReference)attributesEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_OneToOne() { + return (EReference)attributesEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_ManyToMany() { + return (EReference)attributesEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_Embedded() { + return (EReference)attributesEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getAttributes_Transient() { + return (EReference)attributesEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getBasic() { + return basicEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getBasic_Column() { + return (EReference)basicEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getBasic_Lob() { + return (EReference)basicEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBasic_Temporal() { + return (EAttribute)basicEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBasic_Enumerated() { + return (EAttribute)basicEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBasic_Fetch() { + return (EAttribute)basicEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBasic_Name() { + return (EAttribute)basicEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getBasic_Optional() { + return (EAttribute)basicEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getCascadeType() { + return cascadeTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCascadeType_CascadeAll() { + return (EReference)cascadeTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCascadeType_CascadePersist() { + return (EReference)cascadeTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCascadeType_CascadeMerge() { + return (EReference)cascadeTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCascadeType_CascadeRemove() { + return (EReference)cascadeTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getCascadeType_CascadeRefresh() { + return (EReference)cascadeTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getColumn() { + return columnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_ColumnDefinition() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Insertable() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Length() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Name() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Nullable() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Precision() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Scale() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Table() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Unique() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumn_Updatable() { + return (EAttribute)columnEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getColumnResult() { + return columnResultEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getColumnResult_Name() { + return (EAttribute)columnResultEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDiscriminatorColumn() { + return discriminatorColumnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDiscriminatorColumn_ColumnDefinition() { + return (EAttribute)discriminatorColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDiscriminatorColumn_DiscriminatorType() { + return (EAttribute)discriminatorColumnEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDiscriminatorColumn_Length() { + return (EAttribute)discriminatorColumnEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDiscriminatorColumn_Name() { + return (EAttribute)discriminatorColumnEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getDocumentRoot() { + return documentRootEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getDocumentRoot_Mixed() { + return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDocumentRoot_XMLNSPrefixMap() { + return (EReference)documentRootEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDocumentRoot_XSISchemaLocation() { + return (EReference)documentRootEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getDocumentRoot_EntityMappings() { + return (EReference)documentRootEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEmbeddable() { + return embeddableEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEmbeddable_Description() { + return (EAttribute)embeddableEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEmbeddable_Attributes() { + return (EReference)embeddableEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEmbeddable_Access() { + return (EAttribute)embeddableEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEmbeddable_Class() { + return (EAttribute)embeddableEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEmbeddable_MetadataComplete() { + return (EAttribute)embeddableEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEmbeddableAttributes() { + return embeddableAttributesEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEmbeddableAttributes_Basic() { + return (EReference)embeddableAttributesEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEmbeddableAttributes_Transient() { + return (EReference)embeddableAttributesEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEmbedded() { + return embeddedEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEmbedded_AttributeOverride() { + return (EReference)embeddedEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEmbedded_Name() { + return (EAttribute)embeddedEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEmbeddedId() { + return embeddedIdEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEmbeddedId_AttributeOverride() { + return (EReference)embeddedIdEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEmbeddedId_Name() { + return (EAttribute)embeddedIdEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEmptyType() { + return emptyTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEntity() { + return entityEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntity_Description() { + return (EAttribute)entityEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_Table() { + return (EReference)entityEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_SecondaryTable() { + return (EReference)entityEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PrimaryKeyJoinColumn() { + return (EReference)entityEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_IdClass() { + return (EReference)entityEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_Inheritance() { + return (EReference)entityEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntity_DiscriminatorValue() { + return (EAttribute)entityEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_DiscriminatorColumn() { + return (EReference)entityEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_SequenceGenerator() { + return (EReference)entityEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_TableGenerator() { + return (EReference)entityEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_NamedQuery() { + return (EReference)entityEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_NamedNativeQuery() { + return (EReference)entityEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_SqlResultSetMapping() { + return (EReference)entityEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_ExcludeDefaultListeners() { + return (EReference)entityEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_ExcludeSuperclassListeners() { + return (EReference)entityEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_EntityListeners() { + return (EReference)entityEClass.getEStructuralFeatures().get(15); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PrePersist() { + return (EReference)entityEClass.getEStructuralFeatures().get(16); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PostPersist() { + return (EReference)entityEClass.getEStructuralFeatures().get(17); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PreRemove() { + return (EReference)entityEClass.getEStructuralFeatures().get(18); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PostRemove() { + return (EReference)entityEClass.getEStructuralFeatures().get(19); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PreUpdate() { + return (EReference)entityEClass.getEStructuralFeatures().get(20); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PostUpdate() { + return (EReference)entityEClass.getEStructuralFeatures().get(21); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_PostLoad() { + return (EReference)entityEClass.getEStructuralFeatures().get(22); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_AttributeOverride() { + return (EReference)entityEClass.getEStructuralFeatures().get(23); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_AssociationOverride() { + return (EReference)entityEClass.getEStructuralFeatures().get(24); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntity_Attributes() { + return (EReference)entityEClass.getEStructuralFeatures().get(25); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntity_Access() { + return (EAttribute)entityEClass.getEStructuralFeatures().get(26); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntity_Class() { + return (EAttribute)entityEClass.getEStructuralFeatures().get(27); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntity_MetadataComplete() { + return (EAttribute)entityEClass.getEStructuralFeatures().get(28); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntity_Name() { + return (EAttribute)entityEClass.getEStructuralFeatures().get(29); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEntityListener() { + return entityListenerEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListener_PrePersist() { + return (EReference)entityListenerEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListener_PostPersist() { + return (EReference)entityListenerEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListener_PreRemove() { + return (EReference)entityListenerEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListener_PostRemove() { + return (EReference)entityListenerEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListener_PreUpdate() { + return (EReference)entityListenerEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListener_PostUpdate() { + return (EReference)entityListenerEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListener_PostLoad() { + return (EReference)entityListenerEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityListener_Class() { + return (EAttribute)entityListenerEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEntityListeners() { + return entityListenersEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityListeners_EntityListener() { + return (EReference)entityListenersEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEntityMappingsType() { + return entityMappingsTypeEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityMappingsType_Description() { + return (EAttribute)entityMappingsTypeEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_PersistenceUnitMetadata() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityMappingsType_Package() { + return (EAttribute)entityMappingsTypeEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityMappingsType_Schema() { + return (EAttribute)entityMappingsTypeEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityMappingsType_Catalog() { + return (EAttribute)entityMappingsTypeEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityMappingsType_Access() { + return (EAttribute)entityMappingsTypeEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_SequenceGenerator() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_TableGenerator() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_NamedQuery() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_NamedNativeQuery() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_SqlResultSetMapping() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_MappedSuperclass() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_Entity() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityMappingsType_Embeddable() { + return (EReference)entityMappingsTypeEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityMappingsType_Version() { + return (EAttribute)entityMappingsTypeEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getEntityResult() { + return entityResultEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getEntityResult_FieldResult() { + return (EReference)entityResultEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityResult_DiscriminatorColumn() { + return (EAttribute)entityResultEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getEntityResult_EntityClass() { + return (EAttribute)entityResultEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getFieldResult() { + return fieldResultEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFieldResult_Column() { + return (EAttribute)fieldResultEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getFieldResult_Name() { + return (EAttribute)fieldResultEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getGeneratedValue() { + return generatedValueEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGeneratedValue_Generator() { + return (EAttribute)generatedValueEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getGeneratedValue_Strategy() { + return (EAttribute)generatedValueEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getId() { + return idEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getId_Column() { + return (EReference)idEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getId_GeneratedValue() { + return (EReference)idEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getId_Temporal() { + return (EAttribute)idEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getId_TableGenerator() { + return (EReference)idEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getId_SequenceGenerator() { + return (EReference)idEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getId_Name() { + return (EAttribute)idEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getIdClass() { + return idClassEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getIdClass_Class() { + return (EAttribute)idClassEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getInheritance() { + return inheritanceEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getInheritance_Strategy() { + return (EAttribute)inheritanceEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getJoinColumn() { + return joinColumnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_ColumnDefinition() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_Insertable() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_Name() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_Nullable() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_ReferencedColumnName() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_Table() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_Unique() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinColumn_Updatable() { + return (EAttribute)joinColumnEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getJoinTable() { + return joinTableEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getJoinTable_JoinColumn() { + return (EReference)joinTableEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getJoinTable_InverseJoinColumn() { + return (EReference)joinTableEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getJoinTable_UniqueConstraint() { + return (EReference)joinTableEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinTable_Catalog() { + return (EAttribute)joinTableEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinTable_Name() { + return (EAttribute)joinTableEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getJoinTable_Schema() { + return (EAttribute)joinTableEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getLob() { + return lobEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getManyToMany() { + return manyToManyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToMany_OrderBy() { + return (EAttribute)manyToManyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManyToMany_MapKey() { + return (EReference)manyToManyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManyToMany_JoinTable() { + return (EReference)manyToManyEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManyToMany_Cascade() { + return (EReference)manyToManyEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToMany_Fetch() { + return (EAttribute)manyToManyEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToMany_MappedBy() { + return (EAttribute)manyToManyEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToMany_Name() { + return (EAttribute)manyToManyEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToMany_TargetEntity() { + return (EAttribute)manyToManyEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getManyToOne() { + return manyToOneEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManyToOne_JoinColumn() { + return (EReference)manyToOneEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManyToOne_JoinTable() { + return (EReference)manyToOneEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getManyToOne_Cascade() { + return (EReference)manyToOneEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToOne_Fetch() { + return (EAttribute)manyToOneEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToOne_Name() { + return (EAttribute)manyToOneEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToOne_Optional() { + return (EAttribute)manyToOneEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getManyToOne_TargetEntity() { + return (EAttribute)manyToOneEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getMapKey() { + return mapKeyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMapKey_Name() { + return (EAttribute)mapKeyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getMappedSuperclass() { + return mappedSuperclassEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMappedSuperclass_Description() { + return (EAttribute)mappedSuperclassEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_IdClass() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_ExcludeDefaultListeners() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_ExcludeSuperclassListeners() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_EntityListeners() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_PrePersist() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_PostPersist() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_PreRemove() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_PostRemove() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_PreUpdate() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_PostUpdate() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(10); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_PostLoad() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(11); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getMappedSuperclass_Attributes() { + return (EReference)mappedSuperclassEClass.getEStructuralFeatures().get(12); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMappedSuperclass_Access() { + return (EAttribute)mappedSuperclassEClass.getEStructuralFeatures().get(13); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMappedSuperclass_Class() { + return (EAttribute)mappedSuperclassEClass.getEStructuralFeatures().get(14); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getMappedSuperclass_MetadataComplete() { + return (EAttribute)mappedSuperclassEClass.getEStructuralFeatures().get(15); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNamedNativeQuery() { + return namedNativeQueryEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNamedNativeQuery_Query() { + return (EAttribute)namedNativeQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getNamedNativeQuery_Hint() { + return (EReference)namedNativeQueryEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNamedNativeQuery_Name() { + return (EAttribute)namedNativeQueryEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNamedNativeQuery_ResultClass() { + return (EAttribute)namedNativeQueryEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNamedNativeQuery_ResultSetMapping() { + return (EAttribute)namedNativeQueryEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getNamedQuery() { + return namedQueryEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNamedQuery_Query() { + return (EAttribute)namedQueryEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getNamedQuery_Hint() { + return (EReference)namedQueryEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getNamedQuery_Name() { + return (EAttribute)namedQueryEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOneToMany() { + return oneToManyEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToMany_OrderBy() { + return (EAttribute)oneToManyEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToMany_MapKey() { + return (EReference)oneToManyEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToMany_JoinTable() { + return (EReference)oneToManyEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToMany_JoinColumn() { + return (EReference)oneToManyEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToMany_Cascade() { + return (EReference)oneToManyEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToMany_Fetch() { + return (EAttribute)oneToManyEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToMany_MappedBy() { + return (EAttribute)oneToManyEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToMany_Name() { + return (EAttribute)oneToManyEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToMany_TargetEntity() { + return (EAttribute)oneToManyEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getOneToOne() { + return oneToOneEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToOne_PrimaryKeyJoinColumn() { + return (EReference)oneToOneEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToOne_JoinColumn() { + return (EReference)oneToOneEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToOne_JoinTable() { + return (EReference)oneToOneEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getOneToOne_Cascade() { + return (EReference)oneToOneEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToOne_Fetch() { + return (EAttribute)oneToOneEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToOne_MappedBy() { + return (EAttribute)oneToOneEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToOne_Name() { + return (EAttribute)oneToOneEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToOne_Optional() { + return (EAttribute)oneToOneEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getOneToOne_TargetEntity() { + return (EAttribute)oneToOneEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPersistenceUnitDefaults() { + return persistenceUnitDefaultsEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPersistenceUnitDefaults_Schema() { + return (EAttribute)persistenceUnitDefaultsEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPersistenceUnitDefaults_Catalog() { + return (EAttribute)persistenceUnitDefaultsEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPersistenceUnitDefaults_Access() { + return (EAttribute)persistenceUnitDefaultsEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPersistenceUnitDefaults_CascadePersist() { + return (EReference)persistenceUnitDefaultsEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPersistenceUnitDefaults_EntityListeners() { + return (EReference)persistenceUnitDefaultsEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPersistenceUnitMetadata() { + return persistenceUnitMetadataEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPersistenceUnitMetadata_XmlMappingMetadataComplete() { + return (EReference)persistenceUnitMetadataEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getPersistenceUnitMetadata_PersistenceUnitDefaults() { + return (EReference)persistenceUnitMetadataEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPostLoad() { + return postLoadEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPostLoad_MethodName() { + return (EAttribute)postLoadEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPostPersist() { + return postPersistEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPostPersist_MethodName() { + return (EAttribute)postPersistEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPostRemove() { + return postRemoveEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPostRemove_MethodName() { + return (EAttribute)postRemoveEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPostUpdate() { + return postUpdateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPostUpdate_MethodName() { + return (EAttribute)postUpdateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPrePersist() { + return prePersistEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPrePersist_MethodName() { + return (EAttribute)prePersistEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPreRemove() { + return preRemoveEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPreRemove_MethodName() { + return (EAttribute)preRemoveEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPreUpdate() { + return preUpdateEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPreUpdate_MethodName() { + return (EAttribute)preUpdateEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getPrimaryKeyJoinColumn() { + return primaryKeyJoinColumnEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPrimaryKeyJoinColumn_ColumnDefinition() { + return (EAttribute)primaryKeyJoinColumnEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPrimaryKeyJoinColumn_Name() { + return (EAttribute)primaryKeyJoinColumnEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getPrimaryKeyJoinColumn_ReferencedColumnName() { + return (EAttribute)primaryKeyJoinColumnEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getQueryHint() { + return queryHintEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getQueryHint_Name() { + return (EAttribute)queryHintEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getQueryHint_Value() { + return (EAttribute)queryHintEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSecondaryTable() { + return secondaryTableEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSecondaryTable_PrimaryKeyJoinColumn() { + return (EReference)secondaryTableEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSecondaryTable_UniqueConstraint() { + return (EReference)secondaryTableEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecondaryTable_Catalog() { + return (EAttribute)secondaryTableEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecondaryTable_Name() { + return (EAttribute)secondaryTableEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSecondaryTable_Schema() { + return (EAttribute)secondaryTableEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSequenceGenerator() { + return sequenceGeneratorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSequenceGenerator_AllocationSize() { + return (EAttribute)sequenceGeneratorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSequenceGenerator_InitialValue() { + return (EAttribute)sequenceGeneratorEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSequenceGenerator_Name() { + return (EAttribute)sequenceGeneratorEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSequenceGenerator_SequenceName() { + return (EAttribute)sequenceGeneratorEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getSqlResultSetMapping() { + return sqlResultSetMappingEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSqlResultSetMapping_EntityResult() { + return (EReference)sqlResultSetMappingEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getSqlResultSetMapping_ColumnResult() { + return (EReference)sqlResultSetMappingEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getSqlResultSetMapping_Name() { + return (EAttribute)sqlResultSetMappingEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTable() { + return tableEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTable_UniqueConstraint() { + return (EReference)tableEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTable_Catalog() { + return (EAttribute)tableEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTable_Name() { + return (EAttribute)tableEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTable_Schema() { + return (EAttribute)tableEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTableGenerator() { + return tableGeneratorEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getTableGenerator_UniqueConstraint() { + return (EReference)tableGeneratorEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_AllocationSize() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_Catalog() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_InitialValue() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_Name() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(4); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_PkColumnName() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(5); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_PkColumnValue() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(6); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_Schema() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(7); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_Table() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(8); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTableGenerator_ValueColumnName() { + return (EAttribute)tableGeneratorEClass.getEStructuralFeatures().get(9); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getTransient() { + return transientEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTransient_Name() { + return (EAttribute)transientEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getUniqueConstraint() { + return uniqueConstraintEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getUniqueConstraint_ColumnName() { + return (EAttribute)uniqueConstraintEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EClass getVersion() { + return versionEClass; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EReference getVersion_Column() { + return (EReference)versionEClass.getEStructuralFeatures().get(0); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVersion_Temporal() { + return (EAttribute)versionEClass.getEStructuralFeatures().get(1); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getVersion_Name() { + return (EAttribute)versionEClass.getEStructuralFeatures().get(2); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getAccessType() { + return accessTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getDiscriminatorType() { + return discriminatorTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getEnumType() { + return enumTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getFetchType() { + return fetchTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getGenerationType() { + return generationTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getInheritanceType() { + return inheritanceTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EEnum getTemporalType() { + return temporalTypeEEnum; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getAccessTypeObject() { + return accessTypeObjectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getDiscriminatorTypeObject() { + return discriminatorTypeObjectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getDiscriminatorValue() { + return discriminatorValueEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getEnumerated() { + return enumeratedEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getEnumTypeObject() { + return enumTypeObjectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getFetchTypeObject() { + return fetchTypeObjectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getGenerationTypeObject() { + return generationTypeObjectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getInheritanceTypeObject() { + return inheritanceTypeObjectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getOrderBy() { + return orderByEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getTemporal() { + return temporalEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getTemporalTypeObject() { + return temporalTypeObjectEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EDataType getVersionType() { + return versionTypeEDataType; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmFactory getOrmFactory() { + return (OrmFactory)getEFactoryInstance(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void createPackageContents() { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + associationOverrideEClass = createEClass(ASSOCIATION_OVERRIDE); + createEReference(associationOverrideEClass, ASSOCIATION_OVERRIDE__JOIN_COLUMN); + createEAttribute(associationOverrideEClass, ASSOCIATION_OVERRIDE__NAME); + + attributeOverrideEClass = createEClass(ATTRIBUTE_OVERRIDE); + createEReference(attributeOverrideEClass, ATTRIBUTE_OVERRIDE__COLUMN); + createEAttribute(attributeOverrideEClass, ATTRIBUTE_OVERRIDE__NAME); + + attributesEClass = createEClass(ATTRIBUTES); + createEReference(attributesEClass, ATTRIBUTES__ID); + createEReference(attributesEClass, ATTRIBUTES__EMBEDDED_ID); + createEReference(attributesEClass, ATTRIBUTES__BASIC); + createEReference(attributesEClass, ATTRIBUTES__VERSION); + createEReference(attributesEClass, ATTRIBUTES__MANY_TO_ONE); + createEReference(attributesEClass, ATTRIBUTES__ONE_TO_MANY); + createEReference(attributesEClass, ATTRIBUTES__ONE_TO_ONE); + createEReference(attributesEClass, ATTRIBUTES__MANY_TO_MANY); + createEReference(attributesEClass, ATTRIBUTES__EMBEDDED); + createEReference(attributesEClass, ATTRIBUTES__TRANSIENT); + + basicEClass = createEClass(BASIC); + createEReference(basicEClass, BASIC__COLUMN); + createEReference(basicEClass, BASIC__LOB); + createEAttribute(basicEClass, BASIC__TEMPORAL); + createEAttribute(basicEClass, BASIC__ENUMERATED); + createEAttribute(basicEClass, BASIC__FETCH); + createEAttribute(basicEClass, BASIC__NAME); + createEAttribute(basicEClass, BASIC__OPTIONAL); + + cascadeTypeEClass = createEClass(CASCADE_TYPE); + createEReference(cascadeTypeEClass, CASCADE_TYPE__CASCADE_ALL); + createEReference(cascadeTypeEClass, CASCADE_TYPE__CASCADE_PERSIST); + createEReference(cascadeTypeEClass, CASCADE_TYPE__CASCADE_MERGE); + createEReference(cascadeTypeEClass, CASCADE_TYPE__CASCADE_REMOVE); + createEReference(cascadeTypeEClass, CASCADE_TYPE__CASCADE_REFRESH); + + columnEClass = createEClass(COLUMN); + createEAttribute(columnEClass, COLUMN__COLUMN_DEFINITION); + createEAttribute(columnEClass, COLUMN__INSERTABLE); + createEAttribute(columnEClass, COLUMN__LENGTH); + createEAttribute(columnEClass, COLUMN__NAME); + createEAttribute(columnEClass, COLUMN__NULLABLE); + createEAttribute(columnEClass, COLUMN__PRECISION); + createEAttribute(columnEClass, COLUMN__SCALE); + createEAttribute(columnEClass, COLUMN__TABLE); + createEAttribute(columnEClass, COLUMN__UNIQUE); + createEAttribute(columnEClass, COLUMN__UPDATABLE); + + columnResultEClass = createEClass(COLUMN_RESULT); + createEAttribute(columnResultEClass, COLUMN_RESULT__NAME); + + discriminatorColumnEClass = createEClass(DISCRIMINATOR_COLUMN); + createEAttribute(discriminatorColumnEClass, DISCRIMINATOR_COLUMN__COLUMN_DEFINITION); + createEAttribute(discriminatorColumnEClass, DISCRIMINATOR_COLUMN__DISCRIMINATOR_TYPE); + createEAttribute(discriminatorColumnEClass, DISCRIMINATOR_COLUMN__LENGTH); + createEAttribute(discriminatorColumnEClass, DISCRIMINATOR_COLUMN__NAME); + + documentRootEClass = createEClass(DOCUMENT_ROOT); + createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED); + createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP); + createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION); + createEReference(documentRootEClass, DOCUMENT_ROOT__ENTITY_MAPPINGS); + + embeddableEClass = createEClass(EMBEDDABLE); + createEAttribute(embeddableEClass, EMBEDDABLE__DESCRIPTION); + createEReference(embeddableEClass, EMBEDDABLE__ATTRIBUTES); + createEAttribute(embeddableEClass, EMBEDDABLE__ACCESS); + createEAttribute(embeddableEClass, EMBEDDABLE__CLASS); + createEAttribute(embeddableEClass, EMBEDDABLE__METADATA_COMPLETE); + + embeddableAttributesEClass = createEClass(EMBEDDABLE_ATTRIBUTES); + createEReference(embeddableAttributesEClass, EMBEDDABLE_ATTRIBUTES__BASIC); + createEReference(embeddableAttributesEClass, EMBEDDABLE_ATTRIBUTES__TRANSIENT); + + embeddedEClass = createEClass(EMBEDDED); + createEReference(embeddedEClass, EMBEDDED__ATTRIBUTE_OVERRIDE); + createEAttribute(embeddedEClass, EMBEDDED__NAME); + + embeddedIdEClass = createEClass(EMBEDDED_ID); + createEReference(embeddedIdEClass, EMBEDDED_ID__ATTRIBUTE_OVERRIDE); + createEAttribute(embeddedIdEClass, EMBEDDED_ID__NAME); + + emptyTypeEClass = createEClass(EMPTY_TYPE); + + entityEClass = createEClass(ENTITY); + createEAttribute(entityEClass, ENTITY__DESCRIPTION); + createEReference(entityEClass, ENTITY__TABLE); + createEReference(entityEClass, ENTITY__SECONDARY_TABLE); + createEReference(entityEClass, ENTITY__PRIMARY_KEY_JOIN_COLUMN); + createEReference(entityEClass, ENTITY__ID_CLASS); + createEReference(entityEClass, ENTITY__INHERITANCE); + createEAttribute(entityEClass, ENTITY__DISCRIMINATOR_VALUE); + createEReference(entityEClass, ENTITY__DISCRIMINATOR_COLUMN); + createEReference(entityEClass, ENTITY__SEQUENCE_GENERATOR); + createEReference(entityEClass, ENTITY__TABLE_GENERATOR); + createEReference(entityEClass, ENTITY__NAMED_QUERY); + createEReference(entityEClass, ENTITY__NAMED_NATIVE_QUERY); + createEReference(entityEClass, ENTITY__SQL_RESULT_SET_MAPPING); + createEReference(entityEClass, ENTITY__EXCLUDE_DEFAULT_LISTENERS); + createEReference(entityEClass, ENTITY__EXCLUDE_SUPERCLASS_LISTENERS); + createEReference(entityEClass, ENTITY__ENTITY_LISTENERS); + createEReference(entityEClass, ENTITY__PRE_PERSIST); + createEReference(entityEClass, ENTITY__POST_PERSIST); + createEReference(entityEClass, ENTITY__PRE_REMOVE); + createEReference(entityEClass, ENTITY__POST_REMOVE); + createEReference(entityEClass, ENTITY__PRE_UPDATE); + createEReference(entityEClass, ENTITY__POST_UPDATE); + createEReference(entityEClass, ENTITY__POST_LOAD); + createEReference(entityEClass, ENTITY__ATTRIBUTE_OVERRIDE); + createEReference(entityEClass, ENTITY__ASSOCIATION_OVERRIDE); + createEReference(entityEClass, ENTITY__ATTRIBUTES); + createEAttribute(entityEClass, ENTITY__ACCESS); + createEAttribute(entityEClass, ENTITY__CLASS); + createEAttribute(entityEClass, ENTITY__METADATA_COMPLETE); + createEAttribute(entityEClass, ENTITY__NAME); + + entityListenerEClass = createEClass(ENTITY_LISTENER); + createEReference(entityListenerEClass, ENTITY_LISTENER__PRE_PERSIST); + createEReference(entityListenerEClass, ENTITY_LISTENER__POST_PERSIST); + createEReference(entityListenerEClass, ENTITY_LISTENER__PRE_REMOVE); + createEReference(entityListenerEClass, ENTITY_LISTENER__POST_REMOVE); + createEReference(entityListenerEClass, ENTITY_LISTENER__PRE_UPDATE); + createEReference(entityListenerEClass, ENTITY_LISTENER__POST_UPDATE); + createEReference(entityListenerEClass, ENTITY_LISTENER__POST_LOAD); + createEAttribute(entityListenerEClass, ENTITY_LISTENER__CLASS); + + entityListenersEClass = createEClass(ENTITY_LISTENERS); + createEReference(entityListenersEClass, ENTITY_LISTENERS__ENTITY_LISTENER); + + entityMappingsTypeEClass = createEClass(ENTITY_MAPPINGS_TYPE); + createEAttribute(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__DESCRIPTION); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__PERSISTENCE_UNIT_METADATA); + createEAttribute(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__PACKAGE); + createEAttribute(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__SCHEMA); + createEAttribute(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__CATALOG); + createEAttribute(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__ACCESS); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__SEQUENCE_GENERATOR); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__TABLE_GENERATOR); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__NAMED_QUERY); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__NAMED_NATIVE_QUERY); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__SQL_RESULT_SET_MAPPING); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__MAPPED_SUPERCLASS); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__ENTITY); + createEReference(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__EMBEDDABLE); + createEAttribute(entityMappingsTypeEClass, ENTITY_MAPPINGS_TYPE__VERSION); + + entityResultEClass = createEClass(ENTITY_RESULT); + createEReference(entityResultEClass, ENTITY_RESULT__FIELD_RESULT); + createEAttribute(entityResultEClass, ENTITY_RESULT__DISCRIMINATOR_COLUMN); + createEAttribute(entityResultEClass, ENTITY_RESULT__ENTITY_CLASS); + + fieldResultEClass = createEClass(FIELD_RESULT); + createEAttribute(fieldResultEClass, FIELD_RESULT__COLUMN); + createEAttribute(fieldResultEClass, FIELD_RESULT__NAME); + + generatedValueEClass = createEClass(GENERATED_VALUE); + createEAttribute(generatedValueEClass, GENERATED_VALUE__GENERATOR); + createEAttribute(generatedValueEClass, GENERATED_VALUE__STRATEGY); + + idEClass = createEClass(ID); + createEReference(idEClass, ID__COLUMN); + createEReference(idEClass, ID__GENERATED_VALUE); + createEAttribute(idEClass, ID__TEMPORAL); + createEReference(idEClass, ID__TABLE_GENERATOR); + createEReference(idEClass, ID__SEQUENCE_GENERATOR); + createEAttribute(idEClass, ID__NAME); + + idClassEClass = createEClass(ID_CLASS); + createEAttribute(idClassEClass, ID_CLASS__CLASS); + + inheritanceEClass = createEClass(INHERITANCE); + createEAttribute(inheritanceEClass, INHERITANCE__STRATEGY); + + joinColumnEClass = createEClass(JOIN_COLUMN); + createEAttribute(joinColumnEClass, JOIN_COLUMN__COLUMN_DEFINITION); + createEAttribute(joinColumnEClass, JOIN_COLUMN__INSERTABLE); + createEAttribute(joinColumnEClass, JOIN_COLUMN__NAME); + createEAttribute(joinColumnEClass, JOIN_COLUMN__NULLABLE); + createEAttribute(joinColumnEClass, JOIN_COLUMN__REFERENCED_COLUMN_NAME); + createEAttribute(joinColumnEClass, JOIN_COLUMN__TABLE); + createEAttribute(joinColumnEClass, JOIN_COLUMN__UNIQUE); + createEAttribute(joinColumnEClass, JOIN_COLUMN__UPDATABLE); + + joinTableEClass = createEClass(JOIN_TABLE); + createEReference(joinTableEClass, JOIN_TABLE__JOIN_COLUMN); + createEReference(joinTableEClass, JOIN_TABLE__INVERSE_JOIN_COLUMN); + createEReference(joinTableEClass, JOIN_TABLE__UNIQUE_CONSTRAINT); + createEAttribute(joinTableEClass, JOIN_TABLE__CATALOG); + createEAttribute(joinTableEClass, JOIN_TABLE__NAME); + createEAttribute(joinTableEClass, JOIN_TABLE__SCHEMA); + + lobEClass = createEClass(LOB); + + manyToManyEClass = createEClass(MANY_TO_MANY); + createEAttribute(manyToManyEClass, MANY_TO_MANY__ORDER_BY); + createEReference(manyToManyEClass, MANY_TO_MANY__MAP_KEY); + createEReference(manyToManyEClass, MANY_TO_MANY__JOIN_TABLE); + createEReference(manyToManyEClass, MANY_TO_MANY__CASCADE); + createEAttribute(manyToManyEClass, MANY_TO_MANY__FETCH); + createEAttribute(manyToManyEClass, MANY_TO_MANY__MAPPED_BY); + createEAttribute(manyToManyEClass, MANY_TO_MANY__NAME); + createEAttribute(manyToManyEClass, MANY_TO_MANY__TARGET_ENTITY); + + manyToOneEClass = createEClass(MANY_TO_ONE); + createEReference(manyToOneEClass, MANY_TO_ONE__JOIN_COLUMN); + createEReference(manyToOneEClass, MANY_TO_ONE__JOIN_TABLE); + createEReference(manyToOneEClass, MANY_TO_ONE__CASCADE); + createEAttribute(manyToOneEClass, MANY_TO_ONE__FETCH); + createEAttribute(manyToOneEClass, MANY_TO_ONE__NAME); + createEAttribute(manyToOneEClass, MANY_TO_ONE__OPTIONAL); + createEAttribute(manyToOneEClass, MANY_TO_ONE__TARGET_ENTITY); + + mapKeyEClass = createEClass(MAP_KEY); + createEAttribute(mapKeyEClass, MAP_KEY__NAME); + + mappedSuperclassEClass = createEClass(MAPPED_SUPERCLASS); + createEAttribute(mappedSuperclassEClass, MAPPED_SUPERCLASS__DESCRIPTION); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__ID_CLASS); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__EXCLUDE_DEFAULT_LISTENERS); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__EXCLUDE_SUPERCLASS_LISTENERS); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__ENTITY_LISTENERS); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__PRE_PERSIST); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__POST_PERSIST); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__PRE_REMOVE); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__POST_REMOVE); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__PRE_UPDATE); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__POST_UPDATE); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__POST_LOAD); + createEReference(mappedSuperclassEClass, MAPPED_SUPERCLASS__ATTRIBUTES); + createEAttribute(mappedSuperclassEClass, MAPPED_SUPERCLASS__ACCESS); + createEAttribute(mappedSuperclassEClass, MAPPED_SUPERCLASS__CLASS); + createEAttribute(mappedSuperclassEClass, MAPPED_SUPERCLASS__METADATA_COMPLETE); + + namedNativeQueryEClass = createEClass(NAMED_NATIVE_QUERY); + createEAttribute(namedNativeQueryEClass, NAMED_NATIVE_QUERY__QUERY); + createEReference(namedNativeQueryEClass, NAMED_NATIVE_QUERY__HINT); + createEAttribute(namedNativeQueryEClass, NAMED_NATIVE_QUERY__NAME); + createEAttribute(namedNativeQueryEClass, NAMED_NATIVE_QUERY__RESULT_CLASS); + createEAttribute(namedNativeQueryEClass, NAMED_NATIVE_QUERY__RESULT_SET_MAPPING); + + namedQueryEClass = createEClass(NAMED_QUERY); + createEAttribute(namedQueryEClass, NAMED_QUERY__QUERY); + createEReference(namedQueryEClass, NAMED_QUERY__HINT); + createEAttribute(namedQueryEClass, NAMED_QUERY__NAME); + + oneToManyEClass = createEClass(ONE_TO_MANY); + createEAttribute(oneToManyEClass, ONE_TO_MANY__ORDER_BY); + createEReference(oneToManyEClass, ONE_TO_MANY__MAP_KEY); + createEReference(oneToManyEClass, ONE_TO_MANY__JOIN_TABLE); + createEReference(oneToManyEClass, ONE_TO_MANY__JOIN_COLUMN); + createEReference(oneToManyEClass, ONE_TO_MANY__CASCADE); + createEAttribute(oneToManyEClass, ONE_TO_MANY__FETCH); + createEAttribute(oneToManyEClass, ONE_TO_MANY__MAPPED_BY); + createEAttribute(oneToManyEClass, ONE_TO_MANY__NAME); + createEAttribute(oneToManyEClass, ONE_TO_MANY__TARGET_ENTITY); + + oneToOneEClass = createEClass(ONE_TO_ONE); + createEReference(oneToOneEClass, ONE_TO_ONE__PRIMARY_KEY_JOIN_COLUMN); + createEReference(oneToOneEClass, ONE_TO_ONE__JOIN_COLUMN); + createEReference(oneToOneEClass, ONE_TO_ONE__JOIN_TABLE); + createEReference(oneToOneEClass, ONE_TO_ONE__CASCADE); + createEAttribute(oneToOneEClass, ONE_TO_ONE__FETCH); + createEAttribute(oneToOneEClass, ONE_TO_ONE__MAPPED_BY); + createEAttribute(oneToOneEClass, ONE_TO_ONE__NAME); + createEAttribute(oneToOneEClass, ONE_TO_ONE__OPTIONAL); + createEAttribute(oneToOneEClass, ONE_TO_ONE__TARGET_ENTITY); + + persistenceUnitDefaultsEClass = createEClass(PERSISTENCE_UNIT_DEFAULTS); + createEAttribute(persistenceUnitDefaultsEClass, PERSISTENCE_UNIT_DEFAULTS__SCHEMA); + createEAttribute(persistenceUnitDefaultsEClass, PERSISTENCE_UNIT_DEFAULTS__CATALOG); + createEAttribute(persistenceUnitDefaultsEClass, PERSISTENCE_UNIT_DEFAULTS__ACCESS); + createEReference(persistenceUnitDefaultsEClass, PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST); + createEReference(persistenceUnitDefaultsEClass, PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS); + + persistenceUnitMetadataEClass = createEClass(PERSISTENCE_UNIT_METADATA); + createEReference(persistenceUnitMetadataEClass, PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE); + createEReference(persistenceUnitMetadataEClass, PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS); + + postLoadEClass = createEClass(POST_LOAD); + createEAttribute(postLoadEClass, POST_LOAD__METHOD_NAME); + + postPersistEClass = createEClass(POST_PERSIST); + createEAttribute(postPersistEClass, POST_PERSIST__METHOD_NAME); + + postRemoveEClass = createEClass(POST_REMOVE); + createEAttribute(postRemoveEClass, POST_REMOVE__METHOD_NAME); + + postUpdateEClass = createEClass(POST_UPDATE); + createEAttribute(postUpdateEClass, POST_UPDATE__METHOD_NAME); + + prePersistEClass = createEClass(PRE_PERSIST); + createEAttribute(prePersistEClass, PRE_PERSIST__METHOD_NAME); + + preRemoveEClass = createEClass(PRE_REMOVE); + createEAttribute(preRemoveEClass, PRE_REMOVE__METHOD_NAME); + + preUpdateEClass = createEClass(PRE_UPDATE); + createEAttribute(preUpdateEClass, PRE_UPDATE__METHOD_NAME); + + primaryKeyJoinColumnEClass = createEClass(PRIMARY_KEY_JOIN_COLUMN); + createEAttribute(primaryKeyJoinColumnEClass, PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION); + createEAttribute(primaryKeyJoinColumnEClass, PRIMARY_KEY_JOIN_COLUMN__NAME); + createEAttribute(primaryKeyJoinColumnEClass, PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME); + + queryHintEClass = createEClass(QUERY_HINT); + createEAttribute(queryHintEClass, QUERY_HINT__NAME); + createEAttribute(queryHintEClass, QUERY_HINT__VALUE); + + secondaryTableEClass = createEClass(SECONDARY_TABLE); + createEReference(secondaryTableEClass, SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN); + createEReference(secondaryTableEClass, SECONDARY_TABLE__UNIQUE_CONSTRAINT); + createEAttribute(secondaryTableEClass, SECONDARY_TABLE__CATALOG); + createEAttribute(secondaryTableEClass, SECONDARY_TABLE__NAME); + createEAttribute(secondaryTableEClass, SECONDARY_TABLE__SCHEMA); + + sequenceGeneratorEClass = createEClass(SEQUENCE_GENERATOR); + createEAttribute(sequenceGeneratorEClass, SEQUENCE_GENERATOR__ALLOCATION_SIZE); + createEAttribute(sequenceGeneratorEClass, SEQUENCE_GENERATOR__INITIAL_VALUE); + createEAttribute(sequenceGeneratorEClass, SEQUENCE_GENERATOR__NAME); + createEAttribute(sequenceGeneratorEClass, SEQUENCE_GENERATOR__SEQUENCE_NAME); + + sqlResultSetMappingEClass = createEClass(SQL_RESULT_SET_MAPPING); + createEReference(sqlResultSetMappingEClass, SQL_RESULT_SET_MAPPING__ENTITY_RESULT); + createEReference(sqlResultSetMappingEClass, SQL_RESULT_SET_MAPPING__COLUMN_RESULT); + createEAttribute(sqlResultSetMappingEClass, SQL_RESULT_SET_MAPPING__NAME); + + tableEClass = createEClass(TABLE); + createEReference(tableEClass, TABLE__UNIQUE_CONSTRAINT); + createEAttribute(tableEClass, TABLE__CATALOG); + createEAttribute(tableEClass, TABLE__NAME); + createEAttribute(tableEClass, TABLE__SCHEMA); + + tableGeneratorEClass = createEClass(TABLE_GENERATOR); + createEReference(tableGeneratorEClass, TABLE_GENERATOR__UNIQUE_CONSTRAINT); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__ALLOCATION_SIZE); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__CATALOG); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__INITIAL_VALUE); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__NAME); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__PK_COLUMN_NAME); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__PK_COLUMN_VALUE); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__SCHEMA); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__TABLE); + createEAttribute(tableGeneratorEClass, TABLE_GENERATOR__VALUE_COLUMN_NAME); + + transientEClass = createEClass(TRANSIENT); + createEAttribute(transientEClass, TRANSIENT__NAME); + + uniqueConstraintEClass = createEClass(UNIQUE_CONSTRAINT); + createEAttribute(uniqueConstraintEClass, UNIQUE_CONSTRAINT__COLUMN_NAME); + + versionEClass = createEClass(VERSION); + createEReference(versionEClass, VERSION__COLUMN); + createEAttribute(versionEClass, VERSION__TEMPORAL); + createEAttribute(versionEClass, VERSION__NAME); + + // Create enums + accessTypeEEnum = createEEnum(ACCESS_TYPE); + discriminatorTypeEEnum = createEEnum(DISCRIMINATOR_TYPE); + enumTypeEEnum = createEEnum(ENUM_TYPE); + fetchTypeEEnum = createEEnum(FETCH_TYPE); + generationTypeEEnum = createEEnum(GENERATION_TYPE); + inheritanceTypeEEnum = createEEnum(INHERITANCE_TYPE); + temporalTypeEEnum = createEEnum(TEMPORAL_TYPE); + + // Create data types + accessTypeObjectEDataType = createEDataType(ACCESS_TYPE_OBJECT); + discriminatorTypeObjectEDataType = createEDataType(DISCRIMINATOR_TYPE_OBJECT); + discriminatorValueEDataType = createEDataType(DISCRIMINATOR_VALUE); + enumeratedEDataType = createEDataType(ENUMERATED); + enumTypeObjectEDataType = createEDataType(ENUM_TYPE_OBJECT); + fetchTypeObjectEDataType = createEDataType(FETCH_TYPE_OBJECT); + generationTypeObjectEDataType = createEDataType(GENERATION_TYPE_OBJECT); + inheritanceTypeObjectEDataType = createEDataType(INHERITANCE_TYPE_OBJECT); + orderByEDataType = createEDataType(ORDER_BY); + temporalEDataType = createEDataType(TEMPORAL); + temporalTypeObjectEDataType = createEDataType(TEMPORAL_TYPE_OBJECT); + versionTypeEDataType = createEDataType(VERSION_TYPE); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void initializePackageContents() { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + XMLTypePackage theXMLTypePackage = (XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(associationOverrideEClass, AssociationOverride.class, "AssociationOverride", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAssociationOverride_JoinColumn(), this.getJoinColumn(), null, "joinColumn", null, 1, -1, AssociationOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAssociationOverride_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, AssociationOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(attributeOverrideEClass, AttributeOverride.class, "AttributeOverride", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAttributeOverride_Column(), this.getColumn(), null, "column", null, 1, 1, AttributeOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getAttributeOverride_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, AttributeOverride.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(attributesEClass, Attributes.class, "Attributes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getAttributes_Id(), this.getId(), null, "id", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_EmbeddedId(), this.getEmbeddedId(), null, "embeddedId", null, 0, 1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_Basic(), this.getBasic(), null, "basic", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_Version(), this.getVersion(), null, "version", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_ManyToOne(), this.getManyToOne(), null, "manyToOne", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_OneToMany(), this.getOneToMany(), null, "oneToMany", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_OneToOne(), this.getOneToOne(), null, "oneToOne", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_ManyToMany(), this.getManyToMany(), null, "manyToMany", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_Embedded(), this.getEmbedded(), null, "embedded", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getAttributes_Transient(), this.getTransient(), null, "transient", null, 0, -1, Attributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(basicEClass, Basic.class, "Basic", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getBasic_Column(), this.getColumn(), null, "column", null, 0, 1, Basic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getBasic_Lob(), this.getLob(), null, "lob", null, 0, 1, Basic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBasic_Temporal(), this.getTemporal(), "temporal", null, 0, 1, Basic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBasic_Enumerated(), this.getEnumerated(), "enumerated", null, 0, 1, Basic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBasic_Fetch(), this.getFetchType(), "fetch", null, 0, 1, Basic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBasic_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Basic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getBasic_Optional(), theXMLTypePackage.getBoolean(), "optional", null, 0, 1, Basic.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cascadeTypeEClass, CascadeType.class, "CascadeType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getCascadeType_CascadeAll(), this.getEmptyType(), null, "cascadeAll", null, 0, 1, CascadeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCascadeType_CascadePersist(), this.getEmptyType(), null, "cascadePersist", null, 0, 1, CascadeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCascadeType_CascadeMerge(), this.getEmptyType(), null, "cascadeMerge", null, 0, 1, CascadeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCascadeType_CascadeRemove(), this.getEmptyType(), null, "cascadeRemove", null, 0, 1, CascadeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getCascadeType_CascadeRefresh(), this.getEmptyType(), null, "cascadeRefresh", null, 0, 1, CascadeType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(columnEClass, Column.class, "Column", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getColumn_ColumnDefinition(), theXMLTypePackage.getString(), "columnDefinition", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Insertable(), theXMLTypePackage.getBoolean(), "insertable", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Length(), theXMLTypePackage.getInt(), "length", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Nullable(), theXMLTypePackage.getBoolean(), "nullable", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Precision(), theXMLTypePackage.getInt(), "precision", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Scale(), theXMLTypePackage.getInt(), "scale", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Table(), theXMLTypePackage.getString(), "table", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Unique(), theXMLTypePackage.getBoolean(), "unique", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getColumn_Updatable(), theXMLTypePackage.getBoolean(), "updatable", null, 0, 1, Column.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(columnResultEClass, ColumnResult.class, "ColumnResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getColumnResult_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, ColumnResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(discriminatorColumnEClass, DiscriminatorColumn.class, "DiscriminatorColumn", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDiscriminatorColumn_ColumnDefinition(), theXMLTypePackage.getString(), "columnDefinition", null, 0, 1, DiscriminatorColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDiscriminatorColumn_DiscriminatorType(), this.getDiscriminatorType(), "discriminatorType", null, 0, 1, DiscriminatorColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDiscriminatorColumn_Length(), theXMLTypePackage.getInt(), "length", null, 0, 1, DiscriminatorColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getDiscriminatorColumn_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, DiscriminatorColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(), "mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDocumentRoot_XMLNSPrefixMap(), ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDocumentRoot_XSISchemaLocation(), ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0, -1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getDocumentRoot_EntityMappings(), this.getEntityMappingsType(), null, "entityMappings", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED); + + initEClass(embeddableEClass, Embeddable.class, "Embeddable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEmbeddable_Description(), theXMLTypePackage.getString(), "description", null, 0, 1, Embeddable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEmbeddable_Attributes(), this.getEmbeddableAttributes(), null, "attributes", null, 0, 1, Embeddable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEmbeddable_Access(), this.getAccessType(), "access", null, 0, 1, Embeddable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEmbeddable_Class(), theXMLTypePackage.getString(), "class", null, 1, 1, Embeddable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEmbeddable_MetadataComplete(), theXMLTypePackage.getBoolean(), "metadataComplete", null, 0, 1, Embeddable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(embeddableAttributesEClass, EmbeddableAttributes.class, "EmbeddableAttributes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEmbeddableAttributes_Basic(), this.getBasic(), null, "basic", null, 0, -1, EmbeddableAttributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEmbeddableAttributes_Transient(), this.getTransient(), null, "transient", null, 0, -1, EmbeddableAttributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(embeddedEClass, Embedded.class, "Embedded", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEmbedded_AttributeOverride(), this.getAttributeOverride(), null, "attributeOverride", null, 0, -1, Embedded.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEmbedded_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Embedded.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(embeddedIdEClass, EmbeddedId.class, "EmbeddedId", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEmbeddedId_AttributeOverride(), this.getAttributeOverride(), null, "attributeOverride", null, 0, -1, EmbeddedId.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEmbeddedId_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, EmbeddedId.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(emptyTypeEClass, EmptyType.class, "EmptyType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEntity_Description(), theXMLTypePackage.getString(), "description", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_Table(), this.getTable(), null, "table", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_SecondaryTable(), this.getSecondaryTable(), null, "secondaryTable", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PrimaryKeyJoinColumn(), this.getPrimaryKeyJoinColumn(), null, "primaryKeyJoinColumn", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_IdClass(), this.getIdClass(), null, "idClass", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_Inheritance(), this.getInheritance(), null, "inheritance", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntity_DiscriminatorValue(), this.getDiscriminatorValue(), "discriminatorValue", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_DiscriminatorColumn(), this.getDiscriminatorColumn(), null, "discriminatorColumn", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_SequenceGenerator(), this.getSequenceGenerator(), null, "sequenceGenerator", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_TableGenerator(), this.getTableGenerator(), null, "tableGenerator", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_NamedQuery(), this.getNamedQuery(), null, "namedQuery", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_NamedNativeQuery(), this.getNamedNativeQuery(), null, "namedNativeQuery", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_SqlResultSetMapping(), this.getSqlResultSetMapping(), null, "sqlResultSetMapping", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_ExcludeDefaultListeners(), this.getEmptyType(), null, "excludeDefaultListeners", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_ExcludeSuperclassListeners(), this.getEmptyType(), null, "excludeSuperclassListeners", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_EntityListeners(), this.getEntityListeners(), null, "entityListeners", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PrePersist(), this.getPrePersist(), null, "prePersist", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PostPersist(), this.getPostPersist(), null, "postPersist", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PreRemove(), this.getPreRemove(), null, "preRemove", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PostRemove(), this.getPostRemove(), null, "postRemove", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PreUpdate(), this.getPreUpdate(), null, "preUpdate", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PostUpdate(), this.getPostUpdate(), null, "postUpdate", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_PostLoad(), this.getPostLoad(), null, "postLoad", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_AttributeOverride(), this.getAttributeOverride(), null, "attributeOverride", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_AssociationOverride(), this.getAssociationOverride(), null, "associationOverride", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntity_Attributes(), this.getAttributes(), null, "attributes", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntity_Access(), this.getAccessType(), "access", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntity_Class(), theXMLTypePackage.getString(), "class", null, 1, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntity_MetadataComplete(), theXMLTypePackage.getBoolean(), "metadataComplete", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntity_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(entityListenerEClass, EntityListener.class, "EntityListener", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEntityListener_PrePersist(), this.getPrePersist(), null, "prePersist", null, 0, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityListener_PostPersist(), this.getPostPersist(), null, "postPersist", null, 0, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityListener_PreRemove(), this.getPreRemove(), null, "preRemove", null, 0, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityListener_PostRemove(), this.getPostRemove(), null, "postRemove", null, 0, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityListener_PreUpdate(), this.getPreUpdate(), null, "preUpdate", null, 0, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityListener_PostUpdate(), this.getPostUpdate(), null, "postUpdate", null, 0, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityListener_PostLoad(), this.getPostLoad(), null, "postLoad", null, 0, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityListener_Class(), theXMLTypePackage.getString(), "class", null, 1, 1, EntityListener.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(entityListenersEClass, EntityListeners.class, "EntityListeners", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEntityListeners_EntityListener(), this.getEntityListener(), null, "entityListener", null, 0, -1, EntityListeners.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(entityMappingsTypeEClass, EntityMappingsType.class, "EntityMappingsType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEntityMappingsType_Description(), theXMLTypePackage.getString(), "description", null, 0, 1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_PersistenceUnitMetadata(), this.getPersistenceUnitMetadata(), null, "persistenceUnitMetadata", null, 0, 1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityMappingsType_Package(), theXMLTypePackage.getString(), "package", null, 0, 1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityMappingsType_Schema(), theXMLTypePackage.getString(), "schema", null, 0, 1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityMappingsType_Catalog(), theXMLTypePackage.getString(), "catalog", null, 0, 1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityMappingsType_Access(), this.getAccessType(), "access", null, 0, 1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_SequenceGenerator(), this.getSequenceGenerator(), null, "sequenceGenerator", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_TableGenerator(), this.getTableGenerator(), null, "tableGenerator", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_NamedQuery(), this.getNamedQuery(), null, "namedQuery", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_NamedNativeQuery(), this.getNamedNativeQuery(), null, "namedNativeQuery", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_SqlResultSetMapping(), this.getSqlResultSetMapping(), null, "sqlResultSetMapping", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_MappedSuperclass(), this.getMappedSuperclass(), null, "mappedSuperclass", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_Entity(), this.getEntity(), null, "entity", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEntityMappingsType_Embeddable(), this.getEmbeddable(), null, "embeddable", null, 0, -1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityMappingsType_Version(), this.getVersionType(), "version", "1.0", 1, 1, EntityMappingsType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(entityResultEClass, EntityResult.class, "EntityResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEntityResult_FieldResult(), this.getFieldResult(), null, "fieldResult", null, 0, -1, EntityResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityResult_DiscriminatorColumn(), theXMLTypePackage.getString(), "discriminatorColumn", null, 0, 1, EntityResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEntityResult_EntityClass(), theXMLTypePackage.getString(), "entityClass", null, 1, 1, EntityResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fieldResultEClass, FieldResult.class, "FieldResult", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getFieldResult_Column(), theXMLTypePackage.getString(), "column", null, 1, 1, FieldResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getFieldResult_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, FieldResult.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(generatedValueEClass, GeneratedValue.class, "GeneratedValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getGeneratedValue_Generator(), theXMLTypePackage.getString(), "generator", null, 0, 1, GeneratedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getGeneratedValue_Strategy(), this.getGenerationType(), "strategy", null, 0, 1, GeneratedValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(idEClass, Id.class, "Id", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getId_Column(), this.getColumn(), null, "column", null, 0, 1, Id.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getId_GeneratedValue(), this.getGeneratedValue(), null, "generatedValue", null, 0, 1, Id.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getId_Temporal(), this.getTemporal(), "temporal", null, 0, 1, Id.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getId_TableGenerator(), this.getTableGenerator(), null, "tableGenerator", null, 0, 1, Id.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getId_SequenceGenerator(), this.getSequenceGenerator(), null, "sequenceGenerator", null, 0, 1, Id.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getId_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Id.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(idClassEClass, IdClass.class, "IdClass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getIdClass_Class(), theXMLTypePackage.getString(), "class", null, 1, 1, IdClass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(inheritanceEClass, Inheritance.class, "Inheritance", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getInheritance_Strategy(), this.getInheritanceType(), "strategy", null, 0, 1, Inheritance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(joinColumnEClass, JoinColumn.class, "JoinColumn", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getJoinColumn_ColumnDefinition(), theXMLTypePackage.getString(), "columnDefinition", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinColumn_Insertable(), theXMLTypePackage.getBoolean(), "insertable", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinColumn_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinColumn_Nullable(), theXMLTypePackage.getBoolean(), "nullable", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinColumn_ReferencedColumnName(), theXMLTypePackage.getString(), "referencedColumnName", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinColumn_Table(), theXMLTypePackage.getString(), "table", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinColumn_Unique(), theXMLTypePackage.getBoolean(), "unique", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinColumn_Updatable(), theXMLTypePackage.getBoolean(), "updatable", null, 0, 1, JoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(joinTableEClass, JoinTable.class, "JoinTable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getJoinTable_JoinColumn(), this.getJoinColumn(), null, "joinColumn", null, 0, -1, JoinTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getJoinTable_InverseJoinColumn(), this.getJoinColumn(), null, "inverseJoinColumn", null, 0, -1, JoinTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getJoinTable_UniqueConstraint(), this.getUniqueConstraint(), null, "uniqueConstraint", null, 0, -1, JoinTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinTable_Catalog(), theXMLTypePackage.getString(), "catalog", null, 0, 1, JoinTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinTable_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, JoinTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getJoinTable_Schema(), theXMLTypePackage.getString(), "schema", null, 0, 1, JoinTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(lobEClass, Lob.class, "Lob", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(manyToManyEClass, ManyToMany.class, "ManyToMany", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getManyToMany_OrderBy(), this.getOrderBy(), "orderBy", null, 0, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManyToMany_MapKey(), this.getMapKey(), null, "mapKey", null, 0, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManyToMany_JoinTable(), this.getJoinTable(), null, "joinTable", null, 0, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManyToMany_Cascade(), this.getCascadeType(), null, "cascade", null, 0, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToMany_Fetch(), this.getFetchType(), "fetch", null, 0, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToMany_MappedBy(), theXMLTypePackage.getString(), "mappedBy", null, 0, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToMany_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToMany_TargetEntity(), theXMLTypePackage.getString(), "targetEntity", null, 0, 1, ManyToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(manyToOneEClass, ManyToOne.class, "ManyToOne", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getManyToOne_JoinColumn(), this.getJoinColumn(), null, "joinColumn", null, 0, -1, ManyToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManyToOne_JoinTable(), this.getJoinTable(), null, "joinTable", null, 0, 1, ManyToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getManyToOne_Cascade(), this.getCascadeType(), null, "cascade", null, 0, 1, ManyToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToOne_Fetch(), this.getFetchType(), "fetch", null, 0, 1, ManyToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToOne_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, ManyToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToOne_Optional(), theXMLTypePackage.getBoolean(), "optional", null, 0, 1, ManyToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getManyToOne_TargetEntity(), theXMLTypePackage.getString(), "targetEntity", null, 0, 1, ManyToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(mapKeyEClass, MapKey.class, "MapKey", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMapKey_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, MapKey.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(mappedSuperclassEClass, MappedSuperclass.class, "MappedSuperclass", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMappedSuperclass_Description(), theXMLTypePackage.getString(), "description", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_IdClass(), this.getIdClass(), null, "idClass", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_ExcludeDefaultListeners(), this.getEmptyType(), null, "excludeDefaultListeners", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_ExcludeSuperclassListeners(), this.getEmptyType(), null, "excludeSuperclassListeners", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_EntityListeners(), this.getEntityListeners(), null, "entityListeners", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_PrePersist(), this.getPrePersist(), null, "prePersist", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_PostPersist(), this.getPostPersist(), null, "postPersist", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_PreRemove(), this.getPreRemove(), null, "preRemove", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_PostRemove(), this.getPostRemove(), null, "postRemove", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_PreUpdate(), this.getPreUpdate(), null, "preUpdate", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_PostUpdate(), this.getPostUpdate(), null, "postUpdate", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_PostLoad(), this.getPostLoad(), null, "postLoad", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMappedSuperclass_Attributes(), this.getAttributes(), null, "attributes", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMappedSuperclass_Access(), this.getAccessType(), "access", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMappedSuperclass_Class(), theXMLTypePackage.getString(), "class", null, 1, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMappedSuperclass_MetadataComplete(), theXMLTypePackage.getBoolean(), "metadataComplete", null, 0, 1, MappedSuperclass.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(namedNativeQueryEClass, NamedNativeQuery.class, "NamedNativeQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNamedNativeQuery_Query(), theXMLTypePackage.getString(), "query", null, 1, 1, NamedNativeQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getNamedNativeQuery_Hint(), this.getQueryHint(), null, "hint", null, 0, -1, NamedNativeQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedNativeQuery_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, NamedNativeQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedNativeQuery_ResultClass(), theXMLTypePackage.getString(), "resultClass", null, 0, 1, NamedNativeQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedNativeQuery_ResultSetMapping(), theXMLTypePackage.getString(), "resultSetMapping", null, 0, 1, NamedNativeQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(namedQueryEClass, NamedQuery.class, "NamedQuery", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getNamedQuery_Query(), theXMLTypePackage.getString(), "query", null, 1, 1, NamedQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getNamedQuery_Hint(), this.getQueryHint(), null, "hint", null, 0, -1, NamedQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getNamedQuery_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, NamedQuery.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(oneToManyEClass, OneToMany.class, "OneToMany", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getOneToMany_OrderBy(), this.getOrderBy(), "orderBy", null, 0, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOneToMany_MapKey(), this.getMapKey(), null, "mapKey", null, 0, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOneToMany_JoinTable(), this.getJoinTable(), null, "joinTable", null, 0, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOneToMany_JoinColumn(), this.getJoinColumn(), null, "joinColumn", null, 0, -1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOneToMany_Cascade(), this.getCascadeType(), null, "cascade", null, 0, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToMany_Fetch(), this.getFetchType(), "fetch", null, 0, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToMany_MappedBy(), theXMLTypePackage.getString(), "mappedBy", null, 0, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToMany_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToMany_TargetEntity(), theXMLTypePackage.getString(), "targetEntity", null, 0, 1, OneToMany.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(oneToOneEClass, OneToOne.class, "OneToOne", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getOneToOne_PrimaryKeyJoinColumn(), this.getPrimaryKeyJoinColumn(), null, "primaryKeyJoinColumn", null, 0, -1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOneToOne_JoinColumn(), this.getJoinColumn(), null, "joinColumn", null, 0, -1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOneToOne_JoinTable(), this.getJoinTable(), null, "joinTable", null, 0, 1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getOneToOne_Cascade(), this.getCascadeType(), null, "cascade", null, 0, 1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToOne_Fetch(), this.getFetchType(), "fetch", null, 0, 1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToOne_MappedBy(), theXMLTypePackage.getString(), "mappedBy", null, 0, 1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToOne_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToOne_Optional(), theXMLTypePackage.getBoolean(), "optional", null, 0, 1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getOneToOne_TargetEntity(), theXMLTypePackage.getString(), "targetEntity", null, 0, 1, OneToOne.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(persistenceUnitDefaultsEClass, PersistenceUnitDefaults.class, "PersistenceUnitDefaults", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPersistenceUnitDefaults_Schema(), theXMLTypePackage.getString(), "schema", null, 0, 1, PersistenceUnitDefaults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPersistenceUnitDefaults_Catalog(), theXMLTypePackage.getString(), "catalog", null, 0, 1, PersistenceUnitDefaults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPersistenceUnitDefaults_Access(), this.getAccessType(), "access", null, 0, 1, PersistenceUnitDefaults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPersistenceUnitDefaults_CascadePersist(), this.getEmptyType(), null, "cascadePersist", null, 0, 1, PersistenceUnitDefaults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPersistenceUnitDefaults_EntityListeners(), this.getEntityListeners(), null, "entityListeners", null, 0, 1, PersistenceUnitDefaults.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(persistenceUnitMetadataEClass, PersistenceUnitMetadata.class, "PersistenceUnitMetadata", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getPersistenceUnitMetadata_XmlMappingMetadataComplete(), this.getEmptyType(), null, "xmlMappingMetadataComplete", null, 0, 1, PersistenceUnitMetadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPersistenceUnitMetadata_PersistenceUnitDefaults(), this.getPersistenceUnitDefaults(), null, "persistenceUnitDefaults", null, 0, 1, PersistenceUnitMetadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(postLoadEClass, PostLoad.class, "PostLoad", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPostLoad_MethodName(), theXMLTypePackage.getString(), "methodName", null, 1, 1, PostLoad.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(postPersistEClass, PostPersist.class, "PostPersist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPostPersist_MethodName(), theXMLTypePackage.getString(), "methodName", null, 1, 1, PostPersist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(postRemoveEClass, PostRemove.class, "PostRemove", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPostRemove_MethodName(), theXMLTypePackage.getString(), "methodName", null, 1, 1, PostRemove.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(postUpdateEClass, PostUpdate.class, "PostUpdate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPostUpdate_MethodName(), theXMLTypePackage.getString(), "methodName", null, 1, 1, PostUpdate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(prePersistEClass, PrePersist.class, "PrePersist", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPrePersist_MethodName(), theXMLTypePackage.getString(), "methodName", null, 1, 1, PrePersist.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(preRemoveEClass, PreRemove.class, "PreRemove", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPreRemove_MethodName(), theXMLTypePackage.getString(), "methodName", null, 1, 1, PreRemove.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(preUpdateEClass, PreUpdate.class, "PreUpdate", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPreUpdate_MethodName(), theXMLTypePackage.getString(), "methodName", null, 1, 1, PreUpdate.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(primaryKeyJoinColumnEClass, PrimaryKeyJoinColumn.class, "PrimaryKeyJoinColumn", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPrimaryKeyJoinColumn_ColumnDefinition(), theXMLTypePackage.getString(), "columnDefinition", null, 0, 1, PrimaryKeyJoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPrimaryKeyJoinColumn_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, PrimaryKeyJoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getPrimaryKeyJoinColumn_ReferencedColumnName(), theXMLTypePackage.getString(), "referencedColumnName", null, 0, 1, PrimaryKeyJoinColumn.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(queryHintEClass, QueryHint.class, "QueryHint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getQueryHint_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, QueryHint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getQueryHint_Value(), theXMLTypePackage.getString(), "value", null, 1, 1, QueryHint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(secondaryTableEClass, SecondaryTable.class, "SecondaryTable", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSecondaryTable_PrimaryKeyJoinColumn(), this.getPrimaryKeyJoinColumn(), null, "primaryKeyJoinColumn", null, 0, -1, SecondaryTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSecondaryTable_UniqueConstraint(), this.getUniqueConstraint(), null, "uniqueConstraint", null, 0, -1, SecondaryTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecondaryTable_Catalog(), theXMLTypePackage.getString(), "catalog", null, 0, 1, SecondaryTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecondaryTable_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, SecondaryTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSecondaryTable_Schema(), theXMLTypePackage.getString(), "schema", null, 0, 1, SecondaryTable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(sequenceGeneratorEClass, SequenceGenerator.class, "SequenceGenerator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getSequenceGenerator_AllocationSize(), theXMLTypePackage.getInt(), "allocationSize", null, 0, 1, SequenceGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSequenceGenerator_InitialValue(), theXMLTypePackage.getInt(), "initialValue", null, 0, 1, SequenceGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSequenceGenerator_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, SequenceGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSequenceGenerator_SequenceName(), theXMLTypePackage.getString(), "sequenceName", null, 0, 1, SequenceGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(sqlResultSetMappingEClass, SqlResultSetMapping.class, "SqlResultSetMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getSqlResultSetMapping_EntityResult(), this.getEntityResult(), null, "entityResult", null, 0, -1, SqlResultSetMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getSqlResultSetMapping_ColumnResult(), this.getColumnResult(), null, "columnResult", null, 0, -1, SqlResultSetMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getSqlResultSetMapping_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, SqlResultSetMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tableEClass, Table.class, "Table", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTable_UniqueConstraint(), this.getUniqueConstraint(), null, "uniqueConstraint", null, 0, -1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTable_Catalog(), theXMLTypePackage.getString(), "catalog", null, 0, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTable_Name(), theXMLTypePackage.getString(), "name", null, 0, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTable_Schema(), theXMLTypePackage.getString(), "schema", null, 0, 1, Table.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(tableGeneratorEClass, TableGenerator.class, "TableGenerator", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getTableGenerator_UniqueConstraint(), this.getUniqueConstraint(), null, "uniqueConstraint", null, 0, -1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_AllocationSize(), theXMLTypePackage.getInt(), "allocationSize", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_Catalog(), theXMLTypePackage.getString(), "catalog", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_InitialValue(), theXMLTypePackage.getInt(), "initialValue", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_PkColumnName(), theXMLTypePackage.getString(), "pkColumnName", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_PkColumnValue(), theXMLTypePackage.getString(), "pkColumnValue", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_Schema(), theXMLTypePackage.getString(), "schema", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_Table(), theXMLTypePackage.getString(), "table", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTableGenerator_ValueColumnName(), theXMLTypePackage.getString(), "valueColumnName", null, 0, 1, TableGenerator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(transientEClass, Transient.class, "Transient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTransient_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Transient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(uniqueConstraintEClass, UniqueConstraint.class, "UniqueConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getUniqueConstraint_ColumnName(), theXMLTypePackage.getString(), "columnName", null, 1, -1, UniqueConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(versionEClass, Version.class, "Version", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getVersion_Column(), this.getColumn(), null, "column", null, 0, 1, Version.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVersion_Temporal(), this.getTemporal(), "temporal", null, 0, 1, Version.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getVersion_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Version.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(accessTypeEEnum, AccessType.class, "AccessType"); + addEEnumLiteral(accessTypeEEnum, AccessType.PROPERTY); + addEEnumLiteral(accessTypeEEnum, AccessType.FIELD); + + initEEnum(discriminatorTypeEEnum, DiscriminatorType.class, "DiscriminatorType"); + addEEnumLiteral(discriminatorTypeEEnum, DiscriminatorType.STRING); + addEEnumLiteral(discriminatorTypeEEnum, DiscriminatorType.CHAR); + addEEnumLiteral(discriminatorTypeEEnum, DiscriminatorType.INTEGER); + + initEEnum(enumTypeEEnum, EnumType.class, "EnumType"); + addEEnumLiteral(enumTypeEEnum, EnumType.ORDINAL); + addEEnumLiteral(enumTypeEEnum, EnumType.STRING); + + initEEnum(fetchTypeEEnum, FetchType.class, "FetchType"); + addEEnumLiteral(fetchTypeEEnum, FetchType.LAZY); + addEEnumLiteral(fetchTypeEEnum, FetchType.EAGER); + + initEEnum(generationTypeEEnum, GenerationType.class, "GenerationType"); + addEEnumLiteral(generationTypeEEnum, GenerationType.TABLE); + addEEnumLiteral(generationTypeEEnum, GenerationType.SEQUENCE); + addEEnumLiteral(generationTypeEEnum, GenerationType.IDENTITY); + addEEnumLiteral(generationTypeEEnum, GenerationType.AUTO); + + initEEnum(inheritanceTypeEEnum, InheritanceType.class, "InheritanceType"); + addEEnumLiteral(inheritanceTypeEEnum, InheritanceType.SINGLETABLE); + addEEnumLiteral(inheritanceTypeEEnum, InheritanceType.JOINED); + addEEnumLiteral(inheritanceTypeEEnum, InheritanceType.TABLEPERCLASS); + + initEEnum(temporalTypeEEnum, TemporalType.class, "TemporalType"); + addEEnumLiteral(temporalTypeEEnum, TemporalType.DATE); + addEEnumLiteral(temporalTypeEEnum, TemporalType.TIME); + addEEnumLiteral(temporalTypeEEnum, TemporalType.TIMESTAMP); + + // Initialize data types + initEDataType(accessTypeObjectEDataType, AccessType.class, "AccessTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(discriminatorTypeObjectEDataType, DiscriminatorType.class, "DiscriminatorTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(discriminatorValueEDataType, String.class, "DiscriminatorValue", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(enumeratedEDataType, EnumType.class, "Enumerated", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(enumTypeObjectEDataType, EnumType.class, "EnumTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(fetchTypeObjectEDataType, FetchType.class, "FetchTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(generationTypeObjectEDataType, GenerationType.class, "GenerationTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(inheritanceTypeObjectEDataType, InheritanceType.class, "InheritanceTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(orderByEDataType, String.class, "OrderBy", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(temporalEDataType, TemporalType.class, "Temporal", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(temporalTypeObjectEDataType, TemporalType.class, "TemporalTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); + initEDataType(versionTypeEDataType, String.class, "VersionType", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http:///org/eclipse/emf/ecore/util/ExtendedMetaData + createExtendedMetaDataAnnotations(); + // teneo.escape + createTeneoAnnotations(); + } + + /** + * Initializes the annotations for <b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void createExtendedMetaDataAnnotations() { + String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; + addAnnotation + (this, + source, + new String[] { + "qualified", "false" + }); + addAnnotation + (accessTypeEEnum, + source, + new String[] { + "name", "access-type" + }); + addAnnotation + (accessTypeObjectEDataType, + source, + new String[] { + "name", "access-type:Object", + "baseType", "access-type" + }); + addAnnotation + (associationOverrideEClass, + source, + new String[] { + "name", "association-override", + "kind", "elementOnly" + }); + addAnnotation + (getAssociationOverride_JoinColumn(), + source, + new String[] { + "kind", "element", + "name", "join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAssociationOverride_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (attributeOverrideEClass, + source, + new String[] { + "name", "attribute-override", + "kind", "elementOnly" + }); + addAnnotation + (getAttributeOverride_Column(), + source, + new String[] { + "kind", "element", + "name", "column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributeOverride_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (attributesEClass, + source, + new String[] { + "name", "attributes", + "kind", "elementOnly" + }); + addAnnotation + (getAttributes_Id(), + source, + new String[] { + "kind", "element", + "name", "id", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_EmbeddedId(), + source, + new String[] { + "kind", "element", + "name", "embedded-id", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_Basic(), + source, + new String[] { + "kind", "element", + "name", "basic", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_Version(), + source, + new String[] { + "kind", "element", + "name", "version", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_ManyToOne(), + source, + new String[] { + "kind", "element", + "name", "many-to-one", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_OneToMany(), + source, + new String[] { + "kind", "element", + "name", "one-to-many", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_OneToOne(), + source, + new String[] { + "kind", "element", + "name", "one-to-one", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_ManyToMany(), + source, + new String[] { + "kind", "element", + "name", "many-to-many", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_Embedded(), + source, + new String[] { + "kind", "element", + "name", "embedded", + "namespace", "##targetNamespace" + }); + addAnnotation + (getAttributes_Transient(), + source, + new String[] { + "kind", "element", + "name", "transient", + "namespace", "##targetNamespace" + }); + addAnnotation + (basicEClass, + source, + new String[] { + "name", "basic", + "kind", "elementOnly" + }); + addAnnotation + (getBasic_Column(), + source, + new String[] { + "kind", "element", + "name", "column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getBasic_Lob(), + source, + new String[] { + "kind", "element", + "name", "lob", + "namespace", "##targetNamespace" + }); + addAnnotation + (getBasic_Temporal(), + source, + new String[] { + "kind", "element", + "name", "temporal", + "namespace", "##targetNamespace" + }); + addAnnotation + (getBasic_Enumerated(), + source, + new String[] { + "kind", "element", + "name", "enumerated", + "namespace", "##targetNamespace" + }); + addAnnotation + (getBasic_Fetch(), + source, + new String[] { + "kind", "attribute", + "name", "fetch" + }); + addAnnotation + (getBasic_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getBasic_Optional(), + source, + new String[] { + "kind", "attribute", + "name", "optional" + }); + addAnnotation + (cascadeTypeEClass, + source, + new String[] { + "name", "cascade-type", + "kind", "elementOnly" + }); + addAnnotation + (getCascadeType_CascadeAll(), + source, + new String[] { + "kind", "element", + "name", "cascade-all", + "namespace", "##targetNamespace" + }); + addAnnotation + (getCascadeType_CascadePersist(), + source, + new String[] { + "kind", "element", + "name", "cascade-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getCascadeType_CascadeMerge(), + source, + new String[] { + "kind", "element", + "name", "cascade-merge", + "namespace", "##targetNamespace" + }); + addAnnotation + (getCascadeType_CascadeRemove(), + source, + new String[] { + "kind", "element", + "name", "cascade-remove", + "namespace", "##targetNamespace" + }); + addAnnotation + (getCascadeType_CascadeRefresh(), + source, + new String[] { + "kind", "element", + "name", "cascade-refresh", + "namespace", "##targetNamespace" + }); + addAnnotation + (columnEClass, + source, + new String[] { + "name", "column", + "kind", "empty" + }); + addAnnotation + (getColumn_ColumnDefinition(), + source, + new String[] { + "kind", "attribute", + "name", "column-definition" + }); + addAnnotation + (getColumn_Insertable(), + source, + new String[] { + "kind", "attribute", + "name", "insertable" + }); + addAnnotation + (getColumn_Length(), + source, + new String[] { + "kind", "attribute", + "name", "length" + }); + addAnnotation + (getColumn_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getColumn_Nullable(), + source, + new String[] { + "kind", "attribute", + "name", "nullable" + }); + addAnnotation + (getColumn_Precision(), + source, + new String[] { + "kind", "attribute", + "name", "precision" + }); + addAnnotation + (getColumn_Scale(), + source, + new String[] { + "kind", "attribute", + "name", "scale" + }); + addAnnotation + (getColumn_Table(), + source, + new String[] { + "kind", "attribute", + "name", "table" + }); + addAnnotation + (getColumn_Unique(), + source, + new String[] { + "kind", "attribute", + "name", "unique" + }); + addAnnotation + (getColumn_Updatable(), + source, + new String[] { + "kind", "attribute", + "name", "updatable" + }); + addAnnotation + (columnResultEClass, + source, + new String[] { + "name", "column-result", + "kind", "empty" + }); + addAnnotation + (getColumnResult_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (discriminatorColumnEClass, + source, + new String[] { + "name", "discriminator-column", + "kind", "empty" + }); + addAnnotation + (getDiscriminatorColumn_ColumnDefinition(), + source, + new String[] { + "kind", "attribute", + "name", "column-definition" + }); + addAnnotation + (getDiscriminatorColumn_DiscriminatorType(), + source, + new String[] { + "kind", "attribute", + "name", "discriminator-type" + }); + addAnnotation + (getDiscriminatorColumn_Length(), + source, + new String[] { + "kind", "attribute", + "name", "length" + }); + addAnnotation + (getDiscriminatorColumn_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (discriminatorTypeEEnum, + source, + new String[] { + "name", "discriminator-type" + }); + addAnnotation + (discriminatorTypeObjectEDataType, + source, + new String[] { + "name", "discriminator-type:Object", + "baseType", "discriminator-type" + }); + addAnnotation + (discriminatorValueEDataType, + source, + new String[] { + "name", "discriminator-value", + "baseType", "http://www.eclipse.org/emf/2003/XMLType#string" + }); + addAnnotation + (documentRootEClass, + source, + new String[] { + "name", "", + "kind", "mixed" + }); + addAnnotation + (getDocumentRoot_Mixed(), + source, + new String[] { + "kind", "elementWildcard", + "name", ":mixed" + }); + addAnnotation + (getDocumentRoot_XMLNSPrefixMap(), + source, + new String[] { + "kind", "attribute", + "name", "xmlns:prefix" + }); + addAnnotation + (getDocumentRoot_XSISchemaLocation(), + source, + new String[] { + "kind", "attribute", + "name", "xsi:schemaLocation" + }); + addAnnotation + (getDocumentRoot_EntityMappings(), + source, + new String[] { + "kind", "element", + "name", "entity-mappings", + "namespace", "##targetNamespace" + }); + addAnnotation + (embeddableEClass, + source, + new String[] { + "name", "embeddable", + "kind", "elementOnly" + }); + addAnnotation + (getEmbeddable_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEmbeddable_Attributes(), + source, + new String[] { + "kind", "element", + "name", "attributes", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEmbeddable_Access(), + source, + new String[] { + "kind", "attribute", + "name", "access" + }); + addAnnotation + (getEmbeddable_Class(), + source, + new String[] { + "kind", "attribute", + "name", "class" + }); + addAnnotation + (getEmbeddable_MetadataComplete(), + source, + new String[] { + "kind", "attribute", + "name", "metadata-complete" + }); + addAnnotation + (embeddableAttributesEClass, + source, + new String[] { + "name", "embeddable-attributes", + "kind", "elementOnly" + }); + addAnnotation + (getEmbeddableAttributes_Basic(), + source, + new String[] { + "kind", "element", + "name", "basic", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEmbeddableAttributes_Transient(), + source, + new String[] { + "kind", "element", + "name", "transient", + "namespace", "##targetNamespace" + }); + addAnnotation + (embeddedEClass, + source, + new String[] { + "name", "embedded", + "kind", "elementOnly" + }); + addAnnotation + (getEmbedded_AttributeOverride(), + source, + new String[] { + "kind", "element", + "name", "attribute-override", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEmbedded_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (embeddedIdEClass, + source, + new String[] { + "name", "embedded-id", + "kind", "elementOnly" + }); + addAnnotation + (getEmbeddedId_AttributeOverride(), + source, + new String[] { + "kind", "element", + "name", "attribute-override", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEmbeddedId_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (emptyTypeEClass, + source, + new String[] { + "name", "emptyType", + "kind", "empty" + }); + addAnnotation + (entityEClass, + source, + new String[] { + "name", "entity", + "kind", "elementOnly" + }); + addAnnotation + (getEntity_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_Table(), + source, + new String[] { + "kind", "element", + "name", "table", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_SecondaryTable(), + source, + new String[] { + "kind", "element", + "name", "secondary-table", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PrimaryKeyJoinColumn(), + source, + new String[] { + "kind", "element", + "name", "primary-key-join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_IdClass(), + source, + new String[] { + "kind", "element", + "name", "id-class", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_Inheritance(), + source, + new String[] { + "kind", "element", + "name", "inheritance", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_DiscriminatorValue(), + source, + new String[] { + "kind", "element", + "name", "discriminator-value", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_DiscriminatorColumn(), + source, + new String[] { + "kind", "element", + "name", "discriminator-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_SequenceGenerator(), + source, + new String[] { + "kind", "element", + "name", "sequence-generator", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_TableGenerator(), + source, + new String[] { + "kind", "element", + "name", "table-generator", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_NamedQuery(), + source, + new String[] { + "kind", "element", + "name", "named-query", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_NamedNativeQuery(), + source, + new String[] { + "kind", "element", + "name", "named-native-query", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_SqlResultSetMapping(), + source, + new String[] { + "kind", "element", + "name", "sql-result-set-mapping", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_ExcludeDefaultListeners(), + source, + new String[] { + "kind", "element", + "name", "exclude-default-listeners", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_ExcludeSuperclassListeners(), + source, + new String[] { + "kind", "element", + "name", "exclude-superclass-listeners", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_EntityListeners(), + source, + new String[] { + "kind", "element", + "name", "entity-listeners", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PrePersist(), + source, + new String[] { + "kind", "element", + "name", "pre-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PostPersist(), + source, + new String[] { + "kind", "element", + "name", "post-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PreRemove(), + source, + new String[] { + "kind", "element", + "name", "pre-remove", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PostRemove(), + source, + new String[] { + "kind", "element", + "name", "post-remove", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PreUpdate(), + source, + new String[] { + "kind", "element", + "name", "pre-update", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PostUpdate(), + source, + new String[] { + "kind", "element", + "name", "post-update", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_PostLoad(), + source, + new String[] { + "kind", "element", + "name", "post-load", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_AttributeOverride(), + source, + new String[] { + "kind", "element", + "name", "attribute-override", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_AssociationOverride(), + source, + new String[] { + "kind", "element", + "name", "association-override", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_Attributes(), + source, + new String[] { + "kind", "element", + "name", "attributes", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntity_Access(), + source, + new String[] { + "kind", "attribute", + "name", "access" + }); + addAnnotation + (getEntity_Class(), + source, + new String[] { + "kind", "attribute", + "name", "class" + }); + addAnnotation + (getEntity_MetadataComplete(), + source, + new String[] { + "kind", "attribute", + "name", "metadata-complete" + }); + addAnnotation + (getEntity_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (entityListenerEClass, + source, + new String[] { + "name", "entity-listener", + "kind", "elementOnly" + }); + addAnnotation + (getEntityListener_PrePersist(), + source, + new String[] { + "kind", "element", + "name", "pre-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityListener_PostPersist(), + source, + new String[] { + "kind", "element", + "name", "post-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityListener_PreRemove(), + source, + new String[] { + "kind", "element", + "name", "pre-remove", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityListener_PostRemove(), + source, + new String[] { + "kind", "element", + "name", "post-remove", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityListener_PreUpdate(), + source, + new String[] { + "kind", "element", + "name", "pre-update", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityListener_PostUpdate(), + source, + new String[] { + "kind", "element", + "name", "post-update", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityListener_PostLoad(), + source, + new String[] { + "kind", "element", + "name", "post-load", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityListener_Class(), + source, + new String[] { + "kind", "attribute", + "name", "class" + }); + addAnnotation + (entityListenersEClass, + source, + new String[] { + "name", "entity-listeners", + "kind", "elementOnly" + }); + addAnnotation + (getEntityListeners_EntityListener(), + source, + new String[] { + "kind", "element", + "name", "entity-listener", + "namespace", "##targetNamespace" + }); + addAnnotation + (entityMappingsTypeEClass, + source, + new String[] { + "name", "entity-mappings_._type", + "kind", "elementOnly" + }); + addAnnotation + (getEntityMappingsType_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_PersistenceUnitMetadata(), + source, + new String[] { + "kind", "element", + "name", "persistence-unit-metadata", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_Package(), + source, + new String[] { + "kind", "element", + "name", "package", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_Schema(), + source, + new String[] { + "kind", "element", + "name", "schema", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_Catalog(), + source, + new String[] { + "kind", "element", + "name", "catalog", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_Access(), + source, + new String[] { + "kind", "element", + "name", "access", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_SequenceGenerator(), + source, + new String[] { + "kind", "element", + "name", "sequence-generator", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_TableGenerator(), + source, + new String[] { + "kind", "element", + "name", "table-generator", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_NamedQuery(), + source, + new String[] { + "kind", "element", + "name", "named-query", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_NamedNativeQuery(), + source, + new String[] { + "kind", "element", + "name", "named-native-query", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_SqlResultSetMapping(), + source, + new String[] { + "kind", "element", + "name", "sql-result-set-mapping", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_MappedSuperclass(), + source, + new String[] { + "kind", "element", + "name", "mapped-superclass", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_Entity(), + source, + new String[] { + "kind", "element", + "name", "entity", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_Embeddable(), + source, + new String[] { + "kind", "element", + "name", "embeddable", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityMappingsType_Version(), + source, + new String[] { + "kind", "attribute", + "name", "version" + }); + addAnnotation + (entityResultEClass, + source, + new String[] { + "name", "entity-result", + "kind", "elementOnly" + }); + addAnnotation + (getEntityResult_FieldResult(), + source, + new String[] { + "kind", "element", + "name", "field-result", + "namespace", "##targetNamespace" + }); + addAnnotation + (getEntityResult_DiscriminatorColumn(), + source, + new String[] { + "kind", "attribute", + "name", "discriminator-column" + }); + addAnnotation + (getEntityResult_EntityClass(), + source, + new String[] { + "kind", "attribute", + "name", "entity-class" + }); + addAnnotation + (enumeratedEDataType, + source, + new String[] { + "name", "enumerated", + "baseType", "enum-type" + }); + addAnnotation + (enumTypeEEnum, + source, + new String[] { + "name", "enum-type" + }); + addAnnotation + (enumTypeObjectEDataType, + source, + new String[] { + "name", "enum-type:Object", + "baseType", "enum-type" + }); + addAnnotation + (fetchTypeEEnum, + source, + new String[] { + "name", "fetch-type" + }); + addAnnotation + (fetchTypeObjectEDataType, + source, + new String[] { + "name", "fetch-type:Object", + "baseType", "fetch-type" + }); + addAnnotation + (fieldResultEClass, + source, + new String[] { + "name", "field-result", + "kind", "empty" + }); + addAnnotation + (getFieldResult_Column(), + source, + new String[] { + "kind", "attribute", + "name", "column" + }); + addAnnotation + (getFieldResult_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (generatedValueEClass, + source, + new String[] { + "name", "generated-value", + "kind", "empty" + }); + addAnnotation + (getGeneratedValue_Generator(), + source, + new String[] { + "kind", "attribute", + "name", "generator" + }); + addAnnotation + (getGeneratedValue_Strategy(), + source, + new String[] { + "kind", "attribute", + "name", "strategy" + }); + addAnnotation + (generationTypeEEnum, + source, + new String[] { + "name", "generation-type" + }); + addAnnotation + (generationTypeObjectEDataType, + source, + new String[] { + "name", "generation-type:Object", + "baseType", "generation-type" + }); + addAnnotation + (idEClass, + source, + new String[] { + "name", "id", + "kind", "elementOnly" + }); + addAnnotation + (getId_Column(), + source, + new String[] { + "kind", "element", + "name", "column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getId_GeneratedValue(), + source, + new String[] { + "kind", "element", + "name", "generated-value", + "namespace", "##targetNamespace" + }); + addAnnotation + (getId_Temporal(), + source, + new String[] { + "kind", "element", + "name", "temporal", + "namespace", "##targetNamespace" + }); + addAnnotation + (getId_TableGenerator(), + source, + new String[] { + "kind", "element", + "name", "table-generator", + "namespace", "##targetNamespace" + }); + addAnnotation + (getId_SequenceGenerator(), + source, + new String[] { + "kind", "element", + "name", "sequence-generator", + "namespace", "##targetNamespace" + }); + addAnnotation + (getId_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (idClassEClass, + source, + new String[] { + "name", "id-class", + "kind", "empty" + }); + addAnnotation + (getIdClass_Class(), + source, + new String[] { + "kind", "attribute", + "name", "class" + }); + addAnnotation + (inheritanceEClass, + source, + new String[] { + "name", "inheritance", + "kind", "empty" + }); + addAnnotation + (getInheritance_Strategy(), + source, + new String[] { + "kind", "attribute", + "name", "strategy" + }); + addAnnotation + (inheritanceTypeEEnum, + source, + new String[] { + "name", "inheritance-type" + }); + addAnnotation + (inheritanceTypeObjectEDataType, + source, + new String[] { + "name", "inheritance-type:Object", + "baseType", "inheritance-type" + }); + addAnnotation + (joinColumnEClass, + source, + new String[] { + "name", "join-column", + "kind", "empty" + }); + addAnnotation + (getJoinColumn_ColumnDefinition(), + source, + new String[] { + "kind", "attribute", + "name", "column-definition" + }); + addAnnotation + (getJoinColumn_Insertable(), + source, + new String[] { + "kind", "attribute", + "name", "insertable" + }); + addAnnotation + (getJoinColumn_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getJoinColumn_Nullable(), + source, + new String[] { + "kind", "attribute", + "name", "nullable" + }); + addAnnotation + (getJoinColumn_ReferencedColumnName(), + source, + new String[] { + "kind", "attribute", + "name", "referenced-column-name" + }); + addAnnotation + (getJoinColumn_Table(), + source, + new String[] { + "kind", "attribute", + "name", "table" + }); + addAnnotation + (getJoinColumn_Unique(), + source, + new String[] { + "kind", "attribute", + "name", "unique" + }); + addAnnotation + (getJoinColumn_Updatable(), + source, + new String[] { + "kind", "attribute", + "name", "updatable" + }); + addAnnotation + (joinTableEClass, + source, + new String[] { + "name", "join-table", + "kind", "elementOnly" + }); + addAnnotation + (getJoinTable_JoinColumn(), + source, + new String[] { + "kind", "element", + "name", "join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getJoinTable_InverseJoinColumn(), + source, + new String[] { + "kind", "element", + "name", "inverse-join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getJoinTable_UniqueConstraint(), + source, + new String[] { + "kind", "element", + "name", "unique-constraint", + "namespace", "##targetNamespace" + }); + addAnnotation + (getJoinTable_Catalog(), + source, + new String[] { + "kind", "attribute", + "name", "catalog" + }); + addAnnotation + (getJoinTable_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getJoinTable_Schema(), + source, + new String[] { + "kind", "attribute", + "name", "schema" + }); + addAnnotation + (lobEClass, + source, + new String[] { + "name", "lob", + "kind", "empty" + }); + addAnnotation + (manyToManyEClass, + source, + new String[] { + "name", "many-to-many", + "kind", "elementOnly" + }); + addAnnotation + (getManyToMany_OrderBy(), + source, + new String[] { + "kind", "element", + "name", "order-by", + "namespace", "##targetNamespace" + }); + addAnnotation + (getManyToMany_MapKey(), + source, + new String[] { + "kind", "element", + "name", "map-key", + "namespace", "##targetNamespace" + }); + addAnnotation + (getManyToMany_JoinTable(), + source, + new String[] { + "kind", "element", + "name", "join-table", + "namespace", "##targetNamespace" + }); + addAnnotation + (getManyToMany_Cascade(), + source, + new String[] { + "kind", "element", + "name", "cascade", + "namespace", "##targetNamespace" + }); + addAnnotation + (getManyToMany_Fetch(), + source, + new String[] { + "kind", "attribute", + "name", "fetch" + }); + addAnnotation + (getManyToMany_MappedBy(), + source, + new String[] { + "kind", "attribute", + "name", "mapped-by" + }); + addAnnotation + (getManyToMany_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getManyToMany_TargetEntity(), + source, + new String[] { + "kind", "attribute", + "name", "target-entity" + }); + addAnnotation + (manyToOneEClass, + source, + new String[] { + "name", "many-to-one", + "kind", "elementOnly" + }); + addAnnotation + (getManyToOne_JoinColumn(), + source, + new String[] { + "kind", "element", + "name", "join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getManyToOne_JoinTable(), + source, + new String[] { + "kind", "element", + "name", "join-table", + "namespace", "##targetNamespace" + }); + addAnnotation + (getManyToOne_Cascade(), + source, + new String[] { + "kind", "element", + "name", "cascade", + "namespace", "##targetNamespace" + }); + addAnnotation + (getManyToOne_Fetch(), + source, + new String[] { + "kind", "attribute", + "name", "fetch" + }); + addAnnotation + (getManyToOne_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getManyToOne_Optional(), + source, + new String[] { + "kind", "attribute", + "name", "optional" + }); + addAnnotation + (getManyToOne_TargetEntity(), + source, + new String[] { + "kind", "attribute", + "name", "target-entity" + }); + addAnnotation + (mapKeyEClass, + source, + new String[] { + "name", "map-key", + "kind", "empty" + }); + addAnnotation + (getMapKey_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (mappedSuperclassEClass, + source, + new String[] { + "name", "mapped-superclass", + "kind", "elementOnly" + }); + addAnnotation + (getMappedSuperclass_Description(), + source, + new String[] { + "kind", "element", + "name", "description", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_IdClass(), + source, + new String[] { + "kind", "element", + "name", "id-class", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_ExcludeDefaultListeners(), + source, + new String[] { + "kind", "element", + "name", "exclude-default-listeners", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_ExcludeSuperclassListeners(), + source, + new String[] { + "kind", "element", + "name", "exclude-superclass-listeners", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_EntityListeners(), + source, + new String[] { + "kind", "element", + "name", "entity-listeners", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_PrePersist(), + source, + new String[] { + "kind", "element", + "name", "pre-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_PostPersist(), + source, + new String[] { + "kind", "element", + "name", "post-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_PreRemove(), + source, + new String[] { + "kind", "element", + "name", "pre-remove", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_PostRemove(), + source, + new String[] { + "kind", "element", + "name", "post-remove", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_PreUpdate(), + source, + new String[] { + "kind", "element", + "name", "pre-update", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_PostUpdate(), + source, + new String[] { + "kind", "element", + "name", "post-update", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_PostLoad(), + source, + new String[] { + "kind", "element", + "name", "post-load", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_Attributes(), + source, + new String[] { + "kind", "element", + "name", "attributes", + "namespace", "##targetNamespace" + }); + addAnnotation + (getMappedSuperclass_Access(), + source, + new String[] { + "kind", "attribute", + "name", "access" + }); + addAnnotation + (getMappedSuperclass_Class(), + source, + new String[] { + "kind", "attribute", + "name", "class" + }); + addAnnotation + (getMappedSuperclass_MetadataComplete(), + source, + new String[] { + "kind", "attribute", + "name", "metadata-complete" + }); + addAnnotation + (namedNativeQueryEClass, + source, + new String[] { + "name", "named-native-query", + "kind", "elementOnly" + }); + addAnnotation + (getNamedNativeQuery_Query(), + source, + new String[] { + "kind", "element", + "name", "query", + "namespace", "##targetNamespace" + }); + addAnnotation + (getNamedNativeQuery_Hint(), + source, + new String[] { + "kind", "element", + "name", "hint", + "namespace", "##targetNamespace" + }); + addAnnotation + (getNamedNativeQuery_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getNamedNativeQuery_ResultClass(), + source, + new String[] { + "kind", "attribute", + "name", "result-class" + }); + addAnnotation + (getNamedNativeQuery_ResultSetMapping(), + source, + new String[] { + "kind", "attribute", + "name", "result-set-mapping" + }); + addAnnotation + (namedQueryEClass, + source, + new String[] { + "name", "named-query", + "kind", "elementOnly" + }); + addAnnotation + (getNamedQuery_Query(), + source, + new String[] { + "kind", "element", + "name", "query", + "namespace", "##targetNamespace" + }); + addAnnotation + (getNamedQuery_Hint(), + source, + new String[] { + "kind", "element", + "name", "hint", + "namespace", "##targetNamespace" + }); + addAnnotation + (getNamedQuery_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (oneToManyEClass, + source, + new String[] { + "name", "one-to-many", + "kind", "elementOnly" + }); + addAnnotation + (getOneToMany_OrderBy(), + source, + new String[] { + "kind", "element", + "name", "order-by", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToMany_MapKey(), + source, + new String[] { + "kind", "element", + "name", "map-key", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToMany_JoinTable(), + source, + new String[] { + "kind", "element", + "name", "join-table", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToMany_JoinColumn(), + source, + new String[] { + "kind", "element", + "name", "join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToMany_Cascade(), + source, + new String[] { + "kind", "element", + "name", "cascade", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToMany_Fetch(), + source, + new String[] { + "kind", "attribute", + "name", "fetch" + }); + addAnnotation + (getOneToMany_MappedBy(), + source, + new String[] { + "kind", "attribute", + "name", "mapped-by" + }); + addAnnotation + (getOneToMany_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getOneToMany_TargetEntity(), + source, + new String[] { + "kind", "attribute", + "name", "target-entity" + }); + addAnnotation + (oneToOneEClass, + source, + new String[] { + "name", "one-to-one", + "kind", "elementOnly" + }); + addAnnotation + (getOneToOne_PrimaryKeyJoinColumn(), + source, + new String[] { + "kind", "element", + "name", "primary-key-join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToOne_JoinColumn(), + source, + new String[] { + "kind", "element", + "name", "join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToOne_JoinTable(), + source, + new String[] { + "kind", "element", + "name", "join-table", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToOne_Cascade(), + source, + new String[] { + "kind", "element", + "name", "cascade", + "namespace", "##targetNamespace" + }); + addAnnotation + (getOneToOne_Fetch(), + source, + new String[] { + "kind", "attribute", + "name", "fetch" + }); + addAnnotation + (getOneToOne_MappedBy(), + source, + new String[] { + "kind", "attribute", + "name", "mapped-by" + }); + addAnnotation + (getOneToOne_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getOneToOne_Optional(), + source, + new String[] { + "kind", "attribute", + "name", "optional" + }); + addAnnotation + (getOneToOne_TargetEntity(), + source, + new String[] { + "kind", "attribute", + "name", "target-entity" + }); + addAnnotation + (orderByEDataType, + source, + new String[] { + "name", "order-by", + "baseType", "http://www.eclipse.org/emf/2003/XMLType#string" + }); + addAnnotation + (persistenceUnitDefaultsEClass, + source, + new String[] { + "name", "persistence-unit-defaults", + "kind", "elementOnly" + }); + addAnnotation + (getPersistenceUnitDefaults_Schema(), + source, + new String[] { + "kind", "element", + "name", "schema", + "namespace", "##targetNamespace" + }); + addAnnotation + (getPersistenceUnitDefaults_Catalog(), + source, + new String[] { + "kind", "element", + "name", "catalog", + "namespace", "##targetNamespace" + }); + addAnnotation + (getPersistenceUnitDefaults_Access(), + source, + new String[] { + "kind", "element", + "name", "access", + "namespace", "##targetNamespace" + }); + addAnnotation + (getPersistenceUnitDefaults_CascadePersist(), + source, + new String[] { + "kind", "element", + "name", "cascade-persist", + "namespace", "##targetNamespace" + }); + addAnnotation + (getPersistenceUnitDefaults_EntityListeners(), + source, + new String[] { + "kind", "element", + "name", "entity-listeners", + "namespace", "##targetNamespace" + }); + addAnnotation + (persistenceUnitMetadataEClass, + source, + new String[] { + "name", "persistence-unit-metadata", + "kind", "elementOnly" + }); + addAnnotation + (getPersistenceUnitMetadata_XmlMappingMetadataComplete(), + source, + new String[] { + "kind", "element", + "name", "xml-mapping-metadata-complete", + "namespace", "##targetNamespace" + }); + addAnnotation + (getPersistenceUnitMetadata_PersistenceUnitDefaults(), + source, + new String[] { + "kind", "element", + "name", "persistence-unit-defaults", + "namespace", "##targetNamespace" + }); + addAnnotation + (postLoadEClass, + source, + new String[] { + "name", "post-load", + "kind", "empty" + }); + addAnnotation + (getPostLoad_MethodName(), + source, + new String[] { + "kind", "attribute", + "name", "method-name" + }); + addAnnotation + (postPersistEClass, + source, + new String[] { + "name", "post-persist", + "kind", "empty" + }); + addAnnotation + (getPostPersist_MethodName(), + source, + new String[] { + "kind", "attribute", + "name", "method-name" + }); + addAnnotation + (postRemoveEClass, + source, + new String[] { + "name", "post-remove", + "kind", "empty" + }); + addAnnotation + (getPostRemove_MethodName(), + source, + new String[] { + "kind", "attribute", + "name", "method-name" + }); + addAnnotation + (postUpdateEClass, + source, + new String[] { + "name", "post-update", + "kind", "empty" + }); + addAnnotation + (getPostUpdate_MethodName(), + source, + new String[] { + "kind", "attribute", + "name", "method-name" + }); + addAnnotation + (prePersistEClass, + source, + new String[] { + "name", "pre-persist", + "kind", "empty" + }); + addAnnotation + (getPrePersist_MethodName(), + source, + new String[] { + "kind", "attribute", + "name", "method-name" + }); + addAnnotation + (preRemoveEClass, + source, + new String[] { + "name", "pre-remove", + "kind", "empty" + }); + addAnnotation + (getPreRemove_MethodName(), + source, + new String[] { + "kind", "attribute", + "name", "method-name" + }); + addAnnotation + (preUpdateEClass, + source, + new String[] { + "name", "pre-update", + "kind", "empty" + }); + addAnnotation + (getPreUpdate_MethodName(), + source, + new String[] { + "kind", "attribute", + "name", "method-name" + }); + addAnnotation + (primaryKeyJoinColumnEClass, + source, + new String[] { + "name", "primary-key-join-column", + "kind", "empty" + }); + addAnnotation + (getPrimaryKeyJoinColumn_ColumnDefinition(), + source, + new String[] { + "kind", "attribute", + "name", "column-definition" + }); + addAnnotation + (getPrimaryKeyJoinColumn_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getPrimaryKeyJoinColumn_ReferencedColumnName(), + source, + new String[] { + "kind", "attribute", + "name", "referenced-column-name" + }); + addAnnotation + (queryHintEClass, + source, + new String[] { + "name", "query-hint", + "kind", "empty" + }); + addAnnotation + (getQueryHint_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getQueryHint_Value(), + source, + new String[] { + "kind", "attribute", + "name", "value" + }); + addAnnotation + (secondaryTableEClass, + source, + new String[] { + "name", "secondary-table", + "kind", "elementOnly" + }); + addAnnotation + (getSecondaryTable_PrimaryKeyJoinColumn(), + source, + new String[] { + "kind", "element", + "name", "primary-key-join-column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getSecondaryTable_UniqueConstraint(), + source, + new String[] { + "kind", "element", + "name", "unique-constraint", + "namespace", "##targetNamespace" + }); + addAnnotation + (getSecondaryTable_Catalog(), + source, + new String[] { + "kind", "attribute", + "name", "catalog" + }); + addAnnotation + (getSecondaryTable_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getSecondaryTable_Schema(), + source, + new String[] { + "kind", "attribute", + "name", "schema" + }); + addAnnotation + (sequenceGeneratorEClass, + source, + new String[] { + "name", "sequence-generator", + "kind", "empty" + }); + addAnnotation + (getSequenceGenerator_AllocationSize(), + source, + new String[] { + "kind", "attribute", + "name", "allocation-size" + }); + addAnnotation + (getSequenceGenerator_InitialValue(), + source, + new String[] { + "kind", "attribute", + "name", "initial-value" + }); + addAnnotation + (getSequenceGenerator_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getSequenceGenerator_SequenceName(), + source, + new String[] { + "kind", "attribute", + "name", "sequence-name" + }); + addAnnotation + (sqlResultSetMappingEClass, + source, + new String[] { + "name", "sql-result-set-mapping", + "kind", "elementOnly" + }); + addAnnotation + (getSqlResultSetMapping_EntityResult(), + source, + new String[] { + "kind", "element", + "name", "entity-result", + "namespace", "##targetNamespace" + }); + addAnnotation + (getSqlResultSetMapping_ColumnResult(), + source, + new String[] { + "kind", "element", + "name", "column-result", + "namespace", "##targetNamespace" + }); + addAnnotation + (getSqlResultSetMapping_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (tableEClass, + source, + new String[] { + "name", "table", + "kind", "elementOnly" + }); + addAnnotation + (getTable_UniqueConstraint(), + source, + new String[] { + "kind", "element", + "name", "unique-constraint", + "namespace", "##targetNamespace" + }); + addAnnotation + (getTable_Catalog(), + source, + new String[] { + "kind", "attribute", + "name", "catalog" + }); + addAnnotation + (getTable_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getTable_Schema(), + source, + new String[] { + "kind", "attribute", + "name", "schema" + }); + addAnnotation + (tableGeneratorEClass, + source, + new String[] { + "name", "table-generator", + "kind", "elementOnly" + }); + addAnnotation + (getTableGenerator_UniqueConstraint(), + source, + new String[] { + "kind", "element", + "name", "unique-constraint", + "namespace", "##targetNamespace" + }); + addAnnotation + (getTableGenerator_AllocationSize(), + source, + new String[] { + "kind", "attribute", + "name", "allocation-size" + }); + addAnnotation + (getTableGenerator_Catalog(), + source, + new String[] { + "kind", "attribute", + "name", "catalog" + }); + addAnnotation + (getTableGenerator_InitialValue(), + source, + new String[] { + "kind", "attribute", + "name", "initial-value" + }); + addAnnotation + (getTableGenerator_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (getTableGenerator_PkColumnName(), + source, + new String[] { + "kind", "attribute", + "name", "pk-column-name" + }); + addAnnotation + (getTableGenerator_PkColumnValue(), + source, + new String[] { + "kind", "attribute", + "name", "pk-column-value" + }); + addAnnotation + (getTableGenerator_Schema(), + source, + new String[] { + "kind", "attribute", + "name", "schema" + }); + addAnnotation + (getTableGenerator_Table(), + source, + new String[] { + "kind", "attribute", + "name", "table" + }); + addAnnotation + (getTableGenerator_ValueColumnName(), + source, + new String[] { + "kind", "attribute", + "name", "value-column-name" + }); + addAnnotation + (temporalEDataType, + source, + new String[] { + "name", "temporal", + "baseType", "temporal-type" + }); + addAnnotation + (temporalTypeEEnum, + source, + new String[] { + "name", "temporal-type" + }); + addAnnotation + (temporalTypeObjectEDataType, + source, + new String[] { + "name", "temporal-type:Object", + "baseType", "temporal-type" + }); + addAnnotation + (transientEClass, + source, + new String[] { + "name", "transient", + "kind", "empty" + }); + addAnnotation + (getTransient_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (uniqueConstraintEClass, + source, + new String[] { + "name", "unique-constraint", + "kind", "elementOnly" + }); + addAnnotation + (getUniqueConstraint_ColumnName(), + source, + new String[] { + "kind", "element", + "name", "column-name", + "namespace", "##targetNamespace" + }); + addAnnotation + (versionEClass, + source, + new String[] { + "name", "version", + "kind", "elementOnly" + }); + addAnnotation + (getVersion_Column(), + source, + new String[] { + "kind", "element", + "name", "column", + "namespace", "##targetNamespace" + }); + addAnnotation + (getVersion_Temporal(), + source, + new String[] { + "kind", "element", + "name", "temporal", + "namespace", "##targetNamespace" + }); + addAnnotation + (getVersion_Name(), + source, + new String[] { + "kind", "attribute", + "name", "name" + }); + addAnnotation + (versionTypeEDataType, + source, + new String[] { + "name", "versionType", + "baseType", "http://www.eclipse.org/emf/2003/XMLType#token", + "pattern", "[0-9]+(\\.[0-9]+)*" + }); + } + + /** + * Initializes the annotations for <b>teneo.escape</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void createTeneoAnnotations() { + String source = "teneo.escape"; + addAnnotation + (getColumn_Name(), + source, + new String[] { + "value", "true" + }); + addAnnotation + (getDiscriminatorColumn_Name(), + source, + new String[] { + "value", "true" + }); + addAnnotation + (getJoinColumn_Name(), + source, + new String[] { + "value", "true" + }); + addAnnotation + (getJoinTable_Name(), + source, + new String[] { + "value", "true" + }); + addAnnotation + (getTable_Name(), + source, + new String[] { + "value", "true" + }); + addAnnotation + (getUniqueConstraint_ColumnName(), + source, + new String[] { + "value", "true" + }); + } + +} //OrmPackageImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PersistenceUnitDefaultsImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PersistenceUnitDefaultsImpl.java new file mode 100755 index 000000000..f3c26fec7 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PersistenceUnitDefaultsImpl.java @@ -0,0 +1,458 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PersistenceUnitDefaultsImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Persistence Unit Defaults</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl#getSchema <em>Schema</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl#getAccess <em>Access</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl#getCascadePersist <em>Cascade Persist</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitDefaultsImpl#getEntityListeners <em>Entity Listeners</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PersistenceUnitDefaultsImpl extends EObjectImpl implements PersistenceUnitDefaults { + /** + * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected static final String SCHEMA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected String schema = SCHEMA_EDEFAULT; + + /** + * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected static final String CATALOG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected String catalog = CATALOG_EDEFAULT; + + /** + * The default value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected static final AccessType ACCESS_EDEFAULT = AccessType.PROPERTY; + + /** + * The cached value of the '{@link #getAccess() <em>Access</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAccess() + * @generated + * @ordered + */ + protected AccessType access = ACCESS_EDEFAULT; + + /** + * This is true if the Access attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean accessESet; + + /** + * The cached value of the '{@link #getCascadePersist() <em>Cascade Persist</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCascadePersist() + * @generated + * @ordered + */ + protected EmptyType cascadePersist; + + /** + * The cached value of the '{@link #getEntityListeners() <em>Entity Listeners</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntityListeners() + * @generated + * @ordered + */ + protected EntityListeners entityListeners; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PersistenceUnitDefaultsImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.PERSISTENCE_UNIT_DEFAULTS; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSchema() { + return schema; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSchema(String newSchema) { + String oldSchema = schema; + schema = newSchema; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__SCHEMA, oldSchema, schema)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCatalog() { + return catalog; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCatalog(String newCatalog) { + String oldCatalog = catalog; + catalog = newCatalog; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CATALOG, oldCatalog, catalog)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public AccessType getAccess() { + return access; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAccess(AccessType newAccess) { + AccessType oldAccess = access; + access = newAccess == null ? ACCESS_EDEFAULT : newAccess; + boolean oldAccessESet = accessESet; + accessESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ACCESS, oldAccess, access, !oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetAccess() { + AccessType oldAccess = access; + boolean oldAccessESet = accessESet; + access = ACCESS_EDEFAULT; + accessESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ACCESS, oldAccess, ACCESS_EDEFAULT, oldAccessESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetAccess() { + return accessESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getCascadePersist() { + return cascadePersist; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetCascadePersist(EmptyType newCascadePersist, NotificationChain msgs) { + EmptyType oldCascadePersist = cascadePersist; + cascadePersist = newCascadePersist; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST, oldCascadePersist, newCascadePersist); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCascadePersist(EmptyType newCascadePersist) { + if (newCascadePersist != cascadePersist) { + NotificationChain msgs = null; + if (cascadePersist != null) + msgs = ((InternalEObject)cascadePersist).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST, null, msgs); + if (newCascadePersist != null) + msgs = ((InternalEObject)newCascadePersist).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST, null, msgs); + msgs = basicSetCascadePersist(newCascadePersist, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST, newCascadePersist, newCascadePersist)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EntityListeners getEntityListeners() { + return entityListeners; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetEntityListeners(EntityListeners newEntityListeners, NotificationChain msgs) { + EntityListeners oldEntityListeners = entityListeners; + entityListeners = newEntityListeners; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS, oldEntityListeners, newEntityListeners); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setEntityListeners(EntityListeners newEntityListeners) { + if (newEntityListeners != entityListeners) { + NotificationChain msgs = null; + if (entityListeners != null) + msgs = ((InternalEObject)entityListeners).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS, null, msgs); + if (newEntityListeners != null) + msgs = ((InternalEObject)newEntityListeners).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS, null, msgs); + msgs = basicSetEntityListeners(newEntityListeners, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS, newEntityListeners, newEntityListeners)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST: + return basicSetCascadePersist(null, msgs); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS: + return basicSetEntityListeners(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__SCHEMA: + return getSchema(); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CATALOG: + return getCatalog(); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ACCESS: + return getAccess(); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST: + return getCascadePersist(); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS: + return getEntityListeners(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__SCHEMA: + setSchema((String)newValue); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CATALOG: + setCatalog((String)newValue); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ACCESS: + setAccess((AccessType)newValue); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST: + setCascadePersist((EmptyType)newValue); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS: + setEntityListeners((EntityListeners)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__SCHEMA: + setSchema(SCHEMA_EDEFAULT); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CATALOG: + setCatalog(CATALOG_EDEFAULT); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ACCESS: + unsetAccess(); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST: + setCascadePersist((EmptyType)null); + return; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS: + setEntityListeners((EntityListeners)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__SCHEMA: + return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CATALOG: + return CATALOG_EDEFAULT == null ? catalog != null : !CATALOG_EDEFAULT.equals(catalog); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ACCESS: + return isSetAccess(); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__CASCADE_PERSIST: + return cascadePersist != null; + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS__ENTITY_LISTENERS: + return entityListeners != null; + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (schema: "); + result.append(schema); + result.append(", catalog: "); + result.append(catalog); + result.append(", access: "); + if (accessESet) result.append(access); else result.append("<unset>"); + result.append(')'); + return result.toString(); + } + +} //PersistenceUnitDefaultsImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PersistenceUnitMetadataImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PersistenceUnitMetadataImpl.java new file mode 100755 index 000000000..6c1573d7c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PersistenceUnitMetadataImpl.java @@ -0,0 +1,247 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PersistenceUnitMetadataImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Persistence Unit Metadata</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitMetadataImpl#getXmlMappingMetadataComplete <em>Xml Mapping Metadata Complete</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PersistenceUnitMetadataImpl#getPersistenceUnitDefaults <em>Persistence Unit Defaults</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PersistenceUnitMetadataImpl extends EObjectImpl implements PersistenceUnitMetadata { + /** + * The cached value of the '{@link #getXmlMappingMetadataComplete() <em>Xml Mapping Metadata Complete</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getXmlMappingMetadataComplete() + * @generated + * @ordered + */ + protected EmptyType xmlMappingMetadataComplete; + + /** + * The cached value of the '{@link #getPersistenceUnitDefaults() <em>Persistence Unit Defaults</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPersistenceUnitDefaults() + * @generated + * @ordered + */ + protected PersistenceUnitDefaults persistenceUnitDefaults; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PersistenceUnitMetadataImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.PERSISTENCE_UNIT_METADATA; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EmptyType getXmlMappingMetadataComplete() { + return xmlMappingMetadataComplete; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetXmlMappingMetadataComplete(EmptyType newXmlMappingMetadataComplete, NotificationChain msgs) { + EmptyType oldXmlMappingMetadataComplete = xmlMappingMetadataComplete; + xmlMappingMetadataComplete = newXmlMappingMetadataComplete; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE, oldXmlMappingMetadataComplete, newXmlMappingMetadataComplete); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setXmlMappingMetadataComplete(EmptyType newXmlMappingMetadataComplete) { + if (newXmlMappingMetadataComplete != xmlMappingMetadataComplete) { + NotificationChain msgs = null; + if (xmlMappingMetadataComplete != null) + msgs = ((InternalEObject)xmlMappingMetadataComplete).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE, null, msgs); + if (newXmlMappingMetadataComplete != null) + msgs = ((InternalEObject)newXmlMappingMetadataComplete).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE, null, msgs); + msgs = basicSetXmlMappingMetadataComplete(newXmlMappingMetadataComplete, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE, newXmlMappingMetadataComplete, newXmlMappingMetadataComplete)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public PersistenceUnitDefaults getPersistenceUnitDefaults() { + return persistenceUnitDefaults; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetPersistenceUnitDefaults(PersistenceUnitDefaults newPersistenceUnitDefaults, NotificationChain msgs) { + PersistenceUnitDefaults oldPersistenceUnitDefaults = persistenceUnitDefaults; + persistenceUnitDefaults = newPersistenceUnitDefaults; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS, oldPersistenceUnitDefaults, newPersistenceUnitDefaults); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPersistenceUnitDefaults(PersistenceUnitDefaults newPersistenceUnitDefaults) { + if (newPersistenceUnitDefaults != persistenceUnitDefaults) { + NotificationChain msgs = null; + if (persistenceUnitDefaults != null) + msgs = ((InternalEObject)persistenceUnitDefaults).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS, null, msgs); + if (newPersistenceUnitDefaults != null) + msgs = ((InternalEObject)newPersistenceUnitDefaults).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS, null, msgs); + msgs = basicSetPersistenceUnitDefaults(newPersistenceUnitDefaults, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS, newPersistenceUnitDefaults, newPersistenceUnitDefaults)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE: + return basicSetXmlMappingMetadataComplete(null, msgs); + case OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS: + return basicSetPersistenceUnitDefaults(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE: + return getXmlMappingMetadataComplete(); + case OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS: + return getPersistenceUnitDefaults(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE: + setXmlMappingMetadataComplete((EmptyType)newValue); + return; + case OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS: + setPersistenceUnitDefaults((PersistenceUnitDefaults)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE: + setXmlMappingMetadataComplete((EmptyType)null); + return; + case OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS: + setPersistenceUnitDefaults((PersistenceUnitDefaults)null); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.PERSISTENCE_UNIT_METADATA__XML_MAPPING_METADATA_COMPLETE: + return xmlMappingMetadataComplete != null; + case OrmPackage.PERSISTENCE_UNIT_METADATA__PERSISTENCE_UNIT_DEFAULTS: + return persistenceUnitDefaults != null; + } + return super.eIsSet(featureID); + } + +} //PersistenceUnitMetadataImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostLoadImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostLoadImpl.java new file mode 100755 index 000000000..b6a515954 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostLoadImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostLoadImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PostLoad; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Post Load</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PostLoadImpl#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PostLoadImpl extends EObjectImpl implements PostLoad { + /** + * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected static final String METHOD_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected String methodName = METHOD_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PostLoadImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.POST_LOAD; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMethodName() { + return methodName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMethodName(String newMethodName) { + String oldMethodName = methodName; + methodName = newMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.POST_LOAD__METHOD_NAME, oldMethodName, methodName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.POST_LOAD__METHOD_NAME: + return getMethodName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.POST_LOAD__METHOD_NAME: + setMethodName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.POST_LOAD__METHOD_NAME: + setMethodName(METHOD_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.POST_LOAD__METHOD_NAME: + return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (methodName: "); + result.append(methodName); + result.append(')'); + return result.toString(); + } + +} //PostLoadImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostPersistImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostPersistImpl.java new file mode 100755 index 000000000..fba1c9697 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostPersistImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostPersistImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Post Persist</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PostPersistImpl#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PostPersistImpl extends EObjectImpl implements PostPersist { + /** + * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected static final String METHOD_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected String methodName = METHOD_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PostPersistImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.POST_PERSIST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMethodName() { + return methodName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMethodName(String newMethodName) { + String oldMethodName = methodName; + methodName = newMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.POST_PERSIST__METHOD_NAME, oldMethodName, methodName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.POST_PERSIST__METHOD_NAME: + return getMethodName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.POST_PERSIST__METHOD_NAME: + setMethodName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.POST_PERSIST__METHOD_NAME: + setMethodName(METHOD_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.POST_PERSIST__METHOD_NAME: + return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (methodName: "); + result.append(methodName); + result.append(')'); + return result.toString(); + } + +} //PostPersistImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostRemoveImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostRemoveImpl.java new file mode 100755 index 000000000..dfc8c749c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostRemoveImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostRemoveImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Post Remove</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PostRemoveImpl#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PostRemoveImpl extends EObjectImpl implements PostRemove { + /** + * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected static final String METHOD_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected String methodName = METHOD_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PostRemoveImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.POST_REMOVE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMethodName() { + return methodName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMethodName(String newMethodName) { + String oldMethodName = methodName; + methodName = newMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.POST_REMOVE__METHOD_NAME, oldMethodName, methodName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.POST_REMOVE__METHOD_NAME: + return getMethodName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.POST_REMOVE__METHOD_NAME: + setMethodName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.POST_REMOVE__METHOD_NAME: + setMethodName(METHOD_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.POST_REMOVE__METHOD_NAME: + return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (methodName: "); + result.append(methodName); + result.append(')'); + return result.toString(); + } + +} //PostRemoveImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostUpdateImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostUpdateImpl.java new file mode 100755 index 000000000..3d88a4d76 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PostUpdateImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostUpdateImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Post Update</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PostUpdateImpl#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PostUpdateImpl extends EObjectImpl implements PostUpdate { + /** + * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected static final String METHOD_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected String methodName = METHOD_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PostUpdateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.POST_UPDATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMethodName() { + return methodName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMethodName(String newMethodName) { + String oldMethodName = methodName; + methodName = newMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.POST_UPDATE__METHOD_NAME, oldMethodName, methodName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.POST_UPDATE__METHOD_NAME: + return getMethodName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.POST_UPDATE__METHOD_NAME: + setMethodName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.POST_UPDATE__METHOD_NAME: + setMethodName(METHOD_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.POST_UPDATE__METHOD_NAME: + return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (methodName: "); + result.append(methodName); + result.append(')'); + return result.toString(); + } + +} //PostUpdateImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PrePersistImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PrePersistImpl.java new file mode 100755 index 000000000..77c302953 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PrePersistImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PrePersistImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pre Persist</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PrePersistImpl#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PrePersistImpl extends EObjectImpl implements PrePersist { + /** + * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected static final String METHOD_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected String methodName = METHOD_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PrePersistImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.PRE_PERSIST; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMethodName() { + return methodName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMethodName(String newMethodName) { + String oldMethodName = methodName; + methodName = newMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PRE_PERSIST__METHOD_NAME, oldMethodName, methodName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.PRE_PERSIST__METHOD_NAME: + return getMethodName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.PRE_PERSIST__METHOD_NAME: + setMethodName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.PRE_PERSIST__METHOD_NAME: + setMethodName(METHOD_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.PRE_PERSIST__METHOD_NAME: + return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (methodName: "); + result.append(methodName); + result.append(')'); + return result.toString(); + } + +} //PrePersistImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PreRemoveImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PreRemoveImpl.java new file mode 100755 index 000000000..41f0942c7 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PreRemoveImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PreRemoveImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pre Remove</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PreRemoveImpl#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PreRemoveImpl extends EObjectImpl implements PreRemove { + /** + * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected static final String METHOD_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected String methodName = METHOD_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PreRemoveImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.PRE_REMOVE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMethodName() { + return methodName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMethodName(String newMethodName) { + String oldMethodName = methodName; + methodName = newMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PRE_REMOVE__METHOD_NAME, oldMethodName, methodName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.PRE_REMOVE__METHOD_NAME: + return getMethodName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.PRE_REMOVE__METHOD_NAME: + setMethodName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.PRE_REMOVE__METHOD_NAME: + setMethodName(METHOD_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.PRE_REMOVE__METHOD_NAME: + return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (methodName: "); + result.append(methodName); + result.append(')'); + return result.toString(); + } + +} //PreRemoveImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PreUpdateImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PreUpdateImpl.java new file mode 100755 index 000000000..f13b991d9 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PreUpdateImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PreUpdateImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Pre Update</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PreUpdateImpl#getMethodName <em>Method Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PreUpdateImpl extends EObjectImpl implements PreUpdate { + /** + * The default value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected static final String METHOD_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethodName() <em>Method Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getMethodName() + * @generated + * @ordered + */ + protected String methodName = METHOD_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PreUpdateImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.PRE_UPDATE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getMethodName() { + return methodName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setMethodName(String newMethodName) { + String oldMethodName = methodName; + methodName = newMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PRE_UPDATE__METHOD_NAME, oldMethodName, methodName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.PRE_UPDATE__METHOD_NAME: + return getMethodName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.PRE_UPDATE__METHOD_NAME: + setMethodName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.PRE_UPDATE__METHOD_NAME: + setMethodName(METHOD_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.PRE_UPDATE__METHOD_NAME: + return METHOD_NAME_EDEFAULT == null ? methodName != null : !METHOD_NAME_EDEFAULT.equals(methodName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (methodName: "); + result.append(methodName); + result.append(')'); + return result.toString(); + } + +} //PreUpdateImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PrimaryKeyJoinColumnImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PrimaryKeyJoinColumnImpl.java new file mode 100755 index 000000000..9a595deec --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/PrimaryKeyJoinColumnImpl.java @@ -0,0 +1,275 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PrimaryKeyJoinColumnImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Primary Key Join Column</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PrimaryKeyJoinColumnImpl#getColumnDefinition <em>Column Definition</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PrimaryKeyJoinColumnImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.PrimaryKeyJoinColumnImpl#getReferencedColumnName <em>Referenced Column Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class PrimaryKeyJoinColumnImpl extends EObjectImpl implements PrimaryKeyJoinColumn { + /** + * The default value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected static final String COLUMN_DEFINITION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getColumnDefinition() <em>Column Definition</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnDefinition() + * @generated + * @ordered + */ + protected String columnDefinition = COLUMN_DEFINITION_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getReferencedColumnName() <em>Referenced Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getReferencedColumnName() + * @generated + * @ordered + */ + protected static final String REFERENCED_COLUMN_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getReferencedColumnName() <em>Referenced Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getReferencedColumnName() + * @generated + * @ordered + */ + protected String referencedColumnName = REFERENCED_COLUMN_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected PrimaryKeyJoinColumnImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.PRIMARY_KEY_JOIN_COLUMN; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getColumnDefinition() { + return columnDefinition; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumnDefinition(String newColumnDefinition) { + String oldColumnDefinition = columnDefinition; + columnDefinition = newColumnDefinition; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION, oldColumnDefinition, columnDefinition)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PRIMARY_KEY_JOIN_COLUMN__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getReferencedColumnName() { + return referencedColumnName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setReferencedColumnName(String newReferencedColumnName) { + String oldReferencedColumnName = referencedColumnName; + referencedColumnName = newReferencedColumnName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME, oldReferencedColumnName, referencedColumnName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION: + return getColumnDefinition(); + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__NAME: + return getName(); + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME: + return getReferencedColumnName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION: + setColumnDefinition((String)newValue); + return; + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__NAME: + setName((String)newValue); + return; + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME: + setReferencedColumnName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION: + setColumnDefinition(COLUMN_DEFINITION_EDEFAULT); + return; + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME: + setReferencedColumnName(REFERENCED_COLUMN_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__COLUMN_DEFINITION: + return COLUMN_DEFINITION_EDEFAULT == null ? columnDefinition != null : !COLUMN_DEFINITION_EDEFAULT.equals(columnDefinition); + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN__REFERENCED_COLUMN_NAME: + return REFERENCED_COLUMN_NAME_EDEFAULT == null ? referencedColumnName != null : !REFERENCED_COLUMN_NAME_EDEFAULT.equals(referencedColumnName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (columnDefinition: "); + result.append(columnDefinition); + result.append(", name: "); + result.append(name); + result.append(", referencedColumnName: "); + result.append(referencedColumnName); + result.append(')'); + return result.toString(); + } + +} //PrimaryKeyJoinColumnImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/QueryHintImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/QueryHintImpl.java new file mode 100755 index 000000000..0772b3de6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/QueryHintImpl.java @@ -0,0 +1,221 @@ +/** + * <copyright> + * </copyright> + * + * $Id: QueryHintImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.QueryHint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Query Hint</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.QueryHintImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.QueryHintImpl#getValue <em>Value</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class QueryHintImpl extends EObjectImpl implements QueryHint { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected QueryHintImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.QUERY_HINT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.QUERY_HINT__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getValue() { + return value; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValue(String newValue) { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.QUERY_HINT__VALUE, oldValue, value)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.QUERY_HINT__NAME: + return getName(); + case OrmPackage.QUERY_HINT__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.QUERY_HINT__NAME: + setName((String)newValue); + return; + case OrmPackage.QUERY_HINT__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.QUERY_HINT__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.QUERY_HINT__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.QUERY_HINT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.QUERY_HINT__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} //QueryHintImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SecondaryTableImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SecondaryTableImpl.java new file mode 100755 index 000000000..e8f23d79f --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SecondaryTableImpl.java @@ -0,0 +1,371 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SecondaryTableImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; +import org.eclipse.emf.teneo.jpa.orm.SecondaryTable; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Secondary Table</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl#getPrimaryKeyJoinColumn <em>Primary Key Join Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SecondaryTableImpl#getSchema <em>Schema</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SecondaryTableImpl extends EObjectImpl implements SecondaryTable { + /** + * The cached value of the '{@link #getPrimaryKeyJoinColumn() <em>Primary Key Join Column</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPrimaryKeyJoinColumn() + * @generated + * @ordered + */ + protected EList<PrimaryKeyJoinColumn> primaryKeyJoinColumn; + + /** + * The cached value of the '{@link #getUniqueConstraint() <em>Unique Constraint</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUniqueConstraint() + * @generated + * @ordered + */ + protected EList<UniqueConstraint> uniqueConstraint; + + /** + * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected static final String CATALOG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected String catalog = CATALOG_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected static final String SCHEMA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected String schema = SCHEMA_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SecondaryTableImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.SECONDARY_TABLE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<PrimaryKeyJoinColumn> getPrimaryKeyJoinColumn() { + if (primaryKeyJoinColumn == null) { + primaryKeyJoinColumn = new EObjectContainmentEList<PrimaryKeyJoinColumn>(PrimaryKeyJoinColumn.class, this, OrmPackage.SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN); + } + return primaryKeyJoinColumn; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<UniqueConstraint> getUniqueConstraint() { + if (uniqueConstraint == null) { + uniqueConstraint = new EObjectContainmentEList<UniqueConstraint>(UniqueConstraint.class, this, OrmPackage.SECONDARY_TABLE__UNIQUE_CONSTRAINT); + } + return uniqueConstraint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCatalog() { + return catalog; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCatalog(String newCatalog) { + String oldCatalog = catalog; + catalog = newCatalog; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SECONDARY_TABLE__CATALOG, oldCatalog, catalog)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SECONDARY_TABLE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSchema() { + return schema; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSchema(String newSchema) { + String oldSchema = schema; + schema = newSchema; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SECONDARY_TABLE__SCHEMA, oldSchema, schema)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN: + return ((InternalEList<?>)getPrimaryKeyJoinColumn()).basicRemove(otherEnd, msgs); + case OrmPackage.SECONDARY_TABLE__UNIQUE_CONSTRAINT: + return ((InternalEList<?>)getUniqueConstraint()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN: + return getPrimaryKeyJoinColumn(); + case OrmPackage.SECONDARY_TABLE__UNIQUE_CONSTRAINT: + return getUniqueConstraint(); + case OrmPackage.SECONDARY_TABLE__CATALOG: + return getCatalog(); + case OrmPackage.SECONDARY_TABLE__NAME: + return getName(); + case OrmPackage.SECONDARY_TABLE__SCHEMA: + return getSchema(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN: + getPrimaryKeyJoinColumn().clear(); + getPrimaryKeyJoinColumn().addAll((Collection<? extends PrimaryKeyJoinColumn>)newValue); + return; + case OrmPackage.SECONDARY_TABLE__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + getUniqueConstraint().addAll((Collection<? extends UniqueConstraint>)newValue); + return; + case OrmPackage.SECONDARY_TABLE__CATALOG: + setCatalog((String)newValue); + return; + case OrmPackage.SECONDARY_TABLE__NAME: + setName((String)newValue); + return; + case OrmPackage.SECONDARY_TABLE__SCHEMA: + setSchema((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN: + getPrimaryKeyJoinColumn().clear(); + return; + case OrmPackage.SECONDARY_TABLE__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + return; + case OrmPackage.SECONDARY_TABLE__CATALOG: + setCatalog(CATALOG_EDEFAULT); + return; + case OrmPackage.SECONDARY_TABLE__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.SECONDARY_TABLE__SCHEMA: + setSchema(SCHEMA_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.SECONDARY_TABLE__PRIMARY_KEY_JOIN_COLUMN: + return primaryKeyJoinColumn != null && !primaryKeyJoinColumn.isEmpty(); + case OrmPackage.SECONDARY_TABLE__UNIQUE_CONSTRAINT: + return uniqueConstraint != null && !uniqueConstraint.isEmpty(); + case OrmPackage.SECONDARY_TABLE__CATALOG: + return CATALOG_EDEFAULT == null ? catalog != null : !CATALOG_EDEFAULT.equals(catalog); + case OrmPackage.SECONDARY_TABLE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.SECONDARY_TABLE__SCHEMA: + return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (catalog: "); + result.append(catalog); + result.append(", name: "); + result.append(name); + result.append(", schema: "); + result.append(schema); + result.append(')'); + return result.toString(); + } + +} //SecondaryTableImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SequenceGeneratorImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SequenceGeneratorImpl.java new file mode 100755 index 000000000..4dbe6c752 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SequenceGeneratorImpl.java @@ -0,0 +1,397 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SequenceGeneratorImpl.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Sequence Generator</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl#getAllocationSize <em>Allocation Size</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl#getInitialValue <em>Initial Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SequenceGeneratorImpl#getSequenceName <em>Sequence Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SequenceGeneratorImpl extends EObjectImpl implements SequenceGenerator { + /** + * The default value of the '{@link #getAllocationSize() <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllocationSize() + * @generated + * @ordered + */ + protected static final int ALLOCATION_SIZE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getAllocationSize() <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllocationSize() + * @generated + * @ordered + */ + protected int allocationSize = ALLOCATION_SIZE_EDEFAULT; + + /** + * This is true if the Allocation Size attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean allocationSizeESet; + + /** + * The default value of the '{@link #getInitialValue() <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInitialValue() + * @generated + * @ordered + */ + protected static final int INITIAL_VALUE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getInitialValue() <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInitialValue() + * @generated + * @ordered + */ + protected int initialValue = INITIAL_VALUE_EDEFAULT; + + /** + * This is true if the Initial Value attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean initialValueESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSequenceName() <em>Sequence Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSequenceName() + * @generated + * @ordered + */ + protected static final String SEQUENCE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSequenceName() <em>Sequence Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSequenceName() + * @generated + * @ordered + */ + protected String sequenceName = SEQUENCE_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SequenceGeneratorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.SEQUENCE_GENERATOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getAllocationSize() { + return allocationSize; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAllocationSize(int newAllocationSize) { + int oldAllocationSize = allocationSize; + allocationSize = newAllocationSize; + boolean oldAllocationSizeESet = allocationSizeESet; + allocationSizeESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SEQUENCE_GENERATOR__ALLOCATION_SIZE, oldAllocationSize, allocationSize, !oldAllocationSizeESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetAllocationSize() { + int oldAllocationSize = allocationSize; + boolean oldAllocationSizeESet = allocationSizeESet; + allocationSize = ALLOCATION_SIZE_EDEFAULT; + allocationSizeESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.SEQUENCE_GENERATOR__ALLOCATION_SIZE, oldAllocationSize, ALLOCATION_SIZE_EDEFAULT, oldAllocationSizeESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetAllocationSize() { + return allocationSizeESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getInitialValue() { + return initialValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInitialValue(int newInitialValue) { + int oldInitialValue = initialValue; + initialValue = newInitialValue; + boolean oldInitialValueESet = initialValueESet; + initialValueESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SEQUENCE_GENERATOR__INITIAL_VALUE, oldInitialValue, initialValue, !oldInitialValueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetInitialValue() { + int oldInitialValue = initialValue; + boolean oldInitialValueESet = initialValueESet; + initialValue = INITIAL_VALUE_EDEFAULT; + initialValueESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.SEQUENCE_GENERATOR__INITIAL_VALUE, oldInitialValue, INITIAL_VALUE_EDEFAULT, oldInitialValueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetInitialValue() { + return initialValueESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SEQUENCE_GENERATOR__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSequenceName() { + return sequenceName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSequenceName(String newSequenceName) { + String oldSequenceName = sequenceName; + sequenceName = newSequenceName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SEQUENCE_GENERATOR__SEQUENCE_NAME, oldSequenceName, sequenceName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.SEQUENCE_GENERATOR__ALLOCATION_SIZE: + return getAllocationSize(); + case OrmPackage.SEQUENCE_GENERATOR__INITIAL_VALUE: + return getInitialValue(); + case OrmPackage.SEQUENCE_GENERATOR__NAME: + return getName(); + case OrmPackage.SEQUENCE_GENERATOR__SEQUENCE_NAME: + return getSequenceName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.SEQUENCE_GENERATOR__ALLOCATION_SIZE: + setAllocationSize((Integer)newValue); + return; + case OrmPackage.SEQUENCE_GENERATOR__INITIAL_VALUE: + setInitialValue((Integer)newValue); + return; + case OrmPackage.SEQUENCE_GENERATOR__NAME: + setName((String)newValue); + return; + case OrmPackage.SEQUENCE_GENERATOR__SEQUENCE_NAME: + setSequenceName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.SEQUENCE_GENERATOR__ALLOCATION_SIZE: + unsetAllocationSize(); + return; + case OrmPackage.SEQUENCE_GENERATOR__INITIAL_VALUE: + unsetInitialValue(); + return; + case OrmPackage.SEQUENCE_GENERATOR__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.SEQUENCE_GENERATOR__SEQUENCE_NAME: + setSequenceName(SEQUENCE_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.SEQUENCE_GENERATOR__ALLOCATION_SIZE: + return isSetAllocationSize(); + case OrmPackage.SEQUENCE_GENERATOR__INITIAL_VALUE: + return isSetInitialValue(); + case OrmPackage.SEQUENCE_GENERATOR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.SEQUENCE_GENERATOR__SEQUENCE_NAME: + return SEQUENCE_NAME_EDEFAULT == null ? sequenceName != null : !SEQUENCE_NAME_EDEFAULT.equals(sequenceName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (allocationSize: "); + if (allocationSizeESet) result.append(allocationSize); else result.append("<unset>"); + result.append(", initialValue: "); + if (initialValueESet) result.append(initialValue); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(", sequenceName: "); + result.append(sequenceName); + result.append(')'); + return result.toString(); + } + +} //SequenceGeneratorImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SqlResultSetMappingImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SqlResultSetMappingImpl.java new file mode 100755 index 000000000..5d15c49f1 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/SqlResultSetMappingImpl.java @@ -0,0 +1,263 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SqlResultSetMappingImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.ColumnResult; +import org.eclipse.emf.teneo.jpa.orm.EntityResult; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Sql Result Set Mapping</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SqlResultSetMappingImpl#getEntityResult <em>Entity Result</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SqlResultSetMappingImpl#getColumnResult <em>Column Result</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.SqlResultSetMappingImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class SqlResultSetMappingImpl extends EObjectImpl implements SqlResultSetMapping { + /** + * The cached value of the '{@link #getEntityResult() <em>Entity Result</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getEntityResult() + * @generated + * @ordered + */ + protected EList<EntityResult> entityResult; + + /** + * The cached value of the '{@link #getColumnResult() <em>Column Result</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnResult() + * @generated + * @ordered + */ + protected EList<ColumnResult> columnResult; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected SqlResultSetMappingImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.SQL_RESULT_SET_MAPPING; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<EntityResult> getEntityResult() { + if (entityResult == null) { + entityResult = new EObjectContainmentEList<EntityResult>(EntityResult.class, this, OrmPackage.SQL_RESULT_SET_MAPPING__ENTITY_RESULT); + } + return entityResult; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<ColumnResult> getColumnResult() { + if (columnResult == null) { + columnResult = new EObjectContainmentEList<ColumnResult>(ColumnResult.class, this, OrmPackage.SQL_RESULT_SET_MAPPING__COLUMN_RESULT); + } + return columnResult; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.SQL_RESULT_SET_MAPPING__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.SQL_RESULT_SET_MAPPING__ENTITY_RESULT: + return ((InternalEList<?>)getEntityResult()).basicRemove(otherEnd, msgs); + case OrmPackage.SQL_RESULT_SET_MAPPING__COLUMN_RESULT: + return ((InternalEList<?>)getColumnResult()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.SQL_RESULT_SET_MAPPING__ENTITY_RESULT: + return getEntityResult(); + case OrmPackage.SQL_RESULT_SET_MAPPING__COLUMN_RESULT: + return getColumnResult(); + case OrmPackage.SQL_RESULT_SET_MAPPING__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.SQL_RESULT_SET_MAPPING__ENTITY_RESULT: + getEntityResult().clear(); + getEntityResult().addAll((Collection<? extends EntityResult>)newValue); + return; + case OrmPackage.SQL_RESULT_SET_MAPPING__COLUMN_RESULT: + getColumnResult().clear(); + getColumnResult().addAll((Collection<? extends ColumnResult>)newValue); + return; + case OrmPackage.SQL_RESULT_SET_MAPPING__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.SQL_RESULT_SET_MAPPING__ENTITY_RESULT: + getEntityResult().clear(); + return; + case OrmPackage.SQL_RESULT_SET_MAPPING__COLUMN_RESULT: + getColumnResult().clear(); + return; + case OrmPackage.SQL_RESULT_SET_MAPPING__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.SQL_RESULT_SET_MAPPING__ENTITY_RESULT: + return entityResult != null && !entityResult.isEmpty(); + case OrmPackage.SQL_RESULT_SET_MAPPING__COLUMN_RESULT: + return columnResult != null && !columnResult.isEmpty(); + case OrmPackage.SQL_RESULT_SET_MAPPING__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //SqlResultSetMappingImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TableGeneratorImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TableGeneratorImpl.java new file mode 100755 index 000000000..27df4cdfb --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TableGeneratorImpl.java @@ -0,0 +1,726 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TableGeneratorImpl.java,v 1.2 2009/07/23 11:16:30 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Table Generator</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getAllocationSize <em>Allocation Size</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getInitialValue <em>Initial Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getPkColumnName <em>Pk Column Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getPkColumnValue <em>Pk Column Value</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getSchema <em>Schema</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getTable <em>Table</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableGeneratorImpl#getValueColumnName <em>Value Column Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TableGeneratorImpl extends EObjectImpl implements TableGenerator { + /** + * The cached value of the '{@link #getUniqueConstraint() <em>Unique Constraint</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUniqueConstraint() + * @generated + * @ordered + */ + protected EList<UniqueConstraint> uniqueConstraint; + + /** + * The default value of the '{@link #getAllocationSize() <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllocationSize() + * @generated + * @ordered + */ + protected static final int ALLOCATION_SIZE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getAllocationSize() <em>Allocation Size</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getAllocationSize() + * @generated + * @ordered + */ + protected int allocationSize = ALLOCATION_SIZE_EDEFAULT; + + /** + * This is true if the Allocation Size attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean allocationSizeESet; + + /** + * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected static final String CATALOG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected String catalog = CATALOG_EDEFAULT; + + /** + * The default value of the '{@link #getInitialValue() <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInitialValue() + * @generated + * @ordered + */ + protected static final int INITIAL_VALUE_EDEFAULT = 0; + + /** + * The cached value of the '{@link #getInitialValue() <em>Initial Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getInitialValue() + * @generated + * @ordered + */ + protected int initialValue = INITIAL_VALUE_EDEFAULT; + + /** + * This is true if the Initial Value attribute has been set. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + protected boolean initialValueESet; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPkColumnName() <em>Pk Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPkColumnName() + * @generated + * @ordered + */ + protected static final String PK_COLUMN_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPkColumnName() <em>Pk Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPkColumnName() + * @generated + * @ordered + */ + protected String pkColumnName = PK_COLUMN_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getPkColumnValue() <em>Pk Column Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPkColumnValue() + * @generated + * @ordered + */ + protected static final String PK_COLUMN_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPkColumnValue() <em>Pk Column Value</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getPkColumnValue() + * @generated + * @ordered + */ + protected String pkColumnValue = PK_COLUMN_VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected static final String SCHEMA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected String schema = SCHEMA_EDEFAULT; + + /** + * The default value of the '{@link #getTable() <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTable() + * @generated + * @ordered + */ + protected static final String TABLE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTable() <em>Table</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTable() + * @generated + * @ordered + */ + protected String table = TABLE_EDEFAULT; + + /** + * The default value of the '{@link #getValueColumnName() <em>Value Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValueColumnName() + * @generated + * @ordered + */ + protected static final String VALUE_COLUMN_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValueColumnName() <em>Value Column Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getValueColumnName() + * @generated + * @ordered + */ + protected String valueColumnName = VALUE_COLUMN_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableGeneratorImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.TABLE_GENERATOR; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<UniqueConstraint> getUniqueConstraint() { + if (uniqueConstraint == null) { + uniqueConstraint = new EObjectContainmentEList<UniqueConstraint>(UniqueConstraint.class, this, OrmPackage.TABLE_GENERATOR__UNIQUE_CONSTRAINT); + } + return uniqueConstraint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getAllocationSize() { + return allocationSize; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setAllocationSize(int newAllocationSize) { + int oldAllocationSize = allocationSize; + allocationSize = newAllocationSize; + boolean oldAllocationSizeESet = allocationSizeESet; + allocationSizeESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__ALLOCATION_SIZE, oldAllocationSize, allocationSize, !oldAllocationSizeESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetAllocationSize() { + int oldAllocationSize = allocationSize; + boolean oldAllocationSizeESet = allocationSizeESet; + allocationSize = ALLOCATION_SIZE_EDEFAULT; + allocationSizeESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.TABLE_GENERATOR__ALLOCATION_SIZE, oldAllocationSize, ALLOCATION_SIZE_EDEFAULT, oldAllocationSizeESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetAllocationSize() { + return allocationSizeESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCatalog() { + return catalog; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCatalog(String newCatalog) { + String oldCatalog = catalog; + catalog = newCatalog; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__CATALOG, oldCatalog, catalog)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public int getInitialValue() { + return initialValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setInitialValue(int newInitialValue) { + int oldInitialValue = initialValue; + initialValue = newInitialValue; + boolean oldInitialValueESet = initialValueESet; + initialValueESet = true; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__INITIAL_VALUE, oldInitialValue, initialValue, !oldInitialValueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void unsetInitialValue() { + int oldInitialValue = initialValue; + boolean oldInitialValueESet = initialValueESet; + initialValue = INITIAL_VALUE_EDEFAULT; + initialValueESet = false; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.UNSET, OrmPackage.TABLE_GENERATOR__INITIAL_VALUE, oldInitialValue, INITIAL_VALUE_EDEFAULT, oldInitialValueESet)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean isSetInitialValue() { + return initialValueESet; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPkColumnName() { + return pkColumnName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPkColumnName(String newPkColumnName) { + String oldPkColumnName = pkColumnName; + pkColumnName = newPkColumnName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__PK_COLUMN_NAME, oldPkColumnName, pkColumnName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getPkColumnValue() { + return pkColumnValue; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setPkColumnValue(String newPkColumnValue) { + String oldPkColumnValue = pkColumnValue; + pkColumnValue = newPkColumnValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__PK_COLUMN_VALUE, oldPkColumnValue, pkColumnValue)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSchema() { + return schema; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSchema(String newSchema) { + String oldSchema = schema; + schema = newSchema; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__SCHEMA, oldSchema, schema)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getTable() { + return table; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTable(String newTable) { + String oldTable = table; + table = newTable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__TABLE, oldTable, table)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getValueColumnName() { + return valueColumnName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setValueColumnName(String newValueColumnName) { + String oldValueColumnName = valueColumnName; + valueColumnName = newValueColumnName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE_GENERATOR__VALUE_COLUMN_NAME, oldValueColumnName, valueColumnName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.TABLE_GENERATOR__UNIQUE_CONSTRAINT: + return ((InternalEList<?>)getUniqueConstraint()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.TABLE_GENERATOR__UNIQUE_CONSTRAINT: + return getUniqueConstraint(); + case OrmPackage.TABLE_GENERATOR__ALLOCATION_SIZE: + return getAllocationSize(); + case OrmPackage.TABLE_GENERATOR__CATALOG: + return getCatalog(); + case OrmPackage.TABLE_GENERATOR__INITIAL_VALUE: + return getInitialValue(); + case OrmPackage.TABLE_GENERATOR__NAME: + return getName(); + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_NAME: + return getPkColumnName(); + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_VALUE: + return getPkColumnValue(); + case OrmPackage.TABLE_GENERATOR__SCHEMA: + return getSchema(); + case OrmPackage.TABLE_GENERATOR__TABLE: + return getTable(); + case OrmPackage.TABLE_GENERATOR__VALUE_COLUMN_NAME: + return getValueColumnName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.TABLE_GENERATOR__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + getUniqueConstraint().addAll((Collection<? extends UniqueConstraint>)newValue); + return; + case OrmPackage.TABLE_GENERATOR__ALLOCATION_SIZE: + setAllocationSize((Integer)newValue); + return; + case OrmPackage.TABLE_GENERATOR__CATALOG: + setCatalog((String)newValue); + return; + case OrmPackage.TABLE_GENERATOR__INITIAL_VALUE: + setInitialValue((Integer)newValue); + return; + case OrmPackage.TABLE_GENERATOR__NAME: + setName((String)newValue); + return; + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_NAME: + setPkColumnName((String)newValue); + return; + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_VALUE: + setPkColumnValue((String)newValue); + return; + case OrmPackage.TABLE_GENERATOR__SCHEMA: + setSchema((String)newValue); + return; + case OrmPackage.TABLE_GENERATOR__TABLE: + setTable((String)newValue); + return; + case OrmPackage.TABLE_GENERATOR__VALUE_COLUMN_NAME: + setValueColumnName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.TABLE_GENERATOR__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + return; + case OrmPackage.TABLE_GENERATOR__ALLOCATION_SIZE: + unsetAllocationSize(); + return; + case OrmPackage.TABLE_GENERATOR__CATALOG: + setCatalog(CATALOG_EDEFAULT); + return; + case OrmPackage.TABLE_GENERATOR__INITIAL_VALUE: + unsetInitialValue(); + return; + case OrmPackage.TABLE_GENERATOR__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_NAME: + setPkColumnName(PK_COLUMN_NAME_EDEFAULT); + return; + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_VALUE: + setPkColumnValue(PK_COLUMN_VALUE_EDEFAULT); + return; + case OrmPackage.TABLE_GENERATOR__SCHEMA: + setSchema(SCHEMA_EDEFAULT); + return; + case OrmPackage.TABLE_GENERATOR__TABLE: + setTable(TABLE_EDEFAULT); + return; + case OrmPackage.TABLE_GENERATOR__VALUE_COLUMN_NAME: + setValueColumnName(VALUE_COLUMN_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.TABLE_GENERATOR__UNIQUE_CONSTRAINT: + return uniqueConstraint != null && !uniqueConstraint.isEmpty(); + case OrmPackage.TABLE_GENERATOR__ALLOCATION_SIZE: + return isSetAllocationSize(); + case OrmPackage.TABLE_GENERATOR__CATALOG: + return CATALOG_EDEFAULT == null ? catalog != null : !CATALOG_EDEFAULT.equals(catalog); + case OrmPackage.TABLE_GENERATOR__INITIAL_VALUE: + return isSetInitialValue(); + case OrmPackage.TABLE_GENERATOR__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_NAME: + return PK_COLUMN_NAME_EDEFAULT == null ? pkColumnName != null : !PK_COLUMN_NAME_EDEFAULT.equals(pkColumnName); + case OrmPackage.TABLE_GENERATOR__PK_COLUMN_VALUE: + return PK_COLUMN_VALUE_EDEFAULT == null ? pkColumnValue != null : !PK_COLUMN_VALUE_EDEFAULT.equals(pkColumnValue); + case OrmPackage.TABLE_GENERATOR__SCHEMA: + return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema); + case OrmPackage.TABLE_GENERATOR__TABLE: + return TABLE_EDEFAULT == null ? table != null : !TABLE_EDEFAULT.equals(table); + case OrmPackage.TABLE_GENERATOR__VALUE_COLUMN_NAME: + return VALUE_COLUMN_NAME_EDEFAULT == null ? valueColumnName != null : !VALUE_COLUMN_NAME_EDEFAULT.equals(valueColumnName); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (allocationSize: "); + if (allocationSizeESet) result.append(allocationSize); else result.append("<unset>"); + result.append(", catalog: "); + result.append(catalog); + result.append(", initialValue: "); + if (initialValueESet) result.append(initialValue); else result.append("<unset>"); + result.append(", name: "); + result.append(name); + result.append(", pkColumnName: "); + result.append(pkColumnName); + result.append(", pkColumnValue: "); + result.append(pkColumnValue); + result.append(", schema: "); + result.append(schema); + result.append(", table: "); + result.append(table); + result.append(", valueColumnName: "); + result.append(valueColumnName); + result.append(')'); + return result.toString(); + } + +} //TableGeneratorImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TableImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TableImpl.java new file mode 100755 index 000000000..bc555f866 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TableImpl.java @@ -0,0 +1,334 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TableImpl.java,v 1.1 2009/03/15 23:45:01 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.Table; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Table</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableImpl#getUniqueConstraint <em>Unique Constraint</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableImpl#getCatalog <em>Catalog</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TableImpl#getSchema <em>Schema</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TableImpl extends EObjectImpl implements Table { + /** + * The cached value of the '{@link #getUniqueConstraint() <em>Unique Constraint</em>}' containment reference list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getUniqueConstraint() + * @generated + * @ordered + */ + protected EList<UniqueConstraint> uniqueConstraint; + + /** + * The default value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected static final String CATALOG_EDEFAULT = null; + + /** + * The cached value of the '{@link #getCatalog() <em>Catalog</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCatalog() + * @generated + * @ordered + */ + protected String catalog = CATALOG_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected static final String SCHEMA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSchema() <em>Schema</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getSchema() + * @generated + * @ordered + */ + protected String schema = SCHEMA_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TableImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.TABLE; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<UniqueConstraint> getUniqueConstraint() { + if (uniqueConstraint == null) { + uniqueConstraint = new EObjectContainmentEList<UniqueConstraint>(UniqueConstraint.class, this, OrmPackage.TABLE__UNIQUE_CONSTRAINT); + } + return uniqueConstraint; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getCatalog() { + return catalog; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCatalog(String newCatalog) { + String oldCatalog = catalog; + catalog = newCatalog; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE__CATALOG, oldCatalog, catalog)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getSchema() { + return schema; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setSchema(String newSchema) { + String oldSchema = schema; + schema = newSchema; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TABLE__SCHEMA, oldSchema, schema)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.TABLE__UNIQUE_CONSTRAINT: + return ((InternalEList<?>)getUniqueConstraint()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.TABLE__UNIQUE_CONSTRAINT: + return getUniqueConstraint(); + case OrmPackage.TABLE__CATALOG: + return getCatalog(); + case OrmPackage.TABLE__NAME: + return getName(); + case OrmPackage.TABLE__SCHEMA: + return getSchema(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.TABLE__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + getUniqueConstraint().addAll((Collection<? extends UniqueConstraint>)newValue); + return; + case OrmPackage.TABLE__CATALOG: + setCatalog((String)newValue); + return; + case OrmPackage.TABLE__NAME: + setName((String)newValue); + return; + case OrmPackage.TABLE__SCHEMA: + setSchema((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.TABLE__UNIQUE_CONSTRAINT: + getUniqueConstraint().clear(); + return; + case OrmPackage.TABLE__CATALOG: + setCatalog(CATALOG_EDEFAULT); + return; + case OrmPackage.TABLE__NAME: + setName(NAME_EDEFAULT); + return; + case OrmPackage.TABLE__SCHEMA: + setSchema(SCHEMA_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.TABLE__UNIQUE_CONSTRAINT: + return uniqueConstraint != null && !uniqueConstraint.isEmpty(); + case OrmPackage.TABLE__CATALOG: + return CATALOG_EDEFAULT == null ? catalog != null : !CATALOG_EDEFAULT.equals(catalog); + case OrmPackage.TABLE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OrmPackage.TABLE__SCHEMA: + return SCHEMA_EDEFAULT == null ? schema != null : !SCHEMA_EDEFAULT.equals(schema); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (catalog: "); + result.append(catalog); + result.append(", name: "); + result.append(name); + result.append(", schema: "); + result.append(schema); + result.append(')'); + return result.toString(); + } + +} //TableImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TransientImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TransientImpl.java new file mode 100755 index 000000000..1909bd9ad --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/TransientImpl.java @@ -0,0 +1,167 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TransientImpl.java,v 1.1 2009/03/15 23:45:03 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.Transient; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Transient</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.TransientImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class TransientImpl extends EObjectImpl implements Transient { + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected TransientImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.TRANSIENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.TRANSIENT__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.TRANSIENT__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.TRANSIENT__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.TRANSIENT__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.TRANSIENT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //TransientImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/UniqueConstraintImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/UniqueConstraintImpl.java new file mode 100755 index 000000000..e50c79fa7 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/UniqueConstraintImpl.java @@ -0,0 +1,153 @@ +/** + * <copyright> + * </copyright> + * + * $Id: UniqueConstraintImpl.java,v 1.1 2009/03/15 23:45:02 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import java.util.Collection; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.ecore.util.EDataTypeEList; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Unique Constraint</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.UniqueConstraintImpl#getColumnName <em>Column Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class UniqueConstraintImpl extends EObjectImpl implements UniqueConstraint { + /** + * The cached value of the '{@link #getColumnName() <em>Column Name</em>}' attribute list. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumnName() + * @generated + * @ordered + */ + protected EList<String> columnName; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected UniqueConstraintImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.UNIQUE_CONSTRAINT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EList<String> getColumnName() { + if (columnName == null) { + columnName = new EDataTypeEList<String>(String.class, this, OrmPackage.UNIQUE_CONSTRAINT__COLUMN_NAME); + } + return columnName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.UNIQUE_CONSTRAINT__COLUMN_NAME: + return getColumnName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.UNIQUE_CONSTRAINT__COLUMN_NAME: + getColumnName().clear(); + getColumnName().addAll((Collection<? extends String>)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.UNIQUE_CONSTRAINT__COLUMN_NAME: + getColumnName().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.UNIQUE_CONSTRAINT__COLUMN_NAME: + return columnName != null && !columnName.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (columnName: "); + result.append(columnName); + result.append(')'); + return result.toString(); + } + +} //UniqueConstraintImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/VersionImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/VersionImpl.java new file mode 100755 index 000000000..b14bba628 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/impl/VersionImpl.java @@ -0,0 +1,303 @@ +/** + * <copyright> + * </copyright> + * + * $Id: VersionImpl.java,v 1.1 2009/03/15 23:45:03 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.impl; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.common.notify.NotificationChain; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.InternalEObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; +import org.eclipse.emf.teneo.jpa.orm.TemporalType; +import org.eclipse.emf.teneo.jpa.orm.Version; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Version</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * <ul> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.VersionImpl#getColumn <em>Column</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.VersionImpl#getTemporal <em>Temporal</em>}</li> + * <li>{@link org.eclipse.emf.teneo.jpa.orm.impl.VersionImpl#getName <em>Name</em>}</li> + * </ul> + * </p> + * + * @generated + */ +public class VersionImpl extends EObjectImpl implements Version { + /** + * The cached value of the '{@link #getColumn() <em>Column</em>}' containment reference. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getColumn() + * @generated + * @ordered + */ + protected Column column; + + /** + * The default value of the '{@link #getTemporal() <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemporal() + * @generated + * @ordered + */ + protected static final TemporalType TEMPORAL_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTemporal() <em>Temporal</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getTemporal() + * @generated + * @ordered + */ + protected TemporalType temporal = TEMPORAL_EDEFAULT; + + /** + * The default value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() <em>Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected VersionImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return OrmPackage.Literals.VERSION; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public Column getColumn() { + return column; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public NotificationChain basicSetColumn(Column newColumn, NotificationChain msgs) { + Column oldColumn = column; + column = newColumn; + if (eNotificationRequired()) { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmPackage.VERSION__COLUMN, oldColumn, newColumn); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setColumn(Column newColumn) { + if (newColumn != column) { + NotificationChain msgs = null; + if (column != null) + msgs = ((InternalEObject)column).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmPackage.VERSION__COLUMN, null, msgs); + if (newColumn != null) + msgs = ((InternalEObject)newColumn).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmPackage.VERSION__COLUMN, null, msgs); + msgs = basicSetColumn(newColumn, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.VERSION__COLUMN, newColumn, newColumn)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public TemporalType getTemporal() { + return temporal; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setTemporal(TemporalType newTemporal) { + TemporalType oldTemporal = temporal; + temporal = newTemporal; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.VERSION__TEMPORAL, oldTemporal, temporal)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getName() { + return name; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setName(String newName) { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OrmPackage.VERSION__NAME, oldName, name)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case OrmPackage.VERSION__COLUMN: + return basicSetColumn(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case OrmPackage.VERSION__COLUMN: + return getColumn(); + case OrmPackage.VERSION__TEMPORAL: + return getTemporal(); + case OrmPackage.VERSION__NAME: + return getName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case OrmPackage.VERSION__COLUMN: + setColumn((Column)newValue); + return; + case OrmPackage.VERSION__TEMPORAL: + setTemporal((TemporalType)newValue); + return; + case OrmPackage.VERSION__NAME: + setName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case OrmPackage.VERSION__COLUMN: + setColumn((Column)null); + return; + case OrmPackage.VERSION__TEMPORAL: + setTemporal(TEMPORAL_EDEFAULT); + return; + case OrmPackage.VERSION__NAME: + setName(NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case OrmPackage.VERSION__COLUMN: + return column != null; + case OrmPackage.VERSION__TEMPORAL: + return TEMPORAL_EDEFAULT == null ? temporal != null : !TEMPORAL_EDEFAULT.equals(temporal); + case OrmPackage.VERSION__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + } + return super.eIsSet(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (temporal: "); + result.append(temporal); + result.append(", name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} //VersionImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmAdapterFactory.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmAdapterFactory.java new file mode 100755 index 000000000..5ea00e346 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmAdapterFactory.java @@ -0,0 +1,1078 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmAdapterFactory.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.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.emf.teneo.jpa.orm.*; + +/** + * <!-- 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.emf.teneo.jpa.orm.OrmPackage + * @generated + */ +public class OrmAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static OrmPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmAdapterFactory() { + if (modelPackage == null) { + modelPackage = OrmPackage.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 OrmSwitch<Adapter> modelSwitch = + new OrmSwitch<Adapter>() { + @Override + public Adapter caseAssociationOverride(AssociationOverride object) { + return createAssociationOverrideAdapter(); + } + @Override + public Adapter caseAttributeOverride(AttributeOverride object) { + return createAttributeOverrideAdapter(); + } + @Override + public Adapter caseAttributes(Attributes object) { + return createAttributesAdapter(); + } + @Override + public Adapter caseBasic(Basic object) { + return createBasicAdapter(); + } + @Override + public Adapter caseCascadeType(CascadeType object) { + return createCascadeTypeAdapter(); + } + @Override + public Adapter caseColumn(Column object) { + return createColumnAdapter(); + } + @Override + public Adapter caseColumnResult(ColumnResult object) { + return createColumnResultAdapter(); + } + @Override + public Adapter caseDiscriminatorColumn(DiscriminatorColumn object) { + return createDiscriminatorColumnAdapter(); + } + @Override + public Adapter caseDocumentRoot(DocumentRoot object) { + return createDocumentRootAdapter(); + } + @Override + public Adapter caseEmbeddable(Embeddable object) { + return createEmbeddableAdapter(); + } + @Override + public Adapter caseEmbeddableAttributes(EmbeddableAttributes object) { + return createEmbeddableAttributesAdapter(); + } + @Override + public Adapter caseEmbedded(Embedded object) { + return createEmbeddedAdapter(); + } + @Override + public Adapter caseEmbeddedId(EmbeddedId object) { + return createEmbeddedIdAdapter(); + } + @Override + public Adapter caseEmptyType(EmptyType object) { + return createEmptyTypeAdapter(); + } + @Override + public Adapter caseEntity(Entity object) { + return createEntityAdapter(); + } + @Override + public Adapter caseEntityListener(EntityListener object) { + return createEntityListenerAdapter(); + } + @Override + public Adapter caseEntityListeners(EntityListeners object) { + return createEntityListenersAdapter(); + } + @Override + public Adapter caseEntityMappingsType(EntityMappingsType object) { + return createEntityMappingsTypeAdapter(); + } + @Override + public Adapter caseEntityResult(EntityResult object) { + return createEntityResultAdapter(); + } + @Override + public Adapter caseFieldResult(FieldResult object) { + return createFieldResultAdapter(); + } + @Override + public Adapter caseGeneratedValue(GeneratedValue object) { + return createGeneratedValueAdapter(); + } + @Override + public Adapter caseId(Id object) { + return createIdAdapter(); + } + @Override + public Adapter caseIdClass(IdClass object) { + return createIdClassAdapter(); + } + @Override + public Adapter caseInheritance(Inheritance object) { + return createInheritanceAdapter(); + } + @Override + public Adapter caseJoinColumn(JoinColumn object) { + return createJoinColumnAdapter(); + } + @Override + public Adapter caseJoinTable(JoinTable object) { + return createJoinTableAdapter(); + } + @Override + public Adapter caseLob(Lob object) { + return createLobAdapter(); + } + @Override + public Adapter caseManyToMany(ManyToMany object) { + return createManyToManyAdapter(); + } + @Override + public Adapter caseManyToOne(ManyToOne object) { + return createManyToOneAdapter(); + } + @Override + public Adapter caseMapKey(MapKey object) { + return createMapKeyAdapter(); + } + @Override + public Adapter caseMappedSuperclass(MappedSuperclass object) { + return createMappedSuperclassAdapter(); + } + @Override + public Adapter caseNamedNativeQuery(NamedNativeQuery object) { + return createNamedNativeQueryAdapter(); + } + @Override + public Adapter caseNamedQuery(NamedQuery object) { + return createNamedQueryAdapter(); + } + @Override + public Adapter caseOneToMany(OneToMany object) { + return createOneToManyAdapter(); + } + @Override + public Adapter caseOneToOne(OneToOne object) { + return createOneToOneAdapter(); + } + @Override + public Adapter casePersistenceUnitDefaults(PersistenceUnitDefaults object) { + return createPersistenceUnitDefaultsAdapter(); + } + @Override + public Adapter casePersistenceUnitMetadata(PersistenceUnitMetadata object) { + return createPersistenceUnitMetadataAdapter(); + } + @Override + public Adapter casePostLoad(PostLoad object) { + return createPostLoadAdapter(); + } + @Override + public Adapter casePostPersist(PostPersist object) { + return createPostPersistAdapter(); + } + @Override + public Adapter casePostRemove(PostRemove object) { + return createPostRemoveAdapter(); + } + @Override + public Adapter casePostUpdate(PostUpdate object) { + return createPostUpdateAdapter(); + } + @Override + public Adapter casePrePersist(PrePersist object) { + return createPrePersistAdapter(); + } + @Override + public Adapter casePreRemove(PreRemove object) { + return createPreRemoveAdapter(); + } + @Override + public Adapter casePreUpdate(PreUpdate object) { + return createPreUpdateAdapter(); + } + @Override + public Adapter casePrimaryKeyJoinColumn(PrimaryKeyJoinColumn object) { + return createPrimaryKeyJoinColumnAdapter(); + } + @Override + public Adapter caseQueryHint(QueryHint object) { + return createQueryHintAdapter(); + } + @Override + public Adapter caseSecondaryTable(SecondaryTable object) { + return createSecondaryTableAdapter(); + } + @Override + public Adapter caseSequenceGenerator(SequenceGenerator object) { + return createSequenceGeneratorAdapter(); + } + @Override + public Adapter caseSqlResultSetMapping(SqlResultSetMapping object) { + return createSqlResultSetMappingAdapter(); + } + @Override + public Adapter caseTable(Table object) { + return createTableAdapter(); + } + @Override + public Adapter caseTableGenerator(TableGenerator object) { + return createTableGeneratorAdapter(); + } + @Override + public Adapter caseTransient(Transient object) { + return createTransientAdapter(); + } + @Override + public Adapter caseUniqueConstraint(UniqueConstraint object) { + return createUniqueConstraintAdapter(); + } + @Override + public Adapter caseVersion(Version object) { + return createVersionAdapter(); + } + @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.emf.teneo.jpa.orm.AssociationOverride <em>Association Override</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.emf.teneo.jpa.orm.AssociationOverride + * @generated + */ + public Adapter createAssociationOverrideAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride <em>Attribute Override</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.emf.teneo.jpa.orm.AttributeOverride + * @generated + */ + public Adapter createAttributeOverrideAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Attributes <em>Attributes</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.emf.teneo.jpa.orm.Attributes + * @generated + */ + public Adapter createAttributesAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Basic <em>Basic</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.emf.teneo.jpa.orm.Basic + * @generated + */ + public Adapter createBasicAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.CascadeType <em>Cascade Type</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.emf.teneo.jpa.orm.CascadeType + * @generated + */ + public Adapter createCascadeTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Column <em>Column</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.emf.teneo.jpa.orm.Column + * @generated + */ + public Adapter createColumnAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.ColumnResult <em>Column Result</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.emf.teneo.jpa.orm.ColumnResult + * @generated + */ + public Adapter createColumnResultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn <em>Discriminator Column</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.emf.teneo.jpa.orm.DiscriminatorColumn + * @generated + */ + public Adapter createDiscriminatorColumnAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot <em>Document Root</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.emf.teneo.jpa.orm.DocumentRoot + * @generated + */ + public Adapter createDocumentRootAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Embeddable <em>Embeddable</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.emf.teneo.jpa.orm.Embeddable + * @generated + */ + public Adapter createEmbeddableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes <em>Embeddable Attributes</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.emf.teneo.jpa.orm.EmbeddableAttributes + * @generated + */ + public Adapter createEmbeddableAttributesAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Embedded <em>Embedded</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.emf.teneo.jpa.orm.Embedded + * @generated + */ + public Adapter createEmbeddedAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId <em>Embedded Id</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.emf.teneo.jpa.orm.EmbeddedId + * @generated + */ + public Adapter createEmbeddedIdAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.EmptyType <em>Empty Type</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.emf.teneo.jpa.orm.EmptyType + * @generated + */ + public Adapter createEmptyTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Entity <em>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.emf.teneo.jpa.orm.Entity + * @generated + */ + public Adapter createEntityAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.EntityListener <em>Entity Listener</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.emf.teneo.jpa.orm.EntityListener + * @generated + */ + public Adapter createEntityListenerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.EntityListeners <em>Entity Listeners</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.emf.teneo.jpa.orm.EntityListeners + * @generated + */ + public Adapter createEntityListenersAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType <em>Entity Mappings Type</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.emf.teneo.jpa.orm.EntityMappingsType + * @generated + */ + public Adapter createEntityMappingsTypeAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.EntityResult <em>Entity Result</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.emf.teneo.jpa.orm.EntityResult + * @generated + */ + public Adapter createEntityResultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.FieldResult <em>Field Result</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.emf.teneo.jpa.orm.FieldResult + * @generated + */ + public Adapter createFieldResultAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue <em>Generated Value</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.emf.teneo.jpa.orm.GeneratedValue + * @generated + */ + public Adapter createGeneratedValueAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Id <em>Id</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.emf.teneo.jpa.orm.Id + * @generated + */ + public Adapter createIdAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.IdClass <em>Id Class</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.emf.teneo.jpa.orm.IdClass + * @generated + */ + public Adapter createIdClassAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Inheritance <em>Inheritance</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.emf.teneo.jpa.orm.Inheritance + * @generated + */ + public Adapter createInheritanceAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.JoinColumn <em>Join Column</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.emf.teneo.jpa.orm.JoinColumn + * @generated + */ + public Adapter createJoinColumnAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.JoinTable <em>Join Table</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.emf.teneo.jpa.orm.JoinTable + * @generated + */ + public Adapter createJoinTableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Lob <em>Lob</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.emf.teneo.jpa.orm.Lob + * @generated + */ + public Adapter createLobAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.ManyToMany <em>Many To Many</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.emf.teneo.jpa.orm.ManyToMany + * @generated + */ + public Adapter createManyToManyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.ManyToOne <em>Many To One</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.emf.teneo.jpa.orm.ManyToOne + * @generated + */ + public Adapter createManyToOneAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.MapKey <em>Map Key</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.emf.teneo.jpa.orm.MapKey + * @generated + */ + public Adapter createMapKeyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass <em>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.emf.teneo.jpa.orm.MappedSuperclass + * @generated + */ + public Adapter createMappedSuperclassAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery <em>Named Native Query</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.emf.teneo.jpa.orm.NamedNativeQuery + * @generated + */ + public Adapter createNamedNativeQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.NamedQuery <em>Named Query</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.emf.teneo.jpa.orm.NamedQuery + * @generated + */ + public Adapter createNamedQueryAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.OneToMany <em>One To Many</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.emf.teneo.jpa.orm.OneToMany + * @generated + */ + public Adapter createOneToManyAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.OneToOne <em>One To One</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.emf.teneo.jpa.orm.OneToOne + * @generated + */ + public Adapter createOneToOneAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults <em>Persistence Unit Defaults</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.emf.teneo.jpa.orm.PersistenceUnitDefaults + * @generated + */ + public Adapter createPersistenceUnitDefaultsAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata <em>Persistence Unit Metadata</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.emf.teneo.jpa.orm.PersistenceUnitMetadata + * @generated + */ + public Adapter createPersistenceUnitMetadataAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PostLoad <em>Post Load</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.emf.teneo.jpa.orm.PostLoad + * @generated + */ + public Adapter createPostLoadAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PostPersist <em>Post Persist</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.emf.teneo.jpa.orm.PostPersist + * @generated + */ + public Adapter createPostPersistAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PostRemove <em>Post Remove</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.emf.teneo.jpa.orm.PostRemove + * @generated + */ + public Adapter createPostRemoveAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PostUpdate <em>Post Update</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.emf.teneo.jpa.orm.PostUpdate + * @generated + */ + public Adapter createPostUpdateAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PrePersist <em>Pre Persist</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.emf.teneo.jpa.orm.PrePersist + * @generated + */ + public Adapter createPrePersistAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PreRemove <em>Pre Remove</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.emf.teneo.jpa.orm.PreRemove + * @generated + */ + public Adapter createPreRemoveAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PreUpdate <em>Pre Update</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.emf.teneo.jpa.orm.PreUpdate + * @generated + */ + public Adapter createPreUpdateAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn <em>Primary Key Join Column</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.emf.teneo.jpa.orm.PrimaryKeyJoinColumn + * @generated + */ + public Adapter createPrimaryKeyJoinColumnAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.QueryHint <em>Query Hint</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.emf.teneo.jpa.orm.QueryHint + * @generated + */ + public Adapter createQueryHintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable <em>Secondary Table</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.emf.teneo.jpa.orm.SecondaryTable + * @generated + */ + public Adapter createSecondaryTableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator <em>Sequence Generator</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.emf.teneo.jpa.orm.SequenceGenerator + * @generated + */ + public Adapter createSequenceGeneratorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping <em>Sql Result Set 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.emf.teneo.jpa.orm.SqlResultSetMapping + * @generated + */ + public Adapter createSqlResultSetMappingAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Table <em>Table</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.emf.teneo.jpa.orm.Table + * @generated + */ + public Adapter createTableAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.TableGenerator <em>Table Generator</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.emf.teneo.jpa.orm.TableGenerator + * @generated + */ + public Adapter createTableGeneratorAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Transient <em>Transient</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.emf.teneo.jpa.orm.Transient + * @generated + */ + public Adapter createTransientAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint <em>Unique Constraint</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.emf.teneo.jpa.orm.UniqueConstraint + * @generated + */ + public Adapter createUniqueConstraintAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.jpa.orm.Version <em>Version</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.emf.teneo.jpa.orm.Version + * @generated + */ + public Adapter createVersionAdapter() { + 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; + } + +} //OrmAdapterFactory diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmResourceFactoryImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmResourceFactoryImpl.java new file mode 100755 index 000000000..28677098b --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmResourceFactoryImpl.java @@ -0,0 +1,70 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmResourceFactoryImpl.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; + +import org.eclipse.emf.ecore.util.BasicExtendedMetaData; +import org.eclipse.emf.ecore.util.ExtendedMetaData; +import org.eclipse.emf.ecore.xmi.XMLResource; +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * <!-- begin-user-doc --> + * The <b>Resource Factory</b> associated with the package. + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.util.OrmResourceImpl + * @generated + */ +public class OrmResourceFactoryImpl extends ResourceFactoryImpl { + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ExtendedMetaData extendedMetaData; + + /** + * Creates an instance of the resource factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmResourceFactoryImpl() { + super(); + extendedMetaData = new BasicExtendedMetaData(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); + extendedMetaData.putPackage(null, OrmPackage.eINSTANCE); + } + + /** + * Creates an instance of the resource. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Resource createResource(URI uri) { + XMLResource result = new OrmResourceImpl(uri); + result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); + result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData); + + result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE); + + result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE); + return result; + } + +} //OrmResourceFactoryImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmResourceImpl.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmResourceImpl.java new file mode 100755 index 000000000..e80bca6ac --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmResourceImpl.java @@ -0,0 +1,32 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmResourceImpl.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.util; + +import org.eclipse.emf.common.util.URI; + +import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl; + +/** + * <!-- begin-user-doc --> + * The <b>Resource </b> associated with the package. + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.util.OrmResourceFactoryImpl + * @generated + */ +public class OrmResourceImpl extends XMLResourceImpl { + /** + * Creates an instance of the resource. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param uri the URI of the new resource. + * @generated + */ + public OrmResourceImpl(URI uri) { + super(uri); + } + +} //OrmResourceImpl diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmSwitch.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmSwitch.java new file mode 100755 index 000000000..237334d4e --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmSwitch.java @@ -0,0 +1,1243 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmSwitch.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.util; + +import java.util.List; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.teneo.jpa.orm.*; + +/** + * <!-- 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.emf.teneo.jpa.orm.OrmPackage + * @generated + */ +public class OrmSwitch<T> { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static OrmPackage modelPackage; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmSwitch() { + if (modelPackage == null) { + modelPackage = OrmPackage.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 OrmPackage.ASSOCIATION_OVERRIDE: { + AssociationOverride associationOverride = (AssociationOverride)theEObject; + T result = caseAssociationOverride(associationOverride); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ATTRIBUTE_OVERRIDE: { + AttributeOverride attributeOverride = (AttributeOverride)theEObject; + T result = caseAttributeOverride(attributeOverride); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ATTRIBUTES: { + Attributes attributes = (Attributes)theEObject; + T result = caseAttributes(attributes); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.BASIC: { + Basic basic = (Basic)theEObject; + T result = caseBasic(basic); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.CASCADE_TYPE: { + CascadeType cascadeType = (CascadeType)theEObject; + T result = caseCascadeType(cascadeType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.COLUMN: { + Column column = (Column)theEObject; + T result = caseColumn(column); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.COLUMN_RESULT: { + ColumnResult columnResult = (ColumnResult)theEObject; + T result = caseColumnResult(columnResult); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.DISCRIMINATOR_COLUMN: { + DiscriminatorColumn discriminatorColumn = (DiscriminatorColumn)theEObject; + T result = caseDiscriminatorColumn(discriminatorColumn); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.DOCUMENT_ROOT: { + DocumentRoot documentRoot = (DocumentRoot)theEObject; + T result = caseDocumentRoot(documentRoot); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.EMBEDDABLE: { + Embeddable embeddable = (Embeddable)theEObject; + T result = caseEmbeddable(embeddable); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.EMBEDDABLE_ATTRIBUTES: { + EmbeddableAttributes embeddableAttributes = (EmbeddableAttributes)theEObject; + T result = caseEmbeddableAttributes(embeddableAttributes); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.EMBEDDED: { + Embedded embedded = (Embedded)theEObject; + T result = caseEmbedded(embedded); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.EMBEDDED_ID: { + EmbeddedId embeddedId = (EmbeddedId)theEObject; + T result = caseEmbeddedId(embeddedId); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.EMPTY_TYPE: { + EmptyType emptyType = (EmptyType)theEObject; + T result = caseEmptyType(emptyType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ENTITY: { + Entity entity = (Entity)theEObject; + T result = caseEntity(entity); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ENTITY_LISTENER: { + EntityListener entityListener = (EntityListener)theEObject; + T result = caseEntityListener(entityListener); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ENTITY_LISTENERS: { + EntityListeners entityListeners = (EntityListeners)theEObject; + T result = caseEntityListeners(entityListeners); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ENTITY_MAPPINGS_TYPE: { + EntityMappingsType entityMappingsType = (EntityMappingsType)theEObject; + T result = caseEntityMappingsType(entityMappingsType); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ENTITY_RESULT: { + EntityResult entityResult = (EntityResult)theEObject; + T result = caseEntityResult(entityResult); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.FIELD_RESULT: { + FieldResult fieldResult = (FieldResult)theEObject; + T result = caseFieldResult(fieldResult); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.GENERATED_VALUE: { + GeneratedValue generatedValue = (GeneratedValue)theEObject; + T result = caseGeneratedValue(generatedValue); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ID: { + Id id = (Id)theEObject; + T result = caseId(id); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ID_CLASS: { + IdClass idClass = (IdClass)theEObject; + T result = caseIdClass(idClass); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.INHERITANCE: { + Inheritance inheritance = (Inheritance)theEObject; + T result = caseInheritance(inheritance); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.JOIN_COLUMN: { + JoinColumn joinColumn = (JoinColumn)theEObject; + T result = caseJoinColumn(joinColumn); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.JOIN_TABLE: { + JoinTable joinTable = (JoinTable)theEObject; + T result = caseJoinTable(joinTable); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.LOB: { + Lob lob = (Lob)theEObject; + T result = caseLob(lob); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.MANY_TO_MANY: { + ManyToMany manyToMany = (ManyToMany)theEObject; + T result = caseManyToMany(manyToMany); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.MANY_TO_ONE: { + ManyToOne manyToOne = (ManyToOne)theEObject; + T result = caseManyToOne(manyToOne); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.MAP_KEY: { + MapKey mapKey = (MapKey)theEObject; + T result = caseMapKey(mapKey); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.MAPPED_SUPERCLASS: { + MappedSuperclass mappedSuperclass = (MappedSuperclass)theEObject; + T result = caseMappedSuperclass(mappedSuperclass); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.NAMED_NATIVE_QUERY: { + NamedNativeQuery namedNativeQuery = (NamedNativeQuery)theEObject; + T result = caseNamedNativeQuery(namedNativeQuery); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.NAMED_QUERY: { + NamedQuery namedQuery = (NamedQuery)theEObject; + T result = caseNamedQuery(namedQuery); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ONE_TO_MANY: { + OneToMany oneToMany = (OneToMany)theEObject; + T result = caseOneToMany(oneToMany); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.ONE_TO_ONE: { + OneToOne oneToOne = (OneToOne)theEObject; + T result = caseOneToOne(oneToOne); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS: { + PersistenceUnitDefaults persistenceUnitDefaults = (PersistenceUnitDefaults)theEObject; + T result = casePersistenceUnitDefaults(persistenceUnitDefaults); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.PERSISTENCE_UNIT_METADATA: { + PersistenceUnitMetadata persistenceUnitMetadata = (PersistenceUnitMetadata)theEObject; + T result = casePersistenceUnitMetadata(persistenceUnitMetadata); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.POST_LOAD: { + PostLoad postLoad = (PostLoad)theEObject; + T result = casePostLoad(postLoad); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.POST_PERSIST: { + PostPersist postPersist = (PostPersist)theEObject; + T result = casePostPersist(postPersist); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.POST_REMOVE: { + PostRemove postRemove = (PostRemove)theEObject; + T result = casePostRemove(postRemove); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.POST_UPDATE: { + PostUpdate postUpdate = (PostUpdate)theEObject; + T result = casePostUpdate(postUpdate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.PRE_PERSIST: { + PrePersist prePersist = (PrePersist)theEObject; + T result = casePrePersist(prePersist); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.PRE_REMOVE: { + PreRemove preRemove = (PreRemove)theEObject; + T result = casePreRemove(preRemove); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.PRE_UPDATE: { + PreUpdate preUpdate = (PreUpdate)theEObject; + T result = casePreUpdate(preUpdate); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN: { + PrimaryKeyJoinColumn primaryKeyJoinColumn = (PrimaryKeyJoinColumn)theEObject; + T result = casePrimaryKeyJoinColumn(primaryKeyJoinColumn); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.QUERY_HINT: { + QueryHint queryHint = (QueryHint)theEObject; + T result = caseQueryHint(queryHint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.SECONDARY_TABLE: { + SecondaryTable secondaryTable = (SecondaryTable)theEObject; + T result = caseSecondaryTable(secondaryTable); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.SEQUENCE_GENERATOR: { + SequenceGenerator sequenceGenerator = (SequenceGenerator)theEObject; + T result = caseSequenceGenerator(sequenceGenerator); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.SQL_RESULT_SET_MAPPING: { + SqlResultSetMapping sqlResultSetMapping = (SqlResultSetMapping)theEObject; + T result = caseSqlResultSetMapping(sqlResultSetMapping); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.TABLE: { + Table table = (Table)theEObject; + T result = caseTable(table); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.TABLE_GENERATOR: { + TableGenerator tableGenerator = (TableGenerator)theEObject; + T result = caseTableGenerator(tableGenerator); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.TRANSIENT: { + Transient transient_ = (Transient)theEObject; + T result = caseTransient(transient_); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.UNIQUE_CONSTRAINT: { + UniqueConstraint uniqueConstraint = (UniqueConstraint)theEObject; + T result = caseUniqueConstraint(uniqueConstraint); + if (result == null) result = defaultCase(theEObject); + return result; + } + case OrmPackage.VERSION: { + Version version = (Version)theEObject; + T result = caseVersion(version); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); + } + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Association Override</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>Association Override</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAssociationOverride(AssociationOverride object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Attribute Override</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>Attribute Override</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAttributeOverride(AttributeOverride object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Attributes</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>Attributes</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseAttributes(Attributes object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Basic</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>Basic</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseBasic(Basic object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Cascade Type</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>Cascade Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseCascadeType(CascadeType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Column</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>Column</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseColumn(Column object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Column Result</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>Column Result</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseColumnResult(ColumnResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Discriminator Column</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>Discriminator Column</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDiscriminatorColumn(DiscriminatorColumn object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Document Root</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>Document Root</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseDocumentRoot(DocumentRoot object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Embeddable</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>Embeddable</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEmbeddable(Embeddable object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Embeddable Attributes</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>Embeddable Attributes</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEmbeddableAttributes(EmbeddableAttributes object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Embedded</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>Embedded</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEmbedded(Embedded object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Embedded Id</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>Embedded Id</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEmbeddedId(EmbeddedId object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Empty Type</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>Empty Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEmptyType(EmptyType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>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>Entity</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEntity(Entity object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Entity Listener</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>Entity Listener</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEntityListener(EntityListener object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Entity Listeners</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>Entity Listeners</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEntityListeners(EntityListeners object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Entity Mappings Type</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>Entity Mappings Type</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEntityMappingsType(EntityMappingsType object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Entity Result</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>Entity Result</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseEntityResult(EntityResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Field Result</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>Field Result</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseFieldResult(FieldResult object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Generated Value</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>Generated Value</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseGeneratedValue(GeneratedValue object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Id</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>Id</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseId(Id object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Id Class</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>Id Class</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseIdClass(IdClass object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Inheritance</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>Inheritance</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseInheritance(Inheritance object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Join Column</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>Join Column</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseJoinColumn(JoinColumn object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Join Table</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>Join Table</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseJoinTable(JoinTable object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Lob</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>Lob</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseLob(Lob object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Many To Many</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>Many To Many</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseManyToMany(ManyToMany object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Many To One</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>Many To One</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseManyToOne(ManyToOne object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Map Key</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>Map Key</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMapKey(MapKey object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>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>Mapped Superclass</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseMappedSuperclass(MappedSuperclass object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Named Native Query</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>Named Native Query</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedNativeQuery(NamedNativeQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Named Query</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>Named Query</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseNamedQuery(NamedQuery object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>One To Many</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>One To Many</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOneToMany(OneToMany object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>One To One</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>One To One</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseOneToOne(OneToOne object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Persistence Unit Defaults</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>Persistence Unit Defaults</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePersistenceUnitDefaults(PersistenceUnitDefaults object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Persistence Unit Metadata</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>Persistence Unit Metadata</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePersistenceUnitMetadata(PersistenceUnitMetadata object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Post Load</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>Post Load</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePostLoad(PostLoad object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Post Persist</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>Post Persist</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePostPersist(PostPersist object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Post Remove</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>Post Remove</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePostRemove(PostRemove object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Post Update</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>Post Update</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePostUpdate(PostUpdate object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Pre Persist</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>Pre Persist</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePrePersist(PrePersist object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Pre Remove</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>Pre Remove</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePreRemove(PreRemove object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Pre Update</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>Pre Update</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePreUpdate(PreUpdate object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Primary Key Join Column</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>Primary Key Join Column</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T casePrimaryKeyJoinColumn(PrimaryKeyJoinColumn object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Query Hint</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>Query Hint</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseQueryHint(QueryHint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Secondary Table</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>Secondary Table</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSecondaryTable(SecondaryTable object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Sequence Generator</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>Sequence Generator</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSequenceGenerator(SequenceGenerator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Sql Result Set 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>Sql Result Set Mapping</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSqlResultSetMapping(SqlResultSetMapping object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Table</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>Table</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTable(Table object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Table Generator</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>Table Generator</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTableGenerator(TableGenerator object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Transient</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>Transient</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTransient(Transient object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Unique Constraint</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>Unique Constraint</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseUniqueConstraint(UniqueConstraint object) { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Version</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>Version</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseVersion(Version 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; + } + +} //OrmSwitch diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmValidator.java new file mode 100755 index 000000000..e0565013f --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmValidator.java @@ -0,0 +1,950 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmValidator.java,v 1.1 2009/03/15 23:44:59 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.util; + +import java.util.Map; + +import org.eclipse.emf.common.util.DiagnosticChain; +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.EObjectValidator; + +import org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil; +import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator; + +import org.eclipse.emf.teneo.jpa.orm.*; + +/** + * <!-- begin-user-doc --> + * The <b>Validator</b> for the model. + * <!-- end-user-doc --> + * @see org.eclipse.emf.teneo.jpa.orm.OrmPackage + * @generated + */ +public class OrmValidator extends EObjectValidator { + /** + * The cached model package + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public static final OrmValidator INSTANCE = new OrmValidator(); + + /** + * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see org.eclipse.emf.common.util.Diagnostic#getSource() + * @see org.eclipse.emf.common.util.Diagnostic#getCode() + * @generated + */ + public static final String DIAGNOSTIC_SOURCE = "org.eclipse.emf.teneo.jpa.orm"; + + /** + * A constant with a fixed name that can be used as the base value for additional hand written constants. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0; + + /** + * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; + + /** + * The cached base package validator. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected XMLTypeValidator xmlTypeValidator; + + /** + * Creates an instance of the switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmValidator() { + super(); + xmlTypeValidator = XMLTypeValidator.INSTANCE; + } + + /** + * Returns the package of this validator switch. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EPackage getEPackage() { + return OrmPackage.eINSTANCE; + } + + /** + * Calls <code>validateXXX</code> for the corresponding classifier of the model. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { + switch (classifierID) { + case OrmPackage.ASSOCIATION_OVERRIDE: + return validateAssociationOverride((AssociationOverride)value, diagnostics, context); + case OrmPackage.ATTRIBUTE_OVERRIDE: + return validateAttributeOverride((AttributeOverride)value, diagnostics, context); + case OrmPackage.ATTRIBUTES: + return validateAttributes((Attributes)value, diagnostics, context); + case OrmPackage.BASIC: + return validateBasic((Basic)value, diagnostics, context); + case OrmPackage.CASCADE_TYPE: + return validateCascadeType((CascadeType)value, diagnostics, context); + case OrmPackage.COLUMN: + return validateColumn((Column)value, diagnostics, context); + case OrmPackage.COLUMN_RESULT: + return validateColumnResult((ColumnResult)value, diagnostics, context); + case OrmPackage.DISCRIMINATOR_COLUMN: + return validateDiscriminatorColumn((DiscriminatorColumn)value, diagnostics, context); + case OrmPackage.DOCUMENT_ROOT: + return validateDocumentRoot((DocumentRoot)value, diagnostics, context); + case OrmPackage.EMBEDDABLE: + return validateEmbeddable((Embeddable)value, diagnostics, context); + case OrmPackage.EMBEDDABLE_ATTRIBUTES: + return validateEmbeddableAttributes((EmbeddableAttributes)value, diagnostics, context); + case OrmPackage.EMBEDDED: + return validateEmbedded((Embedded)value, diagnostics, context); + case OrmPackage.EMBEDDED_ID: + return validateEmbeddedId((EmbeddedId)value, diagnostics, context); + case OrmPackage.EMPTY_TYPE: + return validateEmptyType((EmptyType)value, diagnostics, context); + case OrmPackage.ENTITY: + return validateEntity((Entity)value, diagnostics, context); + case OrmPackage.ENTITY_LISTENER: + return validateEntityListener((EntityListener)value, diagnostics, context); + case OrmPackage.ENTITY_LISTENERS: + return validateEntityListeners((EntityListeners)value, diagnostics, context); + case OrmPackage.ENTITY_MAPPINGS_TYPE: + return validateEntityMappingsType((EntityMappingsType)value, diagnostics, context); + case OrmPackage.ENTITY_RESULT: + return validateEntityResult((EntityResult)value, diagnostics, context); + case OrmPackage.FIELD_RESULT: + return validateFieldResult((FieldResult)value, diagnostics, context); + case OrmPackage.GENERATED_VALUE: + return validateGeneratedValue((GeneratedValue)value, diagnostics, context); + case OrmPackage.ID: + return validateId((Id)value, diagnostics, context); + case OrmPackage.ID_CLASS: + return validateIdClass((IdClass)value, diagnostics, context); + case OrmPackage.INHERITANCE: + return validateInheritance((Inheritance)value, diagnostics, context); + case OrmPackage.JOIN_COLUMN: + return validateJoinColumn((JoinColumn)value, diagnostics, context); + case OrmPackage.JOIN_TABLE: + return validateJoinTable((JoinTable)value, diagnostics, context); + case OrmPackage.LOB: + return validateLob((Lob)value, diagnostics, context); + case OrmPackage.MANY_TO_MANY: + return validateManyToMany((ManyToMany)value, diagnostics, context); + case OrmPackage.MANY_TO_ONE: + return validateManyToOne((ManyToOne)value, diagnostics, context); + case OrmPackage.MAP_KEY: + return validateMapKey((MapKey)value, diagnostics, context); + case OrmPackage.MAPPED_SUPERCLASS: + return validateMappedSuperclass((MappedSuperclass)value, diagnostics, context); + case OrmPackage.NAMED_NATIVE_QUERY: + return validateNamedNativeQuery((NamedNativeQuery)value, diagnostics, context); + case OrmPackage.NAMED_QUERY: + return validateNamedQuery((NamedQuery)value, diagnostics, context); + case OrmPackage.ONE_TO_MANY: + return validateOneToMany((OneToMany)value, diagnostics, context); + case OrmPackage.ONE_TO_ONE: + return validateOneToOne((OneToOne)value, diagnostics, context); + case OrmPackage.PERSISTENCE_UNIT_DEFAULTS: + return validatePersistenceUnitDefaults((PersistenceUnitDefaults)value, diagnostics, context); + case OrmPackage.PERSISTENCE_UNIT_METADATA: + return validatePersistenceUnitMetadata((PersistenceUnitMetadata)value, diagnostics, context); + case OrmPackage.POST_LOAD: + return validatePostLoad((PostLoad)value, diagnostics, context); + case OrmPackage.POST_PERSIST: + return validatePostPersist((PostPersist)value, diagnostics, context); + case OrmPackage.POST_REMOVE: + return validatePostRemove((PostRemove)value, diagnostics, context); + case OrmPackage.POST_UPDATE: + return validatePostUpdate((PostUpdate)value, diagnostics, context); + case OrmPackage.PRE_PERSIST: + return validatePrePersist((PrePersist)value, diagnostics, context); + case OrmPackage.PRE_REMOVE: + return validatePreRemove((PreRemove)value, diagnostics, context); + case OrmPackage.PRE_UPDATE: + return validatePreUpdate((PreUpdate)value, diagnostics, context); + case OrmPackage.PRIMARY_KEY_JOIN_COLUMN: + return validatePrimaryKeyJoinColumn((PrimaryKeyJoinColumn)value, diagnostics, context); + case OrmPackage.QUERY_HINT: + return validateQueryHint((QueryHint)value, diagnostics, context); + case OrmPackage.SECONDARY_TABLE: + return validateSecondaryTable((SecondaryTable)value, diagnostics, context); + case OrmPackage.SEQUENCE_GENERATOR: + return validateSequenceGenerator((SequenceGenerator)value, diagnostics, context); + case OrmPackage.SQL_RESULT_SET_MAPPING: + return validateSqlResultSetMapping((SqlResultSetMapping)value, diagnostics, context); + case OrmPackage.TABLE: + return validateTable((Table)value, diagnostics, context); + case OrmPackage.TABLE_GENERATOR: + return validateTableGenerator((TableGenerator)value, diagnostics, context); + case OrmPackage.TRANSIENT: + return validateTransient((Transient)value, diagnostics, context); + case OrmPackage.UNIQUE_CONSTRAINT: + return validateUniqueConstraint((UniqueConstraint)value, diagnostics, context); + case OrmPackage.VERSION: + return validateVersion((Version)value, diagnostics, context); + case OrmPackage.ACCESS_TYPE: + return validateAccessType((AccessType)value, diagnostics, context); + case OrmPackage.DISCRIMINATOR_TYPE: + return validateDiscriminatorType((DiscriminatorType)value, diagnostics, context); + case OrmPackage.ENUM_TYPE: + return validateEnumType((EnumType)value, diagnostics, context); + case OrmPackage.FETCH_TYPE: + return validateFetchType((FetchType)value, diagnostics, context); + case OrmPackage.GENERATION_TYPE: + return validateGenerationType((GenerationType)value, diagnostics, context); + case OrmPackage.INHERITANCE_TYPE: + return validateInheritanceType((InheritanceType)value, diagnostics, context); + case OrmPackage.TEMPORAL_TYPE: + return validateTemporalType((TemporalType)value, diagnostics, context); + case OrmPackage.ACCESS_TYPE_OBJECT: + return validateAccessTypeObject((AccessType)value, diagnostics, context); + case OrmPackage.DISCRIMINATOR_TYPE_OBJECT: + return validateDiscriminatorTypeObject((DiscriminatorType)value, diagnostics, context); + case OrmPackage.DISCRIMINATOR_VALUE: + return validateDiscriminatorValue((String)value, diagnostics, context); + case OrmPackage.ENUMERATED: + return validateEnumerated((EnumType)value, diagnostics, context); + case OrmPackage.ENUM_TYPE_OBJECT: + return validateEnumTypeObject((EnumType)value, diagnostics, context); + case OrmPackage.FETCH_TYPE_OBJECT: + return validateFetchTypeObject((FetchType)value, diagnostics, context); + case OrmPackage.GENERATION_TYPE_OBJECT: + return validateGenerationTypeObject((GenerationType)value, diagnostics, context); + case OrmPackage.INHERITANCE_TYPE_OBJECT: + return validateInheritanceTypeObject((InheritanceType)value, diagnostics, context); + case OrmPackage.ORDER_BY: + return validateOrderBy((String)value, diagnostics, context); + case OrmPackage.TEMPORAL: + return validateTemporal((TemporalType)value, diagnostics, context); + case OrmPackage.TEMPORAL_TYPE_OBJECT: + return validateTemporalTypeObject((TemporalType)value, diagnostics, context); + case OrmPackage.VERSION_TYPE: + return validateVersionType((String)value, diagnostics, context); + default: + return true; + } + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateAssociationOverride(AssociationOverride associationOverride, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(associationOverride, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateAttributeOverride(AttributeOverride attributeOverride, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(attributeOverride, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateAttributes(Attributes attributes, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(attributes, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateBasic(Basic basic, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(basic, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateCascadeType(CascadeType cascadeType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(cascadeType, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateColumn(Column column, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(column, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateColumnResult(ColumnResult columnResult, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(columnResult, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateDiscriminatorColumn(DiscriminatorColumn discriminatorColumn, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(discriminatorColumn, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(documentRoot, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEmbeddable(Embeddable embeddable, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(embeddable, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEmbeddableAttributes(EmbeddableAttributes embeddableAttributes, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(embeddableAttributes, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEmbedded(Embedded embedded, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(embedded, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEmbeddedId(EmbeddedId embeddedId, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(embeddedId, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEmptyType(EmptyType emptyType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(emptyType, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEntity(Entity entity, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(entity, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEntityListener(EntityListener entityListener, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(entityListener, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEntityListeners(EntityListeners entityListeners, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(entityListeners, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEntityMappingsType(EntityMappingsType entityMappingsType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(entityMappingsType, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEntityResult(EntityResult entityResult, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(entityResult, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateFieldResult(FieldResult fieldResult, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(fieldResult, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateGeneratedValue(GeneratedValue generatedValue, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(generatedValue, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateId(Id id, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(id, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateIdClass(IdClass idClass, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(idClass, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateInheritance(Inheritance inheritance, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(inheritance, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateJoinColumn(JoinColumn joinColumn, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(joinColumn, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateJoinTable(JoinTable joinTable, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(joinTable, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateLob(Lob lob, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(lob, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateManyToMany(ManyToMany manyToMany, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(manyToMany, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateManyToOne(ManyToOne manyToOne, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(manyToOne, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateMapKey(MapKey mapKey, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(mapKey, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateMappedSuperclass(MappedSuperclass mappedSuperclass, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(mappedSuperclass, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateNamedNativeQuery(NamedNativeQuery namedNativeQuery, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(namedNativeQuery, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateNamedQuery(NamedQuery namedQuery, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(namedQuery, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateOneToMany(OneToMany oneToMany, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(oneToMany, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateOneToOne(OneToOne oneToOne, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(oneToOne, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePersistenceUnitDefaults(PersistenceUnitDefaults persistenceUnitDefaults, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(persistenceUnitDefaults, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePersistenceUnitMetadata(PersistenceUnitMetadata persistenceUnitMetadata, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(persistenceUnitMetadata, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePostLoad(PostLoad postLoad, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(postLoad, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePostPersist(PostPersist postPersist, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(postPersist, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePostRemove(PostRemove postRemove, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(postRemove, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePostUpdate(PostUpdate postUpdate, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(postUpdate, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePrePersist(PrePersist prePersist, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(prePersist, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePreRemove(PreRemove preRemove, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(preRemove, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePreUpdate(PreUpdate preUpdate, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(preUpdate, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validatePrimaryKeyJoinColumn(PrimaryKeyJoinColumn primaryKeyJoinColumn, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(primaryKeyJoinColumn, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateQueryHint(QueryHint queryHint, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(queryHint, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateSecondaryTable(SecondaryTable secondaryTable, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(secondaryTable, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateSequenceGenerator(SequenceGenerator sequenceGenerator, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(sequenceGenerator, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateSqlResultSetMapping(SqlResultSetMapping sqlResultSetMapping, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(sqlResultSetMapping, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateTable(Table table, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(table, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateTableGenerator(TableGenerator tableGenerator, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(tableGenerator, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateTransient(Transient transient_, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(transient_, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateUniqueConstraint(UniqueConstraint uniqueConstraint, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(uniqueConstraint, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateVersion(Version version, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validate_EveryDefaultConstraint(version, diagnostics, context); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateAccessType(AccessType accessType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateDiscriminatorType(DiscriminatorType discriminatorType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEnumType(EnumType enumType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateFetchType(FetchType fetchType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateGenerationType(GenerationType generationType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateInheritanceType(InheritanceType inheritanceType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateTemporalType(TemporalType temporalType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateAccessTypeObject(AccessType accessTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateDiscriminatorTypeObject(DiscriminatorType discriminatorTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateDiscriminatorValue(String discriminatorValue, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEnumerated(EnumType enumerated, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateEnumTypeObject(EnumType enumTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateFetchTypeObject(FetchType fetchTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateGenerationTypeObject(GenerationType generationTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateInheritanceTypeObject(InheritanceType inheritanceTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateOrderBy(String orderBy, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateTemporal(TemporalType temporal, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateTemporalTypeObject(TemporalType temporalTypeObject, DiagnosticChain diagnostics, Map<Object, Object> context) { + return true; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateVersionType(String versionType, DiagnosticChain diagnostics, Map<Object, Object> context) { + boolean result = validateVersionType_Pattern(versionType, diagnostics, context); + return result; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @see #validateVersionType_Pattern + */ + public static final PatternMatcher [][] VERSION_TYPE__PATTERN__VALUES = + new PatternMatcher [][] { + new PatternMatcher [] { + XMLTypeUtil.createPatternMatcher("[0-9]+(\\.[0-9]+)*") + } + }; + + /** + * Validates the Pattern constraint of '<em>Version Type</em>'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public boolean validateVersionType_Pattern(String versionType, DiagnosticChain diagnostics, Map<Object, Object> context) { + return validatePattern(OrmPackage.Literals.VERSION_TYPE, versionType, VERSION_TYPE__PATTERN__VALUES, diagnostics, context); + } + + /** + * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + // TODO + // Specialize this to return a resource locator for messages specific to this validator. + // Ensure that you remove @generated or mark it @generated NOT + return super.getResourceLocator(); + } + +} //OrmValidator diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmXMLProcessor.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmXMLProcessor.java new file mode 100755 index 000000000..bbac3a6dc --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/util/OrmXMLProcessor.java @@ -0,0 +1,55 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OrmXMLProcessor.java,v 1.2 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.util; + +import java.util.Map; + +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.impl.EPackageRegistryImpl; +import org.eclipse.emf.ecore.resource.Resource; + +import org.eclipse.emf.ecore.xmi.util.XMLProcessor; + +import org.eclipse.emf.teneo.jpa.orm.OrmPackage; + +/** + * This class contains helper methods to serialize and deserialize XML documents + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ +public class OrmXMLProcessor extends XMLProcessor { + + /** + * Public constructor to instantiate the helper. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public OrmXMLProcessor() { + super(new EPackageRegistryImpl(EPackage.Registry.INSTANCE)); + extendedMetaData.putPackage(null, OrmPackage.eINSTANCE); + } + + /** + * Register for "*" and "xml" file extensions the OrmResourceFactoryImpl factory. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected Map<String, Resource.Factory> getRegistrations() { + if (registrations == null) { + super.getRegistrations(); + registrations.put(XML_EXTENSION, new OrmResourceFactoryImpl()); + registrations.put(STAR_EXTENSION, new OrmResourceFactoryImpl()); + } + return registrations; + } + +} //OrmXMLProcessor diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AssociationOverrideValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AssociationOverrideValidator.java new file mode 100755 index 000000000..6e69a02c6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AssociationOverrideValidator.java @@ -0,0 +1,24 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AssociationOverrideValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.AssociationOverride}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface AssociationOverrideValidator { + boolean validate(); + + boolean validateJoinColumn(EList<JoinColumn> value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AttributeOverrideValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AttributeOverrideValidator.java new file mode 100755 index 000000000..777d10282 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AttributeOverrideValidator.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AttributeOverrideValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.Column; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.AttributeOverride}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface AttributeOverrideValidator { + boolean validate(); + + boolean validateColumn(Column value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AttributesValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AttributesValidator.java new file mode 100755 index 000000000..51d39a356 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/AttributesValidator.java @@ -0,0 +1,41 @@ +/** + * <copyright> + * </copyright> + * + * $Id: AttributesValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.Basic; +import org.eclipse.emf.teneo.jpa.orm.Embedded; +import org.eclipse.emf.teneo.jpa.orm.EmbeddedId; +import org.eclipse.emf.teneo.jpa.orm.Id; +import org.eclipse.emf.teneo.jpa.orm.ManyToMany; +import org.eclipse.emf.teneo.jpa.orm.ManyToOne; +import org.eclipse.emf.teneo.jpa.orm.OneToMany; +import org.eclipse.emf.teneo.jpa.orm.OneToOne; +import org.eclipse.emf.teneo.jpa.orm.Transient; +import org.eclipse.emf.teneo.jpa.orm.Version; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Attributes}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface AttributesValidator { + boolean validate(); + + boolean validateId(EList<Id> value); + boolean validateEmbeddedId(EmbeddedId value); + boolean validateBasic(EList<Basic> value); + boolean validateVersion(EList<Version> value); + boolean validateManyToOne(EList<ManyToOne> value); + boolean validateOneToMany(EList<OneToMany> value); + boolean validateOneToOne(EList<OneToOne> value); + boolean validateManyToMany(EList<ManyToMany> value); + boolean validateEmbedded(EList<Embedded> value); + boolean validateTransient(EList<Transient> value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/BasicValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/BasicValidator.java new file mode 100755 index 000000000..581db42fc --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/BasicValidator.java @@ -0,0 +1,31 @@ +/** + * <copyright> + * </copyright> + * + * $Id: BasicValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.EnumType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.Lob; +import org.eclipse.emf.teneo.jpa.orm.TemporalType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Basic}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface BasicValidator { + boolean validate(); + + boolean validateColumn(Column value); + boolean validateLob(Lob value); + boolean validateTemporal(TemporalType value); + boolean validateEnumerated(EnumType value); + boolean validateFetch(FetchType value); + boolean validateName(String value); + boolean validateOptional(boolean value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/CascadeTypeValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/CascadeTypeValidator.java new file mode 100755 index 000000000..025cea24c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/CascadeTypeValidator.java @@ -0,0 +1,25 @@ +/** + * <copyright> + * </copyright> + * + * $Id: CascadeTypeValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.EmptyType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.CascadeType}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface CascadeTypeValidator { + boolean validate(); + + boolean validateCascadeAll(EmptyType value); + boolean validateCascadePersist(EmptyType value); + boolean validateCascadeMerge(EmptyType value); + boolean validateCascadeRemove(EmptyType value); + boolean validateCascadeRefresh(EmptyType value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ColumnResultValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ColumnResultValidator.java new file mode 100755 index 000000000..d255ca601 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ColumnResultValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ColumnResultValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.ColumnResult}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ColumnResultValidator { + boolean validate(); + + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ColumnValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ColumnValidator.java new file mode 100755 index 000000000..60bcfc7d3 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ColumnValidator.java @@ -0,0 +1,29 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ColumnValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Column}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ColumnValidator { + boolean validate(); + + boolean validateColumnDefinition(String value); + boolean validateInsertable(boolean value); + boolean validateLength(int value); + boolean validateName(String value); + boolean validateNullable(boolean value); + boolean validatePrecision(int value); + boolean validateScale(int value); + boolean validateTable(String value); + boolean validateUnique(boolean value); + boolean validateUpdatable(boolean value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/DiscriminatorColumnValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/DiscriminatorColumnValidator.java new file mode 100755 index 000000000..4f61132e7 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/DiscriminatorColumnValidator.java @@ -0,0 +1,24 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DiscriminatorColumnValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.DiscriminatorType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface DiscriminatorColumnValidator { + boolean validate(); + + boolean validateColumnDefinition(String value); + boolean validateDiscriminatorType(DiscriminatorType value); + boolean validateLength(int value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/DocumentRootValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/DocumentRootValidator.java new file mode 100755 index 000000000..095dc579f --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/DocumentRootValidator.java @@ -0,0 +1,28 @@ +/** + * <copyright> + * </copyright> + * + * $Id: DocumentRootValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EMap; + +import org.eclipse.emf.ecore.util.FeatureMap; + +import org.eclipse.emf.teneo.jpa.orm.EntityMappingsType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.DocumentRoot}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface DocumentRootValidator { + boolean validate(); + + boolean validateMixed(FeatureMap value); + boolean validateXMLNSPrefixMap(EMap<String, String> value); + boolean validateXSISchemaLocation(EMap<String, String> value); + boolean validateEntityMappings(EntityMappingsType value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddableAttributesValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddableAttributesValidator.java new file mode 100755 index 000000000..0dd57e5de --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddableAttributesValidator.java @@ -0,0 +1,25 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddableAttributesValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.Basic; +import org.eclipse.emf.teneo.jpa.orm.Transient; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EmbeddableAttributesValidator { + boolean validate(); + + boolean validateBasic(EList<Basic> value); + boolean validateTransient(EList<Transient> value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddableValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddableValidator.java new file mode 100755 index 000000000..eb9e6fb1b --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddableValidator.java @@ -0,0 +1,26 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddableValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.EmbeddableAttributes; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Embeddable}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EmbeddableValidator { + boolean validate(); + + boolean validateDescription(String value); + boolean validateAttributes(EmbeddableAttributes value); + boolean validateAccess(AccessType value); + boolean validateClass(String value); + boolean validateMetadataComplete(boolean value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddedIdValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddedIdValidator.java new file mode 100755 index 000000000..06eda33bb --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddedIdValidator.java @@ -0,0 +1,24 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddedIdValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.EmbeddedId}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EmbeddedIdValidator { + boolean validate(); + + boolean validateAttributeOverride(EList<AttributeOverride> value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddedValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddedValidator.java new file mode 100755 index 000000000..9fc19abd0 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmbeddedValidator.java @@ -0,0 +1,24 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmbeddedValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Embedded}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EmbeddedValidator { + boolean validate(); + + boolean validateAttributeOverride(EList<AttributeOverride> value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmptyTypeValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmptyTypeValidator.java new file mode 100755 index 000000000..ae24698b5 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EmptyTypeValidator.java @@ -0,0 +1,19 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EmptyTypeValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.EmptyType}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EmptyTypeValidator { + boolean validate(); + +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityListenerValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityListenerValidator.java new file mode 100755 index 000000000..4c7a19e4d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityListenerValidator.java @@ -0,0 +1,34 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityListenerValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.PostLoad; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.EntityListener}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EntityListenerValidator { + boolean validate(); + + boolean validatePrePersist(PrePersist value); + boolean validatePostPersist(PostPersist value); + boolean validatePreRemove(PreRemove value); + boolean validatePostRemove(PostRemove value); + boolean validatePreUpdate(PreUpdate value); + boolean validatePostUpdate(PostUpdate value); + boolean validatePostLoad(PostLoad value); + boolean validateClass(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityListenersValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityListenersValidator.java new file mode 100755 index 000000000..c4e18b598 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityListenersValidator.java @@ -0,0 +1,23 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityListenersValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.EntityListener; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.EntityListeners}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EntityListenersValidator { + boolean validate(); + + boolean validateEntityListener(EList<EntityListener> value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityMappingsTypeValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityMappingsTypeValidator.java new file mode 100755 index 000000000..4a3a9cc61 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityMappingsTypeValidator.java @@ -0,0 +1,46 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityMappingsTypeValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.Embeddable; +import org.eclipse.emf.teneo.jpa.orm.Entity; +import org.eclipse.emf.teneo.jpa.orm.MappedSuperclass; +import org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery; +import org.eclipse.emf.teneo.jpa.orm.NamedQuery; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; +import org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.EntityMappingsType}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EntityMappingsTypeValidator { + boolean validate(); + + boolean validateDescription(String value); + boolean validatePersistenceUnitMetadata(PersistenceUnitMetadata value); + boolean validatePackage(String value); + boolean validateSchema(String value); + boolean validateCatalog(String value); + boolean validateAccess(AccessType value); + boolean validateSequenceGenerator(EList<SequenceGenerator> value); + boolean validateTableGenerator(EList<TableGenerator> value); + boolean validateNamedQuery(EList<NamedQuery> value); + boolean validateNamedNativeQuery(EList<NamedNativeQuery> value); + boolean validateSqlResultSetMapping(EList<SqlResultSetMapping> value); + boolean validateMappedSuperclass(EList<MappedSuperclass> value); + boolean validateEntity(EList<Entity> value); + boolean validateEmbeddable(EList<Embeddable> value); + boolean validateVersion(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityResultValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityResultValidator.java new file mode 100755 index 000000000..7399a657c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityResultValidator.java @@ -0,0 +1,25 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityResultValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.FieldResult; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.EntityResult}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EntityResultValidator { + boolean validate(); + + boolean validateFieldResult(EList<FieldResult> value); + boolean validateDiscriminatorColumn(String value); + boolean validateEntityClass(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityValidator.java new file mode 100755 index 000000000..dd97822d7 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/EntityValidator.java @@ -0,0 +1,75 @@ +/** + * <copyright> + * </copyright> + * + * $Id: EntityValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.AssociationOverride; +import org.eclipse.emf.teneo.jpa.orm.AttributeOverride; +import org.eclipse.emf.teneo.jpa.orm.Attributes; +import org.eclipse.emf.teneo.jpa.orm.DiscriminatorColumn; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; +import org.eclipse.emf.teneo.jpa.orm.IdClass; +import org.eclipse.emf.teneo.jpa.orm.Inheritance; +import org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery; +import org.eclipse.emf.teneo.jpa.orm.NamedQuery; +import org.eclipse.emf.teneo.jpa.orm.PostLoad; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; +import org.eclipse.emf.teneo.jpa.orm.SecondaryTable; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; +import org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping; +import org.eclipse.emf.teneo.jpa.orm.Table; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Entity}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface EntityValidator { + boolean validate(); + + boolean validateDescription(String value); + boolean validateTable(Table value); + boolean validateSecondaryTable(EList<SecondaryTable> value); + boolean validatePrimaryKeyJoinColumn(EList<PrimaryKeyJoinColumn> value); + boolean validateIdClass(IdClass value); + boolean validateInheritance(Inheritance value); + boolean validateDiscriminatorValue(String value); + boolean validateDiscriminatorColumn(DiscriminatorColumn value); + boolean validateSequenceGenerator(SequenceGenerator value); + boolean validateTableGenerator(TableGenerator value); + boolean validateNamedQuery(EList<NamedQuery> value); + boolean validateNamedNativeQuery(EList<NamedNativeQuery> value); + boolean validateSqlResultSetMapping(EList<SqlResultSetMapping> value); + boolean validateExcludeDefaultListeners(EmptyType value); + boolean validateExcludeSuperclassListeners(EmptyType value); + boolean validateEntityListeners(EntityListeners value); + boolean validatePrePersist(PrePersist value); + boolean validatePostPersist(PostPersist value); + boolean validatePreRemove(PreRemove value); + boolean validatePostRemove(PostRemove value); + boolean validatePreUpdate(PreUpdate value); + boolean validatePostUpdate(PostUpdate value); + boolean validatePostLoad(PostLoad value); + boolean validateAttributeOverride(EList<AttributeOverride> value); + boolean validateAssociationOverride(EList<AssociationOverride> value); + boolean validateAttributes(Attributes value); + boolean validateAccess(AccessType value); + boolean validateClass(String value); + boolean validateMetadataComplete(boolean value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/FieldResultValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/FieldResultValidator.java new file mode 100755 index 000000000..760f22dd6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/FieldResultValidator.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: FieldResultValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.FieldResult}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface FieldResultValidator { + boolean validate(); + + boolean validateColumn(String value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/GeneratedValueValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/GeneratedValueValidator.java new file mode 100755 index 000000000..064610785 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/GeneratedValueValidator.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: GeneratedValueValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.GenerationType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.GeneratedValue}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface GeneratedValueValidator { + boolean validate(); + + boolean validateGenerator(String value); + boolean validateStrategy(GenerationType value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/IdClassValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/IdClassValidator.java new file mode 100755 index 000000000..48e7e39e8 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/IdClassValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: IdClassValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.IdClass}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface IdClassValidator { + boolean validate(); + + boolean validateClass(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/IdValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/IdValidator.java new file mode 100755 index 000000000..ba4225673 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/IdValidator.java @@ -0,0 +1,30 @@ +/** + * <copyright> + * </copyright> + * + * $Id: IdValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.GeneratedValue; +import org.eclipse.emf.teneo.jpa.orm.SequenceGenerator; +import org.eclipse.emf.teneo.jpa.orm.TableGenerator; +import org.eclipse.emf.teneo.jpa.orm.TemporalType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Id}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface IdValidator { + boolean validate(); + + boolean validateColumn(Column value); + boolean validateGeneratedValue(GeneratedValue value); + boolean validateTemporal(TemporalType value); + boolean validateTableGenerator(TableGenerator value); + boolean validateSequenceGenerator(SequenceGenerator value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/InheritanceValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/InheritanceValidator.java new file mode 100755 index 000000000..ae4800174 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/InheritanceValidator.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: InheritanceValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.InheritanceType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Inheritance}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface InheritanceValidator { + boolean validate(); + + boolean validateStrategy(InheritanceType value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/JoinColumnValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/JoinColumnValidator.java new file mode 100755 index 000000000..f6c9dfa24 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/JoinColumnValidator.java @@ -0,0 +1,27 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JoinColumnValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.JoinColumn}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface JoinColumnValidator { + boolean validate(); + + boolean validateColumnDefinition(String value); + boolean validateInsertable(boolean value); + boolean validateName(String value); + boolean validateNullable(boolean value); + boolean validateReferencedColumnName(String value); + boolean validateTable(String value); + boolean validateUnique(boolean value); + boolean validateUpdatable(boolean value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/JoinTableValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/JoinTableValidator.java new file mode 100755 index 000000000..52183ee23 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/JoinTableValidator.java @@ -0,0 +1,29 @@ +/** + * <copyright> + * </copyright> + * + * $Id: JoinTableValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.JoinTable}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface JoinTableValidator { + boolean validate(); + + boolean validateJoinColumn(EList<JoinColumn> value); + boolean validateInverseJoinColumn(EList<JoinColumn> value); + boolean validateUniqueConstraint(EList<UniqueConstraint> value); + boolean validateCatalog(String value); + boolean validateName(String value); + boolean validateSchema(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/LobValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/LobValidator.java new file mode 100755 index 000000000..5a49aaae7 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/LobValidator.java @@ -0,0 +1,19 @@ +/** + * <copyright> + * </copyright> + * + * $Id: LobValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Lob}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface LobValidator { + boolean validate(); + +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ManyToManyValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ManyToManyValidator.java new file mode 100755 index 000000000..e7699a6c2 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ManyToManyValidator.java @@ -0,0 +1,31 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ManyToManyValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.MapKey; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.ManyToMany}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ManyToManyValidator { + boolean validate(); + + boolean validateOrderBy(String value); + boolean validateMapKey(MapKey value); + boolean validateJoinTable(JoinTable value); + boolean validateCascade(CascadeType value); + boolean validateFetch(FetchType value); + boolean validateMappedBy(String value); + boolean validateName(String value); + boolean validateTargetEntity(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ManyToOneValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ManyToOneValidator.java new file mode 100755 index 000000000..abe9661bc --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/ManyToOneValidator.java @@ -0,0 +1,32 @@ +/** + * <copyright> + * </copyright> + * + * $Id: ManyToOneValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.ManyToOne}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface ManyToOneValidator { + boolean validate(); + + boolean validateJoinColumn(EList<JoinColumn> value); + boolean validateJoinTable(JoinTable value); + boolean validateCascade(CascadeType value); + boolean validateFetch(FetchType value); + boolean validateName(String value); + boolean validateOptional(boolean value); + boolean validateTargetEntity(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/MapKeyValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/MapKeyValidator.java new file mode 100755 index 000000000..28ec030e8 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/MapKeyValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: MapKeyValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.MapKey}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface MapKeyValidator { + boolean validate(); + + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/MappedSuperclassValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/MappedSuperclassValidator.java new file mode 100755 index 000000000..4a958298e --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/MappedSuperclassValidator.java @@ -0,0 +1,47 @@ +/** + * <copyright> + * </copyright> + * + * $Id: MappedSuperclassValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.Attributes; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; +import org.eclipse.emf.teneo.jpa.orm.IdClass; +import org.eclipse.emf.teneo.jpa.orm.PostLoad; +import org.eclipse.emf.teneo.jpa.orm.PostPersist; +import org.eclipse.emf.teneo.jpa.orm.PostRemove; +import org.eclipse.emf.teneo.jpa.orm.PostUpdate; +import org.eclipse.emf.teneo.jpa.orm.PrePersist; +import org.eclipse.emf.teneo.jpa.orm.PreRemove; +import org.eclipse.emf.teneo.jpa.orm.PreUpdate; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.MappedSuperclass}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface MappedSuperclassValidator { + boolean validate(); + + boolean validateDescription(String value); + boolean validateIdClass(IdClass value); + boolean validateExcludeDefaultListeners(EmptyType value); + boolean validateExcludeSuperclassListeners(EmptyType value); + boolean validateEntityListeners(EntityListeners value); + boolean validatePrePersist(PrePersist value); + boolean validatePostPersist(PostPersist value); + boolean validatePreRemove(PreRemove value); + boolean validatePostRemove(PostRemove value); + boolean validatePreUpdate(PreUpdate value); + boolean validatePostUpdate(PostUpdate value); + boolean validatePostLoad(PostLoad value); + boolean validateAttributes(Attributes value); + boolean validateAccess(AccessType value); + boolean validateClass(String value); + boolean validateMetadataComplete(boolean value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/NamedNativeQueryValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/NamedNativeQueryValidator.java new file mode 100755 index 000000000..ba0c4a87b --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/NamedNativeQueryValidator.java @@ -0,0 +1,27 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NamedNativeQueryValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.QueryHint; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.NamedNativeQuery}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface NamedNativeQueryValidator { + boolean validate(); + + boolean validateQuery(String value); + boolean validateHint(EList<QueryHint> value); + boolean validateName(String value); + boolean validateResultClass(String value); + boolean validateResultSetMapping(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/NamedQueryValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/NamedQueryValidator.java new file mode 100755 index 000000000..0c14af1d6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/NamedQueryValidator.java @@ -0,0 +1,25 @@ +/** + * <copyright> + * </copyright> + * + * $Id: NamedQueryValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.QueryHint; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.NamedQuery}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface NamedQueryValidator { + boolean validate(); + + boolean validateQuery(String value); + boolean validateHint(EList<QueryHint> value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/OneToManyValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/OneToManyValidator.java new file mode 100755 index 000000000..0e52bd308 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/OneToManyValidator.java @@ -0,0 +1,35 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OneToManyValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.MapKey; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.OneToMany}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface OneToManyValidator { + boolean validate(); + + boolean validateOrderBy(String value); + boolean validateMapKey(MapKey value); + boolean validateJoinTable(JoinTable value); + boolean validateJoinColumn(EList<JoinColumn> value); + boolean validateCascade(CascadeType value); + boolean validateFetch(FetchType value); + boolean validateMappedBy(String value); + boolean validateName(String value); + boolean validateTargetEntity(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/OneToOneValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/OneToOneValidator.java new file mode 100755 index 000000000..322594193 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/OneToOneValidator.java @@ -0,0 +1,35 @@ +/** + * <copyright> + * </copyright> + * + * $Id: OneToOneValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.CascadeType; +import org.eclipse.emf.teneo.jpa.orm.FetchType; +import org.eclipse.emf.teneo.jpa.orm.JoinColumn; +import org.eclipse.emf.teneo.jpa.orm.JoinTable; +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.OneToOne}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface OneToOneValidator { + boolean validate(); + + boolean validatePrimaryKeyJoinColumn(EList<PrimaryKeyJoinColumn> value); + boolean validateJoinColumn(EList<JoinColumn> value); + boolean validateJoinTable(JoinTable value); + boolean validateCascade(CascadeType value); + boolean validateFetch(FetchType value); + boolean validateMappedBy(String value); + boolean validateName(String value); + boolean validateOptional(boolean value); + boolean validateTargetEntity(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PersistenceUnitDefaultsValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PersistenceUnitDefaultsValidator.java new file mode 100755 index 000000000..f37b651a6 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PersistenceUnitDefaultsValidator.java @@ -0,0 +1,27 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PersistenceUnitDefaultsValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.AccessType; +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.EntityListeners; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PersistenceUnitDefaultsValidator { + boolean validate(); + + boolean validateSchema(String value); + boolean validateCatalog(String value); + boolean validateAccess(AccessType value); + boolean validateCascadePersist(EmptyType value); + boolean validateEntityListeners(EntityListeners value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PersistenceUnitMetadataValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PersistenceUnitMetadataValidator.java new file mode 100755 index 000000000..3fa56b3bd --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PersistenceUnitMetadataValidator.java @@ -0,0 +1,23 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PersistenceUnitMetadataValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.EmptyType; +import org.eclipse.emf.teneo.jpa.orm.PersistenceUnitDefaults; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PersistenceUnitMetadata}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PersistenceUnitMetadataValidator { + boolean validate(); + + boolean validateXmlMappingMetadataComplete(EmptyType value); + boolean validatePersistenceUnitDefaults(PersistenceUnitDefaults value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostLoadValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostLoadValidator.java new file mode 100755 index 000000000..cbf3526b0 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostLoadValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostLoadValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PostLoad}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PostLoadValidator { + boolean validate(); + + boolean validateMethodName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostPersistValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostPersistValidator.java new file mode 100755 index 000000000..0bbf9974e --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostPersistValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostPersistValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PostPersist}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PostPersistValidator { + boolean validate(); + + boolean validateMethodName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostRemoveValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostRemoveValidator.java new file mode 100755 index 000000000..d825b0747 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostRemoveValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostRemoveValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PostRemove}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PostRemoveValidator { + boolean validate(); + + boolean validateMethodName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostUpdateValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostUpdateValidator.java new file mode 100755 index 000000000..b5878a600 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PostUpdateValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PostUpdateValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PostUpdate}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PostUpdateValidator { + boolean validate(); + + boolean validateMethodName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PrePersistValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PrePersistValidator.java new file mode 100755 index 000000000..b8256decb --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PrePersistValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PrePersistValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PrePersist}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PrePersistValidator { + boolean validate(); + + boolean validateMethodName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PreRemoveValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PreRemoveValidator.java new file mode 100755 index 000000000..573615efd --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PreRemoveValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PreRemoveValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PreRemove}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PreRemoveValidator { + boolean validate(); + + boolean validateMethodName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PreUpdateValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PreUpdateValidator.java new file mode 100755 index 000000000..0abf3ec89 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PreUpdateValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PreUpdateValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PreUpdate}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PreUpdateValidator { + boolean validate(); + + boolean validateMethodName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PrimaryKeyJoinColumnValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PrimaryKeyJoinColumnValidator.java new file mode 100755 index 000000000..626f2cd5d --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/PrimaryKeyJoinColumnValidator.java @@ -0,0 +1,22 @@ +/** + * <copyright> + * </copyright> + * + * $Id: PrimaryKeyJoinColumnValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface PrimaryKeyJoinColumnValidator { + boolean validate(); + + boolean validateColumnDefinition(String value); + boolean validateName(String value); + boolean validateReferencedColumnName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/QueryHintValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/QueryHintValidator.java new file mode 100755 index 000000000..e15cc665c --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/QueryHintValidator.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: QueryHintValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.QueryHint}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface QueryHintValidator { + boolean validate(); + + boolean validateName(String value); + boolean validateValue(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SecondaryTableValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SecondaryTableValidator.java new file mode 100755 index 000000000..8051747b0 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SecondaryTableValidator.java @@ -0,0 +1,28 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SecondaryTableValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.PrimaryKeyJoinColumn; +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.SecondaryTable}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface SecondaryTableValidator { + boolean validate(); + + boolean validatePrimaryKeyJoinColumn(EList<PrimaryKeyJoinColumn> value); + boolean validateUniqueConstraint(EList<UniqueConstraint> value); + boolean validateCatalog(String value); + boolean validateName(String value); + boolean validateSchema(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SequenceGeneratorValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SequenceGeneratorValidator.java new file mode 100755 index 000000000..33917ef62 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SequenceGeneratorValidator.java @@ -0,0 +1,23 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SequenceGeneratorValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.SequenceGenerator}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface SequenceGeneratorValidator { + boolean validate(); + + boolean validateAllocationSize(int value); + boolean validateInitialValue(int value); + boolean validateName(String value); + boolean validateSequenceName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SqlResultSetMappingValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SqlResultSetMappingValidator.java new file mode 100755 index 000000000..7f462a038 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/SqlResultSetMappingValidator.java @@ -0,0 +1,26 @@ +/** + * <copyright> + * </copyright> + * + * $Id: SqlResultSetMappingValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.ColumnResult; +import org.eclipse.emf.teneo.jpa.orm.EntityResult; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.SqlResultSetMapping}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface SqlResultSetMappingValidator { + boolean validate(); + + boolean validateEntityResult(EList<EntityResult> value); + boolean validateColumnResult(EList<ColumnResult> value); + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TableGeneratorValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TableGeneratorValidator.java new file mode 100755 index 000000000..9e894fb8b --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TableGeneratorValidator.java @@ -0,0 +1,32 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TableGeneratorValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.TableGenerator}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface TableGeneratorValidator { + boolean validate(); + + boolean validateUniqueConstraint(EList<UniqueConstraint> value); + boolean validateAllocationSize(int value); + boolean validateCatalog(String value); + boolean validateInitialValue(int value); + boolean validateName(String value); + boolean validatePkColumnName(String value); + boolean validatePkColumnValue(String value); + boolean validateSchema(String value); + boolean validateTable(String value); + boolean validateValueColumnName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TableValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TableValidator.java new file mode 100755 index 000000000..7a7f9e6c5 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TableValidator.java @@ -0,0 +1,26 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TableValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.emf.teneo.jpa.orm.UniqueConstraint; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Table}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface TableValidator { + boolean validate(); + + boolean validateUniqueConstraint(EList<UniqueConstraint> value); + boolean validateCatalog(String value); + boolean validateName(String value); + boolean validateSchema(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TransientValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TransientValidator.java new file mode 100755 index 000000000..7f57f6429 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/TransientValidator.java @@ -0,0 +1,20 @@ +/** + * <copyright> + * </copyright> + * + * $Id: TransientValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Transient}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface TransientValidator { + boolean validate(); + + boolean validateName(String value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/UniqueConstraintValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/UniqueConstraintValidator.java new file mode 100755 index 000000000..5b8200dce --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/UniqueConstraintValidator.java @@ -0,0 +1,21 @@ +/** + * <copyright> + * </copyright> + * + * $Id: UniqueConstraintValidator.java,v 1.1 2009/07/23 11:16:28 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.common.util.EList; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.UniqueConstraint}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface UniqueConstraintValidator { + boolean validate(); + + boolean validateColumnName(EList<String> value); +} diff --git a/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/VersionValidator.java b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/VersionValidator.java new file mode 100755 index 000000000..9718d5aa4 --- /dev/null +++ b/eclipselink/org.eclipse.emf.teneo.orm/src/org/eclipse/emf/teneo/jpa/orm/validation/VersionValidator.java @@ -0,0 +1,24 @@ +/** + * <copyright> + * </copyright> + * + * $Id: VersionValidator.java,v 1.1 2009/07/23 11:16:29 mtaal Exp $ + */ +package org.eclipse.emf.teneo.jpa.orm.validation; + +import org.eclipse.emf.teneo.jpa.orm.Column; +import org.eclipse.emf.teneo.jpa.orm.TemporalType; + +/** + * A sample validator interface for {@link org.eclipse.emf.teneo.jpa.orm.Version}. + * This doesn't really do anything, and it's not a real EMF artifact. + * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended. + * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false. + */ +public interface VersionValidator { + boolean validate(); + + boolean validateColumn(Column value); + boolean validateTemporal(TemporalType value); + boolean validateName(String value); +} |