blob: d1efb51d891a2eb04f5042e948f5d480a8083701 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/**
* <copyright>
*
* Copyright (c) 2005, 2006, 2007, 2008 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: EntityNameStrategy.java,v 1.7 2010/02/06 18:25:46 mtaal Exp $
*/
package org.eclipse.emf.teneo.mapping.strategy;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.teneo.annotations.pamodel.PAnnotatedModel;
import org.eclipse.emf.teneo.extension.ExtensionManagerAware;
import org.eclipse.emf.teneo.extension.ExtensionPoint;
/**
* Converter from entityname to and from an eclass. The entityname is used in the hql, etc.
*
* @author <a href="mtaal@elver.org">Martin Taal</a>
* @version $Revision: 1.7 $
*/
public interface EntityNameStrategy extends ExtensionPoint, ExtensionManagerAware {
/** The EObject eclass */
public static EClass EOBJECT_ECLASS = (EClass) EcorePackage.eINSTANCE.getEClassifier("EObject");
/** The EObject eclass name */
public static String EOBJECT_ECLASS_NAME = EcorePackage.eINSTANCE.getName() + "_"
+ EOBJECT_ECLASS.getName();
/**
* Determines the name for a given EClass. This name can be used in jsf pages and queries.
*
* Note if the eClass is the EObject eclass then the string EOBJECT_ECLASS_NAME must be returned.
*/
public String toEntityName(EClass eClass);
/**
* Return the EClass for a certain name, searches in the array of epackages
*/
public EClass toEClass(String eClassName);
/**
* @param paModel
* the paModel to set
*/
public void setPaModel(PAnnotatedModel paModel);
}
|