Package net.sf.joafip.export_import

Examples of net.sf.joafip.export_import.Container


    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


      FilePersistenceClassNotFoundException,
      FilePersistenceDataCorruptedException,
      FilePersistenceTooBigForSerializationException, TestException {
    IDataAccessSession dataAccessSession = filePersistence
        .createDataAccessSession();
    Container container = new Container();
    container.stateSetup();
    dataAccessSession.open();
    dataAccessSession.setObject("key", container);
    dataAccessSession.close(EnumFilePersistenceCloseAction.SAVE);
    filePersistence.xmlExport(RUNTIME, RUNTIME + "/tmp", true);
    filePersistence.close();

    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    builder.setFileAccessMode(EnumFileAccessMode.MAPPED_RANDOM_FILE_ACCESS);
    builder.setMaxBufferSize(8 * 1024);
    builder.setMaxNumberOfBuffer(32);
    builder.setPathName(TestConstant.getWinRamDiskRuntimeDir());
    builder.setProxyMode(true);
    builder.setRemoveFiles(true);
    builder.setGarbageManagement(false);
    builder.setCrashSafeMode(false);
    filePersistence = builder.build();

    filePersistence.xmlImport(RUNTIME, true);

    dataAccessSession = filePersistence.createDataAccessSession();
    dataAccessSession.open();
    container = (Container) dataAccessSession.getObject("key");
    assertNotNull("must have object", container);
    assertTrue("bad state", container.checkState());
    dataAccessSession.close(EnumFilePersistenceCloseAction.SAVE);
    filePersistence.close();
  }
View Full Code Here

    final IDataAccessSession dataAccessSession = filePersistence
        .createDataAccessSession();

    dataAccessSession.open();

    Container container = (Container) dataAccessSession
        .getObject("container");
    assertTrue("bad state", container.checkState());
    container.work();

    check(dataAccessSession, true);

    Class1ForExportImportTest forExportImportTest = new Class1ForExportImportTest();
    forExportImportTest.check();
    dataAccessSession.setObject("object", forExportImportTest);

    dataAccessSession.close(EnumFilePersistenceCloseAction.SAVE);

    dataAccessSession.open();
    container = (Container) dataAccessSession.getObject("container");
    container.work();

    check(dataAccessSession, false);

    forExportImportTest = (Class1ForExportImportTest) dataAccessSession
        .getObject("object");
View Full Code Here

TOP

Related Classes of net.sf.joafip.export_import.Container

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.