package eu.dnetlib.openaire.user.registeredService;

import eu.dnetlib.openaire.user.pojos.RegisteredService;

import java.sql.SQLException;
import java.util.List;

public interface RegisteredServiceDao {

    public int insertRegisteredService(RegisteredService registeredService) throws SQLException;

    public boolean update(final RegisteredService registeredService) throws SQLException;

    public boolean delete(int id) throws SQLException;

    public RegisteredService fetchRegisteredServiceById(int id) throws SQLException;

    public List<RegisteredService> fetchAllRegisteredServicesByOwner(String owner) throws SQLException;

    public long countRegisteredServices(String owner) throws SQLException;

}
