Class EJBRelationshipRole
- java.lang.Object
-
- org.apache.openejb.jee.was.v6.ejb.EJBRelationshipRole
-
public class EJBRelationshipRole extends Object
- Since:
- J2EE1.3 The ejb-relationship-role element describes a role within a relationship. There are two roles in each relationship. The ejb-relationship-role element contains an optional description; an optional name for the relationship role; a specification of the multiplicity of the role; an optional specification of cascade-delete functionality for the role; the role source; and a declaration of the cmr-field, if any, by means of which the other side of the relationship is accessed from the perspective of the role source. The multiplicity and relationship-role-source element are mandatory. The relationship-role-source element designates an entity-bean by means of an ejb-name element. For bidirectional relationships, both roles of a relationship must declare a relationship-role-source element that specifies a cmr-field in terms of which the relationship is accessed. The lack of a cmr-field element in an ejb-relationship-role specifies that the relationship is unidirectional in navigability and that entity bean that participates in the relationship is "not aware" of the relationship.
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleancascadeDeleteprotected List<CMRField>cmrFieldsprotected Stringdescriptionprotected List<Description>descriptionsprotected List<Extension>extensionsprotected Stringhrefprotected Stringidprotected Objectidrefprotected Stringlabelprotected MultiplicityEnummultiplicityprotected StringroleNameprotected List<RoleSource>sourcesprotected QNametypeprotected Stringuuidprotected Stringversion
-
Constructor Summary
Constructors Constructor Description EJBRelationshipRole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CMRField>getCmrFields()Gets the value of the cmrFields property.StringgetDescription()Gets the value of the description property.List<Description>getDescriptions()Gets the value of the descriptions property.List<Extension>getExtensions()Gets the value of the extensions property.StringgetHref()Gets the value of the href property.StringgetId()Gets the value of the id property.ObjectgetIdref()Gets the value of the idref property.StringgetLabel()Gets the value of the label property.MultiplicityEnumgetMultiplicity()Gets the value of the multiplicity property.StringgetRoleName()Gets the value of the roleName property.List<RoleSource>getSources()Gets the value of the sources property.QNamegetType()Gets the value of the type property.StringgetUuid()Gets the value of the uuid property.StringgetVersion()Gets the value of the version property.BooleanisCascadeDelete()Gets the value of the cascadeDelete property.voidsetCascadeDelete(Boolean value)Sets the value of the cascadeDelete property.voidsetDescription(String value)Sets the value of the description property.voidsetHref(String value)Sets the value of the href property.voidsetId(String value)Sets the value of the id property.voidsetIdref(Object value)Sets the value of the idref property.voidsetLabel(String value)Sets the value of the label property.voidsetMultiplicity(MultiplicityEnum value)Sets the value of the multiplicity property.voidsetRoleName(String value)Sets the value of the roleName property.voidsetType(QName value)Sets the value of the type property.voidsetUuid(String value)Sets the value of the uuid property.voidsetVersion(String value)Sets the value of the version property.
-
-
-
Field Detail
-
sources
protected List<RoleSource> sources
-
descriptions
protected List<Description> descriptions
-
cascadeDelete
protected Boolean cascadeDelete
-
description
protected String description
-
multiplicity
protected MultiplicityEnum multiplicity
-
roleName
protected String roleName
-
id
protected String id
-
type
protected QName type
-
version
protected String version
-
href
protected String href
-
idref
protected Object idref
-
label
protected String label
-
uuid
protected String uuid
-
-
Method Detail
-
getSources
public List<RoleSource> getSources()
Gets the value of the sources property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the sources property. For example, to add a new item, do as follows:getSources().add(newItem);
Objects of the following type(s) are allowed in the listRoleSource
-
getCmrFields
public List<CMRField> getCmrFields()
Gets the value of the cmrFields property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the cmrFields property. For example, to add a new item, do as follows:getCmrFields().add(newItem);
Objects of the following type(s) are allowed in the listCMRField
-
getDescriptions
public List<Description> getDescriptions()
Gets the value of the descriptions property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the descriptions property. For example, to add a new item, do as follows:getDescriptions().add(newItem);
Objects of the following type(s) are allowed in the listDescription
-
getExtensions
public List<Extension> getExtensions()
Gets the value of the extensions property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the extensions property. For example, to add a new item, do as follows:getExtensions().add(newItem);
Objects of the following type(s) are allowed in the listExtension
-
isCascadeDelete
public Boolean isCascadeDelete()
Gets the value of the cascadeDelete property.- Returns:
- possible object is
Boolean
-
setCascadeDelete
public void setCascadeDelete(Boolean value)
Sets the value of the cascadeDelete property.- Parameters:
value- allowed object isBoolean
-
getDescription
public String getDescription()
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(String value)
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getMultiplicity
public MultiplicityEnum getMultiplicity()
Gets the value of the multiplicity property.- Returns:
- possible object is
MultiplicityEnum
-
setMultiplicity
public void setMultiplicity(MultiplicityEnum value)
Sets the value of the multiplicity property.- Parameters:
value- allowed object isMultiplicityEnum
-
getRoleName
public String getRoleName()
Gets the value of the roleName property.- Returns:
- possible object is
String
-
setRoleName
public void setRoleName(String value)
Sets the value of the roleName property.- Parameters:
value- allowed object isString
-
setId
public void setId(String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getType
public QName getType()
Gets the value of the type property.- Returns:
- possible object is
QName
-
setType
public void setType(QName value)
Sets the value of the type property.- Parameters:
value- allowed object isQName
-
getVersion
public String getVersion()
Gets the value of the version property.- Returns:
- possible object is
String
-
setVersion
public void setVersion(String value)
Sets the value of the version property.- Parameters:
value- allowed object isString
-
getHref
public String getHref()
Gets the value of the href property.- Returns:
- possible object is
String
-
setHref
public void setHref(String value)
Sets the value of the href property.- Parameters:
value- allowed object isString
-
getIdref
public Object getIdref()
Gets the value of the idref property.- Returns:
- possible object is
Object
-
setIdref
public void setIdref(Object value)
Sets the value of the idref property.- Parameters:
value- allowed object isObject
-
getLabel
public String getLabel()
Gets the value of the label property.- Returns:
- possible object is
String
-
setLabel
public void setLabel(String value)
Sets the value of the label property.- Parameters:
value- allowed object isString
-
getUuid
public String getUuid()
Gets the value of the uuid property.- Returns:
- possible object is
String
-
-