Package net.sf.joafip.store.entity.objectio.manager

Examples of net.sf.joafip.store.entity.objectio.manager.WriteResult


    final WithObjectField withObjectField = new WithObjectField();
    final ObjectAndPersistInfo objectAndPersistInfo = createObjectAndItsPersistInfo(withObjectField);
    /* initial write */
    Integer fieldValue = Integer.valueOf(0);
    withObjectField.setObject(fieldValue);
    WriteResult writeResult = write(objectAndPersistInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertReferencedSons(new Class[] { Object.class },
        new Class[] { Integer.class }, new Object[] { fieldValue },
        writeResult);
    assertReferenceChange(objectAndPersistInfo, new Class[] { null },
View Full Code Here


      ObjectIOTooBigForSerializationException {
    final Object[] array = new Object[2];
    final ObjectAndPersistInfo objectAndPersistInfo = createObjectAndItsPersistInfo(array);
    /* initial write */
    array[0] = Integer.valueOf(0);
    WriteResult writeResult = write(objectAndPersistInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertReferencedSons(new Class[] { Object.class },
        new Class[] { Integer.class }, new Object[] { array[0] },
        writeResult);
    assertReferenceChange(objectAndPersistInfo, new Class[] { null, null },
View Full Code Here

      ObjectIOTooBigForSerializationException {
    final Integer[] array = new Integer[2];
    final ObjectAndPersistInfo objectAndPersistInfo = createObjectAndItsPersistInfo(array);
    /* initial write */
    array[0] = Integer.valueOf(0);
    WriteResult writeResult = write(objectAndPersistInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertReferencedSons(new Class[] {}, new Class[] {},
        new Object[] { array[0] }, writeResult);
    assertReferenceChange(objectAndPersistInfo, new Class[] {},
        new Class[] {}, writeResult);
View Full Code Here

    final int[] array = new int[2];
    final ObjectAndPersistInfo objectAndPersistInfo = createObjectAndItsPersistInfo(array);
    /* initial write */
    array[0] = 0;
    array[1] = 1;
    WriteResult writeResult = write(objectAndPersistInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertReferencedSons(new Class[] {}, new Class[] {}, new Object[] {},
        writeResult);
    assertReferenceChange(objectAndPersistInfo, new Class[] {},
        new Class[] {}, writeResult);
View Full Code Here

      referencedSons = objectIOManager
          .willNotBeWrote(objectAndItsPersistInfo);
    }
    final DataRecordIdentifier dataRecordIdentifier = objectIOManager
        .getOrCreateDataRecordIdentifierAssociatedToObject(objectAndItsPersistInfo);
    return new WriteResult(valueChanged, referenceChangeList,
        referencedSons, dataRecordIdentifier);
  }
View Full Code Here

    Integer firstField = Integer.valueOf(1);
    bob.setObject(firstField);// first field
    bob.setValue(1);// second field
    bob.setBoolean1(Boolean.TRUE);// third field
    final ObjectAndPersistInfo objectAndItsPersistInfo = createObjectAndItsPersistInfo(bob);
    WriteResult writeResult = write(objectAndItsPersistInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertType(new int[] { HelperBinaryConversion.REFERENCE_TYPE,
        HelperBinaryConversion.INTEGER_TYPE,
        HelperBinaryConversion.BOOLEAN_TYPE }, writeResult);
    assertReferencedSons(new Class[] { Object.class },
View Full Code Here

      ObjectIOTooBigForSerializationException {
    final WithIntField withIntField = new WithIntField();
    withIntField.setIntField(0);
    final ObjectAndPersistInfo objectAndPersistInfo = createObjectAndItsPersistInfo(withIntField);
    /* initial write */
    WriteResult writeResult = write(objectAndPersistInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertNoSonReferenced(writeResult);
    assertNoReferenceChange(writeResult);
    assertWroteType(writeResult, HelperBinaryConversion.INTEGER_TYPE);
    /* second write state not change */
 
View Full Code Here

      ObjectIOTooBigForSerializationException {
    final WithIntegerField withIntegerField = new WithIntegerField();
    withIntegerField.setIntegerField(Integer.valueOf(0));
    final ObjectAndPersistInfo objectAndItsClassInfo = createObjectAndItsPersistInfo(withIntegerField);
    /* initial write */
    WriteResult writeResult = write(objectAndItsClassInfo);
    assertValueChangeForFirstWrite(writeResult);
    assertNoSonReferenced(writeResult);
    assertNoReferenceChange(writeResult);
    assertWroteType(writeResult, HelperBinaryConversion.INTEGER_TYPE);
    /* second write state not change */
 
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.objectio.manager.WriteResult

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.