public class InheritanceMetadata extends ORMetadata
m_project| Constructor and Description |
|---|
InheritanceMetadata()
INTERNAL:
Used for XML loading.
|
InheritanceMetadata(MetadataAnnotation inheritance,
MetadataAccessor accessor)
INTERNAL:
Used for annotation loading.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClassExtractor(MetadataDescriptor descriptor,
EntityAccessor accessor)
INTERNAL:
Set the class extractor class name on the inheritance policy.
|
protected void |
addClassIndicator(MetadataDescriptor descriptor,
EntityAccessor accessor)
INTERNAL:
Recursive method.
|
protected void |
addClassIndicatorField(MetadataDescriptor descriptor,
EntityAccessor accessor)
INTERNAL:
|
void |
addTablePerClassParentMappings(MetadataDescriptor startingDescriptor,
MetadataDescriptor realDescriptor)
INTERNAL:
Recursive method to traverse table per class inheritance hierarchy and
grab all the 'inherited' accessors for subclasses of the hierarchy.
|
boolean |
equals(java.lang.Object objectToCompare)
INTERNAL:
|
java.lang.String |
getStrategy()
INTERNAL:
Used for OX mapping.
|
int |
hashCode() |
void |
process(MetadataDescriptor descriptor)
INTERNAL:
The process method method will be called with the descriptor from
every entity in the hierarchy.
|
protected void |
processInheritanceRoot(MetadataDescriptor descriptor,
EntityAccessor accessor)
INTERNAL:
Process the inheritance metadata of a root class.
|
protected void |
processInheritanceSubclass(MetadataDescriptor descriptor,
EntityAccessor accessor,
EntityAccessor rootAccessor)
INTERNAL:
Process the inheritance metadata of a sub class.
|
protected void |
setInheritancePolicy(MetadataDescriptor descriptor)
INTERNAL:
Recursive method.
|
void |
setStrategy(java.lang.String strategy)
INTERNAL:
Used for OX mapping.
|
protected void |
setTablePerClassInheritancePolicy(MetadataDescriptor descriptor)
INTERNAL:
|
boolean |
usesJoinedStrategy()
INTERNAL:
|
boolean |
usesSingleTableStrategy()
INTERNAL:
|
boolean |
usesTablePerClassStrategy()
INTERNAL:
|
getAccessibleObject, getAccessibleObjectName, getAnnotation, getBoxedType, getDatabaseTypeEnum, getEntityMappings, getFullyQualifiedClassName, getIdentifier, getJavaClass, getJavaClassName, getLoader, getLocation, getLogger, getMetadataClass, getMetadataClass, getMetadataClass, getMetadataFactory, getName, getPrimitiveClassForName, getProject, getText, getXMLElement, hasIdentifier, hasText, initXMLClassName, initXMLObject, initXMLObject, initXMLObjects, initXMLTextObject, loadedFromAnnotation, loadedFromEclipseLinkXML, loadedFromXML, merge, mergeORObjectLists, mergeORObjects, mergeSimpleObjects, reloadEntity, reloadMappedSuperclass, setAccessibleObject, setEntityMappings, setFieldName, setFieldName, setProject, shouldOverride, valuesMatch, valuesMatchpublic InheritanceMetadata()
public InheritanceMetadata(MetadataAnnotation inheritance, MetadataAccessor accessor)
protected void addClassExtractor(MetadataDescriptor descriptor, EntityAccessor accessor)
protected void addClassIndicator(MetadataDescriptor descriptor, EntityAccessor accessor)
protected void addClassIndicatorField(MetadataDescriptor descriptor, EntityAccessor accessor)
public void addTablePerClassParentMappings(MetadataDescriptor startingDescriptor, MetadataDescriptor realDescriptor)
public boolean equals(java.lang.Object objectToCompare)
equals in class ORMetadatapublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getStrategy()
public void process(MetadataDescriptor descriptor)
protected void processInheritanceRoot(MetadataDescriptor descriptor, EntityAccessor accessor)
protected void processInheritanceSubclass(MetadataDescriptor descriptor, EntityAccessor accessor, EntityAccessor rootAccessor)
protected void setInheritancePolicy(MetadataDescriptor descriptor)
public void setStrategy(java.lang.String strategy)
protected void setTablePerClassInheritancePolicy(MetadataDescriptor descriptor)
public boolean usesJoinedStrategy()
public boolean usesSingleTableStrategy()
public boolean usesTablePerClassStrategy()