Package com.db4o.foundation

Examples of com.db4o.foundation.Iterator4.moveNext()


            // 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();
               
View Full Code Here


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

            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

    protected boolean rename1(Config4Impl config) {
        boolean renamedOne = false;
        try {
            Iterator4 i = config.rename().iterator();
            while (i.moveNext()) {
                Rename ren = (Rename) i.current();
                if (get(ren).size() == 0) {
                    boolean renamed = false;

                    boolean isField = ren.rClass.length() > 0;
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();
               
View Full Code Here

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

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

TOP
Copyright © 2018 www.massapi.com. 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.