class HostJdbcDao extends JdbcDaoSupport {

    public boolean isThereAnyHostOnPodDeactivatedByOurManager(long id) {
        List<Long> hostsIds = getJdbcTemplate().queryForList(sqlCheckIsThereAnyHostOnPodDeactivatedByOurManager, Long.class, id);
        return CollectionUtils.isNotEmpty(hostsIds);
    }

}