|
EclipseLink 2.3.3, build 'v20120629-r11760' 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.AbstractCompositeDirectCollectionMapping
org.eclipse.persistence.oxm.mappings.XMLFragmentCollectionMapping
public class XMLFragmentCollectionMapping
| 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.foundation.AbstractCompositeDirectCollectionMapping |
|---|
elementDataTypeName, field, valueConverter |
| 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 |
| Fields inherited from interface org.eclipse.persistence.internal.oxm.XMLContainerMapping |
|---|
EMPTY_CONTAINER_DEFAULT |
| Constructor Summary | |
|---|---|
XMLFragmentCollectionMapping()
|
|
| Method Summary | |
|---|---|
boolean |
getReuseContainer()
Return true if the original container on the object should be used if present. |
AbstractNullPolicy |
getWrapperNullPolicy()
|
java.lang.String |
getXPath()
Get the XPath String |
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Initialize the mapping. |
boolean |
isAbstractCompositeDirectCollectionMapping()
INTERNAL: |
boolean |
isDefaultEmptyContainer()
INTERNAL Return true if an empty container should be set on the object if there is no presence of the collection in the XML document. |
boolean |
isWriteOnly()
INTERNAL: Some mappings support no attribute (transformation). |
boolean |
isXMLMapping()
INTERNAL: |
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 |
setDefaultEmptyContainer(boolean defaultEmptyContainer)
INTERNAL Indicate whether by default an empty container should be set on the field/property if the collection is not present in the XML document. |
void |
setIsWriteOnly(boolean b)
|
void |
setReuseContainer(boolean reuseContainer)
Specify whether the original container on the object should be used if present. |
void |
setWrapperNullPolicy(AbstractNullPolicy policy)
|
void |
setXPath(java.lang.String xpathString)
Set the Mapping field name attribute to the given XPath String |
java.lang.Object |
valueFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectBuildingQuery sourceQuery,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession executionSession,
boolean isTargetProtected,
java.lang.Boolean[] wasCacheUsed)
INTERNAL: Build the nested collection from the database row. |
void |
writeFromObjectIntoRow(java.lang.Object object,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.sessions.AbstractSession session,
DatabaseMapping.WriteType writeType)
INTERNAL: |
void |
writeSingleValue(java.lang.Object attributeValue,
java.lang.Object parent,
XMLRecord row,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: A method that marshals a single value to the provided Record based on this mapping's XPath. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.persistence.oxm.mappings.XMLMapping |
|---|
convertClassNamesToClasses |
| Constructor Detail |
|---|
public XMLFragmentCollectionMapping()
| Method Detail |
|---|
public boolean isXMLMapping()
isXMLMapping in class DatabaseMapping
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
initialize in class AbstractCompositeDirectCollectionMappingDescriptorExceptionpublic void setXPath(java.lang.String xpathString)
xpathString - Stringpublic java.lang.String getXPath()
public java.lang.Object valueFromRow(org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.queries.JoinedAttributeManager joinManager,
ObjectBuildingQuery sourceQuery,
org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey,
org.eclipse.persistence.internal.sessions.AbstractSession executionSession,
boolean isTargetProtected,
java.lang.Boolean[] wasCacheUsed)
throws DatabaseException
valueFromRow in class AbstractCompositeDirectCollectionMappingDatabaseException
public void writeFromObjectIntoRow(java.lang.Object object,
org.eclipse.persistence.internal.sessions.AbstractRecord row,
org.eclipse.persistence.internal.sessions.AbstractSession session,
DatabaseMapping.WriteType writeType)
writeFromObjectIntoRow in class AbstractCompositeDirectCollectionMappingpublic boolean isAbstractCompositeDirectCollectionMapping()
AbstractCompositeDirectCollectionMapping
isAbstractCompositeDirectCollectionMapping in class AbstractCompositeDirectCollectionMapping
public void writeSingleValue(java.lang.Object attributeValue,
java.lang.Object parent,
XMLRecord row,
org.eclipse.persistence.internal.sessions.AbstractSession session)
XMLMapping
writeSingleValue in interface XMLMappingattributeValue - - The value to be marshalledrow - - The Record the value is being marshalled too.public boolean isWriteOnly()
DatabaseMapping
isWriteOnly in interface XMLMappingisWriteOnly in class DatabaseMappingpublic void setIsWriteOnly(boolean b)
setIsWriteOnly in interface XMLMapping
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
throws DescriptorException
DatabaseMapping
preInitialize in class DatabaseMappingDescriptorException
public void setAttributeValueInObject(java.lang.Object object,
java.lang.Object value)
throws DescriptorException
DatabaseMapping
setAttributeValueInObject in class DatabaseMappingDescriptorExceptionpublic boolean getReuseContainer()
getReuseContainer in interface org.eclipse.persistence.internal.oxm.XMLContainerMappingpublic void setReuseContainer(boolean reuseContainer)
setReuseContainer in interface org.eclipse.persistence.internal.oxm.XMLContainerMappingpublic boolean isDefaultEmptyContainer()
isDefaultEmptyContainer in interface org.eclipse.persistence.internal.oxm.XMLContainerMappingpublic void setDefaultEmptyContainer(boolean defaultEmptyContainer)
setDefaultEmptyContainer in interface org.eclipse.persistence.internal.oxm.XMLContainerMappingpublic AbstractNullPolicy getWrapperNullPolicy()
getWrapperNullPolicy in interface org.eclipse.persistence.internal.oxm.XMLContainerMappingpublic void setWrapperNullPolicy(AbstractNullPolicy policy)
setWrapperNullPolicy in interface org.eclipse.persistence.internal.oxm.XMLContainerMapping
|
EclipseLink 2.3.3, build 'v20120629-r11760' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||