private static final class ClusterConfigurationMapper implements RowMapper<ClusterConfiguration> {
@Override
public ClusterConfiguration mapRow(ResultSet rs, int rowNum) throws SQLException {
ClusterConfiguration cc = new ClusterConfiguration();
cc.setAlias(rs.getString("ALIAS"));
cc.setHosts(rs.getString("HOSTS"));
cc.setClusterName(rs.getString("CLUSTERNAME"));
cc.setActive(rs.getBoolean("ACTIVE"));
return cc;
}