package vn.azteam.tpf.service;

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

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import vn.azteam.tpf.service.dto.TBCustomerHasCropTypeUpdateDTO;

import java.util.Optional;

/**
 * Service Interface for managing TBCustomerHasCropType.
 */
public interface TBCustomerHasCropTypeService {

    /**
     * Save a tBCustomerHasCropType.
     *
     * @param tBCustomerHasCropTypeDTO the entity to save
     * @return the persisted entity
     */
    TBCustomerHasCropTypeDTO save(TBCustomerHasCropTypeDTO tBCustomerHasCropTypeDTO);

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


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

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

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

//    TBCustomerHasCropTypeUpdateDTO updateCustomerHasCropTypeUpdate(TBCustomerHasCropTypeUpdateDTO tbCustomerHasCropTypeUpdateDTO);
//
//    TBCustomerHasCropTypeUpdateDTO getCustomerHasCropTypeUpdate(Long customerId, Pageable pageable);
}
