Package org.apache.openjpa.kernel
Class Audited
java.lang.Object
org.apache.openjpa.kernel.Audited
Carries immutable information about an audited persistent instance.
- Author:
- Pinaki Poddar
- 
Method SummaryModifier and TypeMethodDescriptionGets the current state of the persistent instance.getManangedFieldValue(String field) Gets the value of the given field of the managed object.getOriginalFieldValue(String field) Gets the value of the given field of the original state of the object.Gets the original state of the persistent instance as a transient instance.getType()Gets the type of this audit.String[]Gets the name of the updated fields.
- 
Method Details- 
getManagedObjectGets the current state of the persistent instance.
- 
getOriginalObjectGets the original state of the persistent instance as a transient instance.
- 
getUpdatedFieldsGets the name of the updated fields.- Returns:
- persistent property names that are modified. For deleted instances the array is empty and for newly created instances the array contains all the fields.
 
- 
getManangedFieldValueGets the value of the given field of the managed object.- Parameters:
- field- name of a persistent property
- Returns:
- value of the given field in the managed instance
- Throws:
- IllegalArgumentException- if the named field is not a persistent property
 
- 
getOriginalFieldValueGets the value of the given field of the original state of the object.- Parameters:
- field- name of a persistent property
- Returns:
- value of the given field in the original instance
- Throws:
- IllegalArgumentException- if the named field is not a persistent property
 
- 
getTypeGets the type of this audit.
 
-