public abstract class ClassAccessor extends MetadataAccessor
Constructor and Description |
---|
ClassAccessor(MetadataAnnotation annotation,
MetadataClass cls,
MetadataProject project)
INTERNAL:
|
Modifier and Type | Method and Description |
---|---|
void |
addAccessors()
INTERNAL:
Add the accessors from this class accessors java class to the descriptor
tied to this class accessor.
|
void |
clearPreProcessed()
INTERNAL:
In some cases the pre-processing may need to be re-done.
|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
|
boolean |
excludeDefaultMappings()
INTERNAL:
Return true if this class accessor has been set to metadata complete.
|
java.lang.String |
getAccessType()
INTERNAL:
Return the access type of this accessor.
|
java.util.List<AssociationOverrideMetadata> |
getAssociationOverrides()
INTERNAL:
Used for OX mapping.
|
java.util.List<AttributeOverrideMetadata> |
getAttributeOverrides()
INTERNAL:
Used for OX mapping.
|
XMLAttributes |
getAttributes()
INTERNAL:
Used for OX mapping.
|
ChangeTrackingMetadata |
getChangeTracking()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getClassName()
INTERNAL:
Used for OX mapping.
|
CloneCopyPolicyMetadata |
getCloneCopyPolicy()
INTERNAL:
Used for OX mapping
|
CopyPolicyMetadata |
getCopyPolicy()
INTERNAL:
|
CustomCopyPolicyMetadata |
getCustomCopyPolicy()
INTERNAL:
Used for OX mapping
|
MetadataClass |
getCustomizerClass()
INTERNAL:
|
java.lang.String |
getCustomizerClassName()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getDescription()
INTERNAL:
Used for OX mapping.
|
java.lang.Boolean |
getExcludeDefaultMappings()
INTERNAL:
Used for OX mapping.
|
java.lang.String |
getIdentifier()
INTERNAL:
To satisfy the abstract getIdentifier() method from ORMetadata.
|
InstantiationCopyPolicyMetadata |
getInstantiationCopyPolicy()
INTERNAL:
Used for OX mapping
|
MetadataClass |
getJavaClass()
INTERNAL:
Return the java class that defines this accessor.
|
java.lang.String |
getJavaClassName()
INTERNAL:
Return the java class name that defines this accessor.
|
java.util.List<MappedSuperclassAccessor> |
getMappedSuperclasses()
INTERNAL:
Return the mapped superclasses associated with this entity accessor.
|
java.lang.Boolean |
getMetadataComplete()
INTERNAL:
Used for OX mapping.
|
NoSqlMetadata |
getNoSql()
INTERNAL:
Used for OX mapping.
|
java.util.List<OracleArrayTypeMetadata> |
getOracleArrayTypes()
Returns the list of OracleArrayType instances.
|
java.util.List<OracleObjectTypeMetadata> |
getOracleObjectTypes()
Returns the list of OracleObjectType instances.
|
MetadataDescriptor |
getOwningDescriptor()
INTERNAL:
In most cases the owning descriptor is the descriptor associated with
this class accessor.
|
java.util.List<MetadataDescriptor> |
getOwningDescriptors()
INTERNAL:
In most cases the owning descriptors is the single descriptor associated
with this class accessor.
|
java.lang.String |
getParentClassName()
INTERNAL:
Used for OX mapping.
|
java.util.List<PLSQLRecordMetadata> |
getPLSQLRecords()
INTERNAL:
Used for OX mapping.
|
java.util.List<PLSQLTableMetadata> |
getPLSQLTables()
INTERNAL:
Used for OX mapping.
|
StructMetadata |
getStruct()
INTERNAL:
Used for OX mapping.
|
boolean |
hasDerivedId()
INTERNAL:
|
boolean |
ignoreAnnotations()
INTERNAL:
Return true if this class accessor has been set to metadata complete.
|
void |
initXMLClassAccessor(MetadataAccessibleObject accessibleObject,
MetadataDescriptor descriptor,
MetadataProject project,
XMLEntityMappings entityMappings)
INTERNAL:
This method should be subclassed in those methods that need to do
extra initialization.
|
void |
initXMLObject(MetadataAccessibleObject accessibleObject,
XMLEntityMappings entityMappings)
INTERNAL:
|
boolean |
isAnnotationPresent(java.lang.String annotation)
INTERNAL:
Indicates whether the specified annotation is present on the annotated
element for this accessor.
|
boolean |
isClassAccessor()
INTERNAL:
Return true if this accessor represents a class.
|
boolean |
isEmbeddableAccessor()
INTERNAL:
Return true if this accessor represents an embeddable class.
|
boolean |
isEntityAccessor()
INTERNAL:
Return true if this accessor represents an entity class.
|
boolean |
isMappedSuperclass()
INTERNAL:
Return whether this ClassAccessor is a MappedSuperclassAccessor
|
boolean |
isMetadataComplete()
INTERNAL:
|
boolean |
isPreProcessed()
INTERNAL:
Return true if this accessor has been pre-processed.
|
boolean |
isProcessed()
INTERNAL:
Return true if this accessor has been processed.
|
void |
merge(ORMetadata metadata)
INTERNAL:
Generic class level merging details for entities, mapped superclasses
and embeddables.
|
void |
preProcess()
INTERNAL:
The pre-process method is called during regular deployment and metadata
processing.
|
void |
preProcessForCanonicalModel()
INTERNAL:
The pre-process for canonical model method is called (and only called)
during the canonical model generation.
|
void |
process()
INTERNAL:
This method should be overridden by all class accessors to process their
specific class metadata first then call up to this method to process the
common metadata.
|
void |
processComplexMetadataTypes()
Process PL/SQL record and table types, Oracle object array and XMLType types.
|
void |
processDerivedId(java.util.HashSet<ClassAccessor> processing,
java.util.HashSet<ClassAccessor> processed)
INTERNAL:
Allows for processing derived ids, either from an Id or MapsId
specification.
|
void |
processMappingAccessors()
INTERNAL:
Process the accessors for the given class.
|
void |
processParentClass()
INTERNAL:
If the user specified a parent class set it on the metadata class
for this accessor.
|
void |
setAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides)
INTERNAL:
Used for OX mapping.
|
void |
setAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides)
INTERNAL:
Used for OX mapping.
|
void |
setAttributes(XMLAttributes attributes)
INTERNAL:
Used for OX mapping.
|
void |
setChangeTracking(ChangeTrackingMetadata changeTracking)
INTERNAL:
Used for OX mapping.
|
void |
setClassName(java.lang.String className)
INTERNAL:
Used for OX mapping.
|
void |
setCloneCopyPolicy(CloneCopyPolicyMetadata copyPolicy)
INTERNAL:
set the copy policy metadata
|
void |
setCustomCopyPolicy(CustomCopyPolicyMetadata copyPolicy)
INTERNAL:
set the copy policy metadata
|
void |
setCustomizerClassName(java.lang.String customizerClassName)
INTERNAL:
Used for OX mapping.
|
void |
setDescription(java.lang.String description)
INTERNAL:
Used for OX mapping.
|
void |
setExcludeDefaultMappings(java.lang.Boolean excludeDefaultMappings)
INTERNAL:
Used for OX mapping.
|
void |
setInstantiationCopyPolicy(InstantiationCopyPolicyMetadata copyPolicy)
INTERNAL:
set the copy policy metadata
|
void |
setJavaClass(MetadataClass cls)
INTERNAL:
Set the java class for this accessor.
|
void |
setMetadataComplete(java.lang.Boolean metadataComplete)
INTERNAL:
Used for OX mapping.
|
void |
setNoSql(NoSqlMetadata noSql)
INTERNAL:
Used for OX mapping.
|
void |
setOracleArrayTypes(java.util.List<OracleArrayTypeMetadata> oracleArrayTypes)
Sets the list of OracleArrayType instances.
|
void |
setOracleObjectTypes(java.util.List<OracleObjectTypeMetadata> oracleObjectTypes)
Sets the list of OracleObjectType instances.
|
void |
setParentClassName(java.lang.String parentClassName)
INTERNAL:
Used for OX mapping.
|
void |
setPLSQLRecords(java.util.List<PLSQLRecordMetadata> records)
INTERNAL:
Used for OX mapping.
|
void |
setPLSQLTables(java.util.List<PLSQLTableMetadata> tables)
INTERNAL:
Used for OX mapping.
|
void |
setStruct(StructMetadata struct)
INTERNAL:
Used for OX mapping.
|
java.lang.String |
toString()
INTERNAL:
|
boolean |
usesFieldAccess()
INTERNAL:
Returns true if this class uses field access.
|
boolean |
usesPropertyAccess()
INTERNAL:
Returns true if this class uses property access.
|
boolean |
usesVirtualAccess()
INTERNAL:
Returns true if this class uses virtual access.
|
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 ClassAccessor(MetadataAnnotation annotation, MetadataClass cls, MetadataProject project)
public void addAccessors()
public void clearPreProcessed()
public boolean equals(java.lang.Object objectToCompare)
equals
in class MetadataAccessor
public boolean excludeDefaultMappings()
public java.lang.String getAccessType()
public java.util.List<AssociationOverrideMetadata> getAssociationOverrides()
public java.util.List<AttributeOverrideMetadata> getAttributeOverrides()
public XMLAttributes getAttributes()
public ChangeTrackingMetadata getChangeTracking()
public java.lang.String getClassName()
public CopyPolicyMetadata getCopyPolicy()
public CloneCopyPolicyMetadata getCloneCopyPolicy()
public CustomCopyPolicyMetadata getCustomCopyPolicy()
public MetadataClass getCustomizerClass()
public java.lang.String getCustomizerClassName()
public java.lang.String getDescription()
public java.lang.Boolean getExcludeDefaultMappings()
public java.lang.String getIdentifier()
getIdentifier
in class MetadataAccessor
shouldOverride
,
mergeListsAndOverride
public InstantiationCopyPolicyMetadata getInstantiationCopyPolicy()
public MetadataClass getJavaClass()
getJavaClass
in class MetadataAccessor
public java.lang.String getJavaClassName()
public java.util.List<MappedSuperclassAccessor> getMappedSuperclasses()
preProcess()
public java.lang.Boolean getMetadataComplete()
public NoSqlMetadata getNoSql()
public void setNoSql(NoSqlMetadata noSql)
public MetadataDescriptor getOwningDescriptor()
EmbeddableAccessor
public java.util.List<MetadataDescriptor> getOwningDescriptors()
EmbeddableAccessor
public java.lang.String getParentClassName()
public java.util.List<PLSQLRecordMetadata> getPLSQLRecords()
public java.util.List<PLSQLTableMetadata> getPLSQLTables()
public StructMetadata getStruct()
public boolean hasDerivedId()
public boolean isMappedSuperclass()
public boolean isMetadataComplete()
public boolean isPreProcessed()
public boolean isProcessed()
isProcessed
in class MetadataAccessor
public boolean ignoreAnnotations()
public void initXMLClassAccessor(MetadataAccessibleObject accessibleObject, MetadataDescriptor descriptor, MetadataProject project, XMLEntityMappings entityMappings)
public void initXMLObject(MetadataAccessibleObject accessibleObject, XMLEntityMappings entityMappings)
initXMLObject
in class MetadataAccessor
public boolean isAnnotationPresent(java.lang.String annotation)
isAnnotationPresent
in class MetadataAccessor
public boolean isClassAccessor()
public boolean isEmbeddableAccessor()
public boolean isEntityAccessor()
public void merge(ORMetadata metadata)
merge
in class MetadataAccessor
public void preProcess()
public void preProcessForCanonicalModel()
public void process()
process
in class MetadataAccessor
public void processComplexMetadataTypes()
public void processDerivedId(java.util.HashSet<ClassAccessor> processing, java.util.HashSet<ClassAccessor> processed)
public void processMappingAccessors()
public void processParentClass()
public void setAssociationOverrides(java.util.List<AssociationOverrideMetadata> associationOverrides)
public void setAttributeOverrides(java.util.List<AttributeOverrideMetadata> attributeOverrides)
public void setAttributes(XMLAttributes attributes)
public void setChangeTracking(ChangeTrackingMetadata changeTracking)
public void setClassName(java.lang.String className)
public void setCloneCopyPolicy(CloneCopyPolicyMetadata copyPolicy)
public void setCustomCopyPolicy(CustomCopyPolicyMetadata copyPolicy)
public void setCustomizerClassName(java.lang.String customizerClassName)
public void setDescription(java.lang.String description)
public void setExcludeDefaultMappings(java.lang.Boolean excludeDefaultMappings)
public void setInstantiationCopyPolicy(InstantiationCopyPolicyMetadata copyPolicy)
public void setJavaClass(MetadataClass cls)
public void setMetadataComplete(java.lang.Boolean metadataComplete)
public void setParentClassName(java.lang.String parentClassName)
public void setPLSQLRecords(java.util.List<PLSQLRecordMetadata> records)
public void setPLSQLTables(java.util.List<PLSQLTableMetadata> tables)
public void setStruct(StructMetadata struct)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean usesFieldAccess()
public boolean usesPropertyAccess()
public boolean usesVirtualAccess()
public java.util.List<OracleObjectTypeMetadata> getOracleObjectTypes()
public void setOracleObjectTypes(java.util.List<OracleObjectTypeMetadata> oracleObjectTypes)
public java.util.List<OracleArrayTypeMetadata> getOracleArrayTypes()
public void setOracleArrayTypes(java.util.List<OracleArrayTypeMetadata> oracleArrayTypes)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference