Package org.jpox.state

Examples of org.jpox.state.DetachState


        {
            runningDetachAllOnCommit = true;

            // Detach all detachment root objects (causes recursion through the fetch plan)
            StateManager[] smsToDetach = detachAllOnCommitSMs;
            DetachState state = new DetachState(getApiAdapter());
            for (int i=0;i<smsToDetach.length;i++)
            {
                Object pc = smsToDetach[i].getObject();
                if (pc != null)
                {
View Full Code Here


                    if (sm != null && sm.getObject() != null &&
                        !sm.getObjectManager().getApiAdapter().isDeleted(sm.getObject()))
                    {
                        try
                        {
                            sm.detach(new DetachState(getApiAdapter()));
                        }
                        catch (JPOXObjectNotFoundException onfe)
                        {
                            // Catch exceptions for any objects that are deleted in other managers whilst having this open
                        }
View Full Code Here

        try
        {
            objectMgr.assertClassPersistable(pc.getClass());
            assertReadable("detachCopy");

            return jdoDetachCopy(pc, new DetachState(objectMgr.getApiAdapter()));
        }
        catch (JPOXException jpe)
        {
            throw JPOXJDOHelper.getJDOExceptionForJPOXException(jpe);
        }
View Full Code Here

    {
        assertIsOpen();
        assertReadable("detachCopyAll");

        // Detach the objects
        FetchPlanState state = new DetachState(objectMgr.getApiAdapter());
        List detacheds = new ArrayList();
        for (Iterator it = pcs.iterator(); it.hasNext();)
        {
            Object obj = it.next();
            if (obj == null)
View Full Code Here

TOP

Related Classes of org.jpox.state.DetachState

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.