Interface PersistenceRetrieving

All Superinterfaces:
ObjectSwizzling
All Known Subinterfaces:
BinaryLoader, PersistenceLoader, PersistenceManager<D>, ViewerBinaryPersistenceManager
All Known Implementing Classes:
BinaryLoader.Default, PersistenceManager.Default, ViewerBinaryPersistenceManager.Default

public interface PersistenceRetrieving
extends ObjectSwizzling
  • Method Summary

    Modifier and Type Method Description
    <C extends Consumer<Object>>
    C
    collect​(C collector, long... objectIds)  
    Object get()  
    Object getObject​(long objectId)
    Retrieves the instance associated with the passed objectId.
  • Method Details

    • get

      Object get()
    • getObject

      Object getObject​(long objectId)
      Description copied from interface: ObjectSwizzling
      Retrieves the instance associated with the passed objectId. Retrieving means guaranteeing that the associated instance is returned. If it does not yet exist, it will be created from persisted data, including all non-lazily referenced objects it is connected to.
      Specified by:
      getObject in interface ObjectSwizzling
      Parameters:
      objectId - the objectId defining which instance to return.
      Returns:
      the instance associated with the passed objectId.
    • collect

      <C extends Consumer<Object>> C collect​(C collector, long... objectIds)