package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBCommand.
 */
public interface TBCommandService {

    /**
     * Save a tBCommand.
     *
     * @param tBCommandDTO the entity to save
     * @return the persisted entity
     */
    TBCommandDTO save(TBCommandDTO tBCommandDTO);

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


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

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

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