Interface Index.DeleteBy

Enclosing interface:
Index<T>

public static interface Index.DeleteBy
Builder api to delete all objects which match parts of their id.
Since:
2.23.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    and(Class<?> type, String id)
    Select only objects for deletion which are matching the previous id parts and the given one.
    and(Class<?> type, ModelObject idObject)
    Select only objects for deletion which are matching the previous id parts and the given one.
    and(Repository repository)
    Select only objects for deletion which are matching the previous id parts and the given repository part.
    void
    Delete all matching objects from index.
  • Method Details

    • and

      Index.DeleteBy and(Class<?> type, String id)
      Select only objects for deletion which are matching the previous id parts and the given one.
      Parameters:
      type - type of id part
      id - value of id part
      Returns:
      this
    • and

      default Index.DeleteBy and(Class<?> type, ModelObject idObject)
      Select only objects for deletion which are matching the previous id parts and the given one.
      Parameters:
      type - type of id part
      idObject - object which holds the id value
      Returns:
      this
    • and

      default Index.DeleteBy and(Repository repository)
      Select only objects for deletion which are matching the previous id parts and the given repository part.
      Parameters:
      repository - repository part of the id
      Returns:
      this
    • execute

      void execute()
      Delete all matching objects from index.