|
EclipseLink 2.4.2, build 'v20130514-5956486' 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.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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
|---|
DatabaseMapping.WriteType |
| 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, 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, unconvertedProperties, weight, WEIGHT_AGGREGATE, WEIGHT_DIRECT, WEIGHT_TO_ONE, WEIGHT_TRANSFORM |
| Constructor Summary | |
|---|---|
DirectToXMLTypeMapping()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
buildCloneValue(java.lang.Object attributeValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Clone the DOM Document if required. |
protected boolean |
compareObjectValues(java.lang.Object firstValue,
java.lang.Object secondValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Compare the attribute values. |
java.lang.Object |
getObjectValue(java.lang.Object fieldValue,
Session 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 |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Default to mutable if mapped as a DOM. |
void |
setShouldReadWholeDocument(boolean readWholeDocument)
PUBLIC: |
boolean |
shouldReadWholeDocument()
PUBLIC: |
| Methods inherited from class org.eclipse.persistence.mappings.DirectToFieldMapping |
|---|
isRelationalMapping, setFieldName, writeValueIntoRow |
| 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 |
| Field Detail |
|---|
protected boolean shouldReadWholeDocument
| Constructor Detail |
|---|
public DirectToXMLTypeMapping()
| Method Detail |
|---|
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
preInitialize in class AbstractDirectMappingDescriptorException
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 getObjectValue(java.lang.Object fieldValue,
Session session)
throws ConversionException
getObjectValue in class AbstractDirectMappingConversionExceptionpublic boolean isDirectToXMLTypeMapping()
DatabaseMapping
isDirectToXMLTypeMapping in class DatabaseMapping
protected java.lang.Object buildCloneValue(java.lang.Object attributeValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
buildCloneValue in class AbstractDirectMapping
protected boolean compareObjectValues(java.lang.Object firstValue,
java.lang.Object secondValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
compareObjectValues in class AbstractDirectMapping
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||