Examples of RelationshipsType


Examples of org.openejb.xml.ns.openejb_jar_2.RelationshipsType

          OpenejbJarType openejb = (OpenejbJarType)source;
            ResourceLocatorType locator = openejb.getCmpConnectionFactory();
            if (locator != null && isEmpty(locator.getResourceLink()) && isEmpty(locator.getUrl()) && isEmpty(locator.getPattern())) {
                openejb.setCmpConnectionFactory(null);
            }
            RelationshipsType relationships = openejb.getRelationships();
            if (relationships != null && relationships.getEjbRelation().size() == 0) {
                openejb.setRelationships(null);
            }
        }else if (source instanceof EjbRelationshipRoleType) {
          EjbRelationshipRoleType role = (EjbRelationshipRoleType)source;
            if (role.getRoleMapping() != null && role.getRoleMapping().getCmrFieldMapping().size() == 0) {
View Full Code Here

Examples of org.openejb.xml.ns.openejb_jar_2.RelationshipsType

            if (relation == null) {
                relation = (EjbRelationType)getEFactory().create(EjbRelationType.class);
                JAXBElement plan = section.getPlan();
               
                if (JAXBModelUtils.getEjbRelationships(plan) == null) {
                  RelationshipsType relationships = (RelationshipsType)getEFactory().create(RelationshipsType.class);

                    JAXBModelUtils.setEjbRelationships(plan, relationships);
                    ((EjbRelationSection)section).resetInput(relationships);
                }
                JAXBModelUtils.getEjbRelationships(plan).add(relation);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.