Class EntityPersister.Default

java.lang.Object
one.microstream.entity.EntityPersister.Default
All Implemented Interfaces:
EntityPersister, PersistenceFunction
Enclosing interface:
EntityPersister

public static class EntityPersister.Default
extends Object
implements EntityPersister
  • Nested Class Summary

    Nested classes/interfaces inherited from interface one.microstream.entity.EntityPersister

    EntityPersister.Default
  • Constructor Summary

    Constructors 
    Constructor Description
    Default()  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • apply

      public <T> long apply​(T instance)
      Description copied from interface: PersistenceFunction
      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.
      Specified by:
      apply in interface PersistenceFunction
      Parameters:
      instance - the instance to which the function shall be applied.
      Returns:
      the object ID (OID) that is associated with the passed instance.