package vn.azteam.tpf.service;

import vn.azteam.tpf.domain.TBObjectParameter;
import vn.azteam.tpf.service.dto.TBObjectParameterDTO;

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

import java.util.Optional;

/**
 * Service Interface for managing TBObjectParameter.
 */
public interface TBObjectParameterService {

    /**
     * Save a tBObjectParameter.
     *
     * @param tBObjectParameterDTO the entity to save
     * @return the persisted entity
     */
    TBObjectParameterDTO save(TBObjectParameterDTO tBObjectParameterDTO);

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


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

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

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

    Optional<TBObjectParameter> findObjectParameterByName (String name);
}
