Class CMRField
- java.lang.Object
-
public class CMRField extends CMPAttribute
- Since:
- J2EE1.3 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).
Java class for CMRField complex type.
The following schema fragment specifies the expected content contained
within this class.
<complexType name="CMRField"> <complexContent> <extension base="{ejb.xmi}CMPAttribute"> <choice maxOccurs="unbounded" minOccurs="0"> <element name="collectionType" type="{java.xmi}JavaClass"/> </choice> <attribute name="collectionType" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcollectionTypeprotected List<JavaClass>collectionTypes-
Fields inherited from class org.apache.openejb.jee.was.v6.ejb.CMPAttribute
description, descriptions
-
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.EAttribute
id
-
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.EStructuralFeature
changeable, defaultValueLiteral, derived, isTransient, isVolatile, unsettable
-
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.ETypedElement
eClassifierETypes, eType, lowerBound, ordered, unique, upperBound
-
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.ENamedElement
name
-
Fields inherited from class org.apache.openejb.jee.was.v6.ecore.EModelElement
eAnnotations
-
-
Constructor Summary
Constructors Constructor Description CMRField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCollectionType()Gets the value of the collectionType property.List<JavaClass>getCollectionTypes()Gets the value of the collectionTypes property.voidsetCollectionType(String value)Sets the value of the collectionType property.-
Methods inherited from class org.apache.openejb.jee.was.v6.ejb.CMPAttribute
getDescription, getDescriptions, setDescription
-
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.EAttribute
isID, setID
-
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.EStructuralFeature
getDefaultValueLiteral, isChangeable, isDerived, isIsTransient, isIsVolatile, isUnsettable, setChangeable, setDefaultValueLiteral, setDerived, setIsTransient, setIsVolatile, setUnsettable
-
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.ETypedElement
getEClassifierETypes, getEType, getLowerBound, getUpperBound, isOrdered, isUnique, setEType, setLowerBound, setOrdered, setUnique, setUpperBound
-
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.ENamedElement
getName, setName
-
Methods inherited from class org.apache.openejb.jee.was.v6.ecore.EModelElement
getEAnnotations
-
-
-
-
Method Detail
-
getCollectionTypes
public List<JavaClass> getCollectionTypes()
Gets the value of the collectionTypes property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not asetmethod for the collectionTypes property. For example, to add a new item, do as follows:getCollectionTypes().add(newItem);
Objects of the following type(s) are allowed in the listJavaClass
-
getCollectionType
public String getCollectionType()
Gets the value of the collectionType property.- Returns:
- possible object is
String
-
-