Interface ICreateDao<T>

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

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

    Modifier and Type
    Method
    Description
    create(List<T> result)
    Persists a transients elements, creating a new persisted resources.
    create(T element)
    Persists a transient element, creating a new persisted resource.
  • Method Details Link icon

    • create Link icon

      T create(T element) throws IllegalArgumentException
      Persists a transient element, creating a new persisted resource.
      Parameters:
      element - the element to persist
      Returns:
      the element once persisted
      Throws:
      IllegalArgumentException - if the element was already saved.
    • create Link icon

      List<T> create(List<T> result) throws IllegalArgumentException
      Persists a transients elements, creating a new persisted resources.
      Parameters:
      result - the elements to persist
      Returns:
      the elements once persisted
      Throws:
      IllegalArgumentException - if the element was already saved.