Examples of currentBatchIndex()


Examples of com.webobjects.appserver.WODisplayGroup.currentBatchIndex()

        }
      }
      // this will have the side effect of resetting the batch # to sth
      // correct, in case
      // the current index if out of range
      log.debug("dg.currentBatchIndex() " + dg.currentBatchIndex());
      dg.setCurrentBatchIndex(dg.currentBatchIndex());
      if (listSize() > 0 && displayGroup().selectsFirstObjectAfterFetch()) {
        d2wContext().takeValueForKey(dg.allObjects().objectAtIndex(0), "object");
      }
    }
View Full Code Here

Examples of com.webobjects.appserver.WODisplayGroup.currentBatchIndex()

      }
      // this will have the side effect of resetting the batch # to sth
      // correct, in case
      // the current index if out of range
      log.debug("dg.currentBatchIndex() " + dg.currentBatchIndex());
      dg.setCurrentBatchIndex(dg.currentBatchIndex());
      if (listSize() > 0 && displayGroup().selectsFirstObjectAfterFetch()) {
        d2wContext().takeValueForKey(dg.allObjects().objectAtIndex(0), "object");
      }
    }
  }
View Full Code Here

Examples of er.extensions.eof.ERXFetchSpecificationBatchIterator.currentBatchIndex()

                EOFetchSpecification fs = new EOFetchSpecification(entity.name(), null, null);
                ERXFetchSpecificationBatchIterator iterator = new ERXFetchSpecificationBatchIterator(fs);
                iterator.setEditingContext(ec);
                while(iterator.hasNextBatch()) {
                    NSArray objects = iterator.nextBatch();
                    if(iterator.currentBatchIndex() % treshhold == 0) {
                        ec.unlock();
                        // ec.dispose();
                        ec = ERXEC.newEditingContext();
                        ec.lock();
                        iterator.setEditingContext(ec);
View Full Code Here

Examples of er.extensions.eof.ERXFetchSpecificationBatchIterator.currentBatchIndex()

                EOFetchSpecification fs = new EOFetchSpecification(entityName, null, null);
                ERXFetchSpecificationBatchIterator iterator = new ERXFetchSpecificationBatchIterator(fs);
                iterator.setEditingContext(ec);
                while (iterator.hasNextBatch()) {
                    NSArray objects = iterator.nextBatch();
                    if (iterator.currentBatchIndex() % treshhold == 0) {
                        ec.unlock();
                        // ec.dispose();
                        ec = ERXEC.newEditingContext();
                        ec.lock();
                        iterator.setEditingContext(ec);
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.