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 ObjectBuilder
public java.util.List<Namespace> addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers)
addExtraNamespacesToNamespaceResolver
in interface ObjectBuilder
public void addTransformationMapping(TransformationMapping transformationMapping)
public java.lang.Object buildNewInstance()
buildNewInstance
in interface ObjectBuilder
buildNewInstance
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 ObjectBuilder
public java.lang.Class classFromRow(UnmarshalRecord record, CoreAbstractSession session)
classFromRow
in interface ObjectBuilder
public CoreAbstractRecord createRecord(CoreAbstractSession session)
createRecord
in interface ObjectBuilder
createRecord
in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
public java.lang.Object extractPrimaryKeyFromObject(java.lang.Object object, CoreAbstractSession session)
CoreObjectBuilder
extractPrimaryKeyFromObject
in interface ObjectBuilder
extractPrimaryKeyFromObject
in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
public java.util.List<ContainerValue> getContainerValues()
getContainerValues
in interface ObjectBuilder
public java.util.List<ContainerValue> getDefaultEmptyContainerValues()
getDefaultEmptyContainerValues
in interface ObjectBuilder
public CoreDescriptor getDescriptor()
getDescriptor
in interface ObjectBuilder
public CoreMapping getMappingForField(CoreField field)
CoreObjectBuilder
getMappingForField
in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
public java.util.List<NullCapableValue> getNullCapableValues()
getNullCapableValues
in interface ObjectBuilder
public XPathNode getRootXPathNode()
getRootXPathNode
in interface ObjectBuilder
public java.util.List<TransformationMapping> getTransformationMappings()
getTransformationMappings
in interface ObjectBuilder
public boolean isXsiTypeIndicatorField()
isXsiTypeIndicatorField
in interface ObjectBuilder
public boolean marshalAttributes(MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session)
marshalAttributes
in interface ObjectBuilder
public CoreAbstractRecord createRecordFromXMLContext(XMLContext context)
CoreObjectBuilder
createRecordFromXMLContext
in class CoreObjectBuilder<CoreAbstractRecord,CoreAbstractSession,CoreField,CoreMapping>
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference