package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBSuppliesOrder.
 */
public interface TBSuppliesOrderService {

    /**
     * Save a tBSuppliesOrder.
     *
     * @param tBSuppliesOrderDTO the entity to save
     * @return the persisted entity
     */
    TBSuppliesOrderDTO save(TBSuppliesOrderDTO tBSuppliesOrderDTO);

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


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

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

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