net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee
Class EjbRelationshipRoleType

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.EjbRelationshipRoleType
All Implemented Interfaces:
Serializable, Cloneable

public class EjbRelationshipRoleType
extends Object
implements Serializable, Cloneable

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>
 

See Also:
Serialized Form

Field Summary
protected  EmptyType cascadeDelete
           
protected  CmrFieldType cmrField
           
protected  DescriptionType[] description
           
protected  String ejbRelationshipRoleName
           
protected  String id
           
protected  MultiplicityType multiplicity
           
protected  RelationshipRoleSourceType relationshipRoleSource
           
 
Constructor Summary
EjbRelationshipRoleType()
          Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.EjbRelationshipRoleType instance.
EjbRelationshipRoleType(EjbRelationshipRoleType o)
          Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.EjbRelationshipRoleType instance by copying a given instance.
 
Method Summary
 EjbRelationshipRoleType clone()
          Creates and returns a copy of this object.
 void copyDescription(DescriptionType[] source)
          Copies all values of property Description.
 EmptyType getCascadeDelete()
          Gets the value of the cascadeDelete property.
 CmrFieldType getCmrField()
          Gets the value of the cmrField property.
 DescriptionType[] getDescription()
           
 DescriptionType getDescription(int idx)
           
 int getDescriptionLength()
           
 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 setDescription(DescriptionType[] values)
           
 DescriptionType setDescription(int idx, DescriptionType value)
           
 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.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected DescriptionType[] description

ejbRelationshipRoleName

protected String ejbRelationshipRoleName

multiplicity

protected MultiplicityType multiplicity

cascadeDelete

protected EmptyType cascadeDelete

relationshipRoleSource

protected RelationshipRoleSourceType relationshipRoleSource

cmrField

protected CmrFieldType cmrField

id

protected String id
Constructor Detail

EjbRelationshipRoleType

public EjbRelationshipRoleType()
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.EjbRelationshipRoleType instance.


EjbRelationshipRoleType

public EjbRelationshipRoleType(EjbRelationshipRoleType o)
Creates a new net.sourceforge.ccxjc.it.model.pub.indexed.valueclass.javaee.EjbRelationshipRoleType instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getDescription

public DescriptionType[] getDescription()
Returns:
array of DescriptionType

getDescription

public DescriptionType getDescription(int idx)
Returns:
one of DescriptionType

getDescriptionLength

public int getDescriptionLength()

setDescription

public void setDescription(DescriptionType[] values)
Parameters:
values - allowed objects are DescriptionType

setDescription

public DescriptionType setDescription(int idx,
                                      DescriptionType value)
Parameters:
value - allowed object is DescriptionType

getEjbRelationshipRoleName

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

Returns:
possible object is String

setEjbRelationshipRoleName

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

Parameters:
value - allowed object is String

getMultiplicity

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

Returns:
possible object is MultiplicityType

setMultiplicity

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

Parameters:
value - allowed object is MultiplicityType

getCascadeDelete

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

Returns:
possible object is EmptyType

setCascadeDelete

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

Parameters:
value - allowed object is EmptyType

getRelationshipRoleSource

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

Returns:
possible object is RelationshipRoleSourceType

setRelationshipRoleSource

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

Parameters:
value - allowed object is RelationshipRoleSourceType

getCmrField

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

Returns:
possible object is CmrFieldType

setCmrField

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

Parameters:
value - allowed object is CmrFieldType

getId

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

Returns:
possible object is String

setId

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

Parameters:
value - allowed object is String

copyDescription

public void copyDescription(DescriptionType[] source)
Copies all values of property Description.

Parameters:
source - The source to copy from.
Throws:
NullPointerException - if source is null.

clone

public EjbRelationshipRoleType clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


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