svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.app / org.gvsig.app.mainplugin / src / main / java / org / gvsig / app / extension / updatetable / UpdateTableProcessParameters.java @ 46575
History | View | Annotate | Download (2.78 KB)
1 | 46575 | jjdelcerro | /*
|
---|---|---|---|
2 | * To change this license header, choose License Headers in Project Properties.
|
||
3 | * To change this template file, choose Tools | Templates
|
||
4 | * and open the template in the editor.
|
||
5 | */
|
||
6 | package org.gvsig.app.extension.updatetable; |
||
7 | |||
8 | import java.util.Iterator; |
||
9 | import org.gvsig.expressionevaluator.Expression; |
||
10 | import org.gvsig.fmap.dal.feature.FeatureStore; |
||
11 | |||
12 | /**
|
||
13 | *
|
||
14 | * @author jjdelcerro
|
||
15 | */
|
||
16 | public interface UpdateTableProcessParameters extends Iterable<UpdateTableProcessParameters.ProcessFieldParameters> { |
||
17 | |||
18 | int BATCHUPDATE_PROCESS_ALL = 0; |
||
19 | int BATCHUPDATE_PROCESS_EDITEDS = 2; |
||
20 | int BATCHUPDATE_PROCESS_SELECTION = 1; |
||
21 | |||
22 | public interface ProcessFieldParameters { |
||
23 | public String getName(); |
||
24 | public boolean isUpdate(); |
||
25 | public Expression getExpression(); |
||
26 | } |
||
27 | |||
28 | |||
29 | ProcessFieldParameters add(String name, boolean update, Expression expression); |
||
30 | |||
31 | ProcessFieldParameters get(String name);
|
||
32 | |||
33 | /**
|
||
34 | * @return the editMode
|
||
35 | */
|
||
36 | int getEditMode();
|
||
37 | |||
38 | /**
|
||
39 | * @return the filter
|
||
40 | */
|
||
41 | Expression getFilter();
|
||
42 | |||
43 | /**
|
||
44 | * @return the finishAndRestarEditEach
|
||
45 | */
|
||
46 | int getFinishAndRestarEditEach();
|
||
47 | |||
48 | /**
|
||
49 | * @return the rowsToProcess
|
||
50 | */
|
||
51 | int getRowsToProcess();
|
||
52 | |||
53 | FeatureStore getStore(); |
||
54 | |||
55 | /**
|
||
56 | * @return the beginEditIfNeed
|
||
57 | */
|
||
58 | boolean isBeginEditIfNeed();
|
||
59 | |||
60 | /**
|
||
61 | * @return the finishAndRestarEdit
|
||
62 | */
|
||
63 | boolean isFinishAndRestarEdit();
|
||
64 | |||
65 | /**
|
||
66 | * @return the finishEditAfterTerminate
|
||
67 | */
|
||
68 | boolean isFinishEditAfterTerminate();
|
||
69 | |||
70 | /**
|
||
71 | * @return the notifyUserIfNeedBeginEditing
|
||
72 | */
|
||
73 | boolean isNotifyUserIfNeedBeginEditing();
|
||
74 | |||
75 | Iterator<ProcessFieldParameters> iterator();
|
||
76 | |||
77 | /**
|
||
78 | * @param beginEditIfNeed the beginEditIfNeed to set
|
||
79 | */
|
||
80 | void setBeginEditIfNeed(boolean beginEditIfNeed); |
||
81 | |||
82 | /**
|
||
83 | * @param editMode the editMode to set
|
||
84 | */
|
||
85 | void setEditMode(int editMode); |
||
86 | |||
87 | /**
|
||
88 | * @param filter the filter to set
|
||
89 | */
|
||
90 | void setFilter(Expression filter); |
||
91 | |||
92 | /**
|
||
93 | * @param finishAndRestarEdit the finishAndRestarEdit to set
|
||
94 | */
|
||
95 | void setFinishAndRestarEdit(boolean finishAndRestarEdit); |
||
96 | |||
97 | /**
|
||
98 | * @param finishAndRestarEditEach the finishAndRestarEditEach to set
|
||
99 | */
|
||
100 | void setFinishAndRestarEditEach(int finishAndRestarEditEach); |
||
101 | |||
102 | /**
|
||
103 | * @param finishEditAfterTerminate the finishEditAfterTerminate to set
|
||
104 | */
|
||
105 | void setFinishEditAfterTerminate(boolean finishEditAfterTerminate); |
||
106 | |||
107 | /**
|
||
108 | * @param notifyUserIfNeedBeginEditing the notifyUserIfNeedBeginEditing to set
|
||
109 | */
|
||
110 | void setNotifyUserIfNeedBeginEditing(boolean notifyUserIfNeedBeginEditing); |
||
111 | |||
112 | /**
|
||
113 | * @param rowsToProcess the rowsToProcess to set
|
||
114 | */
|
||
115 | void setRowsToProcess(int rowsToProcess); |
||
116 | |||
117 | void setStore(FeatureStore store);
|
||
118 | |||
119 | } |