public class EntityAccessor extends MappedSuperclassAccessor
Constructor and Description |
---|
EntityAccessor()
INTERNAL:
|
EntityAccessor(MetadataAnnotation annotation,
MetadataClass cls,
MetadataProject project)
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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.
|
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.
|
excludeDefaultListeners, excludeSuperclassListeners, getAdditionalCriteria, getCache, getCacheable, getCacheIndexes, getCacheInterceptor, getEntityListeners, getExcludeDefaultListeners, getExcludeSuperclassListeners, getExistenceChecking, getFetchGroups, getIdClassName, getMultitenant, getNamedNativeQueries, getNamedPLSQLStoredFunctionQueries, getNamedPLSQLStoredProcedureQueries, getNamedQueries, getNamedStoredFunctionQueries, getNamedStoredProcedureQueries, getOptimisticLocking, getPostLoad, getPostPersist, getPostRemove, getPostUpdate, getPrePersist, getPreRemove, getPreUpdate, getPrimaryKey, getQueryRedirectors, getReadOnly, getSequenceGenerator, getSerializedObjectPolicy, getSqlResultSetMappings, getTableGenerator, getUuidGenerator, processEntityListeners, processMetamodelDescriptor, setAdditionalCriteria, setCache, setCacheable, setCacheIndexes, setCacheInterceptor, setEntityListeners, setExcludeDefaultListeners, setExcludeSuperclassListeners, setExistenceChecking, setFetchGroups, setIdClassName, setMultitenant, setNamedNativeQueries, setNamedPLSQLStoredFunctionQueries, setNamedPLSQLStoredProcedureQueries, setNamedQueries, setNamedStoredFunctionQueries, setNamedStoredProcedureQueries, setOptimisticLocking, setPostLoad, setPostPersist, setPostRemove, setPostUpdate, setPrePersist, setPreRemove, setPreUpdate, setPrimaryKey, setQueryRedirectors, setReadOnly, setSequenceGenerator, setSerializedObjectPolicy, setSqlResultSetMappings, setTableGenerator, setUuidGenerator
addAccessors, clearPreProcessed, equals, excludeDefaultMappings, getAccessType, getAssociationOverrides, getAttributeOverrides, getAttributes, getChangeTracking, getClassName, getCloneCopyPolicy, getCopyPolicy, getCustomCopyPolicy, getCustomizerClass, getCustomizerClassName, getDescription, getExcludeDefaultMappings, getIdentifier, getInstantiationCopyPolicy, getJavaClass, getJavaClassName, getMappedSuperclasses, getMetadataComplete, getNoSql, getOracleArrayTypes, getOracleObjectTypes, getOwningDescriptor, getOwningDescriptors, getParentClassName, getPLSQLRecords, getPLSQLTables, getStruct, hasDerivedId, ignoreAnnotations, initXMLClassAccessor, isAnnotationPresent, isClassAccessor, isEmbeddableAccessor, isMetadataComplete, isPreProcessed, isProcessed, processComplexMetadataTypes, processParentClass, setAssociationOverrides, setAttributeOverrides, setAttributes, setChangeTracking, setClassName, setCloneCopyPolicy, setCustomCopyPolicy, setCustomizerClassName, setDescription, setExcludeDefaultMappings, setInstantiationCopyPolicy, setJavaClass, setMetadataComplete, setNoSql, setOracleArrayTypes, setOracleObjectTypes, setParentClassName, setPLSQLRecords, setPLSQLTables, setStruct, toString, usesFieldAccess, usesPropertyAccess, usesVirtualAccess
getAccess, getAccessibleObject, getAccessMethods, getAnnotatedElement, getAnnotatedElementName, getAnnotation, getAttributeName, getConverters, getDescriptor, getDescriptorJavaClass, getHashPartitioning, getName, getObjectTypeConverters, getPartitioned, getPartitioning, getPinnedPartitioning, getProperties, getRangePartitioning, getReplicationPartitioning, getRoundRobinPartitioning, getSerializedConverters, getStructConverters, getTypeConverters, getUnionPartitioning, getValuePartitioning, hasAccess, hasAccessMethods, initAccess, initXMLAccessor, isAnnotationPresent, processConverters, processPartitioned, setAccess, setAccessMethods, setConverters, setDescriptor, setHashPartitioning, setName, setObjectTypeConverters, setPartitioned, setPartitioning, setPinnedPartitioning, setProperties, setRangePartitioning, setReplicationPartitioning, setRoundRobinPartitioning, setSerializedConverters, setStructConverters, setTypeConverters, setUnionPartitioning, setValuePartitioning
getAccessibleObjectName, getAnnotation, getEntityMappings, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getProject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, setAccessibleObject, setEntityMappings, setProject, shouldOverride
public EntityAccessor()
public EntityAccessor(MetadataAnnotation annotation, MetadataClass cls, MetadataProject project)
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 MappedSuperclassAccessor
public boolean isCascadeOnDelete()
public boolean isEntityAccessor()
isEntityAccessor
in class ClassAccessor
public boolean isMappedSuperclass()
isMappedSuperclass
in class MappedSuperclassAccessor
public void merge(ORMetadata metadata)
merge
in class MappedSuperclassAccessor
public void preProcess()
preProcess
in class MappedSuperclassAccessor
public void preProcessForCanonicalModel()
preProcessForCanonicalModel
in class ClassAccessor
public void process()
process
in class MappedSuperclassAccessor
public void processAccessMethods()
public void processAccessType()
processAccessType
in class MappedSuperclassAccessor
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 ClassAccessor
public DatabaseField processDiscriminatorColumn()
public java.lang.String processDiscriminatorValue()
public void processInheritancePrimaryKeyJoinColumns()
public void processListeners(java.lang.ClassLoader loader)
public void processMappingAccessors()
processMappingAccessors
in class ClassAccessor
process()
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)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference