Package com.db4o.foundation

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


        }
    }

    void checkChanges() {
        Iterator4 i = i_classes.iterator();
        while (i.moveNext()) {
            ((ClassMetadata)i.current()).checkChanges();
        }
    }
   
    final boolean createYapClass(ClassMetadata a_yapClass, ReflectClass a_class) {
View Full Code Here


    boolean allClassesRead=false;
      while(!allClassesRead) {
        Collection4 unreadClasses=new Collection4();
      int numClasses=i_classes.size();
          Iterator4 classIter = i_classes.iterator();
          while(classIter.moveNext()) {
            ClassMetadata yapClass=(ClassMetadata)classIter.current();
            if(yapClass.stateUnread()) {
              unreadClasses.add(yapClass);
            }
          }
View Full Code Here

            if(yapClass.stateUnread()) {
              unreadClasses.add(yapClass);
            }
          }
          Iterator4 unreadIter=unreadClasses.iterator();
          while(unreadIter.moveNext()) {
            ClassMetadata yapClass=(ClassMetadata)unreadIter.current();
            readYapClass(yapClass,null);
              if(yapClass.classReflector() == null){
                yapClass.forceRead();
              }
View Full Code Here

            ReflectClass candidate = yc.classReflector();
            if(! candidate.isInterface()){
                if (claxx.isAssignableFrom(candidate)) {
                    col.add(yc);
                    Iterator4 j = new Collection4(col).iterator();
                    while (j.moveNext()) {
                        ClassMetadata existing = (ClassMetadata)j.current();
                        if(existing != yc){
                            ClassMetadata higher = yc.getHigherHierarchy(existing);
                            if (higher != null) {
                                if (higher == yc) {
View Full Code Here

    void initOnUp(Transaction systemTrans) {
        i_yapClassCreationDepth++;
        systemTrans.stream().showInternalClasses(true);
        try {
          Iterator4 i = i_classes.iterator();
          while (i.moveNext()) {
              ((ClassMetadata)i.current()).initOnUp(systemTrans);
          }
        } finally {
          systemTrans.stream().showInternalClasses(false);
        }
View Full Code Here

            + (i_classes.size() * Const4.ID_LENGTH);
    }

    void purge() {
        Iterator4 i = i_classes.iterator();
        while (i.moveNext()) {
            ((ClassMetadata)i.current()).purge();
        }
    }

    public final void readThis(Transaction a_trans, Buffer a_reader) {
View Full Code Here

    public void refreshClasses() {
        ClassMetadataRepository rereader = new ClassMetadataRepository(_systemTransaction);
        rereader.i_id = i_id;
        rereader.read(stream().getSystemTransaction());
        Iterator4 i = rereader.i_classes.iterator();
        while (i.moveNext()) {
            ClassMetadata yc = (ClassMetadata)i.current();
            if (i_yapClassByID.get(yc.getID()) == null) {
                i_classes.add(yc);
                i_yapClassByID.put(yc.getID(), yc);
                if(yc.stateUnread()){
View Full Code Here

                    i_yapClassByClass.put(yc.classReflector(), yc);
                }
            }
        }
        i = i_classes.iterator();
        while (i.moveNext()) {
            ClassMetadata yc = (ClassMetadata)i.current();
            yc.refresh();
        }
    }
View Full Code Here

    }

    public void writeThis(Transaction trans, Buffer a_writer) {
        a_writer.writeInt(i_classes.size());
        Iterator4 i = i_classes.iterator();
        while (i.moveNext()) {
            a_writer.writeIDOf(trans, i.current());
        }
    }

  public String toString(){
View Full Code Here

        if(! Debug4.prettyToStrings){
            return super.toString();
        }
    String str = "Active:\n";
    Iterator4 i = i_classes.iterator();
    while(i.moveNext()){
      ClassMetadata yc = (ClassMetadata)i.current();
      str += yc.getID() + " " + yc + "\n";
    }
    return str;
  }
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.