package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBWard.
 */
public interface TBWardService {

    /**
     * Save a tBWard.
     *
     * @param tBWardDTO the entity to save
     * @return the persisted entity
     */
    TBWardDTO save(TBWardDTO tBWardDTO);

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


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

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

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