/** * Gets the relationship role name * * @return the role name */ public String getRelationshipRoleName() { return getDelegate().getEjbRelationshipRoleName(); }
/** * Checks if the multiplicity is many. * * @return true when multiplicity many */ public boolean isMultiplicityMany() { return getDelegate().isMultiplicityMany(); }
/** * Should this entity be deleted when related entity is deleted. * * @return true when cascaded delete */ public boolean isCascadeDelete() { return getDelegate().isCascadedDelete(); }
/** * Checks if the multiplicity is one. * * @return true when it is one */ public boolean isMultiplicityOne() { return getDelegate().isMultiplicityOne(); }
/** * Checks if the multiplicity is many. * * @return true when multiplicity many */ public boolean isMultiplicityMany() { return getDelegate().isMultiplicityMany(); }
/** * Checks if the multiplicity is one. * * @return true when it is one */ public boolean isMultiplicityOne() { return getDelegate().isMultiplicityOne(); }
/** * Gets the relationship role name * * @return the role name */ public String getRelationshipRoleName() { return getDelegate().getEjbRelationshipRoleName(); }
/** * Should this entity be deleted when related entity is deleted. * * @return true when cascaded delete */ public boolean isCascadeDelete() { return getDelegate().isCascadedDelete(); }
/** * Gets the type of the cmr field (i.e., collection or set) * * @return the field type */ public String getCMRFieldType() { CMRFieldMetaData cmrField = getDelegate().getCmrField(); return cmrField == null ? null : cmrField.getCmrFieldType(); } }
/** * Gets the name of the entity's cmr field for this role. * * @return the cmr field */ public String getCMRFieldName() { CMRFieldMetaData cmrField = getDelegate().getCmrField(); return cmrField == null ? null : cmrField.getCmrFieldName(); }
/** * Gets the type of the cmr field (i.e., collection or set) * * @return the field type */ public String getCMRFieldType() { CMRFieldMetaData cmrField = getDelegate().getCmrField(); return cmrField == null ? null : cmrField.getCmrFieldType(); } }
/** * 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 name of the entity's cmr field for this role. * * @return the cmr field */ public String getCMRFieldName() { CMRFieldMetaData cmrField = getDelegate().getCmrField(); return cmrField == null ? null : cmrField.getCmrFieldName(); }
/** * 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 related role's metadata * * @return the related role */ public RelationshipRoleMetaData getRelatedRoleMetaData() { return new RelationshipRoleMetaData(getDelegate().getRelatedRole()); }
/** * Gets the name of the entity that has this role. * * @return the name */ public String getEntityName() { return getDelegate().getRoleSource().getEjbName(); }
/** * Gets the related role's metadata * * @return the related role */ public RelationshipRoleMetaData getRelatedRoleMetaData() { return new RelationshipRoleMetaData(getDelegate().getRelatedRole()); }
/** * Gets the name of the entity that has this role. * * @return the name */ public String getEntityName() { return getDelegate().getRoleSource().getEjbName(); }
/** * 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)); } }