View Javadoc
1   package org.andromda.cartridges.ejb3.metafacades;
2   
3   import org.andromda.cartridges.ejb3.EJB3Profile;
4   
5   /**
6    * MetafacadeLogic implementation for org.andromda.cartridges.ejb3.metafacades.EJB3PersistenceContextFacade.
7    *
8    * @see EJB3PersistenceContextFacade
9    */
10  public class EJB3PersistenceContextFacadeLogicImpl
11      extends EJB3PersistenceContextFacadeLogic
12  {
13      private static final long serialVersionUID = 34L;
14      /**
15       * @param metaObject
16       * @param context
17       */
18      public EJB3PersistenceContextFacadeLogicImpl(final Object metaObject, final String context)
19      {
20          super (metaObject, context);
21      }
22  
23      /**
24       * @see EJB3PersistenceContextFacade#getUnitName()
25       */
26      @Override
27      protected String handleGetUnitName()
28      {
29          return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_UNIT_NAME);
30      }
31  
32      /**
33       * @see EJB3PersistenceContextFacade#getContextType()
34       */
35      @Override
36      protected String handleGetContextType()
37      {
38          return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_TYPE);
39      }
40  
41      /**
42       * @see EJB3PersistenceContextFacadeLogic#handleGetDatasource()
43       */
44      @Override
45      protected String handleGetDatasource()
46      {
47          return (String)this.findTaggedValue(EJB3Profile.TAGGEDVALUE_EJB_PERSISTENCE_CONTEXT_DATASOURCE);
48      }
49  }