Package com.vaadin.hilla.crud
Interface FormService<T,ID>
- All Known Subinterfaces:
CrudService<T,
ID>
- All Known Implementing Classes:
CrudRepositoryService
public interface FormService<T,ID>
A browser-callable service that can create, update, and delete a given type
of object.
-
Method Summary
-
Method Details
-
save
Saves the given object and returns the (potentially) updated object.If you store the object in a SQL database, the returned object might have a new id or updated consistency version.
- Parameters:
value
- the object to save- Returns:
- the fresh object or
null
if no object was found to update
-
delete
Deletes the object with the given id.- Parameters:
id
- the id of the object to delete
-