Package net.sf.joafip.store.service.heaprecordable

Examples of net.sf.joafip.store.service.heaprecordable.HeapRecordableManager.save()


    recordableManager.attach(storeHeader);
    assertEquals("must be first record",
        StoreForTest.IDENTIFIER_FOR_STORE_HEADER,
        storeHeader.getDataRecordIdentifier());
    storeHeader.setStateHaveChanged();
    recordableManager.save();
    dataManager.flush();

    final ClassInfoFactory classInfoFactory = new ClassInfoFactory(1);
    classInfoFactory.setConversionManager(new ConversionManager(
        classInfoFactory));
View Full Code Here


    assertEquals("must be class #0", 0,
        classNameManager.getIdentifier(classInfoFactory
            .getNoProxyClassInfo(this.getClass())));
    assertTrue("store header must changed", storeHeader.isStateChanged());
    recordableManager.save();
    assertFalse("store header must unchanged", storeHeader.isStateChanged());
    assertEquals("must be class #1", 1,
        classNameManager.getIdentifier(classInfoFactory
            .getNoProxyClassInfo(Integer.class)));
    assertTrue("store header must changed", storeHeader.isStateChanged());
View Full Code Here

    assertFalse("store header must unchanged", storeHeader.isStateChanged());
    assertEquals("must be class #1", 1,
        classNameManager.getIdentifier(classInfoFactory
            .getNoProxyClassInfo(Integer.class)));
    assertTrue("store header must changed", storeHeader.isStateChanged());
    recordableManager.save();
    assertFalse("store header must unchanged", storeHeader.isStateChanged());
    dataManager.flush();
    classNameManager.clear();
    classNameManager.load();
View Full Code Here

        .getObjectClassInfo(1).getObjectClass());
    assertEquals("must be String.class", String.class, classNameManager
        .getObjectClassInfo(2).getObjectClass());

    assertTrue("store header must changed", storeHeader.isStateChanged());
    recordableManager.save();
    dataManager.flush();
    classNameManager.clear();
    classNameManager.load();

    assertEquals("must be class #0", 0,
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.