public class XMLObjectBuilder extends ObjectBuilder
Purpose: Object-to-XML specific ObjectBuilder.
| Constructor and Description |
|---|
XMLObjectBuilder(ClassDescriptor descriptor)
Create an XML object builder for the descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespaceDeclarations(org.w3c.dom.Document document) |
void |
buildAttributesIntoObject(java.lang.Object domainObject,
CacheKey cacheKey,
AbstractRecord databaseRow,
ObjectBuildingQuery query,
JoinedAttributeManager joinManager,
FetchGroup executionFetchGroup,
boolean forRefresh,
AbstractSession targetSession)
Override method in superclass in order to set the session on the record.
|
AbstractRecord |
buildIntoNestedRow(AbstractRecord row,
java.lang.Object object,
AbstractSession session) |
AbstractRecord |
buildIntoNestedRow(AbstractRecord row,
java.lang.Object object,
AbstractSession session,
Descriptor refDesc,
Field xmlField) |
AbstractRecord |
buildIntoNestedRow(AbstractRecord row,
java.lang.Object originalObject,
java.lang.Object object,
AbstractSession session,
Descriptor refDesc,
Field xmlField,
boolean wasXMLRoot) |
java.lang.Object |
buildObject(ObjectBuildingQuery query,
AbstractRecord databaseRow,
JoinedAttributeManager joinManager)
INTERNAL: Override the parent's buildObject to allow for the caching of
aggregate objects in OX.
|
AbstractRecord |
buildRow(AbstractRecord databaseRow,
java.lang.Object object,
AbstractSession session) |
AbstractRecord |
buildRow(AbstractRecord databaseRow,
java.lang.Object object,
AbstractSession session,
boolean wasXMLRoot) |
AbstractRecord |
buildRow(java.lang.Object object,
AbstractSession session,
DatabaseField xmlField,
XMLRecord parentRecord)
Build the nested row into the parent dom.
|
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.
|
AbstractRecord |
createRecord(java.lang.String rootName,
java.lang.String rootUri,
AbstractSession session)
Create a new row/record for the object builder with the given name and
namespace resolver instead of the namespace resolver from the descriptor.
|
AbstractRecord |
createRecordFor(java.lang.Object object,
DocumentPreservationPolicy docPresPolicy) |
AbstractRecord |
createRecordFor(java.lang.Object object,
DocumentPreservationPolicy docPresPolicy,
java.lang.String rootName,
java.lang.String rootUri) |
AbstractRecord |
createRecordFor(java.lang.Object attributeValue,
Field xmlField,
XMLRecord parentRecord,
Mapping mapping) |
java.lang.Object |
extractPrimaryKeyFromExpression(boolean requiresExactMatch,
Expression expression,
AbstractRecord translationRow,
AbstractSession session)
Override method in superclass in order to set the session on the record.
|
java.lang.Object |
extractPrimaryKeyFromObject(java.lang.Object domainObject,
AbstractSession session)
Extract primary key attribute values from the domainObject.
|
AbstractRecord |
extractPrimaryKeyRowFromExpression(Expression expression,
AbstractRecord translationRow,
AbstractSession session)
Override method in superclass in order to set the session on the record.
|
NamespaceResolver |
getNamespaceResolver() |
void |
initialize(AbstractSession session)
Cache all the mappings by their attribute and fields.
|
boolean |
isXMLObjectBuilder() |
boolean |
isXsiTypeIndicatorField() |
void |
setDescriptor(ClassDescriptor aDescriptor)
Set the descriptor.
|
void |
writeExtraNamespaces(java.util.List extraNamespaces,
XMLRecord xmlRecord) |
void |
writeOutMappings(XMLRecord row,
java.lang.Object object,
AbstractSession session) |
addPrimaryKeyForNonDefaultTable, addPrimaryKeyForNonDefaultTable, assignReturnRow, assignReturnValueForField, assignSequenceNumber, assignSequenceNumber, buildAttributesIntoShallowObject, buildAttributesIntoWorkingCopyClone, buildBackupClone, buildDeleteExpression, buildExpressionFromExample, buildNewInstance, buildObject, buildObject, buildObjectFromResultSet, buildObjectsFromCursorInto, buildObjectsFromResultSetInto, buildObjectsInto, buildPrimaryKeyAttributesIntoObject, buildPrimaryKeyExpression, buildPrimaryKeyExpressionFromKeys, buildPrimaryKeyExpressionFromObject, buildRow, 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, getPrimaryKeyMappings, 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, writeIntoRowFromPrimaryKeyValuespublic XMLObjectBuilder(ClassDescriptor descriptor)
public AbstractRecord buildRow(java.lang.Object object, AbstractSession session, DatabaseField xmlField, XMLRecord parentRecord)
public AbstractRecord createRecord(AbstractSession session)
createRecord in class ObjectBuilderpublic AbstractRecord createRecord(int size, AbstractSession session)
createRecord in class ObjectBuilderpublic AbstractMarshalRecord createRecord(java.lang.String rootName, AbstractSession session)
public AbstractRecord createRecord(java.lang.String rootName, java.lang.String rootUri, AbstractSession session)
public AbstractMarshalRecord createRecord(java.lang.String rootName, org.w3c.dom.Node parent, AbstractSession session)
public AbstractRecord createRecordFor(java.lang.Object attributeValue, Field xmlField, XMLRecord parentRecord, Mapping mapping)
public AbstractRecord createRecordFor(java.lang.Object object, DocumentPreservationPolicy docPresPolicy)
public AbstractRecord createRecordFor(java.lang.Object object, DocumentPreservationPolicy docPresPolicy, java.lang.String rootName, java.lang.String rootUri)
public java.lang.Object buildObject(ObjectBuildingQuery query, AbstractRecord databaseRow, JoinedAttributeManager joinManager) throws DatabaseException, QueryException
buildObject in class ObjectBuilderDatabaseExceptionQueryExceptionpublic AbstractRecord buildRow(AbstractRecord databaseRow, java.lang.Object object, AbstractSession session)
public AbstractRecord buildRow(AbstractRecord databaseRow, java.lang.Object object, AbstractSession session, boolean wasXMLRoot)
public void writeOutMappings(XMLRecord row, java.lang.Object object, AbstractSession session)
public void addNamespaceDeclarations(org.w3c.dom.Document document)
public void buildAttributesIntoObject(java.lang.Object domainObject,
CacheKey cacheKey,
AbstractRecord databaseRow,
ObjectBuildingQuery query,
JoinedAttributeManager joinManager,
FetchGroup executionFetchGroup,
boolean forRefresh,
AbstractSession targetSession)
throws DatabaseException
buildAttributesIntoObject in class ObjectBuilderDatabaseExceptionpublic AbstractRecord extractPrimaryKeyRowFromExpression(Expression expression, AbstractRecord translationRow, AbstractSession session)
extractPrimaryKeyRowFromExpression in class ObjectBuilderpublic java.lang.Object extractPrimaryKeyFromExpression(boolean requiresExactMatch,
Expression expression,
AbstractRecord translationRow,
AbstractSession session)
extractPrimaryKeyFromExpression in class ObjectBuilderpublic java.lang.Object extractPrimaryKeyFromObject(java.lang.Object domainObject,
AbstractSession session)
ObjectBuilderextractPrimaryKeyFromObject in class ObjectBuilderpublic AbstractRecord buildIntoNestedRow(AbstractRecord row, java.lang.Object object, AbstractSession session)
public AbstractRecord buildIntoNestedRow(AbstractRecord row, java.lang.Object object, AbstractSession session, Descriptor refDesc, Field xmlField)
public AbstractRecord buildIntoNestedRow(AbstractRecord row, java.lang.Object originalObject, java.lang.Object object, AbstractSession session, Descriptor refDesc, Field xmlField, boolean wasXMLRoot)
public NamespaceResolver getNamespaceResolver()
public void setDescriptor(ClassDescriptor aDescriptor)
setDescriptor in class ObjectBuilderpublic void writeExtraNamespaces(java.util.List extraNamespaces,
XMLRecord xmlRecord)
public void initialize(AbstractSession session) throws DescriptorException
ObjectBuilderinitialize in class ObjectBuilderDescriptorExceptionpublic boolean isXMLObjectBuilder()
isXMLObjectBuilder in class ObjectBuilderpublic boolean isXsiTypeIndicatorField()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference