package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBWaterType.
 */
public interface TBWaterTypeService {

    /**
     * Save a tBWaterType.
     *
     * @param tBWaterTypeDTO the entity to save
     * @return the persisted entity
     */
    TBWaterTypeDTO save(TBWaterTypeDTO tBWaterTypeDTO);

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


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

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

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