package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBLocationOfCustomer.
 */
public interface TBLocationOfCustomerService {

    /**
     * Save a tBLocationOfCustomer.
     *
     * @param tBLocationOfCustomerDTO the entity to save
     * @return the persisted entity
     */
    TBLocationOfCustomerDTO save(TBLocationOfCustomerDTO tBLocationOfCustomerDTO);

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


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

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

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