Geomajas, Geomajas layer model using Geotools 1.9.0

org.geomajas.layer.geotools.postgis
Class NonTypedPostgisFidMapperFactory

java.lang.Object
  extended by org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory
      extended by org.geomajas.layer.geotools.postgis.NonTypedPostgisFidMapperFactory
All Implemented Interfaces:
FIDMapperFactory

public class NonTypedPostgisFidMapperFactory
extends DefaultFIDMapperFactory

Feature id mapper factory for postgis.

Author:
Jan De Moerloose, Pieter De Graef

Constructor Summary
NonTypedPostgisFidMapperFactory()
          Create a NonTypedPostgisFidMapperFactory.
NonTypedPostgisFidMapperFactory(boolean returnFidColumnsAsAttributes)
          Create a NonTypedPostgisFidMapperFactory.
 
Method Summary
 FIDMapper getMapper(String catalog, String schema, String tableName, Connection connection)
          Get the appropriate FIDMapper for the specified table.
 
Methods inherited from class org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory
getMapper, isReturningTypedFIDMapper, setReturningTypedFIDMapper
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonTypedPostgisFidMapperFactory

public NonTypedPostgisFidMapperFactory()
Create a NonTypedPostgisFidMapperFactory.


NonTypedPostgisFidMapperFactory

public NonTypedPostgisFidMapperFactory(boolean returnFidColumnsAsAttributes)
Create a NonTypedPostgisFidMapperFactory.

Parameters:
returnFidColumnsAsAttributes - return fid columns as attributes?
Method Detail

getMapper

public FIDMapper getMapper(String catalog,
                           String schema,
                           String tableName,
                           Connection connection)
                    throws IOException
Get the appropriate FIDMapper for the specified table. Overridden to return a non-typed mapper !!!!

Specified by:
getMapper in interface FIDMapperFactory
Overrides:
getMapper in class DefaultFIDMapperFactory
Parameters:
catalog - catalog
schema - schema
tableName - table name
connection - the active database connection to get table key information
Returns:
the appropriate FIDMapper for the specified table.
Throws:
IOException - if any error occurs.

Geomajas, Geomajas layer model using Geotools 1.9.0

Copyright © 2012 Geosparc. All Rights Reserved.