Codota Logo
DetachLifecycleListener.preDetach
Code IndexAdd Codota to your IDE (free)

How to use
preDetach
method
in
javax.jdo.listener.DetachLifecycleListener

Best Java code snippets using javax.jdo.listener.DetachLifecycleListener.preDetach (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: jpox/jpox

public void preDetach(Object pc)
{
  Iterator iter = listeners.iterator();
  while (iter.hasNext())
  {
    LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
    if (listener.forClass(pc.getClass()) && listener.getListener() instanceof DetachLifecycleListener)
    {
      ((DetachLifecycleListener)listener.getListener()).preDetach(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.DETACH, null));
    }
  }
  if (pc instanceof DetachCallback)
  {
    ((DetachCallback) pc).jdoPreDetach();
  }        
}
origin: tzaeschke/zoodb

((DetachLifecycleListener)l).preDetach(
    new InstanceLifecycleEvent(src, InstanceLifecycleEvent.DETACH, src));
origin: org.datanucleus/datanucleus-api-jdo

/**
 * Callback before the object is detached.
 * @param pc The Object
 */
public void preDetach(Object pc)
{
  for (LifecycleListenerForClass listener : getListenersWorkingCopy())
  {
    if (listener.forClass(pc.getClass()) && listener.getListener() instanceof DetachLifecycleListener)
    {
      ((DetachLifecycleListener)listener.getListener()).preDetach(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.DETACH, null));
    }
  }
  if (pc instanceof DetachCallback)
  {
    try
    {
      ((DetachCallback) pc).jdoPreDetach();
    }
    catch (Exception e)
    {
      throw new JDOUserCallbackException(Localiser.msg("025001", "jdoPreDetach"), e);
    }
  }        
}
javax.jdo.listenerDetachLifecycleListenerpreDetach

Javadoc

This method is called during the execution of javax.jdo.PersistenceManager#detachCopy before the detached copy is made. It is called before the method DetachCallback#jdoPreDetach is called on the instance to be detached.

Popular methods of DetachLifecycleListener

  • postDetach
    This method is called during the execution of javax.jdo.PersistenceManager#detachCopy after the deta

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now