|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar31.EjbRelationshipRoleTypeImpl<T>
public class EjbRelationshipRoleTypeImpl<T>
This class implements 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:
| Constructor Summary | |
|---|---|
EjbRelationshipRoleTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
EjbRelationshipRoleTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
|
| 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. |
T |
up()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EjbRelationshipRoleTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public EjbRelationshipRoleTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
| Method Detail |
|---|
public T up()
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>public EjbRelationshipRoleType<T> setDescription(java.lang.String description)
description element
setDescription in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic EjbRelationshipRoleType<T> setDescriptionList(java.lang.String... values)
description elements,
a new description element
setDescriptionList in interface EjbRelationshipRoleType<T>list - of description objects
EjbRelationshipRoleTypepublic EjbRelationshipRoleType<T> removeAllDescription()
description element
removeAllDescription in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic java.util.List<java.lang.String> getDescriptionList()
description elements
getDescriptionList in interface EjbRelationshipRoleType<T>descriptionpublic EjbRelationshipRoleType<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.
setEjbRelationshipRoleName in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic EjbRelationshipRoleType<T> removeEjbRelationshipRoleName()
ejb-relationship-role-name element
removeEjbRelationshipRoleName in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic java.lang.String getEjbRelationshipRoleName()
ejb-relationship-role-name element
getEjbRelationshipRoleName in interface EjbRelationshipRoleType<T>ejb-relationship-role-namepublic EjbRelationshipRoleType<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.
setMultiplicity in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic EjbRelationshipRoleType<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.
setMultiplicity in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic MultiplicityType getMultiplicity()
multiplicity element
getMultiplicity in interface EjbRelationshipRoleType<T>multiplicitypublic java.lang.String getMultiplicityAsString()
multiplicity element
getMultiplicityAsString in interface EjbRelationshipRoleType<T>multiplicitypublic EjbRelationshipRoleType<T> cascadeDelete()
cascadeDelete in interface EjbRelationshipRoleType<T>public java.lang.Boolean isCascadeDelete()
isCascadeDelete in interface EjbRelationshipRoleType<T>public EjbRelationshipRoleType<T> removeRelationshipRoleSource()
relationship-role-source element
removeRelationshipRoleSource in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic RelationshipRoleSourceType<EjbRelationshipRoleType<T>> relationshipRoleSource()
relationship-role-source element will be created and returned.
Otherwise, the existing relationship-role-source element will be returned.
relationshipRoleSource in interface EjbRelationshipRoleType<T>relationship-role-sourcepublic EjbRelationshipRoleType<T> removeCmrField()
cmr-field element
removeCmrField in interface EjbRelationshipRoleType<T>EjbRelationshipRoleTypepublic CmrFieldType<EjbRelationshipRoleType<T>> cmrField()
cmr-field element will be created and returned.
Otherwise, the existing cmr-field element will be returned.
cmrField in interface EjbRelationshipRoleType<T>cmr-field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||