class ClusterJdbcDao extends JdbcDaoSupport {

    public ClusterAdministrationStatus getClusterAdministrationStatus(long clusterId) {
        String statusAsString = getJdbcTemplate().queryForObject(sqlGetClusterAdministrationStatus, String.class, clusterId);
        if (statusAsString == null) {
            return null;
        }
        return ClusterAdministrationStatus.valueOf(statusAsString);
    }

}