| org.geotools.data.jdbc.fidmapper.AutoIncrementFIDMapper org.geotools.data.postgis.fidmapper.PostGISAutoIncrementFIDMapper
PostGISAutoIncrementFIDMapper | public class PostGISAutoIncrementFIDMapper extends AutoIncrementFIDMapper implements FIDMapper(Code) | | Generate FID based on an auto increment function, the most stable approach for
use with editing.
author: Jesse Eichar, Refractions Research, Inc. author: Cory Horner, Refractions Research, Inc. |
can_usepg_get_serial_sequence | boolean can_usepg_get_serial_sequence(Code) | | Indicates that the pg_get_serial_sequence function exists, and works for this table
|
hasSerialSequence | boolean hasSerialSequence(Code) | | Flag to indicate when we can't find the table's sequence
|
sequenceName | String sequenceName(Code) | | The actual name of the sequence, if we have found it
|
PostGISAutoIncrementFIDMapper | public PostGISAutoIncrementFIDMapper(String tableSchemaName, String tableName, String colName, int dataType)(Code) | | |
PostGISAutoIncrementFIDMapper | public PostGISAutoIncrementFIDMapper(String tableName, String colName, int dataType, boolean returnFIDColumnsAsAttributes)(Code) | | |
retriveId | public String retriveId(Connection conn, Feature feature, Statement statement) throws IOException(Code) | | Attempts to determine the FID after it was inserted, using three techniques:
1. SELECT currval(pg_get_serial_sequence(...))
2. SELECT currval(sequence name) <-- using other methods to get name
3. SELECT fid ... ORDER BY fid DESC LIMIT 1
|
|
|