public abstract class XMLAbstractAnyMapping extends DatabaseMapping
Purpose: An abstract superclass for XMLAnyObjectMapping and XMLAnyCollectionMapping. Maps an attribute of an object to an xs:any construct in the schema.
DatabaseMapping.WriteTypeattributeAccessor, attributeName, derivedIdMapping, derivesId, descriptor, fields, isCacheable, isInSopObject, 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 and Description |
|---|
XMLAbstractAnyMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
buildObjectAndWrapInXMLRoot(ClassDescriptor referenceDescriptor,
XMLConverter converter,
ObjectBuildingQuery query,
DOMRecord record,
DOMRecord nestedRecord,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
org.eclipse.persistence.internal.sessions.AbstractSession session,
Node next,
Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
Uses a given reference descriptor to build an object based on a given DOMRecord.
|
protected Object |
buildObjectForNonXMLRoot(ClassDescriptor referenceDescriptor,
XMLConverter converter,
ObjectBuildingQuery query,
DOMRecord record,
DOMRecord nestedRecord,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
org.eclipse.persistence.internal.sessions.AbstractSession session,
Node next,
Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy) |
protected Object |
buildObjectNoReferenceDescriptor(DOMRecord record,
XMLConverter converter,
org.eclipse.persistence.internal.sessions.AbstractSession session,
Node next,
Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy cp)
Convenience method that takes a given Node and applies namespace
information, converts it if necessary, and adds the resulting
object to the given ContainerPolicy if non-null.
|
protected XMLRoot |
buildXMLRoot(Node node,
Object object)
Convenience method that builds an XMLRoot wrapping a given object.
|
protected XMLRoot |
buildXMLRootForText(Node node,
QName schemaTypeQName,
XMLConverter converter,
org.eclipse.persistence.internal.sessions.AbstractSession session,
DOMRecord record)
Convenience method that takes a given node and checks the first child for
TEXT_NODE.
|
protected XMLDescriptor |
getDescriptor(XMLRecord xmlRecord,
org.eclipse.persistence.internal.sessions.AbstractSession session,
QName rootQName) |
UnmarshalKeepAsElementPolicy |
getKeepAsElementPolicy() |
boolean |
isWriteOnly()
INTERNAL:
Some mappings support no attribute (transformation and multitenant primary key).
|
void |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Allow for initialization of properties and validation.
|
void |
setAttributeValueInObject(Object object,
Object value)
INTERNAL:
Set the value of the attribute mapped by this mapping.
|
void |
setIsWriteOnly(boolean b) |
void |
setKeepAsElementPolicy(UnmarshalKeepAsElementPolicy keepAsElementPolicy) |
addUnconvertedProperty, buildBackupClone, buildBackupCloneForPartObject, buildChangeRecord, buildClone, buildCloneForPartObject, buildCloneFromRow, buildContainerClone, buildCopy, buildExpression, buildObjectJoinExpression, buildObjectJoinExpression, buildShallowOriginalFromRow, calculateDeferredChanges, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemoveIfRequired, cascadePerformRemovePrivateOwnedObjectFromChangeSetIfRequired, cascadeRegisterNewIfRequired, clone, cloneFields, collectFields, collectQueryParameters, compareForChange, compareObjects, convertClassNamesToClasses, convertConverterClassNamesToClasses, createCloneValueHolder, derivesId, earlyPreDelete, extractNestedExpressions, extractNestedNonAggregateExpressions, fixObjectReferences, fixRealObjectReferences, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDerivedIdMapping, getDescriptor, getField, getFieldClassification, getFields, getGetMethodName, getMapsIdValue, getObjectCorrespondingTo, getOrderByNormalizedExpressions, getProperties, getProperty, getRealAttributeValueFromAttribute, getRealAttributeValueFromObject, getRealCollectionAttributeValueFromObject, getReferenceDescriptor, getRelationshipPartner, getSelectFields, getSelectTables, getSetMethodName, getUnconvertedProperties, getValueFromRemoteValueHolder, getWeight, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, hasMapsIdValue, hasNestedIdentityReference, hasRootExpressionThatShouldUseOuterJoin, hasUnconvertedProperties, initialize, instantiateAttribute, isAbstractColumnMapping, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isAggregateCollectionMapping, isAggregateMapping, isAggregateObjectMapping, isAttributeValueFromObjectInstantiated, isCacheable, isCandidateForPrivateOwnedRemoval, isCascadedLockingSupported, isChangeTrackingSupported, isCloningRequired, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectMapMapping, isDirectToFieldMapping, isDirectToXMLTypeMapping, isEISMapping, isElementCollectionMapping, isForeignReferenceMapping, isInAndOutSopObject, isInOnlySopObject, isInSopObject, isJoiningSupported, isJPAId, isLazy, isLockableMapping, isManyToManyMapping, isManyToOneMapping, isMapKeyMapping, isMultitenantPrimaryKeyMapping, isNestedTableMapping, isObjectReferenceMapping, isOneToManyMapping, isOneToOneMapping, isOptional, isOutOnlySopObject, isOutSopObject, isOwned, isPrimaryKeyMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isRelationalMapping, isRemotelyInitialized, isStructureMapping, isTransformationMapping, isUnidirectionalOneToManyMapping, isUsingMethodAccess, isVariableOneToOneMapping, isXMLMapping, iterate, iterateOnRealAttributeValue, load, loadAll, mergeChangesIntoObject, mergeIntoObject, performDataModificationEvent, postCalculateChanges, postCalculateChangesOnDeleted, postDelete, postInitialize, postInitializeSourceAndTargetExpressions, postInsert, postUpdate, preDelete, preInsert, prepareCascadeLockingPolicy, preUpdate, readFromResultSetIntoObject, readFromRowIntoObject, readOnly, readWrite, recordPrivateOwnedRemovals, rehashFieldDependancies, remoteInitialization, remotelyInitialized, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setChangeListener, setDerivedIdMapping, setDerivesId, setDescriptor, setFields, setGetMethodName, setIsCacheable, setIsInAndOutSopObject, setIsInSopObject, setIsJPAId, setIsLazy, setIsMapKeyMapping, setIsOptional, setIsOutSopObject, setIsPrimaryKeyMapping, setIsReadOnly, setMapsIdValue, setProperties, setProperty, setRealAttributeValueInObject, setSetMethodName, setWeight, simpleAddToCollectionChangeRecord, simpleRemoveFromCollectionChangeRecord, toString, updateChangeRecord, updateCollectionChangeRecord, validateAfterInitialization, validateBeforeInitialization, valueFromObject, valueFromResultSet, valueFromRow, valueFromRow, verifyDelete, writeFromAttributeIntoRow, writeFromObjectIntoRow, writeFromObjectIntoRowForShallowInsert, writeFromObjectIntoRowForShallowInsertWithChangeRecord, writeFromObjectIntoRowForUpdate, writeFromObjectIntoRowForUpdateAfterShallowInsert, writeFromObjectIntoRowForUpdateBeforeShallowDelete, writeFromObjectIntoRowForWhereClause, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRow, writeUpdateFieldsIntoRowpublic UnmarshalKeepAsElementPolicy getKeepAsElementPolicy()
public void setKeepAsElementPolicy(UnmarshalKeepAsElementPolicy keepAsElementPolicy)
protected XMLDescriptor getDescriptor(XMLRecord xmlRecord, org.eclipse.persistence.internal.sessions.AbstractSession session, QName rootQName) throws XMLMarshalException
XMLMarshalExceptionprotected Object buildObjectForNonXMLRoot(ClassDescriptor referenceDescriptor, XMLConverter converter, ObjectBuildingQuery query, DOMRecord record, DOMRecord nestedRecord, org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager, org.eclipse.persistence.internal.sessions.AbstractSession session, Node next, Object container, org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
protected Object buildObjectAndWrapInXMLRoot(ClassDescriptor referenceDescriptor, XMLConverter converter, ObjectBuildingQuery query, DOMRecord record, DOMRecord nestedRecord, org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager, org.eclipse.persistence.internal.sessions.AbstractSession session, Node next, Object container, org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
protected Object buildObjectNoReferenceDescriptor(DOMRecord record, XMLConverter converter, org.eclipse.persistence.internal.sessions.AbstractSession session, Node next, Object container, org.eclipse.persistence.internal.queries.ContainerPolicy cp)
protected XMLRoot buildXMLRootForText(Node node, QName schemaTypeQName, XMLConverter converter, org.eclipse.persistence.internal.sessions.AbstractSession session, DOMRecord record)
protected XMLRoot buildXMLRoot(Node node, Object object)
public boolean isWriteOnly()
DatabaseMappingisWriteOnly in class DatabaseMappingpublic void setIsWriteOnly(boolean b)
public void setAttributeValueInObject(Object object, Object value) throws DescriptorException
DatabaseMappingsetAttributeValueInObject in class DatabaseMappingDescriptorExceptionpublic void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
DatabaseMappingpreInitialize in class DatabaseMappingDescriptorExceptionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.