package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBEntityLocationOfCustomer.
 */
public interface TBEntityLocationOfCustomerService {

    /**
     * Save a tBEntityLocationOfCustomer.
     *
     * @param tBEntityLocationOfCustomerDTO the entity to save
     * @return the persisted entity
     */
    TBEntityLocationOfCustomerDTO save(TBEntityLocationOfCustomerDTO tBEntityLocationOfCustomerDTO);

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


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

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

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