net.sourceforge.ccxjc.it.model.pkg.collections.novalueclass.javaee
Interface EjbRelationshipRoleType

All Known Implementing Classes:
EjbRelationshipRoleTypeImpl

public interface EjbRelationshipRoleType

The ejb-relationship-roleType describes a role within a relationship. There are two roles in each relationship. The ejb-relationship-roleType 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 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 the entity bean that participates in the relationship is "not aware" of the relationship. Example: Product-LineItem product-has-lineitems One ProductEJB

Java class for ejb-relationship-roleType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ejb-relationship-roleType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="ejb-relationship-role-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
         <element name="multiplicity" type="{http://java.sun.com/xml/ns/javaee}multiplicityType"/>
         <element name="cascade-delete" type="{http://java.sun.com/xml/ns/javaee}emptyType" minOccurs="0"/>
         <element name="relationship-role-source" type="{http://java.sun.com/xml/ns/javaee}relationship-role-sourceType"/>
         <element name="cmr-field" type="{http://java.sun.com/xml/ns/javaee}cmr-fieldType" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Method Summary
 EmptyType getCascadeDelete()
          Gets the value of the cascadeDelete property.
 CmrFieldType getCmrField()
          Gets the value of the cmrField property.
 List<DescriptionType> getDescription()
          Gets the value of the description property.
 String getEjbRelationshipRoleName()
          Gets the value of the ejbRelationshipRoleName property.
 String getId()
          Gets the value of the id property.
 MultiplicityType getMultiplicity()
          Gets the value of the multiplicity property.
 RelationshipRoleSourceType getRelationshipRoleSource()
          Gets the value of the relationshipRoleSource property.
 void setCascadeDelete(EmptyType value)
          Sets the value of the cascadeDelete property.
 void setCmrField(CmrFieldType value)
          Sets the value of the cmrField property.
 void setEjbRelationshipRoleName(String value)
          Sets the value of the ejbRelationshipRoleName property.
 void setId(String value)
          Sets the value of the id property.
 void setMultiplicity(MultiplicityType value)
          Sets the value of the multiplicity property.
 void setRelationshipRoleSource(RelationshipRoleSourceType value)
          Sets the value of the relationshipRoleSource property.
 

Method Detail

getDescription

List<DescriptionType> getDescription()
Gets the value of the description 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 description property.

For example, to add a new item, do as follows:

    getDescription().add(newItem);
 

Objects of the following type(s) are allowed in the list DescriptionType


getEjbRelationshipRoleName

String getEjbRelationshipRoleName()
Gets the value of the ejbRelationshipRoleName property.

Returns:
possible object is String

setEjbRelationshipRoleName

void setEjbRelationshipRoleName(String value)
Sets the value of the ejbRelationshipRoleName property.

Parameters:
value - allowed object is String

getMultiplicity

MultiplicityType getMultiplicity()
Gets the value of the multiplicity property.

Returns:
possible object is MultiplicityType

setMultiplicity

void setMultiplicity(MultiplicityType value)
Sets the value of the multiplicity property.

Parameters:
value - allowed object is MultiplicityType

getCascadeDelete

EmptyType getCascadeDelete()
Gets the value of the cascadeDelete property.

Returns:
possible object is EmptyType

setCascadeDelete

void setCascadeDelete(EmptyType value)
Sets the value of the cascadeDelete property.

Parameters:
value - allowed object is EmptyType

getRelationshipRoleSource

RelationshipRoleSourceType getRelationshipRoleSource()
Gets the value of the relationshipRoleSource property.

Returns:
possible object is RelationshipRoleSourceType

setRelationshipRoleSource

void setRelationshipRoleSource(RelationshipRoleSourceType value)
Sets the value of the relationshipRoleSource property.

Parameters:
value - allowed object is RelationshipRoleSourceType

getCmrField

CmrFieldType getCmrField()
Gets the value of the cmrField property.

Returns:
possible object is CmrFieldType

setCmrField

void setCmrField(CmrFieldType value)
Sets the value of the cmrField property.

Parameters:
value - allowed object is CmrFieldType

getId

String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

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

Parameters:
value - allowed object is String


Copyright © 2009 The CC-XJC Community. All Rights Reserved.