class HostJdbcDao extends JdbcDaoSupport {

    public boolean isThereAnyHostOnCloudDeactivatedByOurManager() {
        List<Long> hostsIds = getJdbcTemplate().queryForList(sqlCheckIsThereAnyHostOnCloudDeactivatedByOurManager, Long.class);
        return CollectionUtils.isNotEmpty(hostsIds);
    }

}