Package de.esoco.j2me.storage

Examples of de.esoco.j2me.storage.HierarchicalRecordStorage$NodeRecordIDs


   */
  protected void initModel(ProgressMonitor rMonitor)
    throws UserNotificationException
  {
    RecordStore          aRS  = null;
    HierarchicalRecordStorage aHRS = null;

    if (aDataModel == null)
    {
      try
      {
        aRS  = RecordStore.openRecordStore(RECORDSTORE_NAME, true);
        aHRS = new HierarchicalRecordStorage(aRS);

        aDataModel = new MicroSafeModel(aHRS);
        aDataModel.setProgressMonitor(rMonitor);
        aDataModel.initFromStorage();

        // init will read the data completely; reset the storage to free
        // allocated resources like streams and buffers
        aHRS.reset();
      }
      catch (Exception e)
      {
        throw new UserNotificationException(getString("JL_MtError"),
                          getString("MsInitMdl"), e);
View Full Code Here


    try
    {
      RecordStore aRS = RecordStore.openRecordStore(RECORDSTORE_NAME,
                              true);

      aHRS   = new HierarchicalRecordStorage(aRS);
      aModel = new MicroSafeModel(aHRS);

      aModel.initFromStorage();
    }
    catch (Exception e)
View Full Code Here

    }

    try
    {
      aRS = RecordStore.openRecordStore(RECORDSTORE_NAME, true);
      aHRS = new HierarchicalRecordStorage(aRS);
    }
    catch (Exception e)
    {
      fail("Exception during setUp: " + e.getMessage());
    }
View Full Code Here

TOP

Related Classes of de.esoco.j2me.storage.HierarchicalRecordStorage$NodeRecordIDs

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.