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 Descriptor
This class contains information about one of the partners in a relationship between EJB2.0 CMP EntityBeans. It represents information in theXML element. - Author:
- Sanjeev Krishnan
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
-
Constructor Summary
Constructors Constructor Description RelationRoleDescriptor()
-
Method Summary
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, 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 org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
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 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()
-
-