package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBMaintenanceDetails.
 */
public interface TBMaintenanceDetailsService {

    /**
     * Save a tBMaintenanceDetails.
     *
     * @param tBMaintenanceDetailsDTO the entity to save
     * @return the persisted entity
     */
    TBMaintenanceDetailsDTO save(TBMaintenanceDetailsDTO tBMaintenanceDetailsDTO);

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


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

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

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