package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBEnvironmentUpdate.
 */
public interface TBEnvironmentUpdateService {

    /**
     * Save a tBEnvironmentUpdate.
     *
     * @param tBEnvironmentUpdateDTO the entity to save
     * @return the persisted entity
     */
    TBEnvironmentUpdateDTO save(TBEnvironmentUpdateDTO tBEnvironmentUpdateDTO);

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


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

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

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