org.n52.connectors.core
Class AbstractFeatureConnector

java.lang.Object
  extended by org.n52.connectors.core.AbstractConnector
      extended by org.n52.connectors.core.AbstractFeatureConnector
All Implemented Interfaces:
org.geotools.data.DataStore, Connector

public abstract class AbstractFeatureConnector
extends AbstractConnector
implements org.geotools.data.DataStore


Constructor Summary
AbstractFeatureConnector()
           
 
Method Summary
 void createSchema(org.geotools.feature.FeatureType type)
           
 org.geotools.data.FeatureReader getFeatureReader(org.geotools.data.Query query, org.geotools.data.Transaction transaction)
           
 org.geotools.data.FeatureSource getFeatureSource(java.lang.String s)
           
 org.geotools.data.FeatureWriter getFeatureWriter(java.lang.String s, org.geotools.filter.Filter filter, org.geotools.data.Transaction transaction)
           
 org.geotools.data.FeatureWriter getFeatureWriter(java.lang.String s, org.geotools.data.Transaction transaction)
           
 org.geotools.data.FeatureWriter getFeatureWriterAppend(java.lang.String s, org.geotools.data.Transaction transaction)
           
 org.geotools.data.LockingManager getLockingManager()
           
abstract  org.geotools.metadata.iso.MetadataEntity getMetadata(java.lang.String s)
           
 org.geotools.feature.FeatureType getSchema(java.lang.String s)
           
 java.lang.String[] getTypeNames()
           
 org.geotools.data.FeatureSource getView(org.geotools.data.Query query)
           
abstract  boolean isSupported(ConnectorRequest request)
          Checks if a connector fullfills the conditions set in the request.
 void updateSchema(java.lang.String s, org.geotools.feature.FeatureType type)
           
 
Methods inherited from class org.n52.connectors.core.AbstractConnector
factorySideInitialization, getName, registrySideInitialization
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFeatureConnector

public AbstractFeatureConnector()
Method Detail

getMetadata

public abstract org.geotools.metadata.iso.MetadataEntity getMetadata(java.lang.String s)
Specified by:
getMetadata in interface Connector
Parameters:
s - a metadata identifier based on ISO 19115. see..
Returns:
returns a metadataentity based on geotools (ISO 19115)

isSupported

public abstract boolean isSupported(ConnectorRequest request)
Description copied from interface: Connector
Checks if a connector fullfills the conditions set in the request.

Specified by:
isSupported in interface Connector
Specified by:
isSupported in class AbstractConnector
Parameters:
request - contains all information that is needed to find a suitable connector
Returns:
true if the information in the request matches with the properties of this connector

createSchema

public void createSchema(org.geotools.feature.FeatureType type)
                  throws java.io.IOException
Specified by:
createSchema in interface org.geotools.data.DataStore
Throws:
java.io.IOException

updateSchema

public void updateSchema(java.lang.String s,
                         org.geotools.feature.FeatureType type)
                  throws java.io.IOException
Specified by:
updateSchema in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getTypeNames

public java.lang.String[] getTypeNames()
                                throws java.io.IOException
Specified by:
getTypeNames in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getSchema

public org.geotools.feature.FeatureType getSchema(java.lang.String s)
                                           throws java.io.IOException
Specified by:
getSchema in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getView

public org.geotools.data.FeatureSource getView(org.geotools.data.Query query)
                                        throws java.io.IOException,
                                               org.geotools.feature.SchemaException
Specified by:
getView in interface org.geotools.data.DataStore
Throws:
java.io.IOException
org.geotools.feature.SchemaException

getFeatureSource

public org.geotools.data.FeatureSource getFeatureSource(java.lang.String s)
                                                 throws java.io.IOException
Specified by:
getFeatureSource in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getFeatureReader

public org.geotools.data.FeatureReader getFeatureReader(org.geotools.data.Query query,
                                                        org.geotools.data.Transaction transaction)
                                                 throws java.io.IOException
Specified by:
getFeatureReader in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getFeatureWriter

public org.geotools.data.FeatureWriter getFeatureWriter(java.lang.String s,
                                                        org.geotools.filter.Filter filter,
                                                        org.geotools.data.Transaction transaction)
                                                 throws java.io.IOException
Specified by:
getFeatureWriter in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getFeatureWriter

public org.geotools.data.FeatureWriter getFeatureWriter(java.lang.String s,
                                                        org.geotools.data.Transaction transaction)
                                                 throws java.io.IOException
Specified by:
getFeatureWriter in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getFeatureWriterAppend

public org.geotools.data.FeatureWriter getFeatureWriterAppend(java.lang.String s,
                                                              org.geotools.data.Transaction transaction)
                                                       throws java.io.IOException
Specified by:
getFeatureWriterAppend in interface org.geotools.data.DataStore
Throws:
java.io.IOException

getLockingManager

public org.geotools.data.LockingManager getLockingManager()
Specified by:
getLockingManager in interface org.geotools.data.DataStore