|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.javaee.support.IdMetaDataImpl
org.jboss.metadata.javaee.support.NamedMetaData
org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptions
org.jboss.metadata.ejb.spec.RelationMetaData
public class RelationMetaData
RelationMetaData.
Constructor Summary | |
---|---|
RelationMetaData()
Create a new RelationMetaData. |
Method Summary | |
---|---|
String |
getEjbRelationName()
Get the ejbRelationName. |
List<RelationRoleMetaData> |
getEjbRelationshipRoles()
TODO JBossXB figureout why this is required and why JBossXB wants to use the xml name as the property rather than the one I want to give it |
RelationRoleMetaData |
getLeftRole()
Get the leftRole. |
RelationRoleMetaData |
getRelatedRole(RelationRoleMetaData role)
Get the other role |
RelationRoleMetaData |
getRightRole()
Get the rightRole. |
void |
setEjbRelationName(String ejbRelationName)
Set the ejbRelationName. |
void |
setEjbRelationshipRoles(List<RelationRoleMetaData> roleMetaData)
Set the relation role metadata |
void |
setLeftRole(RelationRoleMetaData leftRole)
Set the leftRole. |
void |
setRightRole(RelationRoleMetaData rightRole)
Set the rightRole. |
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptions |
---|
getDescriptions, setDescriptions |
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData |
---|
equals, getKey, getName, hashCode, merge, setName, toString |
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl |
---|
clone, getId, merge, merge, setId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.metadata.javaee.support.MappableMetaData |
---|
getKey |
Constructor Detail |
---|
public RelationMetaData()
Method Detail |
---|
public String getEjbRelationName()
public void setEjbRelationName(String ejbRelationName)
ejbRelationName
- the ejbRelationName.
IllegalArgumentException
- for a null ejbRelationNamepublic RelationRoleMetaData getLeftRole()
public void setLeftRole(RelationRoleMetaData leftRole)
leftRole
- the leftRole.
IllegalArgumentException
- for a null leftRolepublic RelationRoleMetaData getRightRole()
public void setRightRole(RelationRoleMetaData rightRole)
rightRole
- the rightRole.
IllegalArgumentException
- for a null rightRolepublic RelationRoleMetaData getRelatedRole(RelationRoleMetaData role)
role
- the reference role
IllegalArgumentException
- if the role is not a role in this relationshippublic List<RelationRoleMetaData> getEjbRelationshipRoles()
public void setEjbRelationshipRoles(List<RelationRoleMetaData> roleMetaData)
On first invocation it sets the left role, on second invocation it sets the right role, after that it throws an IllegalStateException
roleMetaData
-
IllegalArgumentException
- for a null role metadata
IllegalStateException
- for too many roles
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |