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 String
CYCLE_RECOVERABLE
static String
CYCLE_RECOVERABLE_CONTEXT
static String
ON_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:
addClassIndicatorFieldToRow
in interfaceObjectBuilder
-
addExtraNamespacesToNamespaceResolver
public List<Namespace> addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers)
- Specified by:
addExtraNamespacesToNamespaceResolver
in interfaceObjectBuilder
-
addTransformationMapping
public void addTransformationMapping(TransformationMapping transformationMapping)
-
buildNewInstance
public Object 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
public Class classFromRow(UnmarshalRecord record, CoreAbstractSession session)
- Specified by:
classFromRow
in 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:
createRecord
in interfaceObjectBuilder
- Specified by:
createRecord
in classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
-
extractPrimaryKeyFromObject
public Object extractPrimaryKeyFromObject(Object object, CoreAbstractSession session)
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
public List<ContainerValue> getContainerValues()
- Specified by:
getContainerValues
in interfaceObjectBuilder
-
getDefaultEmptyContainerValues
public List<ContainerValue> getDefaultEmptyContainerValues()
- Specified by:
getDefaultEmptyContainerValues
in interfaceObjectBuilder
-
getDescriptor
public CoreDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceObjectBuilder
-
getMappingForField
public CoreMapping getMappingForField(CoreField field)
Description copied from class:CoreObjectBuilder
Return the mapping for the specified field.- Specified by:
getMappingForField
in classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
-
getNullCapableValues
public List<NullCapableValue> getNullCapableValues()
- Specified by:
getNullCapableValues
in interfaceObjectBuilder
-
getRootXPathNode
public XPathNode getRootXPathNode()
- Specified by:
getRootXPathNode
in interfaceObjectBuilder
-
getTransformationMappings
public List<TransformationMapping> 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
public CoreAbstractRecord createRecordFromXMLContext(XMLContext context)
Description copied from class:CoreObjectBuilder
Create a new row/record from XMLContext.- Specified by:
createRecordFromXMLContext
in classCoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
-
-