org.jboss.metadata.ejb.spec
Class RelationRoleMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.NamedMetaData
          extended by org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptions
              extended by org.jboss.metadata.ejb.spec.RelationRoleMetaData
All Implemented Interfaces:
Serializable, Cloneable, IdMetaData, MappableMetaData

public class RelationRoleMetaData
extends NamedMetaDataWithDescriptions

RelationRoleMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
RelationRoleMetaData()
          Create a new EnterpriseBeanMetaData.
 
Method Summary
 EmptyMetaData getCascadeDelete()
          Get the cascadedDelete.
 CMRFieldMetaData getCmrField()
          Get the cmrField.
 String getEjbRelationshipRoleName()
          Get the ejbRelationshipRoleName.
 MultiplicityType getMultiplicity()
          Get the multiplicityType.
 RelationRoleMetaData getRelatedRole()
          Get the releated role
 RelationMetaData getRelation()
          Get the relation.
 RelationRoleSourceMetaData getRoleSource()
          Get the roleSource.
 boolean isCascadedDelete()
           
 boolean isMultiplicityMany()
          Is this multiplicity many
 boolean isMultiplicityOne()
          Is this multiplicity one
 void setCascadeDelete(EmptyMetaData cascadedDelete)
          Set the cascadedDelete.
 void setCmrField(CMRFieldMetaData cmrField)
          Set the cmrField.
 void setEjbRelationshipRoleName(String ejbRelationshipRoleName)
          Set the ejbRelationshipRoleName.
 void setMultiplicity(MultiplicityType multiplicityType)
          Set the multiplicityType.
 void setRoleSource(RelationRoleSourceMetaData roleSource)
          Set the roleSource.
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptions
getDescriptions, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, getName, hashCode, merge, setName, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.javaee.support.MappableMetaData
getKey
 

Constructor Detail

RelationRoleMetaData

public RelationRoleMetaData()
Create a new EnterpriseBeanMetaData.

Method Detail

getEjbRelationshipRoleName

public String getEjbRelationshipRoleName()
Get the ejbRelationshipRoleName.

Returns:
the ejbRelationshipRoleName.

setEjbRelationshipRoleName

public void setEjbRelationshipRoleName(String ejbRelationshipRoleName)
Set the ejbRelationshipRoleName.

Parameters:
ejbRelationshipRoleName - the ejbRelationshipRoleName.
Throws:
IllegalArgumentException - for a null ejbRelationshipRoleName

getMultiplicity

public MultiplicityType getMultiplicity()
Get the multiplicityType.

Returns:
the multiplicityType.

setMultiplicity

public void setMultiplicity(MultiplicityType multiplicityType)
Set the multiplicityType.

Parameters:
multiplicityType - the multiplicityType.
Throws:
IllegalArgumentException - for a null multiplicityType

isMultiplicityOne

public boolean isMultiplicityOne()
Is this multiplicity one

Returns:
true when it is one

isMultiplicityMany

public boolean isMultiplicityMany()
Is this multiplicity many

Returns:
true when it is many

isCascadedDelete

public boolean isCascadedDelete()

getCascadeDelete

public EmptyMetaData getCascadeDelete()
Get the cascadedDelete.

Returns:
the cascadedDelete.

setCascadeDelete

public void setCascadeDelete(EmptyMetaData cascadedDelete)
Set the cascadedDelete.

Parameters:
cascadedDelete - the cascadedDelete.

getRelation

public RelationMetaData getRelation()
Get the relation.

Returns:
the relation.

getRelatedRole

public RelationRoleMetaData getRelatedRole()
Get the releated role

Returns:
the related role

getRoleSource

public RelationRoleSourceMetaData getRoleSource()
Get the roleSource.

Returns:
the roleSource.

setRoleSource

public void setRoleSource(RelationRoleSourceMetaData roleSource)
Set the roleSource.

Parameters:
roleSource - the roleSource.
Throws:
IllegalArgumentException - for a null roleSource

getCmrField

public CMRFieldMetaData getCmrField()
Get the cmrField.

Returns:
the cmrField.

setCmrField

public void setCmrField(CMRFieldMetaData cmrField)
Set the cmrField.

Parameters:
cmrField - the cmrField.
Throws:
IllegalArgumentException - for a null cmrField


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