View Javadoc
1   package org.andromda.cartridges.ejb.metafacades;
2   
3   /**
4    * <p>
5    * Represents an EJB association end. </p> Metaclass facade implementation.
6    */
7   public class EJBAssociationEndFacadeLogicImpl
8           extends EJBAssociationEndFacadeLogic
9   {
10      private static final long serialVersionUID = 34L;
11      // ---------------- constructor -------------------------------
12  
13      /**
14       * @param metaObject
15       * @param context
16       */
17      public EJBAssociationEndFacadeLogicImpl(Object metaObject, String context)
18      {
19          super(metaObject, context);
20      }
21  
22      /**
23       * @see org.andromda.cartridges.ejb.metafacades.EJBAssociationEndFacadeLogic#handleGetRelationType()
24       */
25      public String handleGetRelationType()
26      {
27          String targetType;
28          if (this.isMany2Many() || this.isOne2Many())
29          {
30              targetType = "java.util.Collection";
31          }
32          else
33          {
34              targetType = this.getOtherEnd().getType().getFullyQualifiedName();
35          }
36          return targetType;
37      }
38  
39      // ------------- relations ------------------
40  
41  }