01: package org.andromda.cartridges.ejb.metafacades;
02:
03: /**
04: * <p/>
05: * Represents an EJB association end. </p> Metaclass facade implementation.
06: */
07: public class EJBAssociationEndFacadeLogicImpl extends
08: EJBAssociationEndFacadeLogic {
09: // ---------------- constructor -------------------------------
10:
11: public EJBAssociationEndFacadeLogicImpl(
12: java.lang.Object metaObject, String context) {
13: super (metaObject, context);
14: }
15:
16: public String handleGetRelationType() {
17: String targetType;
18: if (this .isMany2Many() || this .isOne2Many()) {
19: targetType = "java.util.Collection";
20: } else {
21: targetType = this .getOtherEnd().getType()
22: .getFullyQualifiedName();
23: }
24: return targetType;
25: }
26:
27: // ------------- relations ------------------
28:
29: }
|