Package javax.jdo.listener

Examples of javax.jdo.listener.InstanceLifecycleEvent


        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof CreateLifecycleListener)
            {
                ((CreateLifecycleListener)listener.getListener()).postCreate(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.CREATE, null));
            }
        }
    }
View Full Code Here


        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof StoreLifecycleListener)
            {
                ((StoreLifecycleListener)listener.getListener()).postStore(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.STORE, null));
            }
        }
    }
View Full Code Here

        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof ClearLifecycleListener)
            {
                ((ClearLifecycleListener)listener.getListener()).preClear(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.CLEAR, null));
            }
        }

        if (pc instanceof ClearCallback)
        {
View Full Code Here

        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof ClearLifecycleListener)
            {
                ((ClearLifecycleListener)listener.getListener()).postClear(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.CLEAR, null));
            }
        }
    }
View Full Code Here

        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof DeleteLifecycleListener)
            {
                ((DeleteLifecycleListener)listener.getListener()).preDelete(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.DELETE, null));
            }
        }

        if (pc instanceof DeleteCallback)
        {
View Full Code Here

        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof DeleteLifecycleListener)
            {
                ((DeleteLifecycleListener)listener.getListener()).postDelete(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.DELETE, null));
            }
        }
    }
View Full Code Here

        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof DirtyLifecycleListener)
            {
                ((DirtyLifecycleListener)listener.getListener()).preDirty(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.DIRTY, null));
            }
        }
    }
View Full Code Here

        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof DirtyLifecycleListener)
            {
                ((DirtyLifecycleListener)listener.getListener()).postDirty(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.DIRTY, null));
            }
        }
    }
View Full Code Here

        while (iter.hasNext())
        {
            LifecycleListenerForClass listener = (LifecycleListenerForClass) iter.next();
            if (listener.forClass(pc.getClass()) && listener.getListener() instanceof LoadLifecycleListener)
            {
                ((LoadLifecycleListener)listener.getListener()).postLoad(new InstanceLifecycleEvent(pc, InstanceLifecycleEvent.LOAD, null));
            }
        }
    }
View Full Code Here

        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)
        {
View Full Code Here

TOP

Related Classes of javax.jdo.listener.InstanceLifecycleEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.