package vn.azteam.tpf.service;

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

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

import java.util.Optional;

/**
 * Service Interface for managing TBAddress.
 */
public interface TBAddressService {

    /**
     * Save a tBAddress.
     *
     * @param tBAddressDTO the entity to save
     * @return the persisted entity
     */
    TBAddressDTO save(TBAddressDTO tBAddressDTO);

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


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

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

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