| java.lang.Object org.geotools.data.geomedia.GeoMediaDataStoreFactory
GeoMediaDataStoreFactory | public class GeoMediaDataStoreFactory implements DataStoreFactorySpi(Code) | | Creates a GeoMediaDataStoreFactoru based on the correct params.
This factory should be registered in the META-INF/ folder, under services/ in the DataStoreFactorySpi file.
author: Jody Garnett, Refractions Research author: Sean Geoghegan, Defence Science and Technology Organisation |
DBDRIVER | final static Param DBDRIVER(Code) | | |
DBKEY | final static Param DBKEY(Code) | | |
DBTYPE | final static Param DBTYPE(Code) | | |
PARAM_INFO | final static Param[] PARAM_INFO(Code) | | |
PASSWD | final static Param PASSWD(Code) | | |
USER | final static Param USER(Code) | | |
GeoMediaDataStoreFactory | public GeoMediaDataStoreFactory()(Code) | | Creates a new instance of GeoMediaDataStoreFactory
|
canProcess | public boolean canProcess(Map params)(Code) | | Determines whether DataStore created by this factory can process the parameters.
Required Parameters are:
-
dbtype - must equal "oracle"
-
host
-
port
-
user
-
passwd
-
instance
There are no defaults since each parameter must be explicitly defined by the user, or another
DataSourceFactorySpi should be used. This behaviour is defined in the DataStoreFactorySpi contract.
Parameters: params - The parameter to check. True if all the required parameters are supplied. |
createDataStore | public DataStore createDataStore(Map params) throws IOException(Code) | | Construct a postgis data store using the params.
Parameters: params - The full set of information needed to construct a live data source. Should have dbtype equal togeomedia, as well as host, user, passwd, database, dbkey. The created DataSource, this may be null if the required resource was not found or if insufficentparameters were given. Note that canProcess() should have returned false if the problem is to do withinsufficent parameters. throws: IOException - DOCUMENT ME! throws: DataSourceException - Thrown if there were any problems creating or connecting the datasource. |
getDescription | public String getDescription()(Code) | | Describe the nature of the datastore constructed by this factory.
A human readable description that is suitable for inclusion in a list of available datasources. |
getImplementationHints | public Map getImplementationHints()(Code) | | Returns the implementation hints. The default implementation returns en empty map.
|
getParametersInfo | public Param[] getParametersInfo()(Code) | | Describe parameters.
See Also: org.geolbs.data.DataStoreFactorySpi.getParametersInfo |
isAvailable | public boolean isAvailable()(Code) | | Test to see if this datastore is available, if it has all the
appropriate libraries to construct a datastore. This datastore just
returns true for now. This method is used for gui apps, so as to
not advertise data store capabilities they don't actually have.
true if and only if this factory is available to createDataStores. |
|
|