org.eclipse.jst.j2ee.ejb
Interface CMRField

All Superinterfaces:
CMPAttribute, org.eclipse.emf.ecore.EAttribute, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature, org.eclipse.emf.ecore.ETypedElement, J2EEEAttribute, org.eclipse.emf.common.notify.Notifier

public interface CMRField
extends CMPAttribute

Describes the bean provider's view of a relationship. It consists of an optional description, and the name and the class type of a field in the source of a role of a relationship. The CMRField::name element corresponds to the name used for the get and set accessor methods for the relationship. The CMRField::type element is used only for collection-valued CMRFields. It specifies the type of the collection that is used (a java class name).

Since:
1.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EStructuralFeature
org.eclipse.emf.ecore.EStructuralFeature.Internal, org.eclipse.emf.ecore.EStructuralFeature.Setting
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.ETypedElement
UNBOUNDED_MULTIPLICITY, UNSPECIFIED_MULTIPLICITY
 
Method Summary
 JavaClass getCollectionType()
           
 java.lang.String getCollectionTypeName()
          Returns the java CollectionType name
 EJBRelationshipRole getRole()
           
 void setCollectionType(JavaClass value)
           
 void setCollectionTypeName(java.lang.String typeName)
          Sets the java collection type name
 void setRole(EJBRelationshipRole value)
           
 
Methods inherited from interface org.eclipse.jst.j2ee.ejb.CMPAttribute
getDescription, getDescriptions, getField, getGetterName, getOriginatingType, getSetterName, getType, isCMRField, isDerived, isKey, isPrimKeyField, setDerived, setDescription, setOriginatingType
 
Methods inherited from interface org.eclipse.emf.ecore.EAttribute
getEAttributeType, isID, setID
 
Methods inherited from interface org.eclipse.emf.ecore.EStructuralFeature
getContainerClass, getDefaultValue, getDefaultValueLiteral, getEContainingClass, getFeatureID, isChangeable, isTransient, isUnsettable, isVolatile, setChangeable, setDefaultValue, setDefaultValueLiteral, setTransient, setUnsettable, setVolatile
 
Methods inherited from interface org.eclipse.emf.ecore.ETypedElement
getEGenericType, getEType, getLowerBound, getUpperBound, isMany, isOrdered, isRequired, isUnique, setEGenericType, setEType, setLowerBound, setOrdered, setUnique, setUpperBound
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
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

getCollectionTypeName

java.lang.String getCollectionTypeName()
Returns the java CollectionType name

Returns:
The name of the java collection type

setCollectionTypeName

void setCollectionTypeName(java.lang.String typeName)
Sets the java collection type name

Parameters:
typeName - the name of the java collection type

getRole

EJBRelationshipRole getRole()
Returns:
The Role reference

setRole

void setRole(EJBRelationshipRole value)
Parameters:
value - The new value of the Role reference

getCollectionType

JavaClass getCollectionType()
Returns:
The CollectionType reference

setCollectionType

void setCollectionType(JavaClass value)
Parameters:
value - The new value of the CollectionType reference