package it.sw.pa.comune.artegna.service;

import it.sw.pa.comune.artegna.service.dto.ConfermaDTO;
import java.util.List;
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing {@link it.sw.pa.comune.artegna.domain.Conferma}.
 */
public interface ConfermaService {
    /**
     * Save a conferma.
     *
     * @param confermaDTO the entity to save.
     * @return the persisted entity.
     */
    ConfermaDTO save(ConfermaDTO confermaDTO);

    /**
     * Updates a conferma.
     *
     * @param confermaDTO the entity to update.
     * @return the persisted entity.
     */
    ConfermaDTO update(ConfermaDTO confermaDTO);

    /**
     * Partially updates a conferma.
     *
     * @param confermaDTO the entity to update partially.
     * @return the persisted entity.
     */
    Optional<ConfermaDTO> partialUpdate(ConfermaDTO confermaDTO);

    /**
     * Get all the ConfermaDTO where Prenotazione is {@code null}.
     *
     * @return the {@link List} of entities.
     */
    List<ConfermaDTO> findAllWherePrenotazioneIsNull();

    /**
     * Get all the confermas with eager load of many-to-many relationships.
     *
     * @param pageable the pagination information.
     * @return the list of entities.
     */
    Page<ConfermaDTO> findAllWithEagerRelationships(Pageable pageable);

    /**
     * Get the "id" conferma.
     *
     * @param id the id of the entity.
     * @return the entity.
     */
    Optional<ConfermaDTO> findOne(Long id);

    /**
     * Delete the "id" conferma.
     *
     * @param id the id of the entity.
     */
    void delete(Long id);
}
