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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addClassIndicatorFieldToRow
(AbstractMarshalRecord abstractMarshalRecord) addExtraNamespacesToNamespaceResolver
(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers) void
addTransformationMapping
(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.boolean
boolean
marshalAttributes
(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:
addClassIndicatorFieldToRow
in interfaceObjectBuilder
-
addExtraNamespacesToNamespaceResolver
public List<Namespace> addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers) - Specified by:
addExtraNamespacesToNamespaceResolver
in interfaceObjectBuilder
-
addTransformationMapping
-
buildNewInstance
Return a new instance of the receiver's javaClass.- Specified by:
buildNewInstance
in interfaceObjectBuilder
- Specified by:
buildNewInstance
in classCoreObjectBuilder<CoreAbstractRecord,
CoreAbstractSession, CoreField, CoreMapping>
-
buildRow
public XMLRecord buildRow(XMLRecord record, Object object, CoreAbstractSession session, Marshaller marshaller, XPathFragment rootFragment) - Specified by:
buildRow
in interfaceObjectBuilder
-
classFromRow
- Specified by:
classFromRow
in interfaceObjectBuilder
-
createRecord
Create a new row/record for the object builder. This allows subclasses to define different record types.- Specified by:
createRecord
in interfaceObjectBuilder
- Specified by:
createRecord
in classCoreObjectBuilder<CoreAbstractRecord,
CoreAbstractSession, CoreField, CoreMapping>
-
extractPrimaryKeyFromObject
Description copied from class:CoreObjectBuilder
Extract primary key attribute values from the domainObject.- Specified by:
extractPrimaryKeyFromObject
in interfaceObjectBuilder
- Specified by:
extractPrimaryKeyFromObject
in classCoreObjectBuilder<CoreAbstractRecord,
CoreAbstractSession, CoreField, CoreMapping>
-
getContainerValues
- Specified by:
getContainerValues
in interfaceObjectBuilder
-
getDefaultEmptyContainerValues
- Specified by:
getDefaultEmptyContainerValues
in interfaceObjectBuilder
-
getDescriptor
- Specified by:
getDescriptor
in interfaceObjectBuilder
-
getMappingForField
Description copied from class:CoreObjectBuilder
Return the mapping for the specified field.- Specified by:
getMappingForField
in classCoreObjectBuilder<CoreAbstractRecord,
CoreAbstractSession, CoreField, CoreMapping>
-
getNullCapableValues
- Specified by:
getNullCapableValues
in interfaceObjectBuilder
-
getRootXPathNode
- Specified by:
getRootXPathNode
in interfaceObjectBuilder
-
getTransformationMappings
- Specified by:
getTransformationMappings
in interfaceObjectBuilder
-
isXsiTypeIndicatorField
public boolean isXsiTypeIndicatorField()- Specified by:
isXsiTypeIndicatorField
in interfaceObjectBuilder
-
marshalAttributes
public boolean marshalAttributes(MarshalRecord marshalRecord, Object object, CoreAbstractSession session) - Specified by:
marshalAttributes
in interfaceObjectBuilder
-
createRecordFromXMLContext
Description copied from class:CoreObjectBuilder
Create a new row/record from XMLContext.- Specified by:
createRecordFromXMLContext
in classCoreObjectBuilder<CoreAbstractRecord,
CoreAbstractSession, CoreField, CoreMapping>
-