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

    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

      @Nullable 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 or null if no object was found to update
    • delete

      void delete(ID id)
      Deletes the object with the given id.
      Parameters:
      id - the id of the object to delete