| java.lang.Object org.apache.openjpa.enhance.RedefinitionHelper
RedefinitionHelper | public class RedefinitionHelper (Code) | | Helper methods for managed types that use method redefinition for field
tracking.
since: 1.0.0 |
Method Summary | |
public static void | accessingField(Object o, int absoluteIndex) Notify the state manager for o (if any) that a field
is about to be accessed. | public static void | assignLazyLoadProxies(StateManagerImpl sm) Create a container instance that will delegate back to the state
manager to emulate lazy loading. | public static void | dirtyCheck(StateManager sm) Call
StateManagerImpl.dirtyCheck if the argument is a
StateManagerImpl . | public static void | settingField(Object o, int idx, boolean cur, boolean next) Setting state callback. | public static void | settingField(Object o, int idx, char cur, char next) Setting state callback. | public static void | settingField(Object o, int idx, byte cur, byte next) Setting state callback. | public static void | settingField(Object o, int idx, short cur, short next) Setting state callback. | public static void | settingField(Object o, int idx, int cur, int next) Setting state callback. | public static void | settingField(Object o, int idx, long cur, long next) Setting state callback. | public static void | settingField(Object o, int idx, float cur, float next) Setting state callback. | public static void | settingField(Object o, int idx, double cur, double next) Setting state callback. | public static void | settingField(Object o, int idx, String cur, String next) Setting state callback. | public static void | settingField(Object o, int idx, Object cur, Object next) Setting state callback. |
accessingField | public static void accessingField(Object o, int absoluteIndex)(Code) | | Notify the state manager for o (if any) that a field
is about to be accessed.
|
assignLazyLoadProxies | public static void assignLazyLoadProxies(StateManagerImpl sm)(Code) | | Create a container instance that will delegate back to the state
manager to emulate lazy loading. This is used by PC subclasses for
unenhanced types that could not be redefined, and thus do not have
field-interception capabilities. Do this for all collection and
map field types, even if they are in the dfg, in case the fetch
groups are reset at runtime.
since: 1.1.0 |
settingField | public static void settingField(Object o, int idx, boolean cur, boolean next)(Code) | | Setting state callback.
|
settingField | public static void settingField(Object o, int idx, char cur, char next)(Code) | | Setting state callback.
|
settingField | public static void settingField(Object o, int idx, byte cur, byte next)(Code) | | Setting state callback.
|
settingField | public static void settingField(Object o, int idx, short cur, short next)(Code) | | Setting state callback.
|
settingField | public static void settingField(Object o, int idx, int cur, int next)(Code) | | Setting state callback.
|
settingField | public static void settingField(Object o, int idx, long cur, long next)(Code) | | Setting state callback.
|
settingField | public static void settingField(Object o, int idx, float cur, float next)(Code) | | Setting state callback.
|
settingField | public static void settingField(Object o, int idx, double cur, double next)(Code) | | Setting state callback.
|
|
|