org.jboss.metadata
Class RelationshipRoleMetaData

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

Deprecated.

@Deprecated
public class RelationshipRoleMetaData
extends OldMetaData<RelationRoleMetaData>

Represents one ejb-relationship-role element found in the ejb-jar.xml file's ejb-relation 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 RelationshipRoleMetaData(org.jboss.metadata.spi.MetaData metaData)
          Deprecated. Create a new RelationshipRoleMetaData.
  RelationshipRoleMetaData(RelationRoleMetaData delegate)
          Deprecated. Create a new RelationshipeRoleMetaData.
 
Method Summary
 String getCMRFieldName()
          Deprecated. Gets the name of the entity's cmr field for this role.
 String getCMRFieldType()
          Deprecated. Gets the type of the cmr field (i.e., collection or set)
 String getEntityName()
          Deprecated. Gets the name of the entity that has this role.
 RelationshipRoleMetaData getRelatedRoleMetaData()
          Deprecated. Gets the related role's metadata
 RelationMetaData getRelationMetaData()
          Deprecated. Gets the relation meta data to which the role belongs.
 String getRelationshipRoleName()
          Deprecated. Gets the relationship role name
 boolean isCascadeDelete()
          Deprecated. Should this entity be deleted when related entity is deleted.
 boolean isMultiplicityMany()
          Deprecated. Checks if the multiplicity is many.
 boolean isMultiplicityOne()
          Deprecated. Checks if the multiplicity is one.
 
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

RelationshipRoleMetaData

public RelationshipRoleMetaData(RelationRoleMetaData delegate)
Deprecated. 
Create a new RelationshipeRoleMetaData.

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

RelationshipRoleMetaData

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

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

getRelationshipRoleName

public String getRelationshipRoleName()
Deprecated. 
Gets the relationship role name

Returns:
the role name

getRelationMetaData

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

Returns:
the relation to which the relationship role belongs

getRelatedRoleMetaData

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

Returns:
the related role

isMultiplicityOne

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

Returns:
true when it is one

isMultiplicityMany

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

Returns:
true when multiplicity many

isCascadeDelete

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

Returns:
true when cascaded delete

getEntityName

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

Returns:
the name

getCMRFieldName

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

Returns:
the cmr field

getCMRFieldType

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

Returns:
the field type


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.