public class MongoDataStoreFactory extends AbstractDataStoreFactory
DataAccessFactory.Param| Modifier and Type | Field and Description |
|---|---|
static DataAccessFactory.Param |
DATASTORE_URI |
static DataAccessFactory.Param |
NAMESPACE |
static DataAccessFactory.Param |
SCHEMASTORE_URI |
| Constructor and Description |
|---|
MongoDataStoreFactory() |
| Modifier and Type | Method and Description |
|---|---|
MongoDataStore |
createDataStore(Map<String,Serializable> params)
Construct a live data source using the params specifed.
|
DataStore |
createNewDataStore(Map<String,Serializable> params) |
String |
getDescription()
Describe the nature of the datasource constructed by this factory.
|
String |
getDisplayName()
Default Implementation abuses the naming convention.
|
DataAccessFactory.Param[] |
getParametersInfo()
MetaData about the required Parameters (for createDataStore).
|
canProcess, getImplementationHints, getParameters, isAvailablepublic static final DataAccessFactory.Param NAMESPACE
public static final DataAccessFactory.Param DATASTORE_URI
public static final DataAccessFactory.Param SCHEMASTORE_URI
public String getDisplayName()
AbstractDataStoreFactoryWill return Foo for org.geotools.data.foo.FooFactory.
getDisplayName in interface DataAccessFactorygetDisplayName in class AbstractDataStoreFactorypublic String getDescription()
DataAccessFactoryA non localized description of this data store type.
public DataAccessFactory.Param[] getParametersInfo()
DataAccessFactoryInterpretation of FeatureDescriptor values:
This should be the same as:
Object params = factory.getParameters();
BeanInfo info = getBeanInfo( params );
return info.getPropertyDescriptors();
public MongoDataStore createDataStore(Map<String,Serializable> params) throws IOException
DataStoreFactorySpiYou can think of this as setting up a connection to the back end data source.
Magic Params: the following params are magic and are honoured by convention by the GeoServer and uDig application.
params - The full set of information needed to construct a live data store. Typical key
values for the map include: url - location of a resource, used by file reading
datasources. dbtype - the type of the database to connect to, e.g. postgis, mysqlIOException - if there were any problems setting up (creating or connecting) the
datasource.public DataStore createNewDataStore(Map<String,Serializable> params) throws IOException
IOExceptionCopyright © 1996–2019 Geotools. All rights reserved.