Interface UpdateService<T>

Type Parameters:
T - type of entity to update
All Known Subinterfaces:
CrudService<T,K>

public interface UpdateService<T>
Specifies the contract of a generic service that allows updating entities.
Author:
mlopez
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(T entity)
    Updates the given entity.
  • Method Details

    • update

      void update(T entity)
      Updates the given entity.
      Parameters:
      entity - the entity object to be updated
      Throws:
      UpdateException - if an exception occurs during the update process
      EntityNotFoundException - if the entity to be updated is not found
      InvalidEntityException - if the provided entity is not valid for the update declaration