Package org.datanucleus.state

Examples of org.datanucleus.state.LifeCycleState


                if (getManageRelationsChecks())
                {
                    // Tests for negative situations where inconsistently assigned
                    for (ObjectProvider sm : managedRelationDetails.keySet())
                    {
                        LifeCycleState lc = sm.getLifecycleState();
                        if (lc == null || lc.isDeleted())
                        {
                            // Has been deleted so ignore all relationship changes
                            continue;
                        }
                        RelationshipManager relMgr = managedRelationDetails.get(sm);
                        relMgr.checkConsistency();
                    }
                }

                // Process updates to manage the other side of the relations
                Iterator<ObjectProvider> opIter = managedRelationDetails.keySet().iterator();
                while (opIter.hasNext())
                {
                    ObjectProvider op = opIter.next();
                    LifeCycleState lc = op.getLifecycleState();
                    if (lc == null || lc.isDeleted())
                    {
                        // Has been deleted so ignore all relationship changes
                        continue;
                    }
                    RelationshipManager relMgr = managedRelationDetails.get(op);
View Full Code Here

TOP

Related Classes of org.datanucleus.state.LifeCycleState

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.