1 // license-header java merge-point
2 //
3 // Attention: generated code (by Metafacade.vsl) - do not modify!
4 //
5 package org.andromda.cartridges.ejb3.metafacades;
6
7 import org.andromda.metafacades.uml.ClassifierFacade;
8
9 /**
10 * Metafacade for a persistence context definition
11 *
12 * Metafacade interface to be used by AndroMDA cartridges.
13 */
14 public interface EJB3PersistenceContextFacade
15 extends ClassifierFacade
16 {
17 /**
18 * Indicates the metafacade type (used for metafacade mappings).
19 *
20 * @return boolean always <code>true</code>
21 */
22 public boolean isEJB3PersistenceContextFacadeMetaType();
23
24 /**
25 * Specifies whether the persistence context for this EntityManager is transaction scoped or
26 * extended. This is derived from the andromda.service.persistence.cotnext.unit.type tag on the
27 * PersistenceContext class referenced by dependency.
28 * @return String
29 */
30 public String getContextType();
31
32 /**
33 * Returns the datasource specified via the andromda.service.persistence.context.datasource tag
34 * on the PersistenceContext class referenced by dependency.
35 * @return String
36 */
37 public String getDatasource();
38
39 /**
40 * Returns the persistence context unit name for the injected EntityManger. This looks up the
41 * andromda.service.persistence.context.unit.name on the PersistenceContext class, referenced by
42 * dependency and is only required if multiple persistence units exists.
43 * @return String
44 */
45 public String getUnitName();
46 }