package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBStockUpdate.
 */
public interface TBStockUpdateService {

    /**
     * Save a tBStockUpdate.
     *
     * @param tBStockUpdateDTO the entity to save
     * @return the persisted entity
     */
    TBStockUpdateDTO save(TBStockUpdateDTO tBStockUpdateDTO);

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


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

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

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