Revision 47216 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/DefaultForeingKey.java
DefaultForeingKey.java | ||
---|---|---|
100 | 100 |
|
101 | 101 |
@Override |
102 | 102 |
public FeatureStore getFeatureStore() { |
103 |
if (this.featureStore == null) {
|
|
103 |
if (DisposeUtils.isNullOrDisposed(this.featureStore)) {
|
|
104 | 104 |
StoresRepository repository = DefaultForeingKey.this.getStoresRepository(tableName); |
105 | 105 |
this.featureStore = (FeatureStore) repository.getStore(tableName); |
106 | 106 |
if(this.transaction != null){ |
107 | 107 |
try { |
108 |
this.transaction.add(this.featureStore, false);
|
|
108 |
this.transaction.add(this.featureStore, true);
|
|
109 | 109 |
} catch (Exception ex) { |
110 | 110 |
throw new RuntimeException("Can't add table '"+tableName+"' to transaction.", ex); |
111 | 111 |
} |
Also available in: Unified diff