Revision 2733 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/main/java/org/gvsig/vcsgis/lib/workspace/tables/RemoteChangesTable.java
RemoteChangesTable.java | ||
---|---|---|
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
private Feature getRelatedFeature() { |
77 |
String entityName = "unknown";
|
|
78 |
String code = "unknown";
|
|
77 |
String entityName; |
|
78 |
String code; |
|
79 | 79 |
try { |
80 | 80 |
entityName = this.getEntity().getEntityName(); |
81 | 81 |
code = this.getRelatedFeatureCode(); |
... | ... | |
196 | 196 |
} |
197 | 197 |
|
198 | 198 |
private static String convertJsonValueToString(JsonValue jsonValue) { |
199 |
if( jsonValue==null ) { |
|
200 |
return ""; |
|
201 |
} |
|
199 | 202 |
if (jsonValue instanceof JsonString) { |
200 | 203 |
String jsonString = jsonValue.toString(); |
201 | 204 |
return jsonString.substring(1, jsonString.length() - 1); |
... | ... | |
460 | 463 |
FeatureStore store = null; |
461 | 464 |
try { |
462 | 465 |
store = workspace.getFeatureStore(TABLE_NAME); |
463 |
FeatureQuery query = store.createFeatureQuery("NOT \""+SELECTED+"\" AND \""+COD_ENTITY+"\"='"+entityCode+"'", null, true);
|
|
466 |
FeatureQuery query = store.createFeatureQuery("NOT \""+SELECTED+"\" AND \""+COD_ENTITY+"\"='"+entityCode+"'"); |
|
464 | 467 |
query.setLimit(1); |
465 | 468 |
Feature f = store.findFirst(query); |
466 | 469 |
return f != null; |
Also available in: Unified diff