package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBLimits.
 */
public interface TBLimitsService {

    /**
     * Save a tBLimits.
     *
     * @param tBLimitsDTO the entity to save
     * @return the persisted entity
     */
    TBLimitsDTO save(TBLimitsDTO tBLimitsDTO);

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


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

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

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