Class RelationshipDescriptor

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

public final class RelationshipDescriptor extends org.glassfish.deployment.common.Descriptor
This class contains information about relationships between EJB2.0 CMP EntityBeans. It represents information in the <ejb-relation> XML element.
Author:
Sanjeev Krishnan
See Also:
  • Constructor Details

    • RelationshipDescriptor

      public RelationshipDescriptor()
  • Method Details

    • isOneOne

      public boolean isOneOne()
    • isOneMany

      public boolean isOneMany()
    • isManyOne

      public boolean isManyOne()
    • isManyMany

      public boolean isManyMany()
    • hasParticipant

      public boolean hasParticipant(org.glassfish.deployment.common.Descriptor desc)
      Checks whether an EjbCMPEntityDescriptor is a participant in this relationship.
    • getSource

      public RelationRoleDescriptor getSource()
    • setSource

      public void setSource(RelationRoleDescriptor source)
    • setSink

      public void setSink(RelationRoleDescriptor sink)
    • getSink

      public RelationRoleDescriptor getSink()
    • setIsBidirectional

      public void setIsBidirectional(boolean isBidirectional)
    • getIsBidirectional

      public boolean getIsBidirectional()
    • print

      public void print(StringBuffer toStringBuffer)
      Overrides:
      print in class org.glassfish.deployment.common.Descriptor