public class RelationMetaData extends NamedMetaDataWithDescriptions
| Constructor and Description |
|---|
RelationMetaData()
Create a new RelationMetaData.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDescriptions, setDescriptionsequals, getKey, getName, hashCode, setName, toStringclone, getId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitgetKeypublic 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 roleIllegalArgumentException - 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 metadataIllegalStateException - for too many rolesCopyright © 2019 JBoss by Red Hat. All rights reserved.