|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.SampleDataAccessFactory
public class SampleDataAccessFactory
Sample implementation of a DataAccessFactory
for testing.
Enabled with a connection parameter "dbtype" of "sample-data-access".
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.geotools.data.DataAccessFactory |
---|
DataAccessFactory.Param |
Field Summary | |
---|---|
static DataAccessFactory.Param |
DBTYPE
|
static java.lang.String |
DBTYPE_STRING
The "dbtype" connection string required to use this factory. |
static java.util.HashMap<java.lang.String,java.io.Serializable> |
PARAMS
The connection parameters required to use this factory. |
Constructor Summary | |
---|---|
SampleDataAccessFactory()
|
Method Summary | |
---|---|
boolean |
canProcess(java.util.Map<java.lang.String,java.io.Serializable> params)
Are these parameters for us? |
DataAccess<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> |
createDataStore(java.util.Map<java.lang.String,java.io.Serializable> params)
Create a SampleDataAccess . |
java.lang.String |
getDescription()
Need to implement this. |
java.lang.String |
getDisplayName()
Need to implement this. |
java.util.Map<java.awt.RenderingHints.Key,?> |
getImplementationHints()
Returns an empty list, containing no hints. |
DataAccessFactory.Param[] |
getParametersInfo()
Need to implement this. |
boolean |
isAvailable()
Returns true, as this implementation is always available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DBTYPE_STRING
public static final DataAccessFactory.Param DBTYPE
public static final java.util.HashMap<java.lang.String,java.io.Serializable> PARAMS
Constructor Detail |
---|
public SampleDataAccessFactory()
Method Detail |
---|
public boolean canProcess(java.util.Map<java.lang.String,java.io.Serializable> params)
canProcess
in interface DataAccessFactory
params
- The full set of information needed to construct a live
data source.
DataAccessFactory.canProcess(java.util.Map)
public DataAccess<? extends org.opengis.feature.type.FeatureType,? extends org.opengis.feature.Feature> createDataStore(java.util.Map<java.lang.String,java.io.Serializable> params) throws java.io.IOException
SampleDataAccess
.
createDataStore
in interface DataAccessFactory
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, mysql
java.io.IOException
- if there were any problems setting up (creating or
connecting) the datasource.DataAccessFactory.createDataStore(java.util.Map)
public java.lang.String getDescription()
getDescription
in interface DataAccessFactory
DataAccessFactory.getDescription()
public java.lang.String getDisplayName()
getDisplayName
in interface DataAccessFactory
DataAccessFactory.getDisplayName()
public DataAccessFactory.Param[] getParametersInfo()
getParametersInfo
in interface DataAccessFactory
DataAccessFactory.getParametersInfo()
public boolean isAvailable()
isAvailable
in interface DataAccessFactory
DataAccessFactory.isAvailable()
public java.util.Map<java.awt.RenderingHints.Key,?> getImplementationHints()
getImplementationHints
in interface Factory
Factory.getImplementationHints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |