org.geotools.data.jdbc.fidmapper
Interface FIDMapperFactory

All Known Implementing Classes:
DB2FIDMapperFactory, DefaultFIDMapperFactory, PostgisFIDMapperFactory

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
Module:

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

Method Detail

getMapper

FIDMapper getMapper(String catalog,
                    String schema,
                    String typeName,
                    Connection connection)
                    throws IOException
Returns a FIDMapper for the specified table

Parameters:
catalog -
schema -
typeName - DOCUMENT ME!
connection - DOCUMENT ME!
Throws:
IOException

getMapper

FIDMapper getMapper(SimpleFeatureType 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 -


Copyright © 1996-2009 Geotools. All Rights Reserved.