public class XMLDescriptor extends ClassDescriptor implements org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
org.eclipse.persistence.oxm.mappings
,
Serialized FormaccessorTree, additionalAggregateCollectionKeyFields, additionalTablePrimaryKeyFields, additionalWritableMapKeyFields, AGGREGATE, AGGREGATE_COLLECTION, alias, allFields, allSelectionFields, amendmentClass, amendmentClassName, amendmentMethodName, cacheInvalidationPolicy, cachePolicy, cascadedLockingInitialized, cascadeLockingPolicies, changePolicy, cmpPolicy, constraintDependencies, copyPolicy, copyPolicyClassName, defaultDeleteObjectQueryRedirector, defaultDeleteObjectQueryRedirectorClassName, defaultInsertObjectQueryRedirector, defaultInsertObjectQueryRedirectorClassName, defaultQueryRedirector, defaultQueryRedirectorClassName, defaultReadAllQueryRedirector, defaultReadAllQueryRedirectorClassName, defaultReadObjectQueryRedirector, defaultReadObjectQueryRedirectorClassName, defaultReportQueryRedirector, defaultReportQueryRedirectorClassName, defaultTable, defaultUpdateObjectQueryRedirector, defaultUpdateObjectQueryRedirectorClassName, derivesIdMappings, descriptorCustomizerClassName, descriptorType, DO_NOT_SEND_CHANGES, ERROR, fetchGroupManager, fields, foreignKeyValuesForCaching, hasMultipleTableConstraintDependecy, hasNoncacheableMappings, hasRelationships, hasSimplePrimaryKey, historyPolicy, idValidation, initializationStage, INITIALIZED, INTERFACE, interfaceInitializationStage, interfacePolicy, INVALIDATE_CHANGED_OBJECTS, isCascadeOnDeleteSetOnDatabaseOnSecondaryTables, isNativeConnectionRequired, ISOLATE_CACHE_AFTER_TRANSACTION, ISOLATE_CACHE_ALWAYS, ISOLATE_FROM_CLIENT_SESSION, ISOLATE_NEW_DATA_AFTER_TRANSACTION, javaClass, javaClassName, lockableMappings, mappings, mappingsPostCalculateChanges, mappingsPostCalculateChangesOnDeleted, multipleTableForeignKeys, multipleTableInsertOrder, multitenantPolicy, NORMAL, optimisticLockingPolicy, partitioningPolicy, partitioningPolicyName, POST_INITIALIZED, preDeleteMappings, PREINITIALIZED, primaryKeyFields, primaryKeyIdValidations, properties, queryKeys, queryManager, referencingClasses, returningPolicy, selectionFields, SEND_NEW_OBJECTS_WITH_CHANGES, SEND_OBJECT_CHANGES, sequence, sequenceNumberField, sequenceNumberName, serializedObjectPolicy, sessionName, shouldAcquireCascadedLocks, shouldAlwaysConformResultsInUnitOfWork, shouldBeReadOnly, shouldLockForClone, shouldOrderMappings, shouldRegisterResultsInUnitOfWork, shouldUseFullChangeSetsForNewObjects, tables, unconvertedProperties, UNDEFINED_ISOLATATION, UNDEFINED_OBJECT_CHANGE_BEHAVIOR, UNINITIALIZED, USE_SESSION_CACHE_AFTER_TRANSACTION, virtualAttributeMethods, weavingUsesPropertyAccess, wrapperPolicy
attributeGroups, eventManager, field, inheritancePolicy, instantiationPolicy, objectBuilder
Constructor and Description |
---|
XMLDescriptor()
PUBLIC:
Return a new XMLDescriptor.
|
Modifier and Type | Method and Description |
---|---|
DatabaseMapping |
addDirectMapping(java.lang.String attributeName,
java.lang.String xpathString)
PUBLIC:
Add a direct mapping to the receiver.
|
DatabaseMapping |
addDirectMapping(java.lang.String attributeName,
java.lang.String getMethodName,
java.lang.String setMethodName,
java.lang.String xpathString)
PUBLIC:
Add a direct to node mapping to the receiver.
|
void |
addPrimaryKeyField(org.eclipse.persistence.internal.helper.DatabaseField field)
ADVANCED:
Specify the primary key field of the descriptors table.
|
void |
addPrimaryKeyFieldName(java.lang.String fieldName)
PUBLIC:
Specify the primary key field of the descriptors table.
|
void |
addRootElement(java.lang.String rootElementName)
PUBLIC:
Add a root element name for the Descriptor
This value is stored in place of a table name
|
java.util.Vector |
buildDirectValuesFromFieldValue(java.lang.Object fieldValue)
INTERNAL:
Extract the direct values from the specified field value.
|
org.eclipse.persistence.internal.helper.DatabaseField |
buildField(org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL:
This is used only in initialization.
|
org.eclipse.persistence.internal.helper.DatabaseField |
buildField(java.lang.String fieldName)
INTERNAL:
A DatabaseField is built from the given field name.
|
java.lang.Object |
buildFieldValueFromDirectValues(java.util.Vector directValues,
java.lang.String elementDataTypeName,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build the appropriate field value for the specified
set of direct values.
|
java.lang.Object |
buildFieldValueFromNestedRows(java.util.Vector nestedRows,
java.lang.String structureName,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build and return the appropriate field value for the specified
set of nested rows.
|
org.eclipse.persistence.internal.sessions.AbstractRecord |
buildNestedRowFromFieldValue(java.lang.Object fieldValue)
INTERNAL:
Build(if necessary) and return the nested XMLRecord from the specified field value.
|
java.util.Vector |
buildNestedRowsFromFieldValue(java.lang.Object fieldValue,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Build(if necessary) and return a Vector of the nested XMLRecords from the specified field value.
|
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings in this Descriptor to actual class-based
settings.
|
protected org.eclipse.persistence.internal.helper.DatabaseTable |
extractDefaultTable()
Aggregates use a dummy table as default.
|
java.lang.String |
getDefaultRootElement()
PUBLIC:
Return the default root element name for the ClassDescriptor
This value is stored in place of a table name
This value is mandatory for all root objects
|
XMLField |
getDefaultRootElementField() |
javax.xml.namespace.QName |
getDefaultRootElementType() |
InheritancePolicy |
getInheritancePolicy()
PUBLIC:
The inheritance policy is used to define how a descriptor takes part in inheritance.
|
AttributeAccessor |
getLocationAccessor()
INTERNAL:
Returns this Descriptor's location accessor, if one is defined.
|
NamespaceResolver |
getNamespaceResolver()
PUBLIC:
Return the NamespaceResolver associated with this descriptor
|
NamespaceResolver |
getNonNullNamespaceResolver() |
java.util.Vector<java.lang.String> |
getPrimaryKeyFieldNames()
PUBLIC:
Return the names of all the primary keys.
|
XMLSchemaReference |
getSchemaReference()
PUBLIC:
Return the SchemaReference associated with this descriptor
|
org.eclipse.persistence.internal.helper.DatabaseField |
getTypedField(org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL:
searches first descriptor than its ReturningPolicy for an equal field
|
protected org.eclipse.persistence.internal.helper.DatabaseField |
getTypedField(java.util.StringTokenizer stringTokenizer) |
boolean |
hasReferenceMappings()
INTERNAL:
Returns true if any of the mappings on this descriptor are key-based reference
mappings.
|
void |
initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Initialize the mappings as a separate step.
|
void |
initializeAggregateInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
This is needed by regular aggregate descriptors (because they require review);
but not by XML aggregate descriptors.
|
boolean |
isLazilyInitialized()
If true, the descriptor may be lazily initialized.
|
boolean |
isResultAlwaysXMLRoot() |
boolean |
isSequencedObject()
INTERNAL:
Indicates if the Object mapped by this descriptor is a sequenced data object
and should be marshalled accordingly.
|
boolean |
isWrapper() |
boolean |
isXMLDescriptor()
PUBLIC:
Return if the descriptor maps to XML.
|
DatabaseMapping |
newAggregateCollectionMapping()
Return a new aggregate collection/element collection mapping for this type of descriptor.
|
AggregateMapping |
newAggregateMapping()
Return a new aggregate/embedded mapping for this type of descriptor.
|
DatabaseMapping |
newDirectCollectionMapping()
Return a new direct collection/element collection mapping for this type of descriptor.
|
AbstractDirectMapping |
newDirectMapping()
Return a new direct/basic mapping for this type of descriptor.
|
void |
postInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Post initializations after mappings are initialized.
|
void |
preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Allow the descriptor to initialize any dependencies on this session.
|
protected void |
preInitializeInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session)
Hook together the inheritance policy tree.
|
boolean |
requiresInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
XML descriptors are initialized normally, since they do
not need to be cloned by XML aggregate mappings.
|
void |
setDefaultRootElement(java.lang.String newDefaultRootElement)
PUBLIC:
Return the default root element name for the ClassDescriptor
This value is stored in place of a table name
This value is mandatory for all root objects
|
void |
setDefaultRootElementField(XMLField xmlField) |
void |
setDefaultRootElementType(javax.xml.namespace.QName type)
The default root element type string will be stored until
initialization - a QName will be created and stored on the
default root element field during initialize.
|
void |
setIsWrapper(boolean value) |
void |
setLazilyInitialized(boolean shouldLazyInitiailize)
Specify in the descriptor may be lazily initialized.
|
void |
setLocationAccessor(AttributeAccessor value)
INTERNAL:
Set this Descriptor's location accessor.
|
void |
setNamespaceResolver(NamespaceResolver newNamespaceResolver)
PUBLIC:
Set the NamespaceResolver to associate with this descriptor
|
void |
setPrimaryKeyFields(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> thePrimaryKeyFields)
INTERNAL:
Set the primary key fields
|
void |
setResultAlwaysXMLRoot(boolean resultAlwaysXMLRoot) |
void |
setSchemaReference(XMLSchemaReference newSchemaReference)
PUBLIC:
Set the SchemaReference to associate with this descriptor
|
void |
setSequencedObject(boolean isSequenced) |
void |
setShouldPreserveDocument(boolean shouldPreserveDocument)
PUBLIC:
Specifies that object built from this descriptor should retain any unmapped
information from their original XML Document when being written back out.
|
void |
setTableNames(java.util.Vector tableNames)
PUBLIC:
Specify the all table names for the class of objects the receiver describes.
|
void |
setTables(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> theTables)
INTERNAL:
Sets the tables
|
boolean |
shouldPreserveDocument()
PUBLIC:
Return if unmapped information from the XML document should be maintained for this
descriptor
By default unmapped data is not preserved.
|
boolean |
shouldWrapObject(java.lang.Object object,
java.lang.String elementNamespaceUri,
java.lang.String elementLocalName,
java.lang.String elementPrefix,
boolean isNamespaceAware)
INTERNAL:
|
protected void |
validateMappingType(DatabaseMapping mapping) |
java.lang.Object |
wrapObjectInXMLRoot(java.lang.Object object,
java.lang.String elementNamespaceUri,
java.lang.String elementLocalName,
java.lang.String elementPrefix,
boolean forceWrap,
boolean isNamespaceAware,
XMLUnmarshaller xmlUnmarshaller)
INTERNAL:
Determines the appropriate object to return from the unmarshal
call.
|
java.lang.Object |
wrapObjectInXMLRoot(java.lang.Object object,
java.lang.String elementNamespaceUri,
java.lang.String elementLocalName,
java.lang.String elementPrefix,
java.lang.String encoding,
java.lang.String version,
boolean forceWrap,
boolean isNamespaceAware,
XMLUnmarshaller unmarshaller)
INTERNAL:
|
java.lang.Object |
wrapObjectInXMLRoot(org.eclipse.persistence.internal.oxm.record.UnmarshalRecord unmarshalRecord,
boolean forceWrap)
INTERNAL:
Determines the appropriate object to return from the unmarshal
call.
|
addAbstractQueryKey, addCascadeLockingPolicy, addConstraintDependencies, addConstraintDependency, addDirectQueryKey, addForeignKeyFieldForMultipleTable, addForeignKeyFieldNameForMultipleTable, addMapping, addMappingsPostCalculateChanges, addMappingsPostCalculateChangesOnDeleted, addPreDeleteMapping, addQueryKey, addTable, addTableName, addUnconvertedProperty, adjustMultipleTableInsertOrder, alwaysConformResultsInUnitOfWork, alwaysRefreshCache, alwaysRefreshCacheOnRemote, applyAmendmentMethod, applyAmendmentMethod, arePrimaryKeyFields, assignDefaultValues, buildBatchCriteriaByPK, buildCallFromStatement, buildField, buildFieldValueFromForeignKeys, buildFieldValueFromNestedRow, checkDatabase, checkInheritanceTreeAggregateSettings, clone, createCopyPolicy, createInstantiationPolicy, createMultipleTableInsertOrder, createMultipleTableInsertOrderFromComparison, createTableComparison, createTableOrder, descriptorIsAggregate, descriptorIsAggregateCollection, descriptorIsForInterface, descriptorIsNormal, disableCacheHits, disableCacheHitsOnRemote, dontAlwaysConformResultsInUnitOfWork, dontAlwaysRefreshCache, dontAlwaysRefreshCacheOnRemote, dontDisableCacheHits, dontDisableCacheHitsOnRemote, dontOnlyRefreshCacheIfNewerVersion, getAccessorTree, getAdditionalAggregateCollectionKeyFields, getAdditionalTablePrimaryKeyFields, getAdditionalWritableMapKeyFields, getAlias, getAllFields, getAllSelectionFields, getAllSelectionFields, getAmendmentClass, getAmendmentClassName, getAmendmentMethodName, getAttributeGroup, getAttributeGroups, getCacheInterceptorClass, getCacheInterceptorClassName, getCacheInvalidationPolicy, getCacheIsolation, getCacheKeyType, getCachePolicy, getCacheSynchronizationType, getCascadeLockingPolicies, getCMPPolicy, getConstraintDependencies, getCopyPolicy, getCopyPolicyClassName, getDefaultDeleteObjectQueryRedirector, getDefaultFetchGroup, getDefaultInsertObjectQueryRedirector, getDefaultQueryRedirector, getDefaultReadAllQueryRedirector, getDefaultReadObjectQueryRedirector, getDefaultReportQueryRedirector, getDefaultTable, getDefaultUpdateObjectQueryRedirector, getDerivesIdMappinps, getDescriptorCustomizerClassName, getDescriptorEventManager, getDescriptorInheritancePolicy, getDescriptorQueryManager, getDescriptorType, getDescriptorTypeValue, getEventManager, getFetchGroupManager, getFields, getForeignKeyValuesForCaching, getFullyMergeEntity, getHistoryPolicy, getIdentityMapClass, getIdentityMapSize, getIdValidation, getInheritancePolicyOrNull, getInstantiationPolicy, getInterfacePolicy, getInterfacePolicyOrNull, getJavaClass, getJavaClassName, getLockableMappings, getMappingForAttributeName, getMappings, getMappingsPostCalculateChanges, getMappingsPostCalculateChangesOnDeleted, getMultipleTableForeignKeyAssociations, getMultipleTableForeignKeys, getMultipleTableInsertOrder, getMultipleTablePrimaryKeyAssociations, getMultitenantPolicy, getObjectBuilder, getObjectChangePolicy, getObjectChangePolicyInternal, getOptimisticLockingPolicy, getPartitioningPolicy, getPartitioningPolicyName, getPreDeleteMappings, getPrimaryKeyFields, getPrimaryKeyIdValidations, getProperties, getProperty, getQueryKeyNamed, getQueryKeys, getQueryManager, getRemoteIdentityMapClass, getRemoteIdentityMapSize, getReturningPolicy, getRootDescriptor, getSelectionFields, getSelectionFields, getSequence, getSequenceNumberField, getSequenceNumberFieldName, getSequenceNumberName, getSerializedObjectPolicy, getSessionName, getTable, getTableName, getTableNames, getTablePerClassPolicy, getTables, getUnconvertedProperties, getUnitOfWorkCacheIsolationLevel, getVirtualAttributeMethods, getWrapperPolicy, hasCascadeLockingPolicies, hasCMPPolicy, hasDependencyOnParts, hasDerivedId, hasEventManager, hasFetchGroupManager, hasInheritance, hasInterfacePolicy, hasMappingsPostCalculateChanges, hasMappingsPostCalculateChangesOnDeleted, hasMultipleTableConstraintDependecy, hasMultipleTables, hasMultitenantPolicy, hasNestedIdentityReference, hasNoncacheableMappings, hasPessimisticLockingPolicy, hasPreDeleteMappings, hasPrivatelyOwnedParts, hasQueryKeyOrMapping, hasRelationships, hasRelationshipsExceptBackpointer, hasReturningPolicy, hasSerializedObjectPolicy, hasSimplePrimaryKey, hasTablePerClassPolicy, hasTablePerMultitenantPolicy, hasTargetForeignKeyMapping, hasUnconvertedProperties, hasWrapperPolicy, initialize, initializeMultipleTablePrimaryKeyFields, initializeProperties, interfaceInitialization, isAbstract, isAggregateCollectionDescriptor, isAggregateDescriptor, isCascadeOnDeleteSetOnDatabaseOnSecondaryTables, isChildDescriptor, isDescriptorForInterface, isDescriptorTypeAggregate, isDescriptorTypeNormal, isEISDescriptor, isFullyInitialized, isInitialized, isInterfaceChildDescriptor, isInterfaceInitialized, isInvalid, isIsolated, isMultipleTableDescriptor, isNativeConnectionRequired, isObjectRelationalDataTypeDescriptor, isPrimaryKeySetAfterInsert, isProtectedIsolation, isRelationalDescriptor, isReturnTypeRequiredForReturningPolicy, isSharedIsolation, newManyToManyMapping, newManyToOneMapping, newOneToManyMapping, newOneToOneMapping, newUnidirectionalOneToManyMapping, notifyReferencingDescriptorsOfIsolation, onlyRefreshCacheIfNewerVersion, preInterfaceInitialization, prepareCascadeLockingPolicy, rehashFieldDependancies, reInitializeJoinedAttributes, remoteInitialization, removeMappingForAttributeName, removeProperty, selfValidationAfterInitialization, selfValidationBeforeInitialization, setAccessorTree, setAdditionalTablePrimaryKeyFields, setAdditionalTablePrimaryKeyFields, setAlias, setAllFields, setAmendmentClass, setAmendmentClassName, setAmendmentMethodName, setCacheInterceptorClass, setCacheInterceptorClassName, setCacheInvalidationPolicy, setCacheIsolation, setCacheKeyType, setCachePolicy, setCacheSynchronizationType, setCMPPolicy, setConstraintDependencies, setCopyPolicy, setCopyPolicyClassName, setDefaultDeleteObjectQueryRedirector, setDefaultDeleteObjectQueryRedirectorClassName, setDefaultInsertObjectQueryRedirector, setDefaultInsertObjectQueryRedirectorClassName, setDefaultQueryRedirector, setDefaultQueryRedirectorClassName, setDefaultReadAllQueryRedirector, setDefaultReadAllQueryRedirectorClassName, setDefaultReadObjectQueryRedirector, setDefaultReadObjectQueryRedirectorClassName, setDefaultReportQueryRedirector, setDefaultReportQueryRedirectorClassName, setDefaultTable, setDefaultTableName, setDefaultUpdateObjectQueryRedirector, setDefaultUpdateObjectQueryRedirectorClassName, setDescriptorCustomizerClassName, setDescriptorType, setDescriptorTypeValue, setEventManager, setExistenceChecking, setFetchGroupManager, setFields, setForeignKeyFieldNamesForMultipleTable, setFullyMergeEntity, setHasMultipleTableConstraintDependecy, setHasRelationships, setHasSimplePrimaryKey, setHistoryPolicy, setIdentityMapClass, setIdentityMapSize, setIdValidation, setInheritancePolicy, setInitializationStage, setInstantiationPolicy, setInterfaceInitializationStage, setInterfacePolicy, setInternalDefaultTable, setInternalDefaultTable, setIsCascadeOnDeleteSetOnDatabaseOnSecondaryTables, setIsIsolated, setIsNativeConnectionRequired, setJavaClass, setJavaClassName, setJavaInterface, setJavaInterfaceName, setLockableMappings, setMappings, setMultipleTableForeignKeys, setMultipleTableInsertOrder, setMultitenantPolicy, setObjectBuilder, setObjectChangePolicy, setOptimisticLockingPolicy, setPartitioningPolicy, setPartitioningPolicyName, setPrimaryKeyFieldName, setPrimaryKeyFieldNames, setPrimaryKeyIdValidations, setProperties, setProperty, setQueryKeys, setQueryManager, setReadOnly, setRemoteIdentityMapClass, setRemoteIdentityMapSize, setReturningPolicy, setSequence, setSequenceNumberField, setSequenceNumberFieldName, setSequenceNumberName, setSerializedObjectPolicy, setSessionName, setShouldAcquireCascadedLocks, setShouldAlwaysConformResultsInUnitOfWork, setShouldAlwaysRefreshCache, setShouldAlwaysRefreshCacheOnRemote, setShouldBeReadOnly, setShouldDisableCacheHits, setShouldDisableCacheHitsOnRemote, setShouldLockForClone, setShouldOnlyRefreshCacheIfNewerVersion, setShouldOrderMappings, setShouldRegisterResultsInUnitOfWork, setTableName, setTablePerClassPolicy, setTableQualifier, setUnitOfWorkCacheIsolationLevel, setVirtualAttributeMethods, setWrapperPolicy, shouldAcquireCascadedLocks, shouldAlwaysConformResultsInUnitOfWork, shouldAlwaysRefreshCache, shouldAlwaysRefreshCacheOnRemote, shouldBeReadOnly, shouldDisableCacheHits, shouldDisableCacheHitsOnRemote, shouldIsolateObjectsInUnitOfWork, shouldIsolateObjectsInUnitOfWorkEarlyTransaction, shouldIsolateProtectedObjectsInUnitOfWork, shouldLockForClone, shouldOnlyRefreshCacheIfNewerVersion, shouldOrderMappings, shouldRegisterResultsInUnitOfWork, shouldUseAdditionalJoinExpression, shouldUseCacheIdentityMap, shouldUseFullChangeSetsForNewObjects, shouldUseFullIdentityMap, shouldUseHardCacheWeakIdentityMap, shouldUseNoIdentityMap, shouldUseRemoteCacheIdentityMap, shouldUseRemoteFullIdentityMap, shouldUseRemoteHardCacheWeakIdentityMap, shouldUseRemoteNoIdentityMap, shouldUseRemoteSoftCacheWeakIdentityMap, shouldUseRemoteSoftIdentityMap, shouldUseRemoteWeakIdentityMap, shouldUseSessionCacheInUnitOfWorkEarlyTransaction, shouldUseSoftCacheWeakIdentityMap, shouldUseSoftIdentityMap, shouldUseWeakIdentityMap, supportsChangeTracking, toggleAdditionalTablePrimaryKeyFields, toString, useAllFieldsLocking, useCacheIdentityMap, useChangedFieldsLocking, useCloneCopyPolicy, useCloneCopyPolicy, useDefaultConstructorInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useFullIdentityMap, useHardCacheWeakIdentityMap, useInstantiationCopyPolicy, useMethodInstantiationPolicy, useNoIdentityMap, usePropertyAccessForWeaving, useRemoteCacheIdentityMap, useRemoteFullIdentityMap, useRemoteHardCacheWeakIdentityMap, useRemoteNoIdentityMap, useRemoteSoftCacheWeakIdentityMap, useRemoteSoftIdentityMap, useRemoteWeakIdentityMap, useSelectedFieldsLocking, usesFieldLocking, useSoftCacheWeakIdentityMap, useSoftIdentityMap, usesOptimisticLocking, usesPropertyAccessForWeaving, usesSequenceNumbers, usesVersionLocking, useTimestampLocking, useTimestampLocking, useVersionLocking, useVersionLocking, useWeakIdentityMap, validateAfterInitialization, validateBeforeInitialization, verifyMultipleTableInsertOrder, verifyMultipleTablesForeignKeysTables, verifyTableQualifiers
addAttributeGroup
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addMapping, getAlias, getAttributeGroup, getInheritancePolicyOrNull, getInstantiationPolicy, getJavaClass, getJavaClassName, getMappingForAttributeName, getMappings, getObjectBuilder, getPrimaryKeyFields, getTableNames, getTables, hasInheritance, setInstantiationPolicy, setJavaClass, setJavaClassName, setProperties
public java.lang.String getDefaultRootElement()
getDefaultRootElement
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public boolean shouldPreserveDocument()
shouldPreserveDocument
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setShouldPreserveDocument(boolean shouldPreserveDocument)
public void addRootElement(java.lang.String rootElementName)
addRootElement
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
rootElementName
- a root element to specify on this Descriptorpublic void setDefaultRootElement(java.lang.String newDefaultRootElement)
setDefaultRootElement
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
newDefaultRootElement
- the default root element to specify on this ClassDescriptorpublic NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
NamespaceResolver
public NamespaceResolver getNonNullNamespaceResolver()
getNonNullNamespaceResolver
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public InheritancePolicy getInheritancePolicy()
getInheritancePolicy
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
getInheritancePolicy
in class ClassDescriptor
public void setNamespaceResolver(NamespaceResolver newNamespaceResolver)
setNamespaceResolver
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
newNamespaceResolver
- the NamespaceResolver to associate with this descriptorNamespaceResolver
public XMLSchemaReference getSchemaReference()
getSchemaReference
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
org.eclipse.persistence.oxm.schema
public void setSchemaReference(XMLSchemaReference newSchemaReference)
setSchemaReference
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
newSchemaReference
- the SchemaReference to associate with this descriptororg.eclipse.persistence.oxm.schema
public boolean isXMLDescriptor()
isXMLDescriptor
in class ClassDescriptor
public boolean isLazilyInitialized()
isLazilyInitialized
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setLazilyInitialized(boolean shouldLazyInitiailize)
public java.util.Vector<java.lang.String> getPrimaryKeyFieldNames()
ClassDescriptor
getPrimaryKeyFieldNames
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
getPrimaryKeyFieldNames
in class ClassDescriptor
protected void validateMappingType(DatabaseMapping mapping)
validateMappingType
in class ClassDescriptor
public org.eclipse.persistence.internal.sessions.AbstractRecord buildNestedRowFromFieldValue(java.lang.Object fieldValue)
buildNestedRowFromFieldValue
in class ClassDescriptor
public java.util.Vector buildNestedRowsFromFieldValue(java.lang.Object fieldValue, org.eclipse.persistence.internal.sessions.AbstractSession session)
buildNestedRowsFromFieldValue
in class ClassDescriptor
public AbstractDirectMapping newDirectMapping()
newDirectMapping
in class ClassDescriptor
public AggregateMapping newAggregateMapping()
newAggregateMapping
in class ClassDescriptor
public DatabaseMapping newAggregateCollectionMapping()
newAggregateCollectionMapping
in class ClassDescriptor
public DatabaseMapping newDirectCollectionMapping()
newDirectCollectionMapping
in class ClassDescriptor
public DatabaseMapping addDirectMapping(java.lang.String attributeName, java.lang.String xpathString)
addDirectMapping
in class ClassDescriptor
attributeName
- the name of an instance variable of the
class which the receiver describes.xpathString
- the xpath of the xml element or attribute which corresponds
with the designated instance variable.public DatabaseMapping addDirectMapping(java.lang.String attributeName, java.lang.String getMethodName, java.lang.String setMethodName, java.lang.String xpathString)
addDirectMapping
in class ClassDescriptor
public void addPrimaryKeyFieldName(java.lang.String fieldName)
ClassDescriptor
addPrimaryKeyFieldName
in class ClassDescriptor
#addMultipleTableForeignKeyFieldName(String, String);
public void addPrimaryKeyField(org.eclipse.persistence.internal.helper.DatabaseField field)
ClassDescriptor
addPrimaryKeyField
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
addPrimaryKeyField
in class ClassDescriptor
public void setPrimaryKeyFields(java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> thePrimaryKeyFields)
ClassDescriptor
setPrimaryKeyFields
in class ClassDescriptor
#addPrimaryKeyFieldName(String)
public java.util.Vector buildDirectValuesFromFieldValue(java.lang.Object fieldValue) throws DatabaseException
buildDirectValuesFromFieldValue
in class ClassDescriptor
DatabaseException
public java.lang.Object buildFieldValueFromDirectValues(java.util.Vector directValues, java.lang.String elementDataTypeName, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
buildFieldValueFromDirectValues
in class ClassDescriptor
DatabaseException
public java.lang.Object buildFieldValueFromNestedRows(java.util.Vector nestedRows, java.lang.String structureName, org.eclipse.persistence.internal.sessions.AbstractSession session) throws DatabaseException
buildFieldValueFromNestedRows
in class ClassDescriptor
DatabaseException
public org.eclipse.persistence.internal.helper.DatabaseField buildField(java.lang.String fieldName)
buildField
in class ClassDescriptor
public org.eclipse.persistence.internal.helper.DatabaseField buildField(org.eclipse.persistence.internal.helper.DatabaseField field)
buildField
in class ClassDescriptor
public void initializeAggregateInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session)
initializeAggregateInheritancePolicy
in class ClassDescriptor
public void setTableNames(java.util.Vector tableNames)
ClassDescriptor
setTableNames
in class ClassDescriptor
public void setTables(java.util.Vector<org.eclipse.persistence.internal.helper.DatabaseTable> theTables)
setTables
in class ClassDescriptor
public void preInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
preInitialize
in class ClassDescriptor
DescriptorException
protected void preInitializeInheritancePolicy(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
ClassDescriptor
preInitializeInheritancePolicy
in class ClassDescriptor
DescriptorException
public void postInitialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
postInitialize
in class ClassDescriptor
DescriptorException
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session) throws DescriptorException
initialize
in class ClassDescriptor
DescriptorException
public boolean requiresInitialization(org.eclipse.persistence.internal.sessions.AbstractSession session)
requiresInitialization
in class ClassDescriptor
protected org.eclipse.persistence.internal.helper.DatabaseTable extractDefaultTable()
extractDefaultTable
in class ClassDescriptor
public java.lang.Object wrapObjectInXMLRoot(org.eclipse.persistence.internal.oxm.record.UnmarshalRecord unmarshalRecord, boolean forceWrap)
wrapObjectInXMLRoot
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
unmarshalRecord
- public java.lang.Object wrapObjectInXMLRoot(java.lang.Object object, java.lang.String elementNamespaceUri, java.lang.String elementLocalName, java.lang.String elementPrefix, boolean forceWrap, boolean isNamespaceAware, XMLUnmarshaller xmlUnmarshaller)
wrapObjectInXMLRoot
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
object
- elementNamespaceUri
- elementLocalName
- elementPrefix
- public java.lang.Object wrapObjectInXMLRoot(java.lang.Object object, java.lang.String elementNamespaceUri, java.lang.String elementLocalName, java.lang.String elementPrefix, java.lang.String encoding, java.lang.String version, boolean forceWrap, boolean isNamespaceAware, XMLUnmarshaller unmarshaller)
wrapObjectInXMLRoot
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public boolean shouldWrapObject(java.lang.Object object, java.lang.String elementNamespaceUri, java.lang.String elementLocalName, java.lang.String elementPrefix, boolean isNamespaceAware)
public XMLField getDefaultRootElementField()
getDefaultRootElementField
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setDefaultRootElementField(XMLField xmlField)
public javax.xml.namespace.QName getDefaultRootElementType()
getDefaultRootElementType
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setDefaultRootElementType(javax.xml.namespace.QName type)
type
- public boolean isSequencedObject()
Indicates if the Object mapped by this descriptor is a sequenced data object and should be marshalled accordingly.
isSequencedObject
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setSequencedObject(boolean isSequenced)
public boolean isWrapper()
isWrapper
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setIsWrapper(boolean value)
public boolean isResultAlwaysXMLRoot()
isResultAlwaysXMLRoot
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setResultAlwaysXMLRoot(boolean resultAlwaysXMLRoot)
setResultAlwaysXMLRoot
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public boolean hasReferenceMappings()
public org.eclipse.persistence.internal.helper.DatabaseField getTypedField(org.eclipse.persistence.internal.helper.DatabaseField field)
ClassDescriptor
getTypedField
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
getTypedField
in class ClassDescriptor
protected org.eclipse.persistence.internal.helper.DatabaseField getTypedField(java.util.StringTokenizer stringTokenizer)
public AttributeAccessor getLocationAccessor()
getLocationAccessor
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void setLocationAccessor(AttributeAccessor value)
setLocationAccessor
in interface org.eclipse.persistence.internal.oxm.mappings.Descriptor<AttributeAccessor,DatabaseMapping,org.eclipse.persistence.internal.helper.DatabaseField,InheritancePolicy,org.eclipse.persistence.internal.descriptors.InstantiationPolicy,NamespaceResolver,org.eclipse.persistence.internal.descriptors.ObjectBuilder,org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,XMLUnmarshaller>
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses
in class ClassDescriptor
classLoader
-