org.geotools.data.postgis.fidmapper
Interface VersionedFIDMapper

All Superinterfaces:
FIDMapper, java.io.Serializable

public interface VersionedFIDMapper
extends FIDMapper

Fid mappers used in versioned data store.
They do present the usual face to the internal, wrapped data store, but know how to remove revisions from the fid and how to handle cases where the key does not need to be generated because the feature is not really new, just a new version of the old one.

Since:
2.4
Author:
aaime

Method Summary
 java.lang.String createVersionedFid(java.lang.String extenalFID, long revision)
           
 java.lang.String getUnversionedFid(java.lang.String versionedFID)
          Given the FID exposed by the internal data store, build a representation that does not have the
 java.lang.Object[] getUnversionedPKAttributes(java.lang.String FID)
          Given the external FID, returns the primary key column values (besides revision, of course)
 
Methods inherited from interface org.geotools.data.jdbc.fidmapper.FIDMapper
createID, getColumnCount, getColumnDecimalDigits, getColumnName, getColumnSize, getColumnType, getID, getPKAttributes, hasAutoIncrementColumns, initSupportStructures, isAutoIncrement, isValid, isVolatile, returnFIDColumnsAsAttributes
 

Method Detail

getUnversionedFid

java.lang.String getUnversionedFid(java.lang.String versionedFID)
Given the FID exposed by the internal data store, build a representation that does not have the

Parameters:
versionedFID -
Returns:

getUnversionedPKAttributes

java.lang.Object[] getUnversionedPKAttributes(java.lang.String FID)
                                              throws java.io.IOException
Given the external FID, returns the primary key column values (besides revision, of course)

Parameters:
FID -
Returns:
Throws:
java.io.IOException

createVersionedFid

java.lang.String createVersionedFid(java.lang.String extenalFID,
                                    long revision)


Copyright © 1996-2010 Geotools. All Rights Reserved.