Interface IUpdateDao<T>

Type Parameters:
T - The type of instance to store
All Known Subinterfaces:
IIdentifiableDao<T>, IMonitorDao, ISentinelAlertDao
All Known Implementing Classes:
ACRUDDao, AIdenfiableDao, MonitorDao, SentinelAlertDao

public interface IUpdateDao<T>
Interface representing a DAO that can perform update actions. This has no assumption on the aspect of the key, if any.
Author:
ActiveViam
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    update(List<T> toUpdate)
    Update a list of elements.
    update(T element)
    Updates an existing element.
  • Method Details Link icon

    • update Link icon

      T update(T element) throws IllegalArgumentException
      Updates an existing element.
      Parameters:
      element - the element to update
      Returns:
      the updated element
      Throws:
      IllegalArgumentException - if the element was not saved yet.
    • update Link icon

      List<T> update(List<T> toUpdate)
      Update a list of elements.
      Parameters:
      toUpdate - the elements to update
      Returns:
      the updated elements