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 Modifier and Type Field Description static StringCYCLE_RECOVERABLEstatic StringCYCLE_RECOVERABLE_CONTEXTstatic StringON_CYCLE_DETECTED
-
Constructor Summary
Constructors Constructor Description XPathObjectBuilder(CoreDescriptor descriptor)
-
Method Summary
-
-
-
Field Detail
-
CYCLE_RECOVERABLE
public static final String CYCLE_RECOVERABLE
- See Also:
- Constant Field Values
-
CYCLE_RECOVERABLE_CONTEXT
public static final String CYCLE_RECOVERABLE_CONTEXT
- See Also:
- Constant Field Values
-
ON_CYCLE_DETECTED
public static final String ON_CYCLE_DETECTED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XPathObjectBuilder
public XPathObjectBuilder(CoreDescriptor descriptor)
-
-
Method Detail
-
addClassIndicatorFieldToRow
public boolean addClassIndicatorFieldToRow(AbstractMarshalRecord abstractMarshalRecord)
- Specified by:
addClassIndicatorFieldToRowin interfaceObjectBuilder
-
addExtraNamespacesToNamespaceResolver
public List<Namespace> addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers)
- Specified by:
addExtraNamespacesToNamespaceResolverin interfaceObjectBuilder
-
addTransformationMapping
public void addTransformationMapping(TransformationMapping transformationMapping)
-
buildNewInstance
public Object 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
public Class<?> classFromRow(UnmarshalRecord record, CoreAbstractSession session)
- Specified by:
classFromRowin interfaceObjectBuilder
-
createRecord
public CoreAbstractRecord createRecord(CoreAbstractSession session)
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
public Object extractPrimaryKeyFromObject(Object object, CoreAbstractSession session)
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
public List<ContainerValue> getContainerValues()
- Specified by:
getContainerValuesin interfaceObjectBuilder
-
getDefaultEmptyContainerValues
public List<ContainerValue> getDefaultEmptyContainerValues()
- Specified by:
getDefaultEmptyContainerValuesin interfaceObjectBuilder
-
getDescriptor
public CoreDescriptor getDescriptor()
- Specified by:
getDescriptorin interfaceObjectBuilder
-
getMappingForField
public CoreMapping getMappingForField(CoreField field)
Description copied from class:CoreObjectBuilderReturn the mapping for the specified field.- Specified by:
getMappingForFieldin classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
-
getNullCapableValues
public List<NullCapableValue> getNullCapableValues()
- Specified by:
getNullCapableValuesin interfaceObjectBuilder
-
getRootXPathNode
public XPathNode getRootXPathNode()
- Specified by:
getRootXPathNodein interfaceObjectBuilder
-
getTransformationMappings
public List<TransformationMapping> 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
public CoreAbstractRecord createRecordFromXMLContext(XMLContext context)
Description copied from class:CoreObjectBuilderCreate a new row/record from XMLContext.- Specified by:
createRecordFromXMLContextin classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
-
-