package inukisoft.patronesj2ee.model.consulta.dao; import inukisoft.patronesj2ee.model.consulta.vo.ConsultaVO; import inukisoft.util.exceptions.InstanceNotFoundException; import inukisoft.util.exceptions.InternalErrorException; import java.util.Collection; import java.sql.Connection; public interface SQLConsultaDAO { public ConsultaVO create(Connection connection, ConsultaVO hotelVO) throws InternalErrorException; public boolean exists(Connection connection, Long hotelIdentifier) throws InternalErrorException; public ConsultaVO find(Connection connection, Long hotelIdentifier) throws InstanceNotFoundException, InternalErrorException; public Collection list(Connection connection, int startIndex, int count) throws InternalErrorException; public void update(Connection connection, ConsultaVO hotelVO) throws InstanceNotFoundException, InternalErrorException; public void remove(Connection connection, Long hotelIdentifier) throws InstanceNotFoundException, InternalErrorException; public Long count(Connection connection) throws InstanceNotFoundException, InternalErrorException; }