package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBEnvironmentalParameter.
 */
public interface TBEnvironmentalParameterService {

    /**
     * Save a tBEnvironmentalParameter.
     *
     * @param tBEnvironmentalParameterDTO the entity to save
     * @return the persisted entity
     */
    TBEnvironmentalParameterDTO save(TBEnvironmentalParameterDTO tBEnvironmentalParameterDTO);

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


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

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

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