Class HeuristicPrimaryKeyFinder


  • public class HeuristicPrimaryKeyFinder
    extends PrimaryKeyFinder
    Looks up the primary key using the DatabaseMetaData for the specified table, looking both for primary keys and unique indexes. The sequence lookup is performed in conjuction with the sql dialect
    Author:
    Andrea Aime - OpenGeo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static Logger LOGGER  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PrimaryKey getPrimaryKey​(JDBCDataStore store, String databaseSchema, String tableName, Connection cx)
      Returns the PrimaryKey, or null if a specific type could not be determined (the datastore will fall back on NullPrimaryKey in that case.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
    • Constructor Detail

      • HeuristicPrimaryKeyFinder

        public HeuristicPrimaryKeyFinder()