root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / FeatureLocks.java @ 38608
History | View | Annotate | Download (2.15 KB)
1 | 25546 | jjdelcerro | /* gvSIG. Geographic Information System of the Valencian Government
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2007-2008 Infrastructures and Transports Department
|
||
4 | 31544 | cordinyana | * of the Valencian Government (CIT)
|
5 | 30208 | jmvivo | *
|
6 | 25546 | jjdelcerro | * 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 2
|
||
9 | * of the License, or (at your option) any later version.
|
||
10 | 30208 | jmvivo | *
|
11 | 25546 | jjdelcerro | * 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 | 30208 | jmvivo | *
|
16 | 25546 | jjdelcerro | * 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 | 30208 | jmvivo | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 | 25546 | jjdelcerro | * MA 02110-1301, USA.
|
20 | 30208 | jmvivo | *
|
21 | 25546 | jjdelcerro | */
|
22 | |||
23 | /*
|
||
24 | * AUTHORS (In addition to CIT):
|
||
25 | * 2008 {DiSiD Technologies} { }
|
||
26 | * 2008 {IVER TI} { }
|
||
27 | */
|
||
28 | package org.gvsig.fmap.dal.feature; |
||
29 | |||
30 | import java.util.Iterator; |
||
31 | |||
32 | import org.gvsig.fmap.dal.exception.DataException; |
||
33 | import org.gvsig.tools.observer.WeakReferencingObservable; |
||
34 | 30208 | jmvivo | import org.gvsig.tools.persistence.Persistent; |
35 | 25546 | jjdelcerro | |
36 | /**
|
||
37 | * Manages locks of Features.
|
||
38 | 30208 | jmvivo | *
|
39 | 25546 | jjdelcerro | * @author <a href="mailto:jjdelcerro@gvsig.org">Joaquin del Cerro</a>
|
40 | */
|
||
41 | |||
42 | 30208 | jmvivo | public interface FeatureLocks extends WeakReferencingObservable, Persistent { |
43 | 25546 | jjdelcerro | |
44 | public void apply(); |
||
45 | 30208 | jmvivo | |
46 | 25546 | jjdelcerro | public Iterator getGroups(); |
47 | 30208 | jmvivo | |
48 | 25546 | jjdelcerro | public int getGroupsCount(); |
49 | 30208 | jmvivo | |
50 | 25546 | jjdelcerro | public boolean isLocked(FeatureReference reference); |
51 | |||
52 | public boolean isLocked(Feature feature); |
||
53 | 30208 | jmvivo | |
54 | 25546 | jjdelcerro | public long getLocksCount(); |
55 | |||
56 | public Iterator getLocks(); |
||
57 | 30208 | jmvivo | |
58 | 25546 | jjdelcerro | void setDefaultTimeout(long milisecs); |
59 | 30208 | jmvivo | |
60 | 25546 | jjdelcerro | long getDefaultTimeout();
|
61 | 30208 | jmvivo | |
62 | |||
63 | |||
64 | 25546 | jjdelcerro | boolean lock(FeatureReference reference);
|
65 | |||
66 | boolean lock(Feature feature);
|
||
67 | |||
68 | boolean lock(FeatureSet features) throws DataException; |
||
69 | |||
70 | void lockAll() throws DataException; |
||
71 | |||
72 | boolean unlock(FeatureReference reference);
|
||
73 | |||
74 | boolean unlock(Feature feature);
|
||
75 | |||
76 | boolean unlock(FeatureSet features) throws DataException; |
||
77 | |||
78 | void unlockAll() throws DataException; |
||
79 | |||
80 | public long getUnappliedLocksCount(); |
||
81 | |||
82 | Iterator getUnappliedLocks();
|
||
83 | |||
84 | } |