org.jboss.metadata
Class RelationMetaData

java.lang.Object
  extended byorg.jboss.metadata.MetaData
      extended byorg.jboss.metadata.RelationMetaData
All Implemented Interfaces:
Cloneable, XmlLoadable

public class RelationMetaData
extends MetaData

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

Version:
$Revision: 1.10 $
Author:
Dain Sundstrom

Field Summary
 
Fields inherited from class org.jboss.metadata.MetaData
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
RelationMetaData()
           
 
Method Summary
 RelationshipRoleMetaData getLeftRelationshipRole()
          Gets the left relationship role.
 RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role)
           
 String getRelationName()
          Gets the relation name.
 RelationshipRoleMetaData getRightRelationshipRole()
          Gets the right relationship role.
 void importEjbJarXml(Element element)
          Non-operation.
 
Methods inherited from class org.jboss.metadata.MetaData
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

RelationMetaData

public RelationMetaData()
Method Detail

getRelationName

public String getRelationName()
Gets the relation name. Relation name is loaded from the ejb-relation-name element.


getLeftRelationshipRole

public RelationshipRoleMetaData getLeftRelationshipRole()
Gets the left relationship role. The relationship role is loaded from an ejb-relationship-role. Left/right assignment is completely arbitrary.


getRightRelationshipRole

public RelationshipRoleMetaData getRightRelationshipRole()
Gets the right relationship role. The relationship role is loaded from an ejb-relationship-role. Left/right assignment is completely arbitrary.


getOtherRelationshipRole

public RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role)

importEjbJarXml

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

Overrides:
importEjbJarXml in class MetaData
Parameters:
element -
Throws:
org.jboss.deployment.DeploymentException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.