Interface PersistenceFunction

All Known Subinterfaces:
EntityPersister, PersistenceRegisterer, PersistenceStoreHandler<D>
All Known Implementing Classes:
BinaryStorer.Default, BinaryStorer.Eager, DebugGraphPrinter, EntityPersister.Default, PersistenceRegisterer.Default

public interface PersistenceFunction
  • Method Summary

    Modifier and Type Method Description
    <T> long apply​(T instance)
    Applies any action on the passed instance (e.g.: simply looking up its object ID or storing its state to a storage medium) and returns the object ID that identifies the passed instance.
  • Method Details

    • apply

      <T> long apply​(T instance)
      Applies any action on the passed instance (e.g.: simply looking up its object ID or storing its state to a storage medium) and returns the object ID that identifies the passed instance. The returned OID may be the existing one for the passed instance or a newly associated one.
      Type Parameters:
      T - the instance's type
      Parameters:
      instance - the instance to which the function shall be applied.
      Returns:
      the object ID (OID) that is associated with the passed instance.