org.geotools.data.jdbc.fidmapper
Interface FIDMapperFactory

All Known Implementing Classes:
DefaultFIDMapperFactory

public interface FIDMapperFactory

Provides a way to plug in user defined policies for primary key to feature ID mapping. In particular, implementors of this interface will provide a FIDMapper given the FeatureType name and the database metadata

Author:
aaime

Method Summary
 FIDMapper getMapper(FeatureType featureType)
          Returns a FIDMapper for the specified feature type.
 FIDMapper getMapper(java.lang.String catalog, java.lang.String schema, java.lang.String typeName, java.sql.Connection connection)
          Returns a FIDMapper for the specified table
 

Method Detail

getMapper

public FIDMapper getMapper(java.lang.String catalog,
                           java.lang.String schema,
                           java.lang.String typeName,
                           java.sql.Connection connection)
                    throws java.io.IOException
Returns a FIDMapper for the specified table

Parameters:
catalog -
schema -
typeName - DOCUMENT ME!
connection - DOCUMENT ME!
Returns:
Throws:
java.io.IOException

getMapper

public FIDMapper getMapper(FeatureType featureType)
Returns a FIDMapper for the specified feature type. This one is called when creating new tables if the user did not provide a FIDMapper

Parameters:
featureType -
Returns:


Copyright © GeoTools. All Rights Reserved.