| java.lang.Object org.geotools.data.hsql.HsqlDataStoreFactory
HsqlDataStoreFactory | public class HsqlDataStoreFactory implements DataStoreFactorySpi(Code) | | Creates a HsqlDataStoreFactory based on the correct params.
This factory should be registered in the META-INF/ folder, under services/
in the DataStoreFactorySpi file.
author: Amr Alam, Refractions Research |
Method Summary | |
public boolean | canProcess(Map params) Checks to see if all the hsql params are there.
Should have:
-
dbtype: equal to hsql
-
user
-
passwd
-
dbfilename
Parameters: params - Set of parameters needed for a hsql data store. | public DataStore | createDataStore(Map params) Construct a hsql data store using the params.
Parameters: params - The full set of information needed to construct a livedata source. | public DataStore | createNewDataStore(Map params) | public String | getDescription() Describe the nature of the datasource constructed by this factory.
A human readable description that is suitable for inclusion in alist of available datasources. | public String | getDisplayName() | public Map | getImplementationHints() Returns the implementation hints. | public Param[] | getParametersInfo() Describe parameters. | public boolean | isAvailable() Test to see if this datastore is available, if it has all the
appropriate libraries to construct a datastore. |
DATABASE | final public static Param DATABASE(Code) | | Param, package visibiity for JUnit tests
|
DBFILENAME | final public static Param DBFILENAME(Code) | | Param, package visibiity for JUnit tests
|
DBTYPE | final public static Param DBTYPE(Code) | | Param, package visibiity for JUnit tests
|
HOST | final public static Param HOST(Code) | | Param, package visibiity for JUnit tests
|
NAMESPACE | final public static Param NAMESPACE(Code) | | Param, package visibiity for JUnit tests
|
PASSWD | final public static Param PASSWD(Code) | | Param, package visibiity for JUnit tests
|
PORT | final public static Param PORT(Code) | | Param, package visibiity for JUnit tests
|
USER | final public static Param USER(Code) | | Param, package visibiity for JUnit tests
|
arrayParameters | final public static Param[] arrayParameters(Code) | | Array with all of the params
|
HsqlDataStoreFactory | public HsqlDataStoreFactory()(Code) | | Creates a new instance of HsqlDataStoreFactory
|
canProcess | public boolean canProcess(Map params)(Code) | | Checks to see if all the hsql params are there.
Should have:
-
dbtype: equal to hsql
-
user
-
passwd
-
dbfilename
Parameters: params - Set of parameters needed for a hsql data store. true if dbtype equals hsql, and contains keys forhost, user, passwd, and database. |
createDataStore | public DataStore createDataStore(Map params) throws IOException(Code) | | Construct a hsql data store using the params.
Parameters: params - The full set of information needed to construct a livedata source. Should have dbtype equal to 'hsql', as well asdbfilename, user, passwd, and namespace (optional). The created DataSource, this may be null if the requiredresource was not found or if insufficent parameters were given.Note that canProcess() should have returned false if theproblem is to do with insuficent parameters. throws: IOException - See DataSourceException |
getDescription | public String getDescription()(Code) | | Describe the nature of the datasource constructed by this factory.
A human readable description that is suitable for inclusion in alist of available datasources. Currently uses the string "HSQLDatabase" |
getDisplayName | public String getDisplayName()(Code) | | DOCUMENT ME!
"HSQL" |
getImplementationHints | public Map getImplementationHints()(Code) | | Returns the implementation hints. The default implementation returns enempty map. |
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. |
|
|