PersistenceWeaver
| Modifier and Type | Field and Description |
|---|---|
| protected Map | attributesMap
Map of this class' persistent attributes where the key is the Attribute name. |
| protected String | className
Name of this class. |
| protected MetadataClass | |
| protected Map | 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 Map | 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 String | superClassName
Superclass' name. |
| protected boolean | usesAttributeAccess
Determine if class uses attribute access, lazily initialized. |
| protected List | virtualAccessMethods
The methods that are used by virtual attributes as getter methods. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | canWeaveConstructorOptimization()
Returns true if Used with field access, and is set to false if transient variables are discovered |
| public boolean | |
| public AttributeDetails | |
| public Map | |
| public String | |
| public MetadataClass | |
| public Map | |
| public boolean | |
| public VirtualAttributeMethodInfo | getInfoForVirtualGetMethod(String getMethodName)
INTERNAL: Search the list of virtualAccessMethods for a VirtualAttributeMethodInfo with the given getMethodName. |
| public VirtualAttributeMethodInfo | getInfoForVirtualSetMethod(String setMethodName)
INTERNAL: Search the list of virtualAccessMethods for a VirtualAttributeMethodInfo with the given setMethodName. |
| public String | getNameOfSuperclassImplementingCloneMethod()
Return the name of the most direct superclass that has a direct implementation of a clone method. |
| public Map | |
| public ClassDetails | |
| public String | |
| public List | |
| public boolean | |
| public boolean | isInMetadataHierarchy(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. |
| public boolean | isInSuperclassHierarchy(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. |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public 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. |
| attributesMap | back to summary |
|---|---|
| protected Map<String, AttributeDetails> attributesMap Map of this class' persistent attributes where the key is the Attribute name. | |
| className | back to summary |
|---|---|
| protected String className Name of this class. | |
| describedClass | back to summary |
|---|---|
| protected MetadataClass describedClass | |
| getterMethodToAttributeDetails | back to summary |
|---|---|
| protected Map<String, AttributeDetails> getterMethodToAttributeDetails Map of this class' persistent get methods where the key is the getMethod name. | |
| implementsCloneMethod | back to summary |
|---|---|
| protected boolean implementsCloneMethod Determine if this class specifically implements a clone method | |
| isEmbedable | back to summary |
|---|---|
| protected boolean isEmbedable Determine if a JPA "embedable" (aggregate). | |
| isMappedSuperClass | back to summary |
|---|---|
| protected boolean isMappedSuperClass Determine if a JPA "mapped superclass". | |
| setterMethodToAttributeDetails | back to summary |
|---|---|
| protected Map<String, AttributeDetails> setterMethodToAttributeDetails Map of this class' persistent set methods where the key is the setMethod name. | |
| shouldWeaveChangeTracking | back to summary |
|---|---|
| protected boolean shouldWeaveChangeTracking Define if change tracking should be weaved in this class. | |
| shouldWeaveConstructorOptimization | back to summary |
|---|---|
| protected boolean shouldWeaveConstructorOptimization Determine if a new constructor can be used to bypass setting variables to default values. | |
| shouldWeaveFetchGroups | back to summary |
|---|---|
| protected boolean shouldWeaveFetchGroups Define if fetch groups should be weaved in this class. | |
| shouldWeaveInternal | back to summary |
|---|---|
| protected boolean shouldWeaveInternal Define if internal optimizations should be weaved in this class. | |
| shouldWeaveRest | back to summary |
|---|---|
| protected boolean shouldWeaveRest Define if this class should be weaved for our REST support | |
| shouldWeaveValueHolders | back to summary |
|---|---|
| protected boolean shouldWeaveValueHolders Define if lazy value holders should be weaved in this class. | |
| superClassDetails | back to summary |
|---|---|
| protected ClassDetails superClassDetails Superclass' ClassDetails - only populated if superclass is also persistent. | |
| superClassName | back to summary |
|---|---|
| protected String superClassName Superclass' name. | |
| usesAttributeAccess | back to summary |
|---|---|
| protected boolean usesAttributeAccess Determine if class uses attribute access, lazily initialized. | |
| virtualAccessMethods | back to summary |
|---|---|
| protected List<VirtualAttributeMethodInfo> virtualAccessMethods The methods that are used by virtual attributes as getter methods. These will be used by our weaver to properly weave those methods This list should be kept in sync with virtualSetMethodNames. Every time a value is added, one should be added to virtualSetMethodNames so that at a particular index, the virtualGetMethodName and the virtualSetMethodCoorespond | |
| ClassDetails | back to summary |
|---|---|
| public ClassDetails() | |
| canWeaveChangeTracking | back to summary |
|---|---|
| public boolean canWeaveChangeTracking() | |
| canWeaveConstructorOptimization | back to summary |
|---|---|
| public boolean canWeaveConstructorOptimization() Returns true if Used with field access, and is set to false if transient variables are discovered | |
| doesSuperclassWeaveChangeTracking | back to summary |
|---|---|
| public boolean doesSuperclassWeaveChangeTracking() | |
| getAttributeDetailsFromClassOrSuperClass | back to summary |
|---|---|
| public AttributeDetails getAttributeDetailsFromClassOrSuperClass(String attributeName) | |
| getAttributesMap | back to summary |
|---|---|
| public Map | |
| getClassName | back to summary |
|---|---|
| public String getClassName() | |
| getDescribedClass | back to summary |
|---|---|
| public MetadataClass getDescribedClass() | |
| getGetterMethodToAttributeDetails | back to summary |
|---|---|
| public Map | |
| getImplementsCloneMethod | back to summary |
|---|---|
| public boolean getImplementsCloneMethod() | |
| getInfoForVirtualGetMethod | back to summary |
|---|---|
| public VirtualAttributeMethodInfo getInfoForVirtualGetMethod(String getMethodName) INTERNAL: Search the list of virtualAccessMethods for a VirtualAttributeMethodInfo with the given getMethodName. Return the VirtualAttributeMethodInfo if there is one, else return null | |
| getInfoForVirtualSetMethod | back to summary |
|---|---|
| public VirtualAttributeMethodInfo getInfoForVirtualSetMethod(String setMethodName) INTERNAL: Search the list of virtualAccessMethods for a VirtualAttributeMethodInfo with the given setMethodName. Return the VirtualAttributeMethodInfo if there is one, else return null | |
| getNameOfSuperclassImplementingCloneMethod | back to summary |
|---|---|
| public String getNameOfSuperclassImplementingCloneMethod() Return the name of the most direct superclass that has a direct implementation of a clone method. If there is not one, return null | |
| getSetterMethodToAttributeDetails | back to summary |
|---|---|
| public Map | |
| getSuperClassDetails | back to summary |
|---|---|
| public ClassDetails getSuperClassDetails() | |
| getSuperClassName | back to summary |
|---|---|
| public String getSuperClassName() | |
| getVirtualAccessMethods | back to summary |
|---|---|
| public List | |
| isEmbedable | back to summary |
|---|---|
| public boolean isEmbedable() | |
| isInMetadataHierarchy | back to summary |
|---|---|
| public boolean isInMetadataHierarchy(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. Assume java.lang.Object is in the hierarchy | |
| isInSuperclassHierarchy | back to summary |
|---|---|
| public boolean isInSuperclassHierarchy(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. Assume java.lang.Object is in the hierarchy | |
| isMappedSuperClass | back to summary |
|---|---|
| public boolean isMappedSuperClass() | |
| setAttributesMap | back to summary |
|---|---|
| public void setAttributesMap(Map<String, AttributeDetails> attributesMap) | |
| setClassName | back to summary |
|---|---|
| public void setClassName(String className) | |
| setDescribedClass | back to summary |
|---|---|
| public void setDescribedClass(MetadataClass describedClass) | |
| setGetterMethodToAttributeDetails | back to summary |
|---|---|
| public void setGetterMethodToAttributeDetails(Map<String, AttributeDetails> map) | |
| setImplementsCloneMethod | back to summary |
|---|---|
| public void setImplementsCloneMethod(boolean implementsCloneMethod) | |
| setIsEmbedable | back to summary |
|---|---|
| public void setIsEmbedable(boolean isEmbedable) | |
| setIsMappedSuperClass | back to summary |
|---|---|
| public void setIsMappedSuperClass(boolean isMappedSuperClass) | |
| setSetterMethodToAttributeDetails | back to summary |
|---|---|
| public void setSetterMethodToAttributeDetails(Map<K, V> map) | |
| setShouldWeaveChangeTracking | back to summary |
|---|---|
| public void setShouldWeaveChangeTracking(boolean shouldWeaveChangeTracking) | |
| setShouldWeaveConstructorOptimization | back to summary |
|---|---|
| public void setShouldWeaveConstructorOptimization(boolean shouldWeaveConstructorOptimization) | |
| setShouldWeaveFetchGroups | back to summary |
|---|---|
| public void setShouldWeaveFetchGroups(boolean shouldWeaveFetchGroups) | |
| setShouldWeaveInternal | back to summary |
|---|---|
| public void setShouldWeaveInternal(boolean shouldWeaveInternal) | |
| setShouldWeaveREST | back to summary |
|---|---|
| public void setShouldWeaveREST(boolean shouldWeaveRest) | |
| setShouldWeaveValueHolders | back to summary |
|---|---|
| public void setShouldWeaveValueHolders(boolean shouldWeaveValueHolders) | |
| setSuperClassDetails | back to summary |
|---|---|
| public void setSuperClassDetails(ClassDetails superClassDetails) | |
| setSuperClassName | back to summary |
|---|---|
| public void setSuperClassName(String superClassName) | |
| setVirtualAccessMethods | back to summary |
|---|---|
| public void setVirtualAccessMethods(List<VirtualAttributeMethodInfo> virtualAccessMethods) | |
| shouldWeaveChangeTracking | back to summary |
|---|---|
| public boolean shouldWeaveChangeTracking() | |
| shouldWeaveFetchGroups | back to summary |
|---|---|
| public boolean shouldWeaveFetchGroups() | |
| shouldWeaveInternal | back to summary |
|---|---|
| public boolean shouldWeaveInternal() | |
| shouldWeaveREST | back to summary |
|---|---|
| public boolean shouldWeaveREST() | |
| shouldWeaveValueHolders | back to summary |
|---|---|
| public boolean shouldWeaveValueHolders() | |
| useAttributeAccess | back to summary |
|---|---|
| public void useAttributeAccess() | |
| usesAttributeAccess | back to summary |
|---|---|
| public 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. | |