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 @ 47082
History | View | Annotate | Download (4.84 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.expressionevaluator.Expression; |
28 |
import org.gvsig.fmap.dal.DataSet; |
29 |
import org.gvsig.fmap.dal.DataStoreNotification; |
30 |
import org.gvsig.fmap.dal.feature.FeatureType.FeatureTypeChanged; |
31 |
import org.gvsig.tools.undo.command.Command; |
32 |
|
33 |
public interface FeatureStoreNotification extends DataStoreNotification { |
34 |
|
35 |
|
36 |
|
37 |
public static final String BEFORE_UNDO = "before_Undo_DataStore"; |
38 |
public static final String BEFORE_REDO = "before_Redo_DataStore"; |
39 |
|
40 |
public static final String AFTER_UNDO = "after_Undo_DataStore"; |
41 |
public static final String AFTER_REDO = "after_Redo_DataStore"; |
42 |
|
43 |
public static final String BEFORE_REFRESH = "before_refresh"; |
44 |
public static final String AFTER_REFRESH = "after_refresh"; |
45 |
|
46 |
public static final String LOCKS_CHANGE = "after_LockedChange_DataStore"; |
47 |
|
48 |
public static final String BEFORE_STARTEDITING = "before_StartEditing_DataStore"; |
49 |
public static final String AFTER_STARTEDITING = "after_StartEditing_DataStore"; |
50 |
public static final String FAILED_STARTEDITING = "failed_StartEditing_DataStore"; |
51 |
|
52 |
|
53 |
public static final String BEFORE_CANCELEDITING = "before_CancelEditing_DataStore"; |
54 |
public static final String AFTER_CANCELEDITING = "after_CancelEditing_DataStore"; |
55 |
|
56 |
public static final String PREPARING_FINISHEDITING = "preparing_FinishEditing_DataStore"; |
57 |
public static final String BEFORE_FINISHEDITING = "before_FinishEditing_DataStore"; |
58 |
public static final String AFTER_FINISHEDITING = "after_FinishEditing_DataStore"; |
59 |
public static final String FAILED_FINISHEDITING = "failed_FinishEditing_DataStore"; |
60 |
|
61 |
|
62 |
public static final String BEFORE_UPDATE_TYPE = "before_Update_Type"; |
63 |
public static final String AFTER_UPDATE_TYPE = "after_Update_Type"; |
64 |
|
65 |
public static final String BEFORE_UPDATE = "before_Update_Feature"; |
66 |
public static final String AFTER_UPDATE = "after_Update_Feature"; |
67 |
|
68 |
public static final String BEFORE_DELETE = "before_Delete_Feature"; |
69 |
public static final String AFTER_DELETE = "after_Delete_Feature"; |
70 |
|
71 |
public static final String BEFORE_INSERT = "before_Insert_Feature"; |
72 |
public static final String AFTER_INSERT = "after_Insert_Feature"; |
73 |
|
74 |
public static final String LOAD_FINISHED = "Load_Finished"; |
75 |
|
76 |
public static final String TRANSFORM_CHANGE = "Transform_Change"; |
77 |
|
78 |
/**
|
79 |
* Notifies about a Feature index filling operation being started. The
|
80 |
* notification object will provide the index object.
|
81 |
*/
|
82 |
public static final String INDEX_FILLING_STARTED = "Index_Filling_Started"; |
83 |
/**
|
84 |
* Notifies about a Feature index finished filling successfully. The
|
85 |
* notification object will provide the index object.
|
86 |
*/
|
87 |
public static final String INDEX_FILLING_SUCCESS = "Index_Filling_Success"; |
88 |
/**
|
89 |
* Notifies about a Feature index filling operation being cancelled. The
|
90 |
* notification object will provide the index object.
|
91 |
*/
|
92 |
public static final String INDEX_FILLING_CANCELLED = |
93 |
"Index_Filling_Cancelled";
|
94 |
/**
|
95 |
* Notifies about a Feature index finished operation error. The notification
|
96 |
* will provide the source exception.
|
97 |
*/
|
98 |
public static final String INDEX_FILLING_ERROR = "Index_Filling_Error"; |
99 |
|
100 |
public String getEditingSession(); |
101 |
|
102 |
public int getEditMode(); |
103 |
|
104 |
public Feature getFeature();
|
105 |
|
106 |
public DataSet getCollectionResult();
|
107 |
|
108 |
public boolean loadSucefully(); |
109 |
|
110 |
public Exception getExceptionLoading(); |
111 |
|
112 |
public Command getCommand();
|
113 |
|
114 |
public EditableFeatureType getFeatureType();
|
115 |
|
116 |
public boolean isSelectionCompromised(); |
117 |
|
118 |
public Iterator<FeatureReference> getDeletedsFeatures(); |
119 |
|
120 |
public Iterator<Feature> getInsertedsFeatures(); |
121 |
|
122 |
public Iterator<Feature> getUpdatedsFeatures(); |
123 |
|
124 |
public Iterator<FeatureTypeChanged> getChangedsFeatureTypes(); |
125 |
|
126 |
public Expression getExpression(); |
127 |
} |