Interface ReservationRepository

All Known Implementing Classes:
ReservationMongoRepository, ReservationPostgresRepository

public interface ReservationRepository
Facade for repository layer for Reservation entities.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(Reservation reservation)
    Removes the unique specified reservation from the database, if it exists, otherwise it does nothing.
    Retrieves all the reservations from the database in a list.
    findByClient(UUID clientId)
    Retrieves all the reservations associated with the specified client's identifier from the database in a list.
    Retrieves the unique reservation of the specified date from the database, if it exists.
    Retrieves the unique reservation with the specified identifier from the database, if it exists.
    save(Reservation reservation)
    Insert a new reservation in the database or saves changes of an existing one.