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 <ejb-relation-role> XML element.
- Author:
- Sanjeev Krishnan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetOwner()The other role in the relationship I participate in.May return null if the role-source for this relationship role is a remote-ejb-namevoidsetCascadeDelete(boolean cascadeDelete) voidsetCMRField(String cmrField) Set to NULL to indicate no cmr fieldvoidsetCMRFieldDescription(String cmrFieldDescription) voidsetCMRFieldInfo(CMRFieldInfo cmrFieldInfo) voidsetCMRFieldType(String newCmrFieldType) Only applicable when partner is collection-valued.voidsetIsMany(boolean isMany) voidsetOwner(EjbCMPEntityDescriptor owner) voidsetPartner(RelationRoleDescriptor partner) voidCan be set to null if there is no associated persistence descriptor.voidsetRelationRoleName(String relationRoleName) voidvoidsetRoleSourceDescription(String roleSourceDescription) Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, print, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visitMethods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
RelationRoleDescriptor
public RelationRoleDescriptor()
-
-
Method Details
-
getPersistenceDescriptor
May return null if the role-source for this relationship role is a remote-ejb-name -
setPersistenceDescriptor
Can be set to null if there is no associated persistence descriptor. -
getRelationshipDescriptor
-
setRelationshipDescriptor
-
setOwner
-
getOwner
-
getPartner
The other role in the relationship I participate in. -
setPartner
-
getRelationRoleName
-
setRelationRoleName
-
setRoleSourceDescription
-
getRoleSourceDescription
-
setCMRField
Set to NULL to indicate no cmr field -
getCMRField
-
setCMRFieldDescription
-
getCMRFieldDescription
-
setCMRFieldType
Only applicable when partner is collection-valued. Set to NULL to indicate no field type is not applicable. -
getCMRFieldType
-
setIsMany
public void setIsMany(boolean isMany) -
getIsMany
public boolean getIsMany() -
setCascadeDelete
public void setCascadeDelete(boolean cascadeDelete) -
getCascadeDelete
public boolean getCascadeDelete() -
setCMRFieldInfo
-
getCMRFieldInfo
-
composeReverseCmrFieldName
-