Package com.db4o.foundation

Examples of com.db4o.foundation.Iterator4Impl


    final void activate3CheckStill(Transaction ta){
        while (i_stillToActivate != null) {

            // TODO: Optimize!  A lightweight int array would be faster.

            Iterator4 i = new Iterator4Impl(i_stillToActivate);
            i_stillToActivate = null;

            while (i.moveNext()) {
                ObjectReference yo = (ObjectReference) i.current();
               
                i.moveNext();
                int depth = ((Integer) i.current()).intValue();
               
                Object obj = yo.getObject();
                if (obj == null) {
                    removeReference(yo);
                } else {
View Full Code Here


        }
    }

    final void checkNeededUpdates() {
        if (i_needsUpdate != null) {
            Iterator4 i = new Iterator4Impl(i_needsUpdate);
            while (i.moveNext()) {
                ClassMetadata yapClass = (ClassMetadata) i.current();
                yapClass.setStateDirty();
                yapClass.write(i_systemTrans);
            }
            i_needsUpdate = null;
        }
View Full Code Here

    }

    private final void deactivate1(Object a_activate, int a_depth) {
        stillToDeactivate(a_activate, a_depth, true);
        while (i_stillToDeactivate != null) {
            Iterator4 i = new Iterator4Impl(i_stillToDeactivate);
            i_stillToDeactivate = null;
            while (i.moveNext()) {
                ObjectReference currentObject = (ObjectReference) i.current();
               
                i.moveNext();
        Integer currentInteger = ((Integer) i.current());
       
        currentObject.deactivate(i_trans, currentInteger.intValue());
            }
        }
    }
View Full Code Here

    }
   
    public void checkStillToSet() {
        List4 postponedStillToSet = null;
        while (i_stillToSet != null) {
            Iterator4 i = new Iterator4Impl(i_stillToSet);
            i_stillToSet = null;
            while (i.moveNext()) {
                Integer updateDepth = (Integer)i.current();
               
                i.moveNext();
                ObjectReference ref = (ObjectReference)i.current();
               
                i.moveNext();
                Transaction trans = (Transaction)i.current();
               
                if(! ref.continueSet(trans, updateDepth.intValue())){
                    postponedStillToSet = new List4(postponedStillToSet, trans);
                    postponedStillToSet = new List4(postponedStillToSet, ref);
                    postponedStillToSet = new List4(postponedStillToSet, updateDepth);
View Full Code Here

TOP

Related Classes of com.db4o.foundation.Iterator4Impl

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.