Class Reloader.Default

java.lang.Object
one.microstream.persistence.util.Reloader.Default
All Implemented Interfaces:
Reloader
Enclosing interface:
Reloader

public static class Reloader.Default
extends Object
implements Reloader
  • Method Details

    • reloadFlat

      public <T> T reloadFlat​(T instance)
      Description copied from interface: Reloader
      Resets the state of the given instance to the state of the underlying storage. But not its references.
      Specified by:
      reloadFlat in interface Reloader
      Type Parameters:
      T - type of the instance
      Parameters:
      instance - the object to reload
      Returns:
      the reloaded object, or null if it was not found in the storage
    • reloadDeep

      public <T> T reloadDeep​(T instance)
      Description copied from interface: Reloader
      Resets the state of the given instance and all of its references to the state of the underlying storage.
      Specified by:
      reloadDeep in interface Reloader
      Type Parameters:
      T - type of the instance
      Parameters:
      instance - the object to reload
      Returns:
      the reloaded object, or null if it was not found in the storage