|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EjbRelationshipRoleType<T>
This interface defines the contract for the ejb-relationship-roleType xsd type
Original Documentation:
[
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:
| Method Summary | |
|---|---|
EjbRelationshipRoleType<T> |
cascadeDelete()
|
CmrFieldType<EjbRelationshipRoleType<T>> |
cmrField()
If not already created, a new cmr-field element will be created and returned. |
java.util.List<java.lang.String> |
getDescriptionList()
Returns all description elements |
java.lang.String |
getEjbRelationshipRoleName()
Returns the ejb-relationship-role-name element |
MultiplicityType |
getMultiplicity()
Returns the multiplicity element |
java.lang.String |
getMultiplicityAsString()
Returns the multiplicity element |
java.lang.Boolean |
isCascadeDelete()
|
RelationshipRoleSourceType<EjbRelationshipRoleType<T>> |
relationshipRoleSource()
If not already created, a new relationship-role-source element will be created and returned. |
EjbRelationshipRoleType<T> |
removeAllDescription()
Removes the description element |
EjbRelationshipRoleType<T> |
removeCmrField()
Removes the cmr-field element |
EjbRelationshipRoleType<T> |
removeEjbRelationshipRoleName()
Removes the ejb-relationship-role-name element |
EjbRelationshipRoleType<T> |
removeRelationshipRoleSource()
Removes the relationship-role-source element |
EjbRelationshipRoleType<T> |
setDescription(java.lang.String description)
Creates a new description element |
EjbRelationshipRoleType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
EjbRelationshipRoleType<T> |
setEjbRelationshipRoleName(java.lang.String ejbRelationshipRoleName)
If not already created, a new ejb-relationship-role-name element with the given value will be created. |
EjbRelationshipRoleType<T> |
setMultiplicity(MultiplicityType multiplicity)
If not already created, a new multiplicity element with the given value will be created. |
EjbRelationshipRoleType<T> |
setMultiplicity(java.lang.String multiplicity)
If not already created, a new multiplicity element with the given value will be created. |
| Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
|---|
up |
| Method Detail |
|---|
EjbRelationshipRoleType<T> setDescription(java.lang.String description)
description element
EjbRelationshipRoleTypeEjbRelationshipRoleType<T> setDescriptionList(java.lang.String... values)
description elements,
a new description element
list - of description objects
EjbRelationshipRoleTypeEjbRelationshipRoleType<T> removeAllDescription()
description element
EjbRelationshipRoleTypejava.util.List<java.lang.String> getDescriptionList()
description elements
descriptionEjbRelationshipRoleType<T> setEjbRelationshipRoleName(java.lang.String ejbRelationshipRoleName)
ejb-relationship-role-name element with the given value will be created.
Otherwise, the existing ejb-relationship-role-name element will be updated with the given value.
EjbRelationshipRoleTypeEjbRelationshipRoleType<T> removeEjbRelationshipRoleName()
ejb-relationship-role-name element
EjbRelationshipRoleTypejava.lang.String getEjbRelationshipRoleName()
ejb-relationship-role-name element
ejb-relationship-role-nameEjbRelationshipRoleType<T> setMultiplicity(MultiplicityType multiplicity)
multiplicity element with the given value will be created.
Otherwise, the existing multiplicity element will be updated with the given value.
EjbRelationshipRoleTypeEjbRelationshipRoleType<T> setMultiplicity(java.lang.String multiplicity)
multiplicity element with the given value will be created.
Otherwise, the existing multiplicity element will be updated with the given value.
EjbRelationshipRoleTypeMultiplicityType getMultiplicity()
multiplicity element
multiplicityjava.lang.String getMultiplicityAsString()
multiplicity element
multiplicityEjbRelationshipRoleType<T> cascadeDelete()
java.lang.Boolean isCascadeDelete()
EjbRelationshipRoleType<T> removeRelationshipRoleSource()
relationship-role-source element
EjbRelationshipRoleTypeRelationshipRoleSourceType<EjbRelationshipRoleType<T>> relationshipRoleSource()
relationship-role-source element will be created and returned.
Otherwise, the existing relationship-role-source element will be returned.
relationship-role-sourceEjbRelationshipRoleType<T> removeCmrField()
cmr-field element
EjbRelationshipRoleTypeCmrFieldType<EjbRelationshipRoleType<T>> cmrField()
cmr-field element will be created and returned.
Otherwise, the existing cmr-field element will be returned.
cmr-field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||