Package com.vaadin.hilla.crud
Interface GetService<T,ID>
- All Known Implementing Classes:
CrudRepositoryService
,ListRepositoryService
public interface GetService<T,ID>
A browser-callable service that can fetch the given type of object.
-
Method Summary
-
Method Details
-
get
Gets the object with the given id.- Parameters:
id
- the id of the object- Returns:
- the object, or an empty optional if no object with the given id
-
exists
Checks if an object with the given id exists.- Parameters:
id
- the id of the object- Returns:
true
if the object exists,false
otherwise
-