Package sonia.scm.search
Interface Index.Deleter<T>
public static interface Index.Deleter<T>
Deleter provides an api to delete object from index.
- Since:
- 2.23.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
all()
Delete all objects of the given type from index.Returns a builder api to delete objects with the given part of the id.default Index.DeleteBy
by
(Class<?> type, ModelObject idObject) Returns a builder api to delete objects with the given part of the id.default Index.DeleteBy
by
(Repository repository) Returns a builder api to delete objects with the given repository part of the id.void
Delete the object with the given id and type from index.
-
Method Details
-
byId
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
Returns a builder api to delete objects with the given part of the id.- Parameters:
type
- type of id partid
- value of id part- Returns:
- builder delete api
- See Also:
-
by
Returns a builder api to delete objects with the given part of the id.- Parameters:
type
- type of id partidObject
- object which holds the id value- Returns:
- builder delete api
- See Also:
-
by
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:
-