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 @ 46915
History | View | Annotate | Download (2.18 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 StoresRepository getSubrepository(DataServerExplorerParameters explorerParameters);
|
39 |
|
40 |
public StoresRepository getSubrepository(DataServerExplorer explorer);
|
41 |
|
42 |
public boolean addRepository(StoresRepository repository); |
43 |
|
44 |
public boolean removeRepository(String name); |
45 |
|
46 |
public void add(String name, DataStoreParameters parameters); |
47 |
|
48 |
public void add(String name, FeatureStore store); |
49 |
|
50 |
public boolean contains(DataStoreParameters parameters); |
51 |
|
52 |
public boolean contains(String name); |
53 |
|
54 |
public void remove(String name); |
55 |
|
56 |
public DataStore getStore(String name); |
57 |
|
58 |
/**
|
59 |
* Return the repository ID of the store.
|
60 |
*
|
61 |
* @param storeName of the store to search the repository
|
62 |
* @return the ID of the repository
|
63 |
*/
|
64 |
public String getRepositoryIDOfStore(String storeName); |
65 |
|
66 |
public StoresRepository getRepositoryOfStore(String storeName); |
67 |
|
68 |
public Set<String> keySetDeep(); |
69 |
|
70 |
public Set<String> keySetShallow(); |
71 |
|
72 |
public FeatureType getFeatureType(String name); |
73 |
|
74 |
public DataServerExplorerParameters getServerParameters();
|
75 |
|
76 |
} |