Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / feature / FeatureStoreNotification.java @ 44871

History | View | Annotate | Download (4.39 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.dal.feature;
25

    
26
import java.util.Iterator;
27
import org.gvsig.fmap.dal.DataSet;
28
import org.gvsig.fmap.dal.DataStoreNotification;
29
import org.gvsig.fmap.dal.feature.FeatureType.FeatureTypeChanged;
30
import org.gvsig.tools.undo.command.Command;
31

    
32
public interface FeatureStoreNotification extends DataStoreNotification {
33

    
34

    
35

    
36
        public static final String BEFORE_UNDO = "before_Undo_DataStore";
37
        public static final String BEFORE_REDO = "before_Redo_DataStore";
38

    
39
        public static final String AFTER_UNDO = "after_Undo_DataStore";
40
        public static final String AFTER_REDO = "after_Redo_DataStore";
41

    
42
        public static final String BEFORE_REFRESH = "before_refresh";
43
        public static final String AFTER_REFRESH = "after_refresh";
44

    
45
        public static final String LOCKS_CHANGE = "after_LockedChange_DataStore";
46

    
47
        public static final String BEFORE_STARTEDITING = "before_StartEditing_DataStore";
48
        public static final String AFTER_STARTEDITING = "after_StartEditing_DataStore";
49

    
50
        public static final String BEFORE_CANCELEDITING = "before_CancelEditing_DataStore";
51
        public static final String AFTER_CANCELEDITING = "after_CancelEditing_DataStore";
52

    
53
        public static final String BEFORE_FINISHEDITING = "before_FinishEditing_DataStore";
54
        public static final String AFTER_FINISHEDITING = "after_FinishEditing_DataStore";
55

    
56

    
57
        public static final String BEFORE_UPDATE_TYPE = "before_Update_Type";
58
        public static final String AFTER_UPDATE_TYPE = "after_Update_Type";
59

    
60
        public static final String BEFORE_UPDATE = "before_Update_Feature";
61
        public static final String AFTER_UPDATE = "after_Update_Feature";
62

    
63
        public static final String BEFORE_DELETE = "before_Delete_Feature";
64
        public static final String AFTER_DELETE = "after_Delete_Feature";
65

    
66
        public static final String BEFORE_INSERT = "before_Insert_Feature";
67
        public static final String AFTER_INSERT = "after_Insert_Feature";
68

    
69
        public static final String LOAD_FINISHED = "Load_Finished";
70
  
71
        public static final String TRANSFORM_CHANGE = "Transform_Change";
72

    
73
    /**
74
     * Notifies about a Feature index filling operation being started. The
75
     * notification object will provide the index object.
76
     */
77
    public static final String INDEX_FILLING_STARTED = "Index_Filling_Started";
78
    /**
79
     * Notifies about a Feature index finished filling successfully. The
80
     * notification object will provide the index object.
81
     */
82
    public static final String INDEX_FILLING_SUCCESS = "Index_Filling_Success";
83
    /**
84
     * Notifies about a Feature index filling operation being cancelled. The
85
     * notification object will provide the index object.
86
     */
87
    public static final String INDEX_FILLING_CANCELLED =
88
        "Index_Filling_Cancelled";
89
    /**
90
     * Notifies about a Feature index finished operation error. The notification
91
     * will provide the source exception.
92
     */
93
    public static final String INDEX_FILLING_ERROR = "Index_Filling_Error";
94

    
95
        public Feature getFeature();
96

    
97
        public DataSet getCollectionResult();
98

    
99
        public boolean loadSucefully();
100

    
101
        public Exception getExceptionLoading();
102

    
103
        public Command getCommand();
104

    
105
        public EditableFeatureType getFeatureType();
106
  
107
  public boolean isSelectionCompromised();
108

    
109
  public Iterator<FeatureReference> getDeletedsFeatures();
110
  
111
  public Iterator<Feature> getInsertedsFeatures();
112
  
113
  public Iterator<Feature> getUpdatedsFeatures();
114
  
115
  public Iterator<FeatureTypeChanged> getChangedsFeatureTypes();
116
  
117
}