public class XPathObjectBuilder extends CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping> implements ObjectBuilder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CYCLE_RECOVERABLE |
static java.lang.String |
CYCLE_RECOVERABLE_CONTEXT |
static java.lang.String |
ON_CYCLE_DETECTED |
| Constructor and Description |
|---|
XPathObjectBuilder(CoreDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addClassIndicatorFieldToRow(AbstractMarshalRecord abstractMarshalRecord) |
java.util.List<Namespace> |
addExtraNamespacesToNamespaceResolver(Descriptor desc,
AbstractMarshalRecord marshalRecord,
CoreAbstractSession session,
boolean allowOverride,
boolean ignoreEqualResolvers) |
void |
addTransformationMapping(TransformationMapping transformationMapping) |
java.lang.Object |
buildNewInstance()
Return a new instance of the receiver's javaClass.
|
XMLRecord |
buildRow(XMLRecord record,
java.lang.Object object,
CoreAbstractSession session,
Marshaller marshaller,
XPathFragment rootFragment) |
java.lang.Class |
classFromRow(UnmarshalRecord record,
CoreAbstractSession session) |
CoreAbstractRecord |
createRecord(CoreAbstractSession session)
Create a new row/record for the object builder.
|
CoreAbstractRecord |
createRecordFromXMLContext(XMLContext context)
Create a new row/record from XMLContext.
|
java.lang.Object |
extractPrimaryKeyFromObject(java.lang.Object object,
CoreAbstractSession session)
Extract primary key attribute values from the domainObject.
|
java.util.List<ContainerValue> |
getContainerValues() |
java.util.List<ContainerValue> |
getDefaultEmptyContainerValues() |
CoreDescriptor |
getDescriptor() |
CoreMapping |
getMappingForField(CoreField field)
Return the mapping for the specified field.
|
java.util.List<NullCapableValue> |
getNullCapableValues() |
XPathNode |
getRootXPathNode() |
java.util.List<TransformationMapping> |
getTransformationMappings() |
boolean |
isXsiTypeIndicatorField() |
boolean |
marshalAttributes(MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session) |
public static final java.lang.String CYCLE_RECOVERABLE
public static final java.lang.String CYCLE_RECOVERABLE_CONTEXT
public static final java.lang.String ON_CYCLE_DETECTED
public XPathObjectBuilder(CoreDescriptor descriptor)
public boolean addClassIndicatorFieldToRow(AbstractMarshalRecord abstractMarshalRecord)
addClassIndicatorFieldToRow in interface ObjectBuilderpublic java.util.List<Namespace> addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers)
addExtraNamespacesToNamespaceResolver in interface ObjectBuilderpublic void addTransformationMapping(TransformationMapping transformationMapping)
public java.lang.Object buildNewInstance()
buildNewInstance in interface ObjectBuilderbuildNewInstance in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>public XMLRecord buildRow(XMLRecord record, java.lang.Object object, CoreAbstractSession session, Marshaller marshaller, XPathFragment rootFragment)
buildRow in interface ObjectBuilderpublic java.lang.Class classFromRow(UnmarshalRecord record, CoreAbstractSession session)
classFromRow in interface ObjectBuilderpublic CoreAbstractRecord createRecord(CoreAbstractSession session)
createRecord in interface ObjectBuildercreateRecord in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>public java.lang.Object extractPrimaryKeyFromObject(java.lang.Object object,
CoreAbstractSession session)
CoreObjectBuilderextractPrimaryKeyFromObject in interface ObjectBuilderextractPrimaryKeyFromObject in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>public java.util.List<ContainerValue> getContainerValues()
getContainerValues in interface ObjectBuilderpublic java.util.List<ContainerValue> getDefaultEmptyContainerValues()
getDefaultEmptyContainerValues in interface ObjectBuilderpublic CoreDescriptor getDescriptor()
getDescriptor in interface ObjectBuilderpublic CoreMapping getMappingForField(CoreField field)
CoreObjectBuildergetMappingForField in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>public java.util.List<NullCapableValue> getNullCapableValues()
getNullCapableValues in interface ObjectBuilderpublic XPathNode getRootXPathNode()
getRootXPathNode in interface ObjectBuilderpublic java.util.List<TransformationMapping> getTransformationMappings()
getTransformationMappings in interface ObjectBuilderpublic boolean isXsiTypeIndicatorField()
isXsiTypeIndicatorField in interface ObjectBuilderpublic boolean marshalAttributes(MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session)
marshalAttributes in interface ObjectBuilderpublic CoreAbstractRecord createRecordFromXMLContext(XMLContext context)
CoreObjectBuildercreateRecordFromXMLContext in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference