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

History | View | Annotate | Download (4.76 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 PREPARING_FINISHEDITING = "preparing_FinishEditing_DataStore";
56
        public static final String BEFORE_FINISHEDITING = "before_FinishEditing_DataStore";
57
        public static final String AFTER_FINISHEDITING = "after_FinishEditing_DataStore";
58
        public static final String FAILED_FINISHEDITING = "failed_FinishEditing_DataStore";
59

    
60

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

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

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

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

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

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

    
99
    public String getEditingSession();
100
    
101
    public int getEditMode();            
102
    
103
    public Feature getFeature();
104

    
105
    public DataSet getCollectionResult();
106

    
107
    public boolean loadSucefully();
108

    
109
    public Exception getExceptionLoading();
110

    
111
    public Command getCommand();
112

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

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