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 / StoresRepository.java @ 46737
History | View | Annotate | Download (1.89 KB)
1 |
package org.gvsig.fmap.dal; |
---|---|
2 |
|
3 |
import java.util.Collection; |
4 |
import java.util.Set; |
5 |
import java.util.TreeSet; |
6 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
7 |
import org.gvsig.fmap.dal.feature.FeatureType; |
8 |
import org.gvsig.tools.observer.Observable; |
9 |
import org.gvsig.tools.util.PropertiesSupport; |
10 |
import org.gvsig.tools.util.UnmodifiableBasicMap; |
11 |
import org.gvsig.tools.util.UnmodifiableBasicSet; |
12 |
|
13 |
/**
|
14 |
*
|
15 |
* @author jjdelcerro
|
16 |
*/
|
17 |
public interface StoresRepository |
18 |
extends
|
19 |
UnmodifiableBasicMap<String, DataStoreParameters>,
|
20 |
Observable,
|
21 |
PropertiesSupport |
22 |
{ |
23 |
|
24 |
public static final String NOTIFICATION_ADDREPOSITORY = "addRepository"; |
25 |
public static final String NOTIFICATION_REMOVEREPOSITORY = "removeRepository"; |
26 |
public static final String NOTIFICATION_ADD = "add"; |
27 |
public static final String NOTIFICATION_REMOVE = "remove"; |
28 |
|
29 |
|
30 |
public String getID(); |
31 |
|
32 |
public String getLabel(); |
33 |
|
34 |
public Collection<StoresRepository> getSubrepositories(); |
35 |
|
36 |
public StoresRepository getSubrepository(String Id); |
37 |
|
38 |
public boolean addRepository(StoresRepository repository); |
39 |
|
40 |
public boolean removeRepository(String name); |
41 |
|
42 |
public void add(String name, DataStoreParameters parameters); |
43 |
|
44 |
public void add(String name, FeatureStore store); |
45 |
|
46 |
public boolean contains(DataStoreParameters parameters); |
47 |
|
48 |
public void remove(String name); |
49 |
|
50 |
public DataStore getStore(String name); |
51 |
|
52 |
/**
|
53 |
* Return the repository ID of the store.
|
54 |
*
|
55 |
* @param storeName of the store to search the repository
|
56 |
* @return the ID of the repository
|
57 |
*/
|
58 |
public String getRepositoryIDOfStore(String storeName); |
59 |
|
60 |
public StoresRepository getRepositoryOfStore(String storeName); |
61 |
|
62 |
public Set<String> keySetDeep(); |
63 |
|
64 |
public Set<String> keySetShallow(); |
65 |
|
66 |
public FeatureType getFeatureType(String name); |
67 |
|
68 |
} |