Interface ReservationDAO


  • public interface ReservationDAO
    Data Access Object allowing to manage persistence and access to Reservation domain objects
    Author:
    Christopher Laszczuk
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteByComponent​(java.util.List<com.flower.docs.domain.component.ComponentReference> references)
      Deletes multiple reservations created on components
      java.util.List<com.flower.docs.domain.reservation.Reservation> getByComponent​(java.util.List<com.flower.docs.domain.component.ComponentReference> references)
      Gets the reservation objects stored for a set of components
      void store​(java.util.List<com.flower.docs.domain.reservation.Reservation> reservations)
      Stores multiple reservations
    • Method Detail

      • store

        void store​(java.util.List<com.flower.docs.domain.reservation.Reservation> reservations)
            throws com.flower.docs.domain.exception.TechnicalException
        Stores multiple reservations
        Parameters:
        reservations - The reservations to store
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • getByComponent

        java.util.List<com.flower.docs.domain.reservation.Reservation> getByComponent​(java.util.List<com.flower.docs.domain.component.ComponentReference> references)
                                                                               throws com.flower.docs.domain.exception.TechnicalException
        Gets the reservation objects stored for a set of components
        Parameters:
        references - The references of component
        Returns:
        The reservations concerned by supplied component ids
        Throws:
        com.flower.docs.domain.exception.TechnicalException
      • deleteByComponent

        void deleteByComponent​(java.util.List<com.flower.docs.domain.component.ComponentReference> references)
                        throws com.flower.docs.domain.exception.TechnicalException
        Deletes multiple reservations created on components
        Parameters:
        references - The references of component
        Throws:
        com.flower.docs.domain.exception.TechnicalException