com.sun.enterprise.deployment
Class RelationRoleDescriptor

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.RelationRoleDescriptor
All Implemented Interfaces:
java.io.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

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
RelationRoleDescriptor()
           
 
Method Summary
 java.lang.String composeReverseCmrFieldName()
           
 boolean getCascadeDelete()
           
 java.lang.String getCMRField()
           
 java.lang.String getCMRFieldDescription()
           
 CMRFieldInfo getCMRFieldInfo()
           
 java.lang.String getCMRFieldType()
           
 boolean getIsMany()
           
 EjbCMPEntityDescriptor getOwner()
           
 RelationRoleDescriptor getPartner()
          The other role in the relationship I participate in.
 PersistenceDescriptor getPersistenceDescriptor()
          May return null if the role-source for this relationship role is a remote-ejb-name
 java.lang.String getRelationRoleName()
           
 RelationshipDescriptor getRelationshipDescriptor()
           
 java.lang.String getRoleSourceDescription()
           
 void setCascadeDelete(boolean cascadeDelete)
           
 void setCMRField(java.lang.String cmrField)
          Set to NULL to indicate no cmr field
 void setCMRFieldDescription(java.lang.String cmrFieldDescription)
           
 void setCMRFieldInfo(CMRFieldInfo cmrFieldInfo)
           
 void setCMRFieldType(java.lang.String newCmrFieldType)
          Only applicable when partner is collection-valued.
 void setIsMany(boolean isMany)
           
 void setOwner(EjbCMPEntityDescriptor owner)
           
 void setPartner(RelationRoleDescriptor partner)
           
 void setPersistenceDescriptor(PersistenceDescriptor newPers)
           
 void setRelationRoleName(java.lang.String relationRoleName)
           
 void setRelationshipDescriptor(RelationshipDescriptor relnDesc)
           
 void setRoleSourceDescription(java.lang.String roleSourceDescription)
           
 
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, print, 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

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


setPersistenceDescriptor

public void setPersistenceDescriptor(PersistenceDescriptor newPers)

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 java.lang.String getRelationRoleName()

setRelationRoleName

public void setRelationRoleName(java.lang.String relationRoleName)

setRoleSourceDescription

public void setRoleSourceDescription(java.lang.String roleSourceDescription)

getRoleSourceDescription

public java.lang.String getRoleSourceDescription()

setCMRField

public void setCMRField(java.lang.String cmrField)
Set to NULL to indicate no cmr field


getCMRField

public java.lang.String getCMRField()

setCMRFieldDescription

public void setCMRFieldDescription(java.lang.String cmrFieldDescription)

getCMRFieldDescription

public java.lang.String getCMRFieldDescription()

setCMRFieldType

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


getCMRFieldType

public java.lang.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 java.lang.String composeReverseCmrFieldName()


Copyright © 2012 GlassFish Community. All Rights Reserved.