EIS Direct Mappings map a simple Java attribute to and from an EIS Record 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 retreived 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 retreived 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 |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: String the XPath String associated with this MappingGet the XPath String associated with this Mapping |
| public boolean | |
| public void | |
| public void | |
| public void | writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping.
Overrides org. |
| protected void | writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue)
Implements abstract org. |
| EISDirectMapping | back to summary |
|---|---|
| public EISDirectMapping() | |
| getXPath | back to summary |
|---|---|
| public String getXPath() Get the XPath String associated with this Mapping
| |
| isEISMapping | back to summary |
|---|---|
| public boolean isEISMapping() Overrides org. INTERNAL:
| |
| setFieldName | back to summary |
|---|---|
| public void setFieldName(String fieldName) PUBLIC: Set the field name in the mapping. | |
| setXPath | back to summary |
|---|---|
| public void setXPath(String xpathString) Set the Mapping field name attribute to the given XPath String.
| |
| writeFromObjectIntoRow | back to summary |
|---|---|
| public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, DatabaseMapping. Overrides org. INTERNAL: We override this method in order to set the session on the record if the data format is XML. Get a value from the object and set that in the respective field of the row.
| |
| writeValueIntoRow | back to summary |
|---|---|
| protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) Implements abstract org. Doc from org. INTERNAL:
| |