package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBCountry.
 */
public interface TBCountryService {

    /**
     * Save a tBCountry.
     *
     * @param tBCountryDTO the entity to save
     * @return the persisted entity
     */
    TBCountryDTO save(TBCountryDTO tBCountryDTO);

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


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

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

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