/** * Create a new RelationMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static RelationMetaData create(org.jboss.metadata.ejb.spec.RelationMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new RelationMetaData(delegate); }
/** * Gets the relation name. * Relation name is loaded from the ejb-relation-name element. * * @return the relation name */ public String getRelationName() { return getDelegate().getEjbRelationName(); }
throws DeploymentException RelationshipRoleMetaData leftRole = relationMetaData.getLeftRelationshipRole(); RelationshipRoleMetaData rightRole = relationMetaData.getRightRelationshipRole(); right.init(left); relationName = getNonNullRelationName(left, right, relationMetaData.getRelationName());
" not found for relation: " + role.getRelationMetaData().getRelationName());
/** * Gets the relation name. * Relation name is loaded from the ejb-relation-name element. * * @return the relation name */ public String getRelationName() { return getDelegate().getEjbRelationName(); }
/** * Create a new RelationMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static RelationMetaData create(org.jboss.metadata.ejb.spec.RelationMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new RelationMetaData(delegate); }
/** * Gets the left relationship role. * The relationship role is loaded from an ejb-relationship-role. * Left/right assignment is completely arbitrary. * * @return the left role */ public RelationshipRoleMetaData getLeftRelationshipRole() { return new RelationshipRoleMetaData(getDelegate().getLeftRole()); }
/** * Gets the relation meta data to which the role belongs. * * @return the relation to which the relationship role belongs */ public RelationMetaData getRelationMetaData() { return new RelationMetaData(getDelegate().getRelation()); }
/** * Gets the right relationship role. * The relationship role is loaded from an ejb-relationship-role. * Left/right assignment is completely arbitrary. * * @return the right role */ public RelationshipRoleMetaData getRightRelationshipRole() { return new RelationshipRoleMetaData(getDelegate().getRightRole()); }
/** * Gets the relation meta data to which the role belongs. * * @return the relation to which the relationship role belongs */ public RelationMetaData getRelationMetaData() { return new RelationMetaData(getDelegate().getRelation()); }
/** * Gets the right relationship role. * The relationship role is loaded from an ejb-relationship-role. * Left/right assignment is completely arbitrary. * * @return the right role */ public RelationshipRoleMetaData getRightRelationshipRole() { return new RelationshipRoleMetaData(getDelegate().getRightRole()); }
/** * Gets the left relationship role. * The relationship role is loaded from an ejb-relationship-role. * Left/right assignment is completely arbitrary. * * @return the left role */ public RelationshipRoleMetaData getLeftRelationshipRole() { return new RelationshipRoleMetaData(getDelegate().getLeftRole()); }
/** * Get the related role * * @param role the reference role * @return the related role * @throws IllegalArgumentException if the reference role is not a role in this relationship */ public RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role) { RelationRoleMetaData delegateRole = role.getDelegate(); return new RelationshipRoleMetaData(getDelegate().getRelatedRole(delegateRole)); } }
/** * Get the related role * * @param role the reference role * @return the related role * @throws IllegalArgumentException if the reference role is not a role in this relationship */ public RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role) { RelationRoleMetaData delegateRole = role.getDelegate(); return new RelationshipRoleMetaData(getDelegate().getRelatedRole(delegateRole)); } }