Example #1
0
  /** Method to load all elements from the "backing store" where appropriate. */
  protected void loadFromStore() {
    if (backingStore != null && !isCacheLoaded) {
      if (NucleusLogger.PERSISTENCE.isDebugEnabled()) {
        NucleusLogger.PERSISTENCE.debug(
            Localiser.msg("023006", ownerOP.getObjectAsPrintable(), ownerMmd.getName()));
      }
      delegate.clear();

      // Populate the delegate with the keys/values from the store
      SCOUtils.populateMapDelegateWithStoreData(delegate, backingStore, ownerOP);

      isCacheLoaded = true;
    }
  }