package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBEquipmentOfCustomer.
 */
public interface TBEquipmentOfCustomerService {

    /**
     * Save a tBEquipmentOfCustomer.
     *
     * @param tBEquipmentOfCustomerDTO the entity to save
     * @return the persisted entity
     */
    TBEquipmentOfCustomerDTO save(TBEquipmentOfCustomerDTO tBEquipmentOfCustomerDTO);

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


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

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

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