Revision 46977 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/featurereference/FeatureReferencePK.java
FeatureReferencePK.java | ||
---|---|---|
48 | 48 |
} |
49 | 49 |
|
50 | 50 |
FeatureReferencePK(FeatureStore store, JsonObject code) { |
51 |
this.storeRef = new WeakReference(store); |
|
52 |
this.featureTypeId = store.getDefaultFeatureTypeQuietly().getId(); |
|
53 |
this.pk = Json.toArray(code, "values", new Object[code.getInt("size")]); |
|
54 |
this.pkNames = (String[]) Json.toArray(code, "names", new String[code.getInt("size")]); |
|
51 |
try { |
|
52 |
this.storeRef = new WeakReference(store); |
|
53 |
this.featureTypeId = store.getDefaultFeatureTypeQuietly().getId(); |
|
54 |
this.pk = Json.toArray(code, "values", new Object[code.getJsonArray("values").size()]); |
|
55 |
this.pkNames = (String[]) Json.toArray(code, "names", new String[code.getJsonArray("names").size()]); |
|
56 |
} catch (Exception ex) { |
|
57 |
throw ex; |
|
58 |
} |
|
55 | 59 |
} |
56 | 60 |
|
57 | 61 |
public FeatureReferencePK() { |
Also available in: Unified diff