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      // ---------------- constructor -------------------------------
11  
12      public EJBAssociationEndFacadeLogicImpl(java.lang.Object metaObject, String context)
13      {
14          super(metaObject, context);
15      }
16  
17      public String handleGetRelationType()
18      {
19          String targetType;
20          if (this.isMany2Many() || this.isOne2Many())
21          {
22              targetType = "java.util.Collection";
23          }
24          else
25          {
26              targetType = this.getOtherEnd().getType().getFullyQualifiedName();
27          }
28          return targetType;
29      }
30  
31      // ------------- relations ------------------
32  
33  }