package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBSuppliesUsingDetails.
 */
public interface TBSuppliesUsingDetailsService {

    /**
     * Save a tBSuppliesUsingDetails.
     *
     * @param tBSuppliesUsingDetailsDTO the entity to save
     * @return the persisted entity
     */
    TBSuppliesUsingDetailsDTO save(TBSuppliesUsingDetailsDTO tBSuppliesUsingDetailsDTO);

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


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

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

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