com.sun.enterprise.deployment
Class RelationshipDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.RelationshipDescriptor
All Implemented Interfaces:
java.io.Serializable

public final class RelationshipDescriptor
extends Descriptor

This class contains information about relationships between EJB2.0 CMP EntityBeans. It represents information in the XML element.

Author:
Sanjeev Krishnan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
RelationshipDescriptor()
           
 
Method Summary
 boolean getIsBidirectional()
           
 RelationRoleDescriptor getSink()
           
 RelationRoleDescriptor getSource()
           
 boolean hasParticipant(Descriptor desc)
          Checks whether an EjbCMPEntityDescriptor is a participant in this relationship.
 boolean isManyMany()
           
 boolean isManyOne()
           
 boolean isOneMany()
           
 boolean isOneOne()
           
 void print(java.lang.StringBuffer toStringBuffer)
          A String representation of this object.
 void setIsBidirectional(boolean isBidirectional)
           
 void setSink(RelationRoleDescriptor sink)
           
 void setSource(RelationRoleDescriptor source)
           
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationshipDescriptor

public RelationshipDescriptor()
Method Detail

isOneOne

public boolean isOneOne()

isOneMany

public boolean isOneMany()

isManyOne

public boolean isManyOne()

isManyMany

public boolean isManyMany()

hasParticipant

public boolean hasParticipant(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(java.lang.StringBuffer toStringBuffer)
Description copied from class: Descriptor
A String representation of this object.

Overrides:
print in class Descriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.