org.jboss.metadata
Class RelationshipRoleMetaData

java.lang.Object
  extended byorg.jboss.metadata.MetaData (src) 
      extended byorg.jboss.metadata.RelationshipRoleMetaData
All Implemented Interfaces:
java.lang.Cloneable, XmlLoadable (src)

public class RelationshipRoleMetaData
extends MetaData (src)

Represents one ejb-relationship-role element found in the ejb-jar.xml file's ejb-relation elements.


Field Summary
 
Fields inherited from class org.jboss.metadata.MetaData (src)
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
RelationshipRoleMetaData(RelationMetaData (src)  relationMetaData)
           
 
Method Summary
 java.lang.String getCMRFieldName()
          Gets the name of the entity's cmr field for this role.
 java.lang.String getCMRFieldType()
          Gets the type of the cmr field (i.e., collection or set)
 java.lang.String getEntityName()
          Gets the name of the entity that has this role.
 RelationshipRoleMetaData (src) getRelatedRoleMetaData()
          Gets the related role's metadata
 RelationMetaData (src) getRelationMetaData()
          Gets the relation meta data to which the role belongs.
 java.lang.String getRelationshipRoleName()
          Gets the relationship role name
 void importEjbJarXml(org.w3c.dom.Element element)
          Non-operation.
 boolean isCascadeDelete()
          Should this entity be deleted when related entity is deleted.
 boolean isMultiplicityMany()
          Checks if the multiplicity is many.
 boolean isMultiplicityOne()
          Checks if the multiplicity is one.
 
Methods inherited from class org.jboss.metadata.MetaData (src)
clone, getChildrenByTagName, getElementAttribute, getElementContent, getElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importJbossXml, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipRoleMetaData

public RelationshipRoleMetaData(RelationMetaData (src)  relationMetaData)
Method Detail

getRelationshipRoleName

public java.lang.String getRelationshipRoleName()
Gets the relationship role name


getRelationMetaData

public RelationMetaData (src)  getRelationMetaData()
Gets the relation meta data to which the role belongs.


getRelatedRoleMetaData

public RelationshipRoleMetaData (src)  getRelatedRoleMetaData()
Gets the related role's metadata


isMultiplicityOne

public boolean isMultiplicityOne()
Checks if the multiplicity is one.


isMultiplicityMany

public boolean isMultiplicityMany()
Checks if the multiplicity is many.


isCascadeDelete

public boolean isCascadeDelete()
Should this entity be deleted when related entity is deleted.


getEntityName

public java.lang.String getEntityName()
Gets the name of the entity that has this role.


getCMRFieldName

public java.lang.String getCMRFieldName()
Gets the name of the entity's cmr field for this role.


getCMRFieldType

public java.lang.String getCMRFieldType()
Gets the type of the cmr field (i.e., collection or set)


importEjbJarXml

public void importEjbJarXml(org.w3c.dom.Element element)
                     throws DeploymentException (src) 
Description copied from class: MetaData (src)
Non-operation.

Overrides:
importEjbJarXml in class MetaData (src)
Parameters:
element -
Throws:
DeploymentException (src)