|
EclipseLink 2.4.0, build 'v20111229-r10621' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.mappings.DatabaseMapping
org.eclipse.persistence.mappings.foundation.AbstractColumnMapping
org.eclipse.persistence.mappings.foundation.AbstractDirectMapping
org.eclipse.persistence.eis.mappings.EISDirectMapping
public class EISDirectMapping
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. |
EISDescriptor.useIndexedRecordFormat(),
EISDescriptor.useMappedRecordFormat(),
EISDescriptor.useXMLRecordFormat(),
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
|---|
DatabaseMapping.WriteType |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractDirectMapping |
|---|
attributeClassification, attributeClassificationName, attributeObjectClassification, fieldClassificationClassName, isMutable, keyTableForMapKey, nullValue |
| Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractColumnMapping |
|---|
converter, converterClassName, field, isInsertable, isUpdatable |
| Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
|---|
attributeAccessor, attributeName, derivedIdMapping, derivesId, descriptor, fields, isCacheable, isJPAId, isLazy, isMapKeyMapping, isOptional, isPrimaryKeyMapping, isReadOnly, isRemotelyInitialized, mapsIdValue, NO_FIELDS, NO_WEIGHT, properties, weight, WEIGHT_AGGREGATE, WEIGHT_DIRECT, WEIGHT_TO_ONE, WEIGHT_TRANSFORM |
| Constructor Summary | |
|---|---|
EISDirectMapping()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getXPath()
Get the XPath String associated with this Mapping |
boolean |
isEISMapping()
INTERNAL: |
void |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
Fix field names for XML data descriptors. |
void |
setFieldName(java.lang.String fieldName)
PUBLIC: Set the field name in the mapping. |
void |
setXPath(java.lang.String xpathString)
Set the Mapping field name attribute to the given XPath String. |
void |
writeFromObjectIntoRow(java.lang.Object object,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.sessions.AbstractSession session,
DatabaseMapping.WriteType writeType)
INTERNAL: We override this method in order to set the session on the record if the data format is XML. |
protected void |
writeValueIntoRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.helper.DatabaseField field,
java.lang.Object fieldValue)
INTERNAL: |
| Methods inherited from class org.eclipse.persistence.mappings.foundation.AbstractColumnMapping |
|---|
collectFields, fixObjectReferences, getConverter, getField, hasConverter, isAbstractColumnMapping, isInsertable, isUpdatable, iterate, setConverter, setConverterClassName, setField |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EISDirectMapping()
| Method Detail |
|---|
public boolean isEISMapping()
isEISMapping in class DatabaseMappingpublic void setXPath(java.lang.String xpathString)
xpathString - Stringpublic java.lang.String getXPath()
public void setFieldName(java.lang.String fieldName)
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
preInitialize in class AbstractDirectMapping
protected void writeValueIntoRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.helper.DatabaseField field,
java.lang.Object fieldValue)
AbstractColumnMapping
writeValueIntoRow in class AbstractDirectMapping
public void writeFromObjectIntoRow(java.lang.Object object,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.sessions.AbstractSession session,
DatabaseMapping.WriteType writeType)
writeFromObjectIntoRow in class AbstractDirectMapping
|
EclipseLink 2.4.0, build 'v20111229-r10621' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||