public class TreeObjectBuilder extends XMLObjectBuilder implements ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>
Purpose: Perform the unmarshal and marshal operations based on the object-to-XML mapping metadata.
Responsibilities:
| Constructor and Description |
|---|
TreeObjectBuilder(ClassDescriptor descriptor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addClassIndicatorFieldToRow(AbstractMarshalRecord abstractMarshalRecord) |
java.util.List |
addExtraNamespacesToNamespaceResolver(Descriptor desc,
AbstractMarshalRecord marshalRecord,
CoreAbstractSession session,
boolean allowOverride,
boolean ignoreEqualResolvers) |
AbstractRecord |
buildRow(AbstractRecord record,
java.lang.Object object,
AbstractSession session,
DatabaseMapping.WriteType writeType)
Build the row representation of an object.
|
XMLRecord |
buildRow(XMLRecord record,
java.lang.Object object,
CoreAbstractSession session,
XMLMarshaller marshaller,
XPathFragment rootFragment) |
java.lang.Class |
classFromRow(UnmarshalRecord unmarshalRecord,
AbstractSession session) |
AbstractRecord |
createRecord(AbstractSession session)
Create a new row/record for the object builder.
|
AbstractRecord |
createRecord(int size,
AbstractSession session)
Create a new row/record for the object builder.
|
AbstractMarshalRecord |
createRecord(java.lang.String rootName,
AbstractSession session)
Create a new row/record for the object builder with the given name.
|
AbstractMarshalRecord |
createRecord(java.lang.String rootName,
org.w3c.dom.Node parent,
AbstractSession session)
Create a new row/record for the object builder with the given name.
|
java.util.List |
getContainerValues() |
java.util.List |
getDefaultEmptyContainerValues() |
java.util.List |
getNullCapableValues() |
java.util.List<DatabaseMapping> |
getPrimaryKeyMappings()
Return primary key mappings.
|
XPathNode |
getRootXPathNode() |
java.util.List |
getTransformationMappings() |
void |
initialize(AbstractSession session)
Cache all the mappings by their attribute and fields.
|
boolean |
marshalAttributes(MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session) |
addNamespaceDeclarations, buildAttributesIntoObject, buildIntoNestedRow, buildIntoNestedRow, buildIntoNestedRow, buildObject, buildRow, buildRow, buildRow, createRecord, createRecordFor, createRecordFor, createRecordFor, extractPrimaryKeyFromExpression, extractPrimaryKeyFromObject, extractPrimaryKeyRowFromExpression, getNamespaceResolver, isXMLObjectBuilder, isXsiTypeIndicatorField, setDescriptor, writeExtraNamespaces, writeOutMappingsaddPrimaryKeyForNonDefaultTable, addPrimaryKeyForNonDefaultTable, assignReturnRow, assignReturnValueForField, assignSequenceNumber, assignSequenceNumber, buildAttributesIntoShallowObject, buildAttributesIntoWorkingCopyClone, buildBackupClone, buildDeleteExpression, buildExpressionFromExample, buildNewInstance, buildObject, buildObject, buildObjectFromResultSet, buildObjectsFromCursorInto, buildObjectsFromResultSetInto, buildObjectsInto, buildPrimaryKeyAttributesIntoObject, buildPrimaryKeyExpression, buildPrimaryKeyExpressionFromKeys, buildPrimaryKeyExpressionFromObject, buildRow, buildRowForShallowInsert, buildRowForShallowInsert, buildRowForTranslation, buildRowForUpdate, buildRowForUpdate, buildRowForUpdateAfterShallowInsert, buildRowForUpdateAfterShallowInsert, buildRowForUpdateBeforeShallowDelete, buildRowForUpdateBeforeShallowDelete, buildRowForUpdateWithChangeSet, buildRowForWhereClause, buildRowFromPrimaryKeyValues, buildRowWithChangeSet, buildTemplateInsertRow, buildTemplateInsertRow, buildTemplateUpdateRow, buildUpdateExpression, cacheForeignKeyValues, cacheForeignKeyValues, cascadeDiscoverAndPersistUnregisteredNewObjects, cascadePerformRemove, cascadePerformRemovePrivateOwnedObjectFromChangeSet, cascadeRegisterNewForCreate, clearPrimaryKey, clone, compareForChange, compareObjects, copyInto, copyInto, copyObject, createObjectChangeSet, createObjectChangeSet, createObjectChangeSet, createPrimaryKeyExpression, createRecordFromXMLContext, extractPrimaryKeyFromObject, extractPrimaryKeyFromRow, extractPrimaryKeyRowFromObject, extractRowFromExpression, extractValueFromObjectForField, fixObjectReferences, getBaseChangeRecordForField, getBaseMappingForField, getBaseValueForField, getBatchFetchedAttributes, getCloningMappings, getDescriptor, getEagerMappings, getFieldClassification, getFieldForQueryKeyName, getFieldsMap, getJoinedAttributes, getLockAttribute, getMappingForAttributeName, getMappingForField, getMappingsByField, getParentObjectForField, getPrimaryKeyClassifications, getPrimaryKeyExpression, getReadOnlyMappingsByField, getReadOnlyMappingsForField, getRelationshipMappings, getSequenceMapping, getTargetFieldForQueryKeyName, hasBatchFetchedAttributes, hasCacheIndexesInSopObject, hasInBatchFetchedAttribute, hasJoinedAttributes, hasWrapperPolicy, initializeBatchFetchedAttributes, initializeJoinedAttributes, initializePrimaryKey, instantiateClone, instantiateEagerMappings, instantiateWorkingCopyClone, instantiateWorkingCopyCloneFromRow, isPrimaryKeyComponentInvalid, isPrimaryKeyExpression, isPrimaryKeyMapping, isSimple, iterate, load, loadAll, loadAll, mergeChangesIntoObject, mergeChangesIntoObject, mergeIntoObject, mergeIntoObject, populateAttributesForClone, postInitialize, recordPrivateOwnedRemovals, rehashFieldDependancies, setHasInBatchFetchedAttribute, setHasWrapperPolicy, setMappingsByField, setPrimaryKeyClassifications, setPrimaryKeyExpression, setReadOnlyMappingsByField, setSequenceMapping, shouldKeepRow, toString, trimFieldsForInsert, unwrapObject, updateCachedAttributes, validate, verifyDelete, wrapObject, writeIntoRowFromPrimaryKeyValuesequals, getClass, hashCode, notify, notifyAll, wait, wait, waitbuildNewInstance, extractPrimaryKeyFromObject, getDescriptor, isXsiTypeIndicatorFieldpublic TreeObjectBuilder(ClassDescriptor descriptor)
public XPathNode getRootXPathNode()
getRootXPathNode in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public java.util.List<DatabaseMapping> getPrimaryKeyMappings()
ObjectBuildergetPrimaryKeyMappings in class ObjectBuilderpublic java.util.List getTransformationMappings()
getTransformationMappings in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public java.util.List getContainerValues()
getContainerValues in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public java.util.List getNullCapableValues()
getNullCapableValues in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public java.util.List getDefaultEmptyContainerValues()
getDefaultEmptyContainerValues in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public void initialize(AbstractSession session)
ObjectBuilderinitialize in class XMLObjectBuilderpublic AbstractRecord buildRow(AbstractRecord record, java.lang.Object object, AbstractSession session, DatabaseMapping.WriteType writeType)
ObjectBuilderbuildRow in class ObjectBuilderpublic XMLRecord buildRow(XMLRecord record, java.lang.Object object, CoreAbstractSession session, XMLMarshaller marshaller, XPathFragment rootFragment)
buildRow in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public boolean marshalAttributes(MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session)
marshalAttributes in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public AbstractRecord createRecord(AbstractSession session)
createRecord in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>createRecord in class XMLObjectBuilderpublic AbstractMarshalRecord createRecord(java.lang.String rootName, AbstractSession session)
createRecord in class XMLObjectBuilderpublic AbstractMarshalRecord createRecord(java.lang.String rootName, org.w3c.dom.Node parent, AbstractSession session)
createRecord in class XMLObjectBuilderpublic AbstractRecord createRecord(int size, AbstractSession session)
createRecord in class XMLObjectBuilderpublic java.util.List addExtraNamespacesToNamespaceResolver(Descriptor desc, AbstractMarshalRecord marshalRecord, CoreAbstractSession session, boolean allowOverride, boolean ignoreEqualResolvers)
addExtraNamespacesToNamespaceResolver in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public boolean addClassIndicatorFieldToRow(AbstractMarshalRecord abstractMarshalRecord)
addClassIndicatorFieldToRow in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>public java.lang.Class classFromRow(UnmarshalRecord unmarshalRecord, AbstractSession session)
classFromRow in interface ObjectBuilder<AbstractRecord,AbstractSession,ClassDescriptor,XMLMarshaller>EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference