package vn.azteam.tpf.service;

import vn.azteam.tpf.service.dto.TBNurseryDetailsDTO;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Optional;

/**
 * Service Interface for managing TBNurseryDetails.
 */
public interface TBNurseryDetailsService {

    /**
     * Save a tBNurseryDetails.
     *
     * @param tBNurseryDetailsDTO the entity to save
     * @return the persisted entity
     */
    TBNurseryDetailsDTO save(TBNurseryDetailsDTO tBNurseryDetailsDTO);

    /**
     * Get all the tBNurseryDetails.
     *
     * @param pageable the pagination information
     * @return the list of entities
     */
    Page<TBNurseryDetailsDTO> findAll(Pageable pageable);


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

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

    /**
     * Search for the tBNurseryDetails corresponding to the query.
     *
     * @param query the query of the search
     * 
     * @param pageable the pagination information
     * @return the list of entities
     */
    Page<TBNurseryDetailsDTO> search(String query, Pageable pageable);
}
