org.jboss.metadata
Class RelationMetaData

java.lang.Object
  extended by org.jboss.metadata.MetaData
      extended by org.jboss.metadata.OldMetaData<RelationMetaData>
          extended by org.jboss.metadata.RelationMetaData
All Implemented Interfaces:
Cloneable, XmlLoadable

Deprecated.

@Deprecated
public class RelationMetaData
extends OldMetaData<RelationMetaData>

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

Version:
$Revision: 37390 $
Author:
Dain Sundstrom, Adrian Brock

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
protected RelationMetaData(org.jboss.metadata.spi.MetaData metaData)
          Deprecated. Create a new RelationMetaData.
  RelationMetaData(RelationMetaData delegate)
          Deprecated. Create a new RelationMetaData.
 
Method Summary
static RelationMetaData create(RelationMetaData delegate)
          Deprecated. Create a new RelationMetaData.
 RelationshipRoleMetaData getLeftRelationshipRole()
          Deprecated. Gets the left relationship role.
 RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role)
          Deprecated. Get the related role
 String getRelationName()
          Deprecated. Gets the relation name.
 RelationshipRoleMetaData getRightRelationshipRole()
          Deprecated. Gets the right relationship role.
 
Methods inherited from class org.jboss.metadata.OldMetaData
equals, getDelegate, getMetaData, hashCode, importEjbJarXml, importJbossXml, toString
 
Methods inherited from class org.jboss.metadata.MetaData
clone, getChildrenByTagName, getElementAttribute, getElementAttribute, getElementContent, getElementContent, getElementContent, getFirstElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationMetaData

public RelationMetaData(RelationMetaData delegate)
Deprecated. 
Create a new RelationMetaData.

Parameters:
delegate - the delegate
Throws:
IllegalArgumentException - for a null delegate

RelationMetaData

protected RelationMetaData(org.jboss.metadata.spi.MetaData metaData)
Deprecated. 
Create a new RelationMetaData.

Parameters:
metaData - the delegate metadata
Throws:
IllegalArgumentException - for a null metaData
IllegalStateException - if the metadata doesn't have an RelationMetaData
Method Detail

create

public static RelationMetaData create(RelationMetaData delegate)
Deprecated. 
Create a new RelationMetaData.

Parameters:
delegate - the delegate
Returns:
the metadata
Throws:
IllegalArgumentException - for a null delegate or an unknown delegate

getRelationName

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

Returns:
the relation name

getLeftRelationshipRole

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

Returns:
the left role

getRightRelationshipRole

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

Returns:
the right role

getOtherRelationshipRole

public RelationshipRoleMetaData getOtherRelationshipRole(RelationshipRoleMetaData role)
Deprecated. 
Get the related role

Parameters:
role - the reference role
Returns:
the related role
Throws:
IllegalArgumentException - if the reference role is not a role in this relationship


Copyright © 2009 JBoss Inc.. All Rights Reserved.