org.eclipse.jst.j2ee.ejb
Interface CMRField

All Superinterfaces:
CMPAttribute, J2EEEAttribute

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

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
 

Method Detail

getCollectionTypeName

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

Returns:
The name of the java collection type

setCollectionTypeName

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

Parameters:
typeName - the name of the java collection type

getRole

public EJBRelationshipRole getRole()
Returns:
The Role reference

setRole

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

getCollectionType

public JavaClass getCollectionType()
Returns:
The CollectionType reference

setCollectionType

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