|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.ccxjc.it.model.prot.collections.valueclass.javaee.EjbRelationshipRoleType
public class 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:
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>
| Field Summary | |
|---|---|
protected EmptyType |
cascadeDelete
|
protected CmrFieldType |
cmrField
|
protected List<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.prot.collections.valueclass.javaee.EjbRelationshipRoleType instance. |
|
EjbRelationshipRoleType(EjbRelationshipRoleType o)
Creates a new net.sourceforge.ccxjc.it.model.prot.collections.valueclass.javaee.EjbRelationshipRoleType instance by copying a given instance. |
|
| Method Summary | |
|---|---|
EjbRelationshipRoleType |
clone()
Creates and returns a copy of this object. |
protected static void |
copyDescription(List<DescriptionType> source,
List<DescriptionType> target)
Copies all values of property Description. |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<DescriptionType> description
protected String ejbRelationshipRoleName
protected MultiplicityType multiplicity
protected EmptyType cascadeDelete
protected RelationshipRoleSourceType relationshipRoleSource
protected CmrFieldType cmrField
protected String id
| Constructor Detail |
|---|
public EjbRelationshipRoleType()
net.sourceforge.ccxjc.it.model.prot.collections.valueclass.javaee.EjbRelationshipRoleType instance.
public EjbRelationshipRoleType(EjbRelationshipRoleType o)
net.sourceforge.ccxjc.it.model.prot.collections.valueclass.javaee.EjbRelationshipRoleType instance by copying a given instance.
o - The instance to copy or null.| Method Detail |
|---|
public List<DescriptionType> getDescription()
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
public String getEjbRelationshipRoleName()
Stringpublic void setEjbRelationshipRoleName(String value)
value - allowed object is
Stringpublic MultiplicityType getMultiplicity()
MultiplicityTypepublic void setMultiplicity(MultiplicityType value)
value - allowed object is
MultiplicityTypepublic EmptyType getCascadeDelete()
EmptyTypepublic void setCascadeDelete(EmptyType value)
value - allowed object is
EmptyTypepublic RelationshipRoleSourceType getRelationshipRoleSource()
RelationshipRoleSourceTypepublic void setRelationshipRoleSource(RelationshipRoleSourceType value)
value - allowed object is
RelationshipRoleSourceTypepublic CmrFieldType getCmrField()
CmrFieldTypepublic void setCmrField(CmrFieldType value)
value - allowed object is
CmrFieldTypepublic String getId()
Stringpublic void setId(String value)
value - allowed object is
String
protected static void copyDescription(List<DescriptionType> source,
List<DescriptionType> target)
Description.
target - The target to copy source to.source - The source to copy from.
NullPointerException - if source or target is null.public EjbRelationshipRoleType clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||