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 java.lang.StringCYCLE_RECOVERABLEstatic java.lang.StringCYCLE_RECOVERABLE_CONTEXTstatic java.lang.StringON_CYCLE_DETECTED
-
Constructor Summary
Constructors Constructor Description XPathObjectBuilder(CoreDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddClassIndicatorFieldToRow(AbstractMarshalRecord abstractMarshalRecord)java.util.List<Namespace>addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers)voidaddTransformationMapping(TransformationMapping transformationMapping)java.lang.ObjectbuildNewInstance()Return a new instance of the receiver's javaClass.XMLRecordbuildRow(XMLRecord record, java.lang.Object object, CoreAbstractSession session, Marshaller marshaller, XPathFragment rootFragment)java.lang.ClassclassFromRow(UnmarshalRecord record, CoreAbstractSession session)CoreAbstractRecordcreateRecord(CoreAbstractSession session)Create a new row/record for the object builder.CoreAbstractRecordcreateRecordFromXMLContext(XMLContext context)Create a new row/record from XMLContext.java.lang.ObjectextractPrimaryKeyFromObject(java.lang.Object object, CoreAbstractSession session)Extract primary key attribute values from the domainObject.java.util.List<ContainerValue>getContainerValues()java.util.List<ContainerValue>getDefaultEmptyContainerValues()CoreDescriptorgetDescriptor()CoreMappinggetMappingForField(CoreField field)Return the mapping for the specified field.java.util.List<NullCapableValue>getNullCapableValues()XPathNodegetRootXPathNode()java.util.List<TransformationMapping>getTransformationMappings()booleanisXsiTypeIndicatorField()booleanmarshalAttributes(MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session)
-
-
-
Field Detail
-
CYCLE_RECOVERABLE
public static final java.lang.String CYCLE_RECOVERABLE
- See Also:
- Constant Field Values
-
CYCLE_RECOVERABLE_CONTEXT
public static final java.lang.String CYCLE_RECOVERABLE_CONTEXT
- See Also:
- Constant Field Values
-
ON_CYCLE_DETECTED
public static final java.lang.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 java.util.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 java.lang.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, java.lang.Object object, CoreAbstractSession session, Marshaller marshaller, XPathFragment rootFragment)
- Specified by:
buildRowin interfaceObjectBuilder
-
classFromRow
public java.lang.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 java.lang.Object extractPrimaryKeyFromObject(java.lang.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 java.util.List<ContainerValue> getContainerValues()
- Specified by:
getContainerValuesin interfaceObjectBuilder
-
getDefaultEmptyContainerValues
public java.util.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 java.util.List<NullCapableValue> getNullCapableValues()
- Specified by:
getNullCapableValuesin interfaceObjectBuilder
-
getRootXPathNode
public XPathNode getRootXPathNode()
- Specified by:
getRootXPathNodein interfaceObjectBuilder
-
getTransformationMappings
public java.util.List<TransformationMapping> getTransformationMappings()
- Specified by:
getTransformationMappingsin interfaceObjectBuilder
-
isXsiTypeIndicatorField
public boolean isXsiTypeIndicatorField()
- Specified by:
isXsiTypeIndicatorFieldin interfaceObjectBuilder
-
marshalAttributes
public boolean marshalAttributes(MarshalRecord marshalRecord, java.lang.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>
-
-