|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.mappings.DatabaseMapping org.eclipse.persistence.oxm.mappings.XMLAbstractAnyMapping
public abstract class XMLAbstractAnyMapping
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.persistence.mappings.DatabaseMapping |
---|
DatabaseMapping.WriteType |
Field Summary |
---|
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, weight, WEIGHT_AGGREGATE, WEIGHT_DIRECT, WEIGHT_TO_ONE, WEIGHT_TRANSFORM |
Constructor Summary | |
---|---|
XMLAbstractAnyMapping()
|
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)
Uses a given reference descriptor to build an object based on a given DOMRecord. |
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,
XMLConverter converter,
org.eclipse.persistence.internal.sessions.AbstractSession session,
org.w3c.dom.Node next,
java.lang.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(org.w3c.dom.Node node,
java.lang.Object object)
Convenience method that builds an XMLRoot wrapping a given object. |
protected XMLRoot |
buildXMLRootForText(org.w3c.dom.Node node,
javax.xml.namespace.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,
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 java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLAbstractAnyMapping()
Method Detail |
---|
public UnmarshalKeepAsElementPolicy getKeepAsElementPolicy()
public void setKeepAsElementPolicy(UnmarshalKeepAsElementPolicy keepAsElementPolicy)
protected XMLDescriptor getDescriptor(XMLRecord xmlRecord, org.eclipse.persistence.internal.sessions.AbstractSession session, javax.xml.namespace.QName rootQName) throws XMLMarshalException
XMLMarshalException
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 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 buildObjectNoReferenceDescriptor(DOMRecord record, XMLConverter converter, org.eclipse.persistence.internal.sessions.AbstractSession session, org.w3c.dom.Node next, java.lang.Object container, org.eclipse.persistence.internal.queries.ContainerPolicy cp)
protected XMLRoot buildXMLRootForText(org.w3c.dom.Node node, javax.xml.namespace.QName schemaTypeQName, XMLConverter converter, org.eclipse.persistence.internal.sessions.AbstractSession session, DOMRecord record)
protected XMLRoot buildXMLRoot(org.w3c.dom.Node node, java.lang.Object object)
public boolean isWriteOnly()
DatabaseMapping
isWriteOnly
in class DatabaseMapping
public void setIsWriteOnly(boolean b)
public void setAttributeValueInObject(java.lang.Object object, java.lang.Object value) throws DescriptorException
DatabaseMapping
setAttributeValueInObject
in class DatabaseMapping
DescriptorException
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
DatabaseMapping
preInitialize
in class DatabaseMapping
DescriptorException
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |