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

Examples of net.sf.joafip.store.entity.objectio.serialize.ObjectAndReferenced


      ObjectIONotSerializableException,
      ObjectIODataRecordNotFoundException,
      ObjectIOClassNotFoundException, ObjectIODataCorruptedException,
      ClassInfoException, ObjectIOTooBigForSerializationException {

    final ObjectAndReferenced toSerializeAndReferenced = createObjectToSerialize();
    final Object toSerialize = toSerializeAndReferenced.getObject();
    final ClassInfo classInfo = classInfoFactory
        .getNoProxyClassInfo(toSerialize.getClass());
    Object[] referenceds = toSerializeAndReferenced.getReferenceds();

    // initial write
    WriteResult writeResult = write(toSerialize, classInfo);
    ObjectClassInfoAndDeclared[] sons = writeResult.getSons();
    ObjectAndPersistInfo objectAndPersistInfo = writeResult
View Full Code Here


    bobContainer.setObject1(bobWithSerializeMethod);
    bobWithSerializeMethod.setObject1(bobContainer);
    final Bob2 bob2 = new Bob2();
    bobWithSerializeMethod.setObject2(bob2);
    final Object[] referenceds = new Object[] { bobContainer, bob2 };
    return new ObjectAndReferenced(bobWithSerializeMethod, referenceds);
  }
View Full Code Here

    final Object[] referenceds = new Object[] { bobWithSerialPersistentFields
        .getField2()
    // bobWithSerialPersistentFields.getField3() }; Integer not a son
    // because is a basic type
    };
    return new ObjectAndReferenced(bobWithSerialPersistentFields,
        referenceds);
  }
View Full Code Here

      final Integer valueOf100 = Integer.valueOf(100);
      bobWithSerializeMethod.setObject2(valueOf100);
      referenceds = new Object[] { valueOf10, valueOf100 };
    }
    bobWithSerializeMethod.setValue(1000);
    return new ObjectAndReferenced(bobWithSerializeMethod, referenceds);
  }
View Full Code Here

    object.setData("bonjour".getBytes());
    object.setIndex(456);
    final BobWithSerialPersistentFieldsUnshared bobWithSerialPersistentFieldsUnshared =
    /**/new BobWithSerialPersistentFieldsUnshared(object, object);
    final Object[] referenceds = new Object[] { object, object };
    return new ObjectAndReferenced(bobWithSerialPersistentFieldsUnshared,
        referenceds);
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.objectio.serialize.ObjectAndReferenced

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.