Statistics
| Revision:

root / branches / Mobile_Compatible_Hito_1 / libFMap / src-data / org / gvsig / data / vectorial / FeatureStoreNotification.java @ 21606

History | View | Annotate | Download (2.16 KB)

1
package org.gvsig.data.vectorial;
2

    
3
import org.gvsig.data.DataStoreNotification;
4
import org.gvsig.data.IDataCollection;
5
import org.gvsig.data.IDataStore;
6
import org.gvsig.data.commands.ICommand;
7

    
8
public class FeatureStoreNotification extends DataStoreNotification implements
9
                IFeatureStoreNotification {
10
        private IFeatureID featureID=null;
11
        private IFeature previousFeatureValue=null;
12
        private IDataCollection collectionResult = null;
13
        private boolean loadCollectionSucefully=false;
14
        private Exception exceptionLoading=null;
15

    
16
        public FeatureStoreNotification(IDataStore source, String type) {
17
                super(source, type);
18
        }
19

    
20
        public FeatureStoreNotification(IDataStore source, String type, IFeature feature) {
21
                super(source, type, feature);
22
        }
23
        public FeatureStoreNotification(IDataStore source, String type, ICommand command) {
24
                super(source, type, command);
25
        }
26
        public FeatureStoreNotification(IDataStore source, String type,
27
                        IDataCollection previousSeCollection, IDataCollection newSelection) {
28
                super(source, type, previousSeCollection, newSelection);
29
        }
30

    
31
        public FeatureStoreNotification(IDataStore source, String type, IFeatureID featureId) {
32
                super(source, type);
33
                this.featureID = featureId;
34
        }
35

    
36
        public FeatureStoreNotification(IDataStore source, String type, IFeatureID featureID,IFeature previousFeatureValue) {
37
                super(source, type);
38
                this.featureID = featureID;
39
                this.previousFeatureValue = previousFeatureValue;
40
        }
41

    
42
        public FeatureStoreNotification(IDataStore source, String type, Exception exception) {
43
                super(source, type);
44
                this.loadCollectionSucefully = false;
45
                this.exceptionLoading = exception;
46
        }
47

    
48
        public FeatureStoreNotification(IDataStore source, String type, IDataCollection collection) {
49
                super(source, type);
50
                this.loadCollectionSucefully = true;
51
                this.collectionResult = collection;
52
        }
53

    
54

    
55
        public IFeatureID getFeatureID() {
56
                return featureID;
57
        }
58

    
59
        public IFeature getPreviousFeatureValue() {
60
                return previousFeatureValue;
61
        }
62

    
63
        public IDataCollection getCollectionResult() {
64
                return this.collectionResult;
65
        }
66

    
67
        public Exception getExceptionLoading() {
68
                return this.exceptionLoading;
69
        }
70

    
71
        public boolean loadSucefully() {
72
                return this.loadCollectionSucefully;
73
        }
74

    
75
}