class HostJdbcDao extends JdbcDaoSupport {

    public ResourceState getResourceState(long hostId) {
        return ResourceState.valueOf(getJdbcTemplate().queryForObject(sqlGetResourceState, String.class, hostId));
    }

}