Revision 47611 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/impl/DefaultDatabaseWorkspaceManager.java
DefaultDatabaseWorkspaceManager.java | ||
---|---|---|
37 | 37 |
import static org.gvsig.fmap.dal.DatabaseWorkspaceManager.TABLE_RESOURCES; |
38 | 38 |
import static org.gvsig.fmap.dal.DatabaseWorkspaceManager.TABLE_RESOURCES_NAME; |
39 | 39 |
import org.gvsig.fmap.dal.StoresRepository; |
40 |
import org.gvsig.fmap.dal.SupportTransactionsHelper; |
|
40 | 41 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
41 | 42 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
42 | 43 |
import org.gvsig.fmap.dal.feature.Feature; |
... | ... | |
69 | 70 |
private static final String CONFIG_NAME_BASEFOLDER = "BASEFOLDER"; |
70 | 71 |
private static final String CONFIG_NAME_ALTERNATIVE_RESOURCES_PATH = "ALTERNATIVE_RESOURCES_PATH"; |
71 | 72 |
|
72 |
private DataTransaction transaction;
|
|
73 |
private SupportTransactionsHelper transactionsHelper;
|
|
73 | 74 |
|
74 | 75 |
private class CachedConfigValue extends CachedValue<String> { |
75 | 76 |
|
... | ... | |
114 | 115 |
|
115 | 116 |
public DefaultDatabaseWorkspaceManager(DataServerExplorerParameters serverParameters) { |
116 | 117 |
this.serverParameters = serverParameters; |
118 |
this.transactionsHelper = new SupportTransactionsHelper(); |
|
117 | 119 |
this.baseFolder = new CachedValue() { |
118 | 120 |
@Override |
119 | 121 |
protected void reload() { |
... | ... | |
1043 | 1045 |
|
1044 | 1046 |
@Override |
1045 | 1047 |
public void setTransaction(DataTransaction transaction) { |
1046 |
this.transaction = transaction;
|
|
1048 |
this.transactionsHelper.setTransaction(transaction);
|
|
1047 | 1049 |
} |
1048 | 1050 |
|
1049 | 1051 |
@Override |
1050 | 1052 |
public DataTransaction getTransaction() { |
1051 |
return this.transaction; |
|
1053 |
return this.transactionsHelper.getTransaction();
|
|
1052 | 1054 |
} |
1053 | 1055 |
|
1054 | 1056 |
|
Also available in: Unified diff