Revision 45650 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/DefaultFeatureStore.java
DefaultFeatureStore.java | ||
---|---|---|
54 | 54 |
import org.gvsig.fmap.dal.DataStoreNotification; |
55 | 55 |
import org.gvsig.fmap.dal.DataStoreParameters; |
56 | 56 |
import org.gvsig.fmap.dal.DataStoreProviderFactory; |
57 |
import org.gvsig.fmap.dal.DataTransaction; |
|
57 | 58 |
import org.gvsig.fmap.dal.StoresRepository; |
59 |
import org.gvsig.fmap.dal.SupportTransactions; |
|
58 | 60 |
import org.gvsig.fmap.dal.exception.CloneException; |
59 | 61 |
import org.gvsig.fmap.dal.exception.CloseException; |
60 | 62 |
import org.gvsig.fmap.dal.exception.CreateException; |
... | ... | |
138 | 140 |
import org.gvsig.fmap.dal.spi.DataStoreInitializer2; |
139 | 141 |
import org.gvsig.fmap.dal.spi.DataStoreProvider; |
140 | 142 |
import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
143 |
import org.gvsig.fmap.dal.spi.DataTransactionServices; |
|
141 | 144 |
import org.gvsig.fmap.geom.Geometry; |
142 | 145 |
import org.gvsig.fmap.geom.SpatialIndex; |
143 | 146 |
import org.gvsig.fmap.geom.primitive.Envelope; |
... | ... | |
179 | 182 |
|
180 | 183 |
@SuppressWarnings("UseSpecificCatch") |
181 | 184 |
public class DefaultFeatureStore extends AbstractDataStore implements |
182 |
DataStoreInitializer2, FeatureStoreProviderServices, FeatureStore, Observer { |
|
185 |
DataStoreInitializer2, FeatureStoreProviderServices, FeatureStore, |
|
186 |
SupportTransactions, Observer { |
|
183 | 187 |
|
184 | 188 |
private static final String PERSISTENCE_DEFINITION_NAME = "FeatureStore"; |
185 | 189 |
|
... | ... | |
230 | 234 |
private FeatureStoreTimeSupport timeSupport; |
231 | 235 |
|
232 | 236 |
private PropertiesSupportHelper propertiesSupportHelper; |
237 |
private DataTransaction transaction; |
|
233 | 238 |
|
234 | 239 |
private class StateInformation extends HashMap<Object, Object> { |
235 | 240 |
|
... | ... | |
3665 | 3670 |
return isFeatureModified(feature.getReference()); |
3666 | 3671 |
} |
3667 | 3672 |
|
3668 |
|
|
3673 |
@Override |
|
3674 |
public void setTransaction(DataTransaction transaction) { |
|
3675 |
this.transaction = transaction; |
|
3676 |
if( transaction instanceof DataTransactionServices ) { |
|
3677 |
this.provider.setTransaction((DataTransactionServices) transaction); |
|
3678 |
} |
|
3679 |
} |
|
3680 |
|
|
3681 |
@Override |
|
3682 |
public DataTransaction getTransaction() { |
|
3683 |
return transaction; |
|
3684 |
} |
|
3685 |
|
|
3669 | 3686 |
} |
Also available in: Unified diff