|
EclipseLink 1.1.0_ 1.1.0.r3634 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.AbstractDirectMapping
org.eclipse.persistence.mappings.DirectToFieldMapping
org.eclipse.persistence.mappings.xdb.DirectToXMLTypeMapping
public class DirectToXMLTypeMapping
Purpose: Mapping used to map from a DOM (org.w3c.Document) or XML String into an Oracle XMLType field, in Oracle 9i XDB.
| Field Summary | |
|---|---|
protected boolean |
shouldReadWholeDocument
Indicates if we should initialize the whole DOM on a read. |
| Fields inherited from class org.eclipse.persistence.mappings.foundation.AbstractDirectMapping |
|---|
attributeClassification, attributeClassificationName, attributeObjectClassification, converter, converterClassName, field, isMutable, nullValue |
| Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
|---|
attributeAccessor, attributeName, descriptor, fields, isLazy, isOptional, isPrimaryKeyMapping, isReadOnly, isRemotelyInitialized, NO_FIELDS, NO_WEIGHT, properties, weight, WEIGHT_1 |
| Constructor Summary | |
|---|---|
DirectToXMLTypeMapping()
|
|
| Method Summary | |
|---|---|
void |
buildClone(java.lang.Object original,
java.lang.Object clone,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork)
INTERNAL: Build a clone of the Document for comparision at commit time. |
boolean |
compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Compare the objects to see if an update is required. |
java.lang.Object |
getAttributeValue(java.lang.Object fieldValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Get the attribute value for the given field value. |
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: The mapping is initialized with the given session. |
boolean |
isDirectToXMLTypeMapping()
INTERNAL: Related mapping should implement this method to return true. |
void |
setShouldReadWholeDocument(boolean readWholeDocument)
PUBLIC: |
boolean |
shouldReadWholeDocument()
PUBLIC: |
java.lang.Object |
valueFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession executionSession)
INTERNAL: Return the mapping's attribute value from the row. |
| Methods inherited from class org.eclipse.persistence.mappings.DirectToFieldMapping |
|---|
isRelationalMapping, setFieldName, writeValueIntoRow |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean shouldReadWholeDocument
| Constructor Detail |
|---|
public DirectToXMLTypeMapping()
| Method Detail |
|---|
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
initialize in class AbstractDirectMappingDescriptorExceptionpublic void setShouldReadWholeDocument(boolean readWholeDocument)
boolean - - determines if the Oracle XDB DOM should be fully initialized
on a read.public boolean shouldReadWholeDocument()
public java.lang.Object getAttributeValue(java.lang.Object fieldValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
DescriptorExceptionpublic boolean isDirectToXMLTypeMapping()
DatabaseMapping
isDirectToXMLTypeMapping in class DatabaseMapping
public void buildClone(java.lang.Object original,
java.lang.Object clone,
org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork)
buildClone in class AbstractDirectMapping
public boolean compareObjects(java.lang.Object firstObject,
java.lang.Object secondObject,
org.eclipse.persistence.internal.sessions.AbstractSession session)
compareObjects in class AbstractDirectMapping
public java.lang.Object valueFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
org.eclipse.persistence.internal.sessions.AbstractSession executionSession)
AbstractDirectMapping
valueFromRow in class AbstractDirectMapping
|
EclipseLink 1.1.0_ 1.1.0.r3634 API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||