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 @ 45738

History | View | Annotate | Download (4.66 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
        public static final String FAILED_STARTEDITING = "failed_StartEditing_DataStore";
50

    
51

    
52
        public static final String BEFORE_CANCELEDITING = "before_CancelEditing_DataStore";
53
        public static final String AFTER_CANCELEDITING = "after_CancelEditing_DataStore";
54

    
55
        public static final String BEFORE_FINISHEDITING = "before_FinishEditing_DataStore";
56
        public static final String AFTER_FINISHEDITING = "after_FinishEditing_DataStore";
57
        public static final String FAILED_FINISHEDITING = "failed_FinishEditing_DataStore";
58

    
59

    
60
        public static final String BEFORE_UPDATE_TYPE = "before_Update_Type";
61
        public static final String AFTER_UPDATE_TYPE = "after_Update_Type";
62

    
63
        public static final String BEFORE_UPDATE = "before_Update_Feature";
64
        public static final String AFTER_UPDATE = "after_Update_Feature";
65

    
66
        public static final String BEFORE_DELETE = "before_Delete_Feature";
67
        public static final String AFTER_DELETE = "after_Delete_Feature";
68

    
69
        public static final String BEFORE_INSERT = "before_Insert_Feature";
70
        public static final String AFTER_INSERT = "after_Insert_Feature";
71

    
72
        public static final String LOAD_FINISHED = "Load_Finished";
73
  
74
        public static final String TRANSFORM_CHANGE = "Transform_Change";
75

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

    
98
    public String getEditingSession();
99

    
100
    public int getEditMode();
101
    
102
    public Feature getFeature();
103

    
104
    public DataSet getCollectionResult();
105

    
106
    public boolean loadSucefully();
107

    
108
    public Exception getExceptionLoading();
109

    
110
    public Command getCommand();
111

    
112
    public EditableFeatureType getFeatureType();
113
  
114
  public boolean isSelectionCompromised();
115

    
116
  public Iterator<FeatureReference> getDeletedsFeatures();
117
  
118
  public Iterator<Feature> getInsertedsFeatures();
119
  
120
  public Iterator<Feature> getUpdatedsFeatures();
121
  
122
  public Iterator<FeatureTypeChanged> getChangedsFeatureTypes();
123
  
124
}