Class RelationRoleDescriptor

  • All Implemented Interfaces:
    Serializable

    public final class RelationRoleDescriptor
    extends Descriptor
    This class contains information about one of the partners in a relationship between EJB2.0 CMP EntityBeans. It represents information in the XML element.
    Author:
    Sanjeev Krishnan
    See Also:
    Serialized Form
    • Constructor Detail

      • RelationRoleDescriptor

        public RelationRoleDescriptor()
    • Method Detail

      • getPersistenceDescriptor

        public PersistenceDescriptor getPersistenceDescriptor()
        May return null if the role-source for this relationship role is a remote-ejb-name
      • getPartner

        public RelationRoleDescriptor getPartner()
        The other role in the relationship I participate in.
      • getRelationRoleName

        public String getRelationRoleName()
      • setRelationRoleName

        public void setRelationRoleName​(String relationRoleName)
      • setRoleSourceDescription

        public void setRoleSourceDescription​(String roleSourceDescription)
      • getRoleSourceDescription

        public String getRoleSourceDescription()
      • setCMRField

        public void setCMRField​(String cmrField)
        Set to NULL to indicate no cmr field
      • getCMRField

        public String getCMRField()
      • setCMRFieldDescription

        public void setCMRFieldDescription​(String cmrFieldDescription)
      • getCMRFieldDescription

        public String getCMRFieldDescription()
      • setCMRFieldType

        public void setCMRFieldType​(String newCmrFieldType)
        Only applicable when partner is collection-valued. Set to NULL to indicate no field type is not applicable.
      • getCMRFieldType

        public String getCMRFieldType()
      • setIsMany

        public void setIsMany​(boolean isMany)
      • getIsMany

        public boolean getIsMany()
      • setCascadeDelete

        public void setCascadeDelete​(boolean cascadeDelete)
      • getCascadeDelete

        public boolean getCascadeDelete()
      • setCMRFieldInfo

        public void setCMRFieldInfo​(CMRFieldInfo cmrFieldInfo)
      • composeReverseCmrFieldName

        public String composeReverseCmrFieldName()