package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBCity.
 */
public interface TBCityService {

    /**
     * Save a tBCity.
     *
     * @param tBCityDTO the entity to save
     * @return the persisted entity
     */
    TBCityDTO save(TBCityDTO tBCityDTO);

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


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

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

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