org.apache.openejb.jee.was.v6.ejb
Class EJBRelationshipRole

java.lang.Object
  extended by org.apache.openejb.jee.was.v6.ejb.EJBRelationshipRole

public class EJBRelationshipRole
extends java.lang.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
protected  java.lang.Boolean cascadeDelete
           
protected  java.util.List<CMRField> cmrFields
           
protected  java.lang.String description
           
protected  java.util.List<Description> descriptions
           
protected  java.util.List<Extension> extensions
           
protected  java.lang.String href
           
protected  java.lang.String id
           
protected  java.lang.Object idref
           
protected  java.lang.String label
           
protected  MultiplicityEnum multiplicity
           
protected  java.lang.String roleName
           
protected  java.util.List<RoleSource> sources
           
protected  javax.xml.namespace.QName type
           
protected  java.lang.String uuid
           
protected  java.lang.String version
           
 
Constructor Summary
EJBRelationshipRole()
           
 
Method Summary
 java.util.List<CMRField> getCmrFields()
          Gets the value of the cmrFields property.
 java.lang.String getDescription()
          Gets the value of the description property.
 java.util.List<Description> getDescriptions()
          Gets the value of the descriptions property.
 java.util.List<Extension> getExtensions()
          Gets the value of the extensions property.
 java.lang.String getHref()
          Gets the value of the href property.
 java.lang.String getId()
          Gets the value of the id property.
 java.lang.Object getIdref()
          Gets the value of the idref property.
 java.lang.String getLabel()
          Gets the value of the label property.
 MultiplicityEnum getMultiplicity()
          Gets the value of the multiplicity property.
 java.lang.String getRoleName()
          Gets the value of the roleName property.
 java.util.List<RoleSource> getSources()
          Gets the value of the sources property.
 javax.xml.namespace.QName getType()
          Gets the value of the type property.
 java.lang.String getUuid()
          Gets the value of the uuid property.
 java.lang.String getVersion()
          Gets the value of the version property.
 java.lang.Boolean isCascadeDelete()
          Gets the value of the cascadeDelete property.
 void setCascadeDelete(java.lang.Boolean value)
          Sets the value of the cascadeDelete property.
 void setDescription(java.lang.String value)
          Sets the value of the description property.
 void setHref(java.lang.String value)
          Sets the value of the href property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setIdref(java.lang.Object value)
          Sets the value of the idref property.
 void setLabel(java.lang.String value)
          Sets the value of the label property.
 void setMultiplicity(MultiplicityEnum value)
          Sets the value of the multiplicity property.
 void setRoleName(java.lang.String value)
          Sets the value of the roleName property.
 void setType(javax.xml.namespace.QName value)
          Sets the value of the type property.
 void setUuid(java.lang.String value)
          Sets the value of the uuid property.
 void setVersion(java.lang.String value)
          Sets the value of the version property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sources

protected java.util.List<RoleSource> sources

cmrFields

protected java.util.List<CMRField> cmrFields

descriptions

protected java.util.List<Description> descriptions

extensions

protected java.util.List<Extension> extensions

cascadeDelete

protected java.lang.Boolean cascadeDelete

description

protected java.lang.String description

multiplicity

protected MultiplicityEnum multiplicity

roleName

protected java.lang.String roleName

id

protected java.lang.String id

type

protected javax.xml.namespace.QName type

version

protected java.lang.String version

href

protected java.lang.String href

idref

protected java.lang.Object idref

label

protected java.lang.String label

uuid

protected java.lang.String uuid
Constructor Detail

EJBRelationshipRole

public EJBRelationshipRole()
Method Detail

getSources

public java.util.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 a set method 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 list RoleSource


getCmrFields

public java.util.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 a set method 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 list CMRField


getDescriptions

public java.util.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 a set method 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 list Description


getExtensions

public java.util.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 a set method 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 list Extension


isCascadeDelete

public java.lang.Boolean isCascadeDelete()
Gets the value of the cascadeDelete property.

Returns:
possible object is Boolean

setCascadeDelete

public void setCascadeDelete(java.lang.Boolean value)
Sets the value of the cascadeDelete property.

Parameters:
value - allowed object is Boolean

getDescription

public java.lang.String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(java.lang.String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

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 is MultiplicityEnum

getRoleName

public java.lang.String getRoleName()
Gets the value of the roleName property.

Returns:
possible object is String

setRoleName

public void setRoleName(java.lang.String value)
Sets the value of the roleName property.

Parameters:
value - allowed object is String

getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getType

public javax.xml.namespace.QName getType()
Gets the value of the type property.

Returns:
possible object is QName

setType

public void setType(javax.xml.namespace.QName value)
Sets the value of the type property.

Parameters:
value - allowed object is QName

getVersion

public java.lang.String getVersion()
Gets the value of the version property.

Returns:
possible object is String

setVersion

public void setVersion(java.lang.String value)
Sets the value of the version property.

Parameters:
value - allowed object is String

getHref

public java.lang.String getHref()
Gets the value of the href property.

Returns:
possible object is String

setHref

public void setHref(java.lang.String value)
Sets the value of the href property.

Parameters:
value - allowed object is String

getIdref

public java.lang.Object getIdref()
Gets the value of the idref property.

Returns:
possible object is Object

setIdref

public void setIdref(java.lang.Object value)
Sets the value of the idref property.

Parameters:
value - allowed object is Object

getLabel

public java.lang.String getLabel()
Gets the value of the label property.

Returns:
possible object is String

setLabel

public void setLabel(java.lang.String value)
Sets the value of the label property.

Parameters:
value - allowed object is String

getUuid

public java.lang.String getUuid()
Gets the value of the uuid property.

Returns:
possible object is String

setUuid

public void setUuid(java.lang.String value)
Sets the value of the uuid property.

Parameters:
value - allowed object is String


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.