| java.lang.Object org.vfny.geoserver.global.GlobalLayerSupertype org.vfny.geoserver.global.DataStoreInfo
DataStoreInfo | public class DataStoreInfo extends GlobalLayerSupertype (Code) | | This is the configuration iformation for one DataStore. This class can also
generate real datastores.
This class implements
org.geotools.catalog.Service interface as a
link to a catalog.
author: Gabriel Rold?n author: dzwiers author: Justin Deoliveira version: $Id: DataStoreInfo.java 7646 2007-10-23 13:09:32Z aaime $ |
Field Summary | |
File | baseDir Directory associated with this DataStore. | URL | baseURL URL associated with this DataStore. |
baseDir | File baseDir(Code) | | Directory associated with this DataStore.
This directory may be used for File based relative paths.
|
baseURL | URL baseURL(Code) | | URL associated with this DataStore.
This directory may be used for URL based relative paths.
|
DataStoreInfo | public DataStoreInfo(DataStoreInfoDTO config, Data data)(Code) | | DataStoreInfo constructor.
Stores the specified data for later use.
Parameters: config - DataStoreInfoDTO the current configuration to use. Parameters: data - Data a ref to use later to look up related informtion |
containsMetaData | public boolean containsMetaData(String key)(Code) | | Implement containsMetaData.
Parameters: key - See Also: org.geotools.data.MetaData.containsMetaData(java.lang.String) |
dispose | public void dispose()(Code) | | |
getAbstract | public String getAbstract()(Code) | | getAbstract purpose.
Returns the dataStore's abstract.
String the abstract. |
getDataStore | public synchronized DataStore getDataStore() throws IllegalStateException, NoSuchElementException(Code) | | By now just uses DataStoreFinder to find a new instance of a
DataStoreInfo capable of process connectionParams . In the
future we can see if it is better to cache or pool DataStores for
performance, but definitely we shouldn't maintain a single
DataStoreInfo as instance variable for synchronizing reassons
JG: Umm we actually require a single DataStoreInfo for for locking &
transaction support to work. DataStoreInfo is expected to be thread
aware (that is why it has Transaction Support).
DataStore throws: IllegalStateException - if this DataStoreInfo is disabled byconfiguration throws: NoSuchElementException - if no DataStoreInfo is found |
getId | public String getId()(Code) | | getId purpose.
Returns the dataStore's id.
String the id. |
getMetaData | public Object getMetaData(String key)(Code) | | Implement getMetaData.
Parameters: key - See Also: org.geotools.data.MetaData.getMetaData(java.lang.String) |
getNameSpace | public NameSpaceInfo getNameSpace()(Code) | | getNameSpace purpose.
Returns the namespace for this datastore.
NameSpaceInfo the namespace for this datastore. |
getNamesSpacePrefix | public String getNamesSpacePrefix()(Code) | | Access namespace id
DOCUMENT ME! |
getParams | public static Map getParams(Map m, String baseDir)(Code) | | Get Connect params.
This is used to smooth any relative path kind of issues for any file
URLS. This code should be expanded to deal with any other context
sensitve isses dataStores tend to have.
DOCUMENT ME! |
getTitle | public String getTitle()(Code) | | getTitle purpose.
Returns the dataStore's title.
String the title. |
isEnabled | public boolean isEnabled()(Code) | | isEnabled purpose.
Returns true when the data store is enabled.
true when the data store is enabled. |
putMetaData | public void putMetaData(String key, Object value)(Code) | | Implement putMetaData.
Parameters: key - Parameters: value - See Also: org.geotools.data.MetaData.putMetaData(java.lang.Stringjava.lang.Object) |
toDTO | Object toDTO()(Code) | | toDTO purpose.
This method is package visible only, and returns a reference to the
GeoServerDTO. This method is unsafe, and should only be used with
extreme caution.
DataStoreInfoDTO the generated object |
Fields inherited from org.vfny.geoserver.global.GlobalLayerSupertype | final protected static Logger LOGGER(Code)(Java Doc)
|
Methods inherited from org.vfny.geoserver.global.GlobalLayerSupertype | public static String get(Map map, String key)(Code)(Java Doc) public static File get(Map map, String key, File defaultFile)(Code)(Java Doc) public static String get(Map map, String key, String defaultValue)(Code)(Java Doc) public static List get(Map map, String key, List defaultList)(Code)(Java Doc) public static Map get(Map map, String key, Map defaultMap)(Code)(Java Doc) public static int get(Map map, String key, int defaultValue)(Code)(Java Doc) public static boolean get(Map map, String key, boolean defaultValue)(Code)(Java Doc) public static Charset get(Map map, String key, Charset defaultCharSet)(Code)(Java Doc) public static Level get(Map map, String key, Level defaultLevel)(Code)(Java Doc) public static URL get(Map map, String key, URL defaultUrl)(Code)(Java Doc) public static Class get(Map map, String key, Class defaultType)(Code)(Java Doc) protected String notNull(String s)(Code)(Java Doc) abstract Object toDTO()(Code)(Java Doc)
|
|
|