Revision 45271
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureQuery.java | ||
---|---|---|
240 | 240 |
|
241 | 241 |
@Override |
242 | 242 |
public String[] getAttributeNames() { |
243 |
if (this.hasExtraColumnDeclaredAsGroupByField()) { |
|
244 |
this.retrievesAllAttributes(); |
|
245 |
} |
|
243 | 246 |
return (String[])attributeNames.toArray(new String[attributeNames.size()]); |
244 | 247 |
} |
248 |
|
|
249 |
private boolean hasExtraColumnDeclaredAsGroupByField() { |
|
250 |
// indica si un campo de agrupaciones es una columna calculada |
|
251 |
if (this.hasGroupByColumns()) { |
|
252 |
for (String groupByColumn : groupByColumns) { |
|
253 |
if (this.extraColumn.get(groupByColumn)!=null) { |
|
254 |
return true; |
|
255 |
} |
|
256 |
} |
|
257 |
} |
|
258 |
return false; |
|
259 |
} |
|
245 | 260 |
|
246 | 261 |
@Override |
247 | 262 |
public void setAttributeNames(String[] attributeNames) { |
... | ... | |
322 | 337 |
|
323 | 338 |
@Override |
324 | 339 |
public boolean hasAttributeNames() { |
340 |
if (hasExtraColumnDeclaredAsGroupByField()) { |
|
341 |
return true; |
|
342 |
} |
|
325 | 343 |
return !this.attributeNames.isEmpty(); |
326 | 344 |
} |
327 | 345 |
|
Also available in: Unified diff