Class DetachListener

  • public abstract class DetachListener
    extends Object
    Listener hook for detachment events, as an alternative to the JDO standard process of throwing a NucleusUserException. Call setInstance() with your DetachListener and you will pick up all events.
    • Constructor Detail

      • DetachListener

        public DetachListener()
    • Method Detail

      • setInstance

        public static void setInstance​(DetachListener instance)
      • undetachedFieldAccess

        public abstract void undetachedFieldAccess​(Object instance,
                                                   String memberName)
        Invoked when a user tries to get a non-loaded field on a detached object.
        instance - of object detached
        memberName - name of field/property that has been read.