Package net.sf.joafip.entity

Examples of net.sf.joafip.entity.ArrayExternalizable


      FilePersistenceClassNotFoundException,
      FilePersistenceDataCorruptedException,
      FilePersistenceTooBigForSerializationException {
    final IDataAccessSession session = filePersistence
        .createDataAccessSession();
    ArrayExternalizable arrayExternalizable;
    session.open();
    arrayExternalizable = new ArrayExternalizable();
    Bob1[] bob1s = new Bob1[1];
    bob1s[0] = new Bob1();
    bob1s[0].setVal(10);
    arrayExternalizable.setArray(bob1s);
    session.setObject(KEY, arrayExternalizable);
    session.close(EnumFilePersistenceCloseAction.SAVE);

    session.open();
    arrayExternalizable = (ArrayExternalizable) session.getObject(KEY);
    bob1s = (Bob1[]) arrayExternalizable.getArray();
    assertEquals("bad value", 10, bob1s[0].getVal());
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.entity.ArrayExternalizable

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.