org.eclipse.persistence.oxm.mappings
Class XMLFragmentMapping
java.lang.Object
org.eclipse.persistence.mappings.DatabaseMapping
org.eclipse.persistence.mappings.foundation.AbstractDirectMapping
org.eclipse.persistence.oxm.mappings.XMLDirectMapping
org.eclipse.persistence.oxm.mappings.XMLFragmentMapping
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, XMLMapping, XMLNillableMapping
public class XMLFragmentMapping
- extends XMLDirectMapping
PUBLIC:
Purpose:This mapping provides a means to keep a part of an XML tree as a Node.
- See Also:
- Serialized Form
Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
attributeAccessor, attributeName, descriptor, fields, isLazy, isOptional, isReadOnly, isRemotelyInitialized, NO_FIELDS, NO_WEIGHT, primaryKeyMapping, properties, weight, WEIGHT_1 |
Method Summary |
boolean |
isAbstractDirectMapping()
INTERNAL: |
void |
setXPath(java.lang.String xpathString)
Set the Mapping field name attribute to the given XPath String |
java.lang.Object |
valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession executionSession)
INTERNAL:
Return the mapping's attribute value from the row. |
void |
writeFromObjectIntoRow(java.lang.Object object,
AbstractRecord row,
AbstractSession session)
INTERNAL:
Get a value from the object and set that in the respective field of the row. |
void |
writeSingleValue(java.lang.Object attributeValue,
java.lang.Object parent,
XMLRecord row,
AbstractSession session)
INTERNAL:
A method that marshals a single value to the provided Record based on this mapping's
XPath. |
Methods inherited from class org.eclipse.persistence.oxm.mappings.XMLDirectMapping |
getAttributeValue, getFieldValue, getNullPolicy, getXPath, initialize, isCDATA, isXMLMapping, setAttributeValueInObject, setIsCDATA, setNullPolicy, writeValueIntoRow |
Methods inherited from class org.eclipse.persistence.mappings.foundation.AbstractDirectMapping |
buildBackupClone, buildChangeRecord, buildClone, buildCloneFromRow, buildCloneValue, buildCopy, buildExpression, buildShallowOriginalFromRow, cascadePerformRemoveIfRequired, cascadeRegisterNewIfRequired, clone, collectFields, compareForChange, compareObjects, convertClassNamesToClasses, fixObjectReferences, getAttributeClassification, getAttributeClassificationName, getAttributeValue, getConverter, getField, getFieldClassification, getFieldClassification, getFieldName, getFieldValue, getNullValue, getWeight, hasConverter, internalBuildChangeRecord, isChangeTrackingSupported, isCloningRequired, isDirectToFieldMapping, isMutable, iterate, mergeChangesIntoObject, mergeIntoObject, preInitialize, setAttributeClassification, setAttributeClassificationName, setConverter, setConverterClassName, setField, setFieldClassification, setFieldType, setIsMutable, setNullValue, toString, updateChangeRecord, validateBeforeInitialization, valueFromObject, valueFromResultSet, writeFromObjectIntoRowForUpdate, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRow |
Methods inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
addToCollectionChangeRecord, buildBackupCloneForPartObject, buildCloneForPartObject, buildObjectJoinExpression, buildObjectJoinExpression, calculateDeferredChanges, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadeMerge, cloneFields, createUnitOfWorkValueHolder, extractNestedExpressions, fixRealObjectReferences, getAttributeAccessor, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDescriptor, getFields, getGetMethodName, getObjectCorrespondingTo, getProperties, getProperty, getRealAttributeValueFromObject, getRealCollectionAttributeValueFromObject, getReferenceDescriptor, getRelationshipPartner, getSelectFields, getSelectTables, getSetMethodName, getValueFromRemoteValueHolder, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, hasRootExpressionThatShouldUseOuterJoin, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAggregateCollectionMapping, isAggregateMapping, isAggregateObjectMapping, isCascadedLockingSupported, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectMapMapping, isDirectToXMLTypeMapping, isEISMapping, isForeignReferenceMapping, isJoiningSupported, isLazy, isManyToManyMapping, isNestedTableMapping, isObjectReferenceMapping, isObjectTypeMapping, isOneToManyMapping, isOneToOneMapping, isOptional, isPrimaryKeyMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isRelationalMapping, isRemotelyInitialized, isSerializedObjectMapping, isStructureMapping, isTransformationMapping, isTypeConversionMapping, isUsingMethodAccess, isVariableOneToOneMapping, isWriteOnly, iterateOnRealAttributeValue, performDataModificationEvent, postDelete, postInitialize, postInsert, postUpdate, preDelete, preInsert, prepareCascadeLockingPolicy, preUpdate, readFromResultSetIntoObject, readFromRowIntoObject, readFromRowIntoObject, readOnly, readWrite, rehashFieldDependancies, remoteInitialization, remotelyInitialized, removeFromCollectionChangeRecord, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setChangeListener, setDescriptor, setFields, setGetMethodName, setIsLazy, setIsOptional, setIsPrimaryKeyMapping, setIsReadOnly, setProperties, setProperty, setRealAttributeValueInObject, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, validateAfterInitialization, valueFromResultSet, valueFromRow, verifyDelete, writeFromAttributeIntoRow, writeFromObjectIntoRowForShallowInsert, writeFromObjectIntoRowForShallowInsertWithChangeRecord, writeFromObjectIntoRowForWhereClause, writeUpdateFieldsIntoRow |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLFragmentMapping
public XMLFragmentMapping()
writeFromObjectIntoRow
public void writeFromObjectIntoRow(java.lang.Object object,
AbstractRecord row,
AbstractSession session)
- INTERNAL:
Get a value from the object and set that in the respective field of the row.
- Overrides:
writeFromObjectIntoRow
in class XMLDirectMapping
valueFromRow
public java.lang.Object valueFromRow(AbstractRecord row,
JoinedAttributeManager joinManager,
ObjectBuildingQuery query,
AbstractSession executionSession)
- Description copied from class:
XMLDirectMapping
- INTERNAL:
Return the mapping's attribute value from the row.
The execution session is passed for the case of building a UnitOfWork clone
directly from a row, the session set in the query will not know which platform to use
for converting the value. Allows the correct session to be passed in.
- Overrides:
valueFromRow
in class XMLDirectMapping
writeSingleValue
public void writeSingleValue(java.lang.Object attributeValue,
java.lang.Object parent,
XMLRecord row,
AbstractSession session)
- Description copied from interface:
XMLMapping
- INTERNAL:
A method that marshals a single value to the provided Record based on this mapping's
XPath. Used for Sequenced marshalling.
- Specified by:
writeSingleValue
in interface XMLMapping
- Overrides:
writeSingleValue
in class XMLDirectMapping
- Parameters:
attributeValue
- - The value to be marshalledrow
- - The Record the value is being marshalled too.
setXPath
public void setXPath(java.lang.String xpathString)
- Description copied from class:
XMLDirectMapping
- Set the Mapping field name attribute to the given XPath String
- Overrides:
setXPath
in class XMLDirectMapping
- Parameters:
xpathString
- String
isAbstractDirectMapping
public boolean isAbstractDirectMapping()
- Description copied from class:
AbstractDirectMapping
- INTERNAL:
- Overrides:
isAbstractDirectMapping
in class AbstractDirectMapping