package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBVendor.
 */
public interface TBVendorService {

    /**
     * Save a tBVendor.
     *
     * @param tBVendorDTO the entity to save
     * @return the persisted entity
     */
    TBVendorDTO save(TBVendorDTO tBVendorDTO);

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


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

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

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