class HostJdbcDao extends JdbcDaoSupport {

    public HostAdministrationStatus getAdministrationStatus(long hostId) {
        String hostAdministrationStatusAsAtring = getJdbcTemplate().queryForObject(sqlGetAdministrationStatus, String.class, hostId);
        if (StringUtils.isBlank(hostAdministrationStatusAsAtring)) {
            return null;
        }
        return HostAdministrationStatus.valueOf(hostAdministrationStatusAsAtring);
    }

}