org.apache.openjpa.enhance
Class RedefinitionHelper

java.lang.Object
  extended by org.apache.openjpa.enhance.RedefinitionHelper

public class RedefinitionHelper
extends Object

Helper methods for managed types that use method redefinition for field tracking.

Since:
1.0.0

Constructor Summary
RedefinitionHelper()
           
 
Method Summary
static void accessingField(Object o, int absoluteIndex)
          Notify the state manager for o (if any) that a field is about to be accessed.
static void dirtyCheck(StateManager sm)
          Call StateManagerImpl.dirtyCheck() if the argument is a StateManagerImpl.
static void settingField(Object o, int idx, boolean cur, boolean next)
          Setting state callback.
static void settingField(Object o, int idx, byte cur, byte next)
          Setting state callback.
static void settingField(Object o, int idx, char cur, char next)
          Setting state callback.
static void settingField(Object o, int idx, double cur, double next)
          Setting state callback.
static void settingField(Object o, int idx, float cur, float next)
          Setting state callback.
static void settingField(Object o, int idx, int cur, int next)
          Setting state callback.
static void settingField(Object o, int idx, long cur, long next)
          Setting state callback.
static void settingField(Object o, int idx, Object cur, Object next)
          Setting state callback.
static void settingField(Object o, int idx, short cur, short next)
          Setting state callback.
static void settingField(Object o, int idx, String cur, String next)
          Setting state callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedefinitionHelper

public RedefinitionHelper()
Method Detail

dirtyCheck

public static void dirtyCheck(StateManager sm)
Call StateManagerImpl.dirtyCheck() if the argument is a StateManagerImpl.


accessingField

public static void accessingField(Object o,
                                  int absoluteIndex)
Notify the state manager for o (if any) that a field is about to be accessed.


settingField

public static void settingField(Object o,
                                int idx,
                                boolean cur,
                                boolean next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                char cur,
                                char next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                byte cur,
                                byte next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                short cur,
                                short next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                int cur,
                                int next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                long cur,
                                long next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                float cur,
                                float next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                double cur,
                                double next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                String cur,
                                String next)
Setting state callback.


settingField

public static void settingField(Object o,
                                int idx,
                                Object cur,
                                Object next)
Setting state callback.



Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.