public class ClassDetails
extends java.lang.Object
PersistenceWeaver| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,AttributeDetails> |
attributesMap
Map of this class' persistent attributes where the key is the Attribute name.
|
protected java.lang.String |
className
Name of this class.
|
protected MetadataClass |
describedClass |
protected java.util.Map<java.lang.String,AttributeDetails> |
getterMethodToAttributeDetails
Map of this class' persistent get methods where the key is the getMethod name.
|
protected boolean |
implementsCloneMethod
Determine if this class specifically implements a clone method
|
protected boolean |
isEmbedable
Determine if a JPA "embedable" (aggregate).
|
protected boolean |
isMappedSuperClass
Determine if a JPA "mapped superclass".
|
protected java.util.Map<java.lang.String,AttributeDetails> |
setterMethodToAttributeDetails
Map of this class' persistent set methods where the key is the setMethod name.
|
protected boolean |
shouldWeaveChangeTracking
Define if change tracking should be weaved in this class.
|
protected boolean |
shouldWeaveConstructorOptimization
Determine if a new constructor can be used to bypass setting variables to default values.
|
protected boolean |
shouldWeaveFetchGroups
Define if fetch groups should be weaved in this class.
|
protected boolean |
shouldWeaveInternal
Define if internal optimizations should be weaved in this class.
|
protected boolean |
shouldWeaveRest
Define if this class should be weaved for our REST support
|
protected boolean |
shouldWeaveValueHolders
Define if lazy value holders should be weaved in this class.
|
protected ClassDetails |
superClassDetails
Superclass' ClassDetails - only populated if superclass is also persistent.
|
protected java.lang.String |
superClassName
Superclass' name.
|
protected boolean |
usesAttributeAccess
Determine if class uses attribute access, lazily initialized.
|
protected java.util.List<VirtualAttributeMethodInfo> |
virtualAccessMethods
The methods that are used by virtual attributes as getter methods.
|
| Constructor and Description |
|---|
ClassDetails() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWeaveChangeTracking() |
boolean |
canWeaveConstructorOptimization()
Returns true if
Used with field access, and is set to false if transient variables are discovered
|
boolean |
doesSuperclassWeaveChangeTracking() |
AttributeDetails |
getAttributeDetailsFromClassOrSuperClass(java.lang.String attributeName) |
java.util.Map<java.lang.String,AttributeDetails> |
getAttributesMap() |
java.lang.String |
getClassName() |
MetadataClass |
getDescribedClass() |
java.util.Map<java.lang.String,AttributeDetails> |
getGetterMethodToAttributeDetails() |
boolean |
getImplementsCloneMethod() |
VirtualAttributeMethodInfo |
getInfoForVirtualGetMethod(java.lang.String getMethodName)
INTERNAL:
Search the list of virtualAccessMethods for a VirtualAttributeMethodInfo with the given
getMethodName.
|
VirtualAttributeMethodInfo |
getInfoForVirtualSetMethod(java.lang.String setMethodName)
INTERNAL:
Search the list of virtualAccessMethods for a VirtualAttributeMethodInfo with the given
setMethodName.
|
java.lang.String |
getNameOfSuperclassImplementingCloneMethod()
Return the name of the most direct superclass that has a direct implementation of
a clone method.
|
java.util.Map<java.lang.String,AttributeDetails> |
getSetterMethodToAttributeDetails() |
ClassDetails |
getSuperClassDetails() |
java.lang.String |
getSuperClassName() |
java.util.List<VirtualAttributeMethodInfo> |
getVirtualAccessMethods() |
boolean |
isEmbedable() |
boolean |
isInMetadataHierarchy(java.lang.String className)
Returns true if the given class name represents this class, or any
superclass that can be navigated to by recursively navigating up the
structure of superClassDetails stored in this class.
|
boolean |
isInSuperclassHierarchy(java.lang.String className)
Returns true if the given class name represents this class, or any
superclass that can be navigated to by recursively navigating up the
structure of superClassDetails stored in this class.
|
boolean |
isMappedSuperClass() |
void |
setAttributesMap(java.util.Map<java.lang.String,AttributeDetails> attributesMap) |
void |
setClassName(java.lang.String className) |
void |
setDescribedClass(MetadataClass describedClass) |
void |
setGetterMethodToAttributeDetails(java.util.Map<java.lang.String,AttributeDetails> map) |
void |
setImplementsCloneMethod(boolean implementsCloneMethod) |
void |
setIsEmbedable(boolean isEmbedable) |
void |
setIsMappedSuperClass(boolean isMappedSuperClass) |
void |
setSetterMethodToAttributeDetails(java.util.Map map) |
void |
setShouldWeaveChangeTracking(boolean shouldWeaveChangeTracking) |
void |
setShouldWeaveConstructorOptimization(boolean shouldWeaveConstructorOptimization) |
void |
setShouldWeaveFetchGroups(boolean shouldWeaveFetchGroups) |
void |
setShouldWeaveInternal(boolean shouldWeaveInternal) |
void |
setShouldWeaveREST(boolean shouldWeaveRest) |
void |
setShouldWeaveValueHolders(boolean shouldWeaveValueHolders) |
void |
setSuperClassDetails(ClassDetails superClassDetails) |
void |
setSuperClassName(java.lang.String superClassName) |
void |
setVirtualAccessMethods(java.util.List<VirtualAttributeMethodInfo> virtualAccessMethods) |
boolean |
shouldWeaveChangeTracking() |
boolean |
shouldWeaveFetchGroups() |
boolean |
shouldWeaveInternal() |
boolean |
shouldWeaveREST() |
boolean |
shouldWeaveValueHolders() |
void |
useAttributeAccess() |
boolean |
usesAttributeAccess()
If one attribute of this class uses attribute access, by the JPA specification, all
attributes must use attribute access
This method assumes it is called when this class details is completely initialized.
|
protected MetadataClass describedClass
protected java.lang.String className
protected java.lang.String superClassName
protected ClassDetails superClassDetails
protected boolean shouldWeaveValueHolders
protected boolean shouldWeaveChangeTracking
protected boolean shouldWeaveFetchGroups
protected boolean shouldWeaveInternal
protected boolean shouldWeaveRest
protected java.util.Map<java.lang.String,AttributeDetails> attributesMap
protected java.util.Map<java.lang.String,AttributeDetails> getterMethodToAttributeDetails
protected java.util.Map<java.lang.String,AttributeDetails> setterMethodToAttributeDetails
protected boolean isMappedSuperClass
protected boolean isEmbedable
protected boolean usesAttributeAccess
protected boolean implementsCloneMethod
protected boolean shouldWeaveConstructorOptimization
protected java.util.List<VirtualAttributeMethodInfo> virtualAccessMethods
public MetadataClass getDescribedClass()
public java.lang.String getClassName()
public void setDescribedClass(MetadataClass describedClass)
public void setClassName(java.lang.String className)
public java.lang.String getSuperClassName()
public void setSuperClassName(java.lang.String superClassName)
public ClassDetails getSuperClassDetails()
public void setSuperClassDetails(ClassDetails superClassDetails)
public boolean shouldWeaveValueHolders()
public void setShouldWeaveValueHolders(boolean shouldWeaveValueHolders)
public boolean shouldWeaveChangeTracking()
public void setShouldWeaveChangeTracking(boolean shouldWeaveChangeTracking)
public void setShouldWeaveConstructorOptimization(boolean shouldWeaveConstructorOptimization)
public boolean shouldWeaveFetchGroups()
public void setShouldWeaveFetchGroups(boolean shouldWeaveFetchGroups)
public boolean shouldWeaveInternal()
public void setShouldWeaveInternal(boolean shouldWeaveInternal)
public boolean shouldWeaveREST()
public void setShouldWeaveREST(boolean shouldWeaveRest)
public java.util.Map<java.lang.String,AttributeDetails> getAttributesMap()
public java.util.Map<java.lang.String,AttributeDetails> getGetterMethodToAttributeDetails()
public java.util.Map<java.lang.String,AttributeDetails> getSetterMethodToAttributeDetails()
public void setAttributesMap(java.util.Map<java.lang.String,AttributeDetails> attributesMap)
public void setGetterMethodToAttributeDetails(java.util.Map<java.lang.String,AttributeDetails> map)
public boolean getImplementsCloneMethod()
public VirtualAttributeMethodInfo getInfoForVirtualGetMethod(java.lang.String getMethodName)
getMethodName - public VirtualAttributeMethodInfo getInfoForVirtualSetMethod(java.lang.String setMethodName)
setMethodName - public void setImplementsCloneMethod(boolean implementsCloneMethod)
public java.lang.String getNameOfSuperclassImplementingCloneMethod()
public java.util.List<VirtualAttributeMethodInfo> getVirtualAccessMethods()
public void setVirtualAccessMethods(java.util.List<VirtualAttributeMethodInfo> virtualAccessMethods)
public boolean isMappedSuperClass()
public void setIsMappedSuperClass(boolean isMappedSuperClass)
public boolean isEmbedable()
public void setIsEmbedable(boolean isEmbedable)
public void setSetterMethodToAttributeDetails(java.util.Map map)
public boolean usesAttributeAccess()
public void useAttributeAccess()
public AttributeDetails getAttributeDetailsFromClassOrSuperClass(java.lang.String attributeName)
public boolean doesSuperclassWeaveChangeTracking()
public boolean canWeaveChangeTracking()
public boolean canWeaveConstructorOptimization()
public boolean isInMetadataHierarchy(java.lang.String className)
className - public boolean isInSuperclassHierarchy(java.lang.String className)
className -