EIS Composite Collection Mappings map a java.util.Map or java.util.Collection of Java objects to an EIS record in a privately owned, one-to-many relationship according to its descriptor's record type.
| Record Type | Description |
|---|---|
| Indexed | Ordered collection of record elements. The indexed record EIS format enables Java class attribute values to be retrieved by position or index. |
| Mapped | Key-value map based representation of record elements. The mapped record EIS format enables Java class attribute values to be retrieved by an object key. |
| XML | Record/Map representation of an XML DOM element. |
org.eclipse.persistence.eis.EISDescriptor#useIndexedRecordFormat , org.eclipse.persistence.eis.EISDescriptor#useMappedRecordFormat , org.eclipse.persistence.eis.EISDescriptor#useXMLRecordFormat
| Access | Constructor and Description |
|---|---|
| public |
| EISCompositeCollectionMapping | back to summary |
|---|---|
| public EISCompositeCollectionMapping() | |
| buildCompositeObject | back to summary |
|---|---|
| protected Object buildCompositeObject(ClassDescriptor descriptor, AbstractRecord nestedRow, ObjectBuildingQuery query, CacheKey parentsCacheKey, JoinedAttributeManager joinManager, AbstractSession targetSession) Implements abstract org.
| |
| buildCompositeRow | back to summary |
|---|---|
| protected AbstractRecord buildCompositeRow(Object attributeValue, AbstractSession session, AbstractRecord parentRow, DatabaseMapping. Implements abstract org.
| |
| getFieldName | back to summary |
|---|---|
| public String getFieldName() PUBLIC: Return the name of the field mapped by the mapping. | |
| getXPath | back to summary |
|---|---|
| public String getXPath() Get the XPath String
| |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) throws DescriptorException Overrides org. INTERNAL: The mapping is initialized with the given session. This mapping is fully initialized after this.
| |
| isEISMapping | back to summary |
|---|---|
| public boolean isEISMapping() Overrides org. INTERNAL:
| |
| preInitialize | back to summary |
|---|---|
| public void preInitialize(AbstractSession session) Overrides org. Fix field names for XML data descriptors. Since fields are fixed to use text() by default in descriptor, ensure the correct non text field is used here.
| |
| setFieldName | back to summary |
|---|---|
| public void setFieldName(String fieldName) PUBLIC: Set the name of the field mapped by the mapping. | |
| setXPath | back to summary |
|---|---|
| public void setXPath(String xpathString) Set the Mapping field name attribute to the given XPath String
| |