package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBSuppliesInWarehouse.
 */
public interface TBSuppliesInWarehouseService {

    /**
     * Save a tBSuppliesInWarehouse.
     *
     * @param tBSuppliesInWarehouseDTO the entity to save
     * @return the persisted entity
     */
    TBSuppliesInWarehouseDTO save(TBSuppliesInWarehouseDTO tBSuppliesInWarehouseDTO);

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


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

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

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