| Modifier and Type | Field and Description |
|---|---|
| protected String | actualTypeClassName
Stores the actual type of the mapping if different from the reference type. |
| protected String | getMethodName
Name of the initial get method. |
| protected boolean | hasUsedMethodAccess
indicates whether the mapping has originally used method access |
| protected transient Method | setMethod
Lazily initialized set method based on the set method name. |
| protected String | setMethodName
Name of the initial set method. |
| Access | Constructor and Description |
|---|---|
| public | WeavedObjectBasicIndirectionPolicy(String getMethodName, String setMethodName, String actualTypeClassName, boolean hasUsedMethodAccess)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public Object | getRealAttributeValueFromObject(Object object, Object attribute)
Overrides org. |
| protected Method | getSetMethod()
This method will lazily initialize the set method Lazy initialization occurs to that we are not required to have a handle on the actual class that we are using until runtime. |
| public String | |
| public boolean | |
| public boolean | |
| public void | setRealAttributeValueInObject(Object target, Object attributeValue)
Overrides org. |
| public void | setRealAttributeValueInObject(Object target, Object attributeValue, boolean trackChanges)
Overrides org. |
| public void | updateValueInObject(Object object, Object value, Object attributeValue)
Coordinate the valueholder for this mapping with the underlying property by calling the initial setter method. |
| actualTypeClassName | back to summary |
|---|---|
| protected String actualTypeClassName Stores the actual type of the mapping if different from the reference type. Used for set method invocation | |
| getMethodName | back to summary |
|---|---|
| protected String getMethodName Name of the initial get method. | |
| hasUsedMethodAccess | back to summary |
|---|---|
| protected boolean hasUsedMethodAccess indicates whether the mapping has originally used method access | |
| setMethod | back to summary |
|---|---|
| protected transient Method setMethod Lazily initialized set method based on the set method name. | |
| setMethodName | back to summary |
|---|---|
| protected String setMethodName Name of the initial set method. | |
| WeavedObjectBasicIndirectionPolicy | back to summary |
|---|---|
| public WeavedObjectBasicIndirectionPolicy(String getMethodName, String setMethodName, String actualTypeClassName, boolean hasUsedMethodAccess) | |
| getActualTypeClassName | back to summary |
|---|---|
| public String getActualTypeClassName() | |
| getGetMethodName | back to summary |
|---|---|
| public String getGetMethodName() | |
| getRealAttributeValueFromObject | back to summary |
|---|---|
| public Object getRealAttributeValueFromObject(Object object, Object attribute) Overrides org. Return the "real" attribute value, as opposed to any wrapper. This will trigger the wrapper to instantiate the value. In a weaved policy, this will also call the initial setter method to coordinate the values of the valueholder with the underlying data.
| |
| getSetMethod | back to summary |
|---|---|
| protected Method getSetMethod() This method will lazily initialize the set method Lazy initialization occurs to that we are not required to have a handle on the actual class that we are using until runtime. This helps to satisfy the weaving requirement that demands that we avoid loading domain classes into the main class loader until after weaving occurs. | |
| getSetMethodName | back to summary |
|---|---|
| public String getSetMethodName() | |
| hasUsedMethodAccess | back to summary |
|---|---|
| public boolean hasUsedMethodAccess() | |
| isWeavedObjectBasicIndirectionPolicy | back to summary |
|---|---|
| public boolean isWeavedObjectBasicIndirectionPolicy() Overrides org. Doc from org. INTERNAL:
| |
| setRealAttributeValueInObject | back to summary |
|---|---|
| public void setRealAttributeValueInObject(Object target, Object attributeValue) Overrides org. Set the value of the appropriate attribute of target to attributeValue. In this case, place the value inside the target's ValueHolder. Change tracking will be turned off when this method is called
| |
| setRealAttributeValueInObject | back to summary |
|---|---|
| public void setRealAttributeValueInObject(Object target, Object attributeValue, boolean trackChanges) Overrides org. Set the value of the appropriate attribute of target to attributeValue. In this case, place the value inside the target's ValueHolder. if trackChanges is true, set the value in the object as if the user was setting it. Allow change tracking to pick up the change.
| |
| updateValueInObject | back to summary |
|---|---|
| public void updateValueInObject(Object object, Object value, Object attributeValue) Coordinate the valueholder for this mapping with the underlying property by calling the initial setter method. | |