1 package org.andromda.cartridges.ejb.metafacades;
2
3
4
5
6
7 public class EJBAssociationEndFacadeLogicImpl
8 extends EJBAssociationEndFacadeLogic
9 {
10 private static final long serialVersionUID = 34L;
11
12
13
14
15
16
17 public EJBAssociationEndFacadeLogicImpl(Object metaObject, String context)
18 {
19 super(metaObject, context);
20 }
21
22
23
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
40
41 }