org.eclipse.jst.j2ee.ejb
Interface CommonRelationshipRole

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
EJBRelationshipRole

public interface CommonRelationshipRole
extends org.eclipse.emf.ecore.EObject

Insert the type's description here. Creation date: (10/26/2001 9:24:27 AM)

Since:
1.0

Method Summary
 org.eclipse.emf.common.util.EList getAttributes()
          Return the persistentAttributes from my Entity that are used by this role.
 CommonRelationship getCommonRelationship()
          Return our parent relationship as a CommonRelationship
 java.lang.String getName()
          Defines a name for a role that is unique within an ejb-relation.
 CommonRelationshipRole getOppositeAsCommonRole()
          Return the other role.
 java.lang.String getRoleName()
          Return the actual name of this role.
 ContainerManagedEntity getSourceEntity()
           
 java.lang.String getTargetAttributeName(CMPAttribute roleAttribute)
          Gets the attribute name of a given CMPAttribute
 ContainerManagedEntity getTypeEntity()
          Compute the ContainerManagedEntity which is the type of a role that participates in a relationship.
 boolean isForward()
           
 boolean isKey()
          Returns true if this is a key
 boolean isMany()
           
 boolean isNavigable()
           
 boolean isRequired()
          Method isRequired.
 void reconcileAttributes()
          Collects the attributes
 void setKey(boolean aBoolean)
          This method should be used as a hint about the key status of the role.
 void setLower(int lowerBound)
          sets the lower limit of our multiplicity
 void setUpper(int upperBound)
          sets the upper limit of our multiplicity
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getAttributes

org.eclipse.emf.common.util.EList getAttributes()
Return the persistentAttributes from my Entity that are used by this role.

Returns:
the attributes of the CommonRelationshipRole

getCommonRelationship

CommonRelationship getCommonRelationship()
Return our parent relationship as a CommonRelationship

Returns:
the CommonRelationship reference

getName

java.lang.String getName()
Defines a name for a role that is unique within an ejb-relation. Different relationships can use the same name for a role.

Returns:
The value of the Name attribute

getRoleName

java.lang.String getRoleName()
Return the actual name of this role. This is the name defined in the Deployment Descriptor. You should use getName() for the name to use in code generation.

Returns:
the name of the CommonRelationshipRole

getOppositeAsCommonRole

CommonRelationshipRole getOppositeAsCommonRole()
Return the other role.

Returns:
CommonRelationshipRole reference

getSourceEntity

ContainerManagedEntity getSourceEntity()
Returns:
The Source ejb Compute the ContainerManagedEntity which is the source of a role that participates in a relationship.

getTypeEntity

ContainerManagedEntity getTypeEntity()
Compute the ContainerManagedEntity which is the type of a role that participates in a relationship.

Returns:
The type ejb

isForward

boolean isForward()
Returns:
The computed value of the isForward attribute Specifies whether this role should be mapped to a persistent reference, such as a foreign key.

isKey

boolean isKey()
Returns true if this is a key

Returns:
The computed value isKey

setKey

void setKey(boolean aBoolean)
This method should be used as a hint about the key status of the role.

Parameters:
aBoolean - the boolean value

isMany

boolean isMany()
Returns:
The computed value isMany Returns whether the upper limit of our multiplicity is > 1

setUpper

void setUpper(int upperBound)
sets the upper limit of our multiplicity

Parameters:
upperBound - the int value of the multiplicity

setLower

void setLower(int lowerBound)
sets the lower limit of our multiplicity

Parameters:
lowerBound - the int value if the multiplicity

isNavigable

boolean isNavigable()
Returns:
The computed value of the isNavigable attribute Specifies that accessors should be generated for this relationship role.

getTargetAttributeName

java.lang.String getTargetAttributeName(CMPAttribute roleAttribute)
Gets the attribute name of a given CMPAttribute

Parameters:
roleAttribute - the CMPAttribute
Returns:
the name of the targetAttribute

reconcileAttributes

void reconcileAttributes()
Collects the attributes


isRequired

boolean isRequired()
Method isRequired.

Returns:
boolean value