class HostJdbcDao extends JdbcDaoSupport {

    public List<HypervisorType> getAllHypervisorsTypeInCloud() {
        List<String> hypervisorTypesAsString = getJdbcTemplate().queryForList(sqlSetAllHypervisorsTypeInCloud, String.class);
        List<HypervisorType> hypervisorTypes = new ArrayList<>();
        for (String s : hypervisorTypesAsString) {
            hypervisorTypes.add(HypervisorType.valueOf(s));
        }
        return hypervisorTypes;
    }

}