Module org.eclipse.persistence.core
Class XPathObjectBuilder
java.lang.Object
org.eclipse.persistence.internal.core.descriptors.CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
org.eclipse.persistence.internal.oxm.XPathObjectBuilder
- All Implemented Interfaces:
ObjectBuilder
public class XPathObjectBuilder
extends CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
implements ObjectBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddClassIndicatorFieldToRow(AbstractMarshalRecord abstractMarshalRecord) addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers) voidaddTransformationMapping(TransformationMapping transformationMapping) Return a new instance of the receiver's javaClass.buildRow(XMLRecord record, Object object, CoreAbstractSession session, Marshaller marshaller, XPathFragment rootFragment) Class<?> classFromRow(UnmarshalRecord record, CoreAbstractSession session) createRecord(CoreAbstractSession session) Create a new row/record for the object builder.createRecordFromXMLContext(XMLContext context) Create a new row/record from XMLContext.extractPrimaryKeyFromObject(Object object, CoreAbstractSession session) Extract primary key attribute values from the domainObject.getMappingForField(CoreField field) Return the mapping for the specified field.booleanbooleanmarshalAttributes(MarshalRecord marshalRecord, Object object, CoreAbstractSession session)
-
Field Details
-
CYCLE_RECOVERABLE
- See Also:
-
CYCLE_RECOVERABLE_CONTEXT
- See Also:
-
ON_CYCLE_DETECTED
- See Also:
-
-
Constructor Details
-
XPathObjectBuilder
-
-
Method Details
-
addClassIndicatorFieldToRow
- Specified by:
addClassIndicatorFieldToRowin interfaceObjectBuilder
-
addExtraNamespacesToNamespaceResolver
public List<Namespace> addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers) - Specified by:
addExtraNamespacesToNamespaceResolverin interfaceObjectBuilder
-
addTransformationMapping
-
buildNewInstance
Return a new instance of the receiver's javaClass.- Specified by:
buildNewInstancein interfaceObjectBuilder- Specified by:
buildNewInstancein classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession, CoreField, CoreMapping>
-
buildRow
public XMLRecord buildRow(XMLRecord record, Object object, CoreAbstractSession session, Marshaller marshaller, XPathFragment rootFragment) - Specified by:
buildRowin interfaceObjectBuilder
-
classFromRow
- Specified by:
classFromRowin interfaceObjectBuilder
-
createRecord
Create a new row/record for the object builder. This allows subclasses to define different record types.- Specified by:
createRecordin interfaceObjectBuilder- Specified by:
createRecordin classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession, CoreField, CoreMapping>
-
extractPrimaryKeyFromObject
Description copied from class:CoreObjectBuilderExtract primary key attribute values from the domainObject.- Specified by:
extractPrimaryKeyFromObjectin interfaceObjectBuilder- Specified by:
extractPrimaryKeyFromObjectin classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession, CoreField, CoreMapping>
-
getContainerValues
- Specified by:
getContainerValuesin interfaceObjectBuilder
-
getDefaultEmptyContainerValues
- Specified by:
getDefaultEmptyContainerValuesin interfaceObjectBuilder
-
getDescriptor
- Specified by:
getDescriptorin interfaceObjectBuilder
-
getMappingForField
Description copied from class:CoreObjectBuilderReturn the mapping for the specified field.- Specified by:
getMappingForFieldin classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession, CoreField, CoreMapping>
-
getNullCapableValues
- Specified by:
getNullCapableValuesin interfaceObjectBuilder
-
getRootXPathNode
- Specified by:
getRootXPathNodein interfaceObjectBuilder
-
getTransformationMappings
- Specified by:
getTransformationMappingsin interfaceObjectBuilder
-
isXsiTypeIndicatorField
public boolean isXsiTypeIndicatorField()- Specified by:
isXsiTypeIndicatorFieldin interfaceObjectBuilder
-
marshalAttributes
public boolean marshalAttributes(MarshalRecord marshalRecord, Object object, CoreAbstractSession session) - Specified by:
marshalAttributesin interfaceObjectBuilder
-
createRecordFromXMLContext
Description copied from class:CoreObjectBuilderCreate a new row/record from XMLContext.- Specified by:
createRecordFromXMLContextin classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession, CoreField, CoreMapping>
-