org.eclipse.persistence.oxm.mappings
Class XMLAbstractAnyMapping
java.lang.Object
org.eclipse.persistence.mappings.DatabaseMapping
org.eclipse.persistence.oxm.mappings.XMLAbstractAnyMapping
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- XMLAnyCollectionMapping, XMLAnyObjectMapping
public abstract class XMLAbstractAnyMapping
- extends DatabaseMapping
- See Also:
- Serialized Form
Fields inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
attributeAccessor, attributeName, derivedIdMapping, derivesId, descriptor, fields, isJPAId, isLazy, isMapKeyMapping, isOptional, isPrimaryKeyMapping, isReadOnly, isRemotelyInitialized, mapsIdValue, NO_FIELDS, NO_WEIGHT, properties, weight, WEIGHT_1 |
Method Summary |
protected java.lang.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,
org.w3c.dom.Node next,
java.lang.Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
|
protected java.lang.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,
org.w3c.dom.Node next,
java.lang.Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
|
protected java.lang.Object |
buildObjectNoReferenceDescriptor(DOMRecord record,
org.eclipse.persistence.internal.sessions.AbstractSession session,
org.w3c.dom.Node next,
java.lang.Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy cp)
|
protected XMLDescriptor |
getDescriptor(XMLRecord xmlRecord,
org.eclipse.persistence.internal.sessions.AbstractSession session,
javax.xml.namespace.QName rootQName)
|
UnmarshalKeepAsElementPolicy |
getKeepAsElementPolicy()
|
boolean |
isWriteOnly()
INTERNAL:
Some mappings support no attribute (transformation). |
void |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Allow for initialization of properties and validation. |
void |
setAttributeValueInObject(java.lang.Object object,
java.lang.Object value)
INTERNAL:
Set the value of the attribute mapped by this mapping. |
void |
setIsWriteOnly(boolean b)
|
void |
setKeepAsElementPolicy(UnmarshalKeepAsElementPolicy keepAsElementPolicy)
|
Methods inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
buildBackupClone, buildBackupCloneForPartObject, buildChangeRecord, buildClone, buildCloneForPartObject, buildCloneFromRow, buildCopy, buildExpression, buildObjectJoinExpression, buildObjectJoinExpression, buildShallowOriginalFromRow, calculateDeferredChanges, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadeMerge, cascadePerformRemoveIfRequired, cascadePerformRemovePrivateOwnedObjectFromChangeSetIfRequired, cascadeRegisterNewIfRequired, clone, cloneFields, collectFields, compareForChange, compareObjects, convertClassNamesToClasses, createUnitOfWorkValueHolder, derivesId, earlyPreDelete, extractNestedExpressions, fixObjectReferences, fixRealObjectReferences, getAttributeAccessor, getAttributeClassification, getAttributeName, getAttributeValueFromObject, getContainerPolicy, getDerivedIdMapping, getDescriptor, getField, getFieldClassification, getFields, getGetMethodName, getMapsIdValue, getObjectCorrespondingTo, getProperties, getProperty, getRealAttributeValueFromAttribute, getRealAttributeValueFromObject, getRealCollectionAttributeValueFromObject, getReferenceDescriptor, getRelationshipPartner, getSelectFields, getSelectTables, getSetMethodName, getValueFromRemoteValueHolder, getWeight, hasConstraintDependency, hasDependency, hasInverseConstraintDependency, hasMapsIdValue, hasRootExpressionThatShouldUseOuterJoin, initialize, instantiateAttribute, isAbstractCompositeCollectionMapping, isAbstractCompositeDirectCollectionMapping, isAbstractCompositeObjectMapping, isAbstractDirectMapping, isAggregateCollectionMapping, isAggregateMapping, isAggregateObjectMapping, isCandidateForPrivateOwnedRemoval, isCascadedLockingSupported, isChangeTrackingSupported, isCloningRequired, isCollectionMapping, isDatabaseMapping, isDirectCollectionMapping, isDirectMapMapping, isDirectToFieldMapping, isDirectToXMLTypeMapping, isEISMapping, isForeignReferenceMapping, isJoiningSupported, isJPAId, isLazy, isLockableMapping, isManyToManyMapping, isMapKeyMapping, isNestedTableMapping, isObjectReferenceMapping, isOneToManyMapping, isOneToOneMapping, isOptional, isOwned, isPrimaryKeyMapping, isPrivateOwned, isReadOnly, isReferenceMapping, isRelationalMapping, isRemotelyInitialized, isStructureMapping, isTransformationMapping, isUnidirectionalOneToManyMapping, isUsingMethodAccess, isVariableOneToOneMapping, isXMLMapping, iterate, iterateOnRealAttributeValue, mergeChangesIntoObject, mergeIntoObject, performDataModificationEvent, postCalculateChanges, postCalculateChangesOnDeleted, postDelete, postInitialize, postInsert, postUpdate, preDelete, preInsert, prepareCascadeLockingPolicy, preUpdate, readFromResultSetIntoObject, readFromRowIntoObject, readOnly, readWrite, recordPrivateOwnedRemovals, rehashFieldDependancies, remoteInitialization, remotelyInitialized, replaceValueHoldersIn, setAttributeAccessor, setAttributeName, setChangeListener, setDerivedIdMapping, setDerivesId, setDescriptor, setFields, setGetMethodName, setIsJPAId, setIsLazy, setIsMapKeyMapping, setIsOptional, 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, writeFromObjectIntoRowForWhereClause, writeFromObjectIntoRowWithChangeRecord, writeInsertFieldsIntoRow, writeUpdateFieldsIntoRow |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XMLAbstractAnyMapping
public XMLAbstractAnyMapping()
getKeepAsElementPolicy
public UnmarshalKeepAsElementPolicy getKeepAsElementPolicy()
setKeepAsElementPolicy
public void setKeepAsElementPolicy(UnmarshalKeepAsElementPolicy keepAsElementPolicy)
getDescriptor
protected XMLDescriptor getDescriptor(XMLRecord xmlRecord,
org.eclipse.persistence.internal.sessions.AbstractSession session,
javax.xml.namespace.QName rootQName)
throws XMLMarshalException
- Throws:
XMLMarshalException
buildObjectForNonXMLRoot
protected java.lang.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,
org.w3c.dom.Node next,
java.lang.Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
buildObjectAndWrapInXMLRoot
protected java.lang.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,
org.w3c.dom.Node next,
java.lang.Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy containerPolicy)
buildObjectNoReferenceDescriptor
protected java.lang.Object buildObjectNoReferenceDescriptor(DOMRecord record,
org.eclipse.persistence.internal.sessions.AbstractSession session,
org.w3c.dom.Node next,
java.lang.Object container,
org.eclipse.persistence.internal.queries.ContainerPolicy cp)
isWriteOnly
public boolean isWriteOnly()
- Description copied from class:
DatabaseMapping
- INTERNAL:
Some mappings support no attribute (transformation).
- Overrides:
isWriteOnly
in class DatabaseMapping
setIsWriteOnly
public void setIsWriteOnly(boolean b)
setAttributeValueInObject
public void setAttributeValueInObject(java.lang.Object object,
java.lang.Object value)
throws DescriptorException
- Description copied from class:
DatabaseMapping
- INTERNAL:
Set the value of the attribute mapped by this mapping.
- Overrides:
setAttributeValueInObject
in class DatabaseMapping
- Throws:
DescriptorException
preInitialize
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
- Description copied from class:
DatabaseMapping
- INTERNAL:
Allow for initialization of properties and validation.
- Overrides:
preInitialize
in class DatabaseMapping
- Throws:
DescriptorException