com.vaadin.flow.spring.data.

Interface FormService<T,ID>

Type Parameters:

T - the type of object to manage

ID - the type of the object's identifier

All Known Subinterfaces:

CrudService<T,ID>

All Known Implementing Classes:

CrudRepositoryService

public interface FormService<T,ID>

A service that can update and delete a given type of object.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(ID id)

    Deletes the object with the given id.

    save(T value)

    Saves the given object and returns the (potentially) updated object.

  • Method Details

    • save

      T save(T value)

      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; will never be null.

    • delete

      void delete(ID id)

      Deletes the object with the given id.

      Parameters:

      id - the id of the object to delete