Package net.sf.joafip.service

Examples of net.sf.joafip.service.IDataAccessSession.open()


            + " to be deleted",closeException);
      }
      if (++count == BATCH_SIZE) {
        count = 0;
        session.close(EnumFilePersistenceCloseAction.SAVE);
        session.open();
        consistencyCheck();
        ++batchCount;
        logger.info("delete batch #" + batchCount);
      }
    }
View Full Code Here


      }
    }
    reader.close();
    session.close(EnumFilePersistenceCloseAction.SAVE);

    session.open();
    batchCount = 0;
    count = 0;
    reader = new BufferedReader(new FileReader(insertLogFilePath));
    // "runtime_perf/toSearch.txt"));
    while (reader.readLine() != null && (line = reader.readLine()) != null) {// NOPMD
View Full Code Here

            + " because not deleted");
      }
      if (++count == BATCH_SIZE) {
        count = 0;
        session.close(EnumFilePersistenceCloseAction.SAVE);
        session.open();
        ++batchCount;
        logger.info("search batch #" + batchCount);
      }
    }
    reader.close();
View Full Code Here

      }
    }
    reader.close();
    session.close(EnumFilePersistenceCloseAction.SAVE);

    session.open();
    batchCount = 0;
    count = 0;
    reader = new BufferedReader(new FileReader(insertLogFilePath));
    // "runtime_perf/toDelete.txt"));
    while ((line = reader.readLine()) != null) { // NOPMD
View Full Code Here

            + identifier + " because deleted");
      }
      if (++count == BATCH_SIZE) {
        count = 0;
        session.close(EnumFilePersistenceCloseAction.SAVE);
        session.open();
        ++batchCount;
        logger.info("search deleted batch #" + batchCount);
      }
    }
    reader.close();
View Full Code Here

    Container.skipBug222 = true;
    HelperReflect.getInstance().setAlwaysAcceptNullField(true);
    filePersistence.xmlImport("../joafip/export222", false);
    final IDataAccessSession dataAccessSession = filePersistence
        .createDataAccessSession();
    dataAccessSession.open();
    final Container container = (Container) dataAccessSession
        .getObject("container");
    assertTrue("bad state", container.checkState());
    dataAccessSession.close(EnumFilePersistenceCloseAction.SAVE);
  }
View Full Code Here

    filePersistence = createFilePersistence();
    filePersistence
        .knownAsNotExisting("net.sf.joafip.export_import.Enum300");
    final IDataAccessSession dataAccessSession = filePersistence
        .createDataAccessSession();
    dataAccessSession.open();
    final PArrayList<String> arrayList = (PArrayList<String>) dataAccessSession
        .getObject("object1");
    ListIterator<String> listIterator = arrayList.listIterator();
    // check list content
    assertTrue("must have first element", listIterator.hasNext());
View Full Code Here

    final InputStream inputStream = new FileInputStream(insertLogFilePath);
    final BufferedReader reader = new BufferedReader(new InputStreamReader(
        inputStream));
    final IDataAccessSession session = filePersistence
        .createDataAccessSession();
    session.open();
    // delete half of item
    ItemList itemList = getItemList(session);
    int count = 0;
    String line = reader.readLine();
    while (line != null) { // NOPMD
View Full Code Here

      if( removed==null){
        logger.error("not found "+identifier);
      }
      if (count % BATCH_SIZE == BATCH_SIZE - 1) {
        session.close(EnumFilePersistenceCloseAction.SAVE);
        session.open();
        itemList = getItemList(session);
      }
      line = reader.readLine();
      if (line != null) {
        line = reader.readLine();
View Full Code Here

      FilePersistenceTooBigForSerializationException {

    final IDataAccessSession session = filePersistence
        .createDataAccessSession();

    session.open();
    SubstitutionContainer bobContainer = new SubstitutionContainer();
    final SubstitutedBobSerialize1 bob = new SubstitutedBobSerialize1(1);
    bobContainer.setObject(bob);
    session.setObject(KEY, bobContainer);
    session.close(EnumFilePersistenceCloseAction.SAVE);
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.