Class RelationRoleDescriptor

java.lang.Object
java.util.Observable
org.glassfish.deployment.common.DynamicAttributesDescriptor
org.glassfish.deployment.common.Descriptor
org.glassfish.ejb.deployment.descriptor.RelationRoleDescriptor
All Implemented Interfaces:
Serializable

public final class RelationRoleDescriptor extends org.glassfish.deployment.common.Descriptor
This class contains information about one of the partners in a relationship between EJB2.0 CMP EntityBeans. It represents information in the invalid input: '<'ejb-relation-role> XML element.
Author:
Sanjeev Krishnan
See Also:
  • Constructor Details

    • RelationRoleDescriptor

      public RelationRoleDescriptor()
  • Method Details

    • getPersistenceDescriptor

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

      public void setPersistenceDescriptor(PersistenceDescriptor newPers)
      Can be set to null if there is no associated persistence descriptor.
    • getRelationshipDescriptor

      public RelationshipDescriptor getRelationshipDescriptor()
    • setRelationshipDescriptor

      public void setRelationshipDescriptor(RelationshipDescriptor relnDesc)
    • setOwner

      public void setOwner(EjbCMPEntityDescriptor owner)
    • getOwner

      public EjbCMPEntityDescriptor getOwner()
    • getPartner

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

      public void setPartner(RelationRoleDescriptor partner)
    • 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)
    • getCMRFieldInfo

      public CMRFieldInfo getCMRFieldInfo()
    • composeReverseCmrFieldName

      public String composeReverseCmrFieldName()