public class EntityAccessor extends MappedSuperclassAccessor
m_project| Constructor and Description |
|---|
EntityAccessor()
INTERNAL:
|
EntityAccessor(MetadataAnnotation annotation,
MetadataClass cls,
MetadataProject project)
INTERNAL:
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMultipleTableKeyFields(java.util.List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns,
DatabaseTable targetTable,
java.lang.String PK_CTX,
java.lang.String FK_CTX)
INTERNAL:
Add multiple fields to the descriptor.
|
protected void |
discoverMappedSuperclassesAndInheritanceParents(boolean addMappedSuperclassAccessors)
INTERNAL:
Build a list of classes that are decorated with a MappedSuperclass
annotation or that are tagged as a mapped-superclass in an XML document.
|
java.lang.Boolean |
getCascadeOnDelete()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getClassExtractorName()
INTERNAL:
Used for OX mapping.
|
java.util.List<ConvertMetadata> |
getConverts()
INTERNAL:
Used for OX mapping.
|
DiscriminatorColumnMetadata |
getDiscriminatorColumn()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getDiscriminatorValue()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getEntityName()
INTERNAL:
Used for OX mapping.
|
java.util.List<IndexMetadata> |
getIndexes()
INTERNAL:
Used for OX mapping.
|
InheritanceMetadata |
getInheritance()
INTERNAL:
Used for OX mapping.
|
java.util.List<NamedEntityGraphMetadata> |
getNamedEntityGraphs()
INTERNAL:
Used for OX mapping.
|
PrimaryKeyForeignKeyMetadata |
getPrimaryKeyForeignKey()
INTERNAL:
Used for OX mapping.
|
java.util.List<PrimaryKeyJoinColumnMetadata> |
getPrimaryKeyJoinColumns()
INTERNAL:
Used for OX mapping.
|
java.util.List<SecondaryTableMetadata> |
getSecondaryTables()
INTERNAL:
Used for OX mapping.
|
TableMetadata |
getTable()
INTERNAL:
Used for OX mapping.
|
boolean |
hasClassExtractor()
INTERNAL:
This method is a little involved since a class extractor is mutually
exclusive with a discriminator column.
|
boolean |
hasInheritance()
INTERNAL:
Return true if this class has an inheritance specifications.
|
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
boolean |
isCascadeOnDelete()
INTERNAL:
|
boolean |
isEntityAccessor()
INTERNAL:
Return true if this accessor represents an entity class.
|
boolean |
isMappedSuperclass()
INTERNAL:
|
void |
merge(ORMetadata metadata)
INTERNAL:
Entity level merging details.
|
void |
preProcess()
INTERNAL:
The pre-process method is called during regular deployment and metadata
processing and will pre-process the items of interest on an entity class.
|
void |
preProcessForCanonicalModel()
INTERNAL:
The pre-process for canonical model method is called (and only called)
during the canonical model generation.
|
void |
process()
INTERNAL:
Process the items of interest on an entity class.
|
void |
processAccessMethods()
INTERNAL:
For VIRTUAL access we need to look for default access methods that we
need to use with our mapping attributes.
|
void |
processAccessType()
INTERNAL:
Figure out the access type for this entity.
|
protected void |
processCaching()
INTERNAL:
Process a caching metadata for this entity accessor logging ignore
warnings where necessary.
|
protected void |
processCascadeOnDelete()
INTERNAL:
Check if CascadeOnDelete was set on the Entity.
|
java.lang.String |
processClassExtractor()
INTERNAL:
Return the user defined class extractor class for this entity.
|
void |
processConvert(ConvertMetadata convert)
INTERNAL:
Add a convert metadata to the descriptor convert map.
|
void |
processConverts()
INTERNAL:
Process the convert metadata for this entity accessor logging ignore
warnings where necessary.
|
void |
processDerivedId(java.util.HashSet<ClassAccessor> processing,
java.util.HashSet<ClassAccessor> processed)
INTERNAL:
Allows for processing DerivedIds.
|
DatabaseField |
processDiscriminatorColumn()
INTERNAL:
Process the discriminator column metadata (defaulting if necessary),
and return the EclipseLink database field.
|
java.lang.String |
processDiscriminatorValue()
INTERNAL:
Process a discriminator value to set the class indicator on the root
descriptor of the inheritance hierarchy.
|
protected void |
processEntity()
INTERNAL:
Process the entity metadata.
|
protected void |
processEntityGraphs()
INTERNAL:
Process the entity graph metadata on this entity accessor.
|
protected void |
processIndexes()
INTERNAL:
Process index information for the given metadata descriptor.
|
protected void |
processInheritance()
INTERNAL:
Process the Inheritance metadata for a root of an inheritance
hierarchy.
|
void |
processInheritancePrimaryKeyJoinColumns()
INTERNAL:
Process the inheritance metadata for an inheritance subclass.
|
void |
processListeners(java.lang.ClassLoader loader)
INTERNAL:
Process the listeners for this entity.
|
void |
processMappingAccessors()
INTERNAL:
Process the accessors for the given class.
|
protected void |
processSecondaryTable(SecondaryTableMetadata secondaryTable)
INTERNAL:
Process a MetadataSecondaryTable.
|
protected void |
processSecondaryTables()
INTERNAL:
Process secondary-table(s) for a given entity.
|
protected void |
processTable()
INTERNAL:
Process table information for the given metadata descriptor.
|
protected void |
processTable(TableMetadata table)
INTERNAL:
Process a MetadataTable.
|
protected void |
processTableAndInheritance()
INTERNAL:
Process any inheritance specifics.
|
void |
setCascadeOnDelete(java.lang.Boolean cascadeOnDelete)
INTERNAL:
Used for OX mapping.
|
void |
setClassExtractorName(java.lang.String classExtractorName)
INTERNAL:
Used for OX mapping.
|
void |
setConverts(java.util.List<ConvertMetadata> converts)
INTERNAL:
Used for OX mapping.
|
void |
setDiscriminatorColumn(DiscriminatorColumnMetadata discriminatorColumn)
INTERNAL:
Used for OX mapping.
|
void |
setDiscriminatorValue(java.lang.String discriminatorValue)
INTERNAL:
Used for OX mapping.
|
void |
setEntityName(java.lang.String entityName)
INTERNAL:
Used for OX mapping.
|
void |
setIndexes(java.util.List<IndexMetadata> indexes)
INTERNAL:
Used for OX mapping.
|
void |
setInheritance(InheritanceMetadata inheritance)
INTERNAL:
Used for OX mapping.
|
void |
setNamedEntityGraphs(java.util.List<NamedEntityGraphMetadata> namedEntityGraphs)
INTERNAL:
Used for OX mapping.
|
void |
setPrimaryKeyForeignKey(PrimaryKeyForeignKeyMetadata primaryKeyForeignKey)
INTERNAL:
Used for OX mapping.
|
void |
setPrimaryKeyJoinColumns(java.util.List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns)
INTERNAL:
Used for OX mapping.
|
void |
setSecondaryTables(java.util.List<SecondaryTableMetadata> secondaryTables)
INTERNAL:
Used for OX mapping.
|
void |
setTable(TableMetadata table)
INTERNAL:
Used for OX mapping.
|
protected void |
validateOptimisticLocking()
INTERNAL:
Validate a OptimisticLocking(type=VERSION_COLUMN) setting.
|
protected void |
validatePrimaryKey()
INTERNAL:
Call this method after a primary key should have been found.
|
excludeDefaultListeners, excludeSuperclassListeners, getAdditionalCriteria, getCache, getCacheable, getCacheIndexes, getCacheInterceptor, getEntityListeners, getExcludeDefaultListeners, getExcludeSuperclassListeners, getExistenceChecking, getFetchGroups, getIdClass, getIdClassName, getMultitenant, getNamedNativeQueries, getNamedPLSQLStoredFunctionQueries, getNamedPLSQLStoredProcedureQueries, getNamedQueries, getNamedStoredFunctionQueries, getNamedStoredProcedureQueries, getOptimisticLocking, getPostLoad, getPostPersist, getPostRemove, getPostUpdate, getPrePersist, getPreRemove, getPreUpdate, getPrimaryKey, getQueryRedirectors, getReadOnly, getSequenceGenerator, getSerializedObjectPolicy, getSqlResultSetMappings, getTableGenerator, getUuidGenerator, hasObjectRelationalFieldMappingAnnotationsDefined, hasObjectRelationalMethodMappingAnnotationsDefined, initIdClass, processAdditionalCriteria, processCache, processCacheable, processCacheIndexes, processCacheInterceptor, processCachingMetadata, processDefaultRedirectors, processEntityListeners, processExcludeDefaultListeners, processExcludeSuperclassListeners, processExistenceChecking, processFetchGroup, processFetchGroups, processIdClass, processMetamodelDescriptor, processMultitenant, processNamedNativeQueries, processNamedPLSQLStoredFunctionQueries, processNamedPLSQLStoredProcedureQueries, processNamedQueries, processNamedStoredFunctionQueries, processNamedStoredProcedureQueries, processOptimisticLocking, processPrimaryKey, processReadOnly, processSequenceGenerator, processSerializedObjectPolicy, processSqlResultSetMappings, processTableGenerator, processUuidGenerator, setAdditionalCriteria, setCache, setCacheable, setCacheIndexes, setCacheInterceptor, setEntityListeners, setExcludeDefaultListeners, setExcludeSuperclassListeners, setExistenceChecking, setFetchGroups, setIdClass, setIdClassName, setMultitenant, setNamedNativeQueries, setNamedPLSQLStoredFunctionQueries, setNamedPLSQLStoredProcedureQueries, setNamedQueries, setNamedStoredFunctionQueries, setNamedStoredProcedureQueries, setOptimisticLocking, setPostLoad, setPostPersist, setPostRemove, setPostUpdate, setPrePersist, setPreRemove, setPreUpdate, setPrimaryKey, setQueryRedirectors, setReadOnly, setSequenceGenerator, setSerializedObjectPolicy, setSqlResultSetMappings, setTableGenerator, setUuidGeneratoraddAccessor, addAccessorFields, addAccessorMethods, addAccessors, addPotentialEmbeddableAccessor, addPotentialMappedSuperclass, buildAccessor, clearMappedSuperclassesAndInheritanceParents, clearPreProcessed, equals, excludeDefaultMappings, getAccessibleField, getAccessibleMethod, getAccessibleVirtualMethod, getAccessType, getAnnotation, getAssociationOverrides, getAttributeOverrides, getAttributes, getChangeTracking, getClassName, getCloneCopyPolicy, getCopyPolicy, getCustomCopyPolicy, getCustomizerClass, getCustomizerClassName, getDescription, getExcludeDefaultMappings, getIdentifier, getInstantiationCopyPolicy, getJavaClass, getJavaClassName, getMappedSuperclasses, getMetadataComplete, getNoSql, getOracleArrayTypes, getOracleObjectTypes, getOwningDescriptor, getOwningDescriptors, getParentClass, getParentClassName, getPLSQLRecords, getPLSQLTables, getStruct, hasDerivedId, hashCode, hasParentClass, ignoreAnnotations, initXMLClassAccessor, isAnnotationPresent, isClassAccessor, isEmbeddableAccessor, isMetadataComplete, isPreProcessed, isProcessed, preProcessMappedSuperclassMetadata, processAssociationOverride, processAssociationOverrides, processAttributeOverride, processAttributeOverrides, processChangeTracking, processComplexMetadataTypes, processCopyPolicy, processCustomizer, processMappedSuperclassMetadata, processNoSql, processParentClass, processProperties, processStruct, processVirtualClass, resolveGenericTypes, setAssociationOverrides, setAttributeOverrides, setAttributes, setChangeTracking, setClassName, setCloneCopyPolicy, setCustomCopyPolicy, setCustomizerClassName, setDescription, setExcludeDefaultMappings, setInstantiationCopyPolicy, setIsPreProcessed, setIsProcessed, setJavaClass, setMetadataComplete, setNoSql, setOracleArrayTypes, setOracleObjectTypes, setParentClass, setParentClassName, setPLSQLRecords, setPLSQLTables, setStruct, toString, usesFieldAccess, usesPropertyAccess, usesVirtualAccessgetAccess, getAccessibleObject, getAccessMethods, getAnnotatedElement, getAnnotatedElementName, getAnnotation, getAttributeName, getConverters, getDefaultAttributeName, getDescriptor, getDescriptorJavaClass, getHashPartitioning, getName, getObjectTypeConverters, getPartitioned, getPartitioning, getPinnedPartitioning, getProperties, getRangePartitioning, getReferencedField, getReferencedField, getReplicationPartitioning, getRoundRobinPartitioning, getSerializedConverters, getStructConverters, getTypeConverters, getUnionPartitioning, getUpperCaseShortJavaClassName, getValue, getValue, getValuePartitioning, hasAccess, hasAccessMethods, initAccess, initXMLAccessor, isAnnotationPresent, processConverters, processCustomConverters, processObjectTypeConverters, processPartitioned, processPartitioning, processPrimaryKeyJoinColumns, processSerializedConverters, processStructConverters, processTable, processTypeConverters, setAccess, setAccessMethods, setConverters, setDescriptor, setHashPartitioning, setName, setObjectTypeConverters, setPartitioned, setPartitioning, setPinnedPartitioning, setProperties, setRangePartitioning, setReplicationPartitioning, setRoundRobinPartitioning, setSerializedConverters, setStructConverters, setTypeConverters, setUnionPartitioning, setValuePartitioninggetAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatchpublic EntityAccessor()
public EntityAccessor(MetadataAnnotation annotation, MetadataClass cls, MetadataProject project)
protected void addMultipleTableKeyFields(java.util.List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns, DatabaseTable targetTable, java.lang.String PK_CTX, java.lang.String FK_CTX)
protected void discoverMappedSuperclassesAndInheritanceParents(boolean addMappedSuperclassAccessors)
public java.lang.Boolean getCascadeOnDelete()
public java.lang.String getClassExtractorName()
public java.util.List<ConvertMetadata> getConverts()
public DiscriminatorColumnMetadata getDiscriminatorColumn()
public java.lang.String getDiscriminatorValue()
public java.lang.String getEntityName()
public java.util.List<IndexMetadata> getIndexes()
public InheritanceMetadata getInheritance()
public java.util.List<NamedEntityGraphMetadata> getNamedEntityGraphs()
public PrimaryKeyForeignKeyMetadata getPrimaryKeyForeignKey()
public java.util.List<PrimaryKeyJoinColumnMetadata> getPrimaryKeyJoinColumns()
public java.util.List<SecondaryTableMetadata> getSecondaryTables()
public TableMetadata getTable()
public boolean hasClassExtractor()
public boolean hasInheritance()
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject in class MappedSuperclassAccessorpublic boolean isCascadeOnDelete()
public boolean isEntityAccessor()
isEntityAccessor in class ClassAccessorpublic boolean isMappedSuperclass()
isMappedSuperclass in class MappedSuperclassAccessorpublic void merge(ORMetadata metadata)
merge in class MappedSuperclassAccessorpublic void preProcess()
preProcess in class MappedSuperclassAccessorpublic void preProcessForCanonicalModel()
preProcessForCanonicalModel in class ClassAccessorpublic void process()
process in class MappedSuperclassAccessorpublic void processAccessMethods()
public void processAccessType()
processAccessType in class MappedSuperclassAccessorprotected void processCaching()
processCaching in class MappedSuperclassAccessorprotected void processCascadeOnDelete()
public java.lang.String processClassExtractor()
public void processConvert(ConvertMetadata convert)
public void processConverts()
public void processDerivedId(java.util.HashSet<ClassAccessor> processing, java.util.HashSet<ClassAccessor> processed)
processDerivedId in class ClassAccessorpublic DatabaseField processDiscriminatorColumn()
public java.lang.String processDiscriminatorValue()
protected void processEntity()
protected void processEntityGraphs()
protected void processIndexes()
protected void processInheritance()
public void processInheritancePrimaryKeyJoinColumns()
public void processListeners(java.lang.ClassLoader loader)
public void processMappingAccessors()
processMappingAccessors in class ClassAccessorprocess()protected void processSecondaryTable(SecondaryTableMetadata secondaryTable)
protected void processSecondaryTables()
protected void processTable()
protected void processTable(TableMetadata table)
protected void processTableAndInheritance()
public void setCascadeOnDelete(java.lang.Boolean cascadeOnDelete)
public void setClassExtractorName(java.lang.String classExtractorName)
public void setConverts(java.util.List<ConvertMetadata> converts)
public void setDiscriminatorColumn(DiscriminatorColumnMetadata discriminatorColumn)
public void setDiscriminatorValue(java.lang.String discriminatorValue)
public void setEntityName(java.lang.String entityName)
public void setIndexes(java.util.List<IndexMetadata> indexes)
public void setInheritance(InheritanceMetadata inheritance)
public void setNamedEntityGraphs(java.util.List<NamedEntityGraphMetadata> namedEntityGraphs)
public void setPrimaryKeyForeignKey(PrimaryKeyForeignKeyMetadata primaryKeyForeignKey)
public void setPrimaryKeyJoinColumns(java.util.List<PrimaryKeyJoinColumnMetadata> primaryKeyJoinColumns)
public void setSecondaryTables(java.util.List<SecondaryTableMetadata> secondaryTables)
public void setTable(TableMetadata table)
protected void validateOptimisticLocking()
protected void validatePrimaryKey()