Interface Index.Deleter<T>

Enclosing interface:
Index<T>

public static interface Index.Deleter<T>
Deleter provides an api to delete object from index.
Since:
2.23.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    all()
    Delete all objects of the given type from index.
    by(Class<?> type, String id)
    Returns a builder api to delete objects with the given part of the id.
    by(Class<?> type, ModelObject idObject)
    Returns a builder api to delete objects with the given part of the id.
    by(Repository repository)
    Returns a builder api to delete objects with the given repository part of the id.
    void
    byId(Id<T> id)
    Delete the object with the given id and type from index.
  • Method Details

    • byId

      void byId(Id<T> id)
      Delete the object with the given id and type from index.
      Parameters:
      id - id of object
    • all

      void all()
      Delete all objects of the given type from index.
    • by

      Index.DeleteBy by(Class<?> type, String id)
      Returns a builder api to delete objects with the given part of the id.
      Parameters:
      type - type of id part
      id - value of id part
      Returns:
      builder delete api
      See Also:
    • by

      default Index.DeleteBy by(Class<?> type, ModelObject idObject)
      Returns a builder api to delete objects with the given part of the id.
      Parameters:
      type - type of id part
      idObject - object which holds the id value
      Returns:
      builder delete api
      See Also:
    • by

      default Index.DeleteBy by(Repository repository)
      Returns a builder api to delete objects with the given repository part of the id.
      Parameters:
      repository - repository part of the id
      Returns:
      builder delete api
      See Also: