Revision 46125 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/DefaultTransaction.java
DefaultTransaction.java | ||
---|---|---|
78 | 78 |
@Override |
79 | 79 |
public void commit() throws DataException { |
80 | 80 |
if( !this.isInProgress() ) { |
81 |
return;
|
|
81 |
throw new IllegalStateException("Can't commit transaction without begin.");
|
|
82 | 82 |
} |
83 | 83 |
for (DataStore store : stores) { |
84 | 84 |
if( store instanceof FeatureStore ) { |
... | ... | |
94 | 94 |
@Override |
95 | 95 |
public void rollback() throws DataException { |
96 | 96 |
if( !this.isInProgress() ) { |
97 |
return;
|
|
97 |
throw new IllegalStateException("Can't rollback transaction without begin.");
|
|
98 | 98 |
} |
99 |
|
|
99 | 100 |
for (DataStore store : stores) { |
100 | 101 |
if( store instanceof FeatureStore ) { |
101 | 102 |
FeatureStore fstore = (FeatureStore) store; |
Also available in: Unified diff