org.geotools.jdbc
Class PrimaryKeyFinder

java.lang.Object
  extended by org.geotools.jdbc.PrimaryKeyFinder
Direct Known Subclasses:
CompositePrimaryKeyFinder, HeuristicPrimaryKeyFinder, MetadataTablePrimaryKeyFinder

public abstract class PrimaryKeyFinder
extends java.lang.Object

A strategy object used by the JDBCDataStore to determine the PrimaryKey for a certain FeatureType

Author:
Andrea Aime - OpenGeo

Constructor Summary
PrimaryKeyFinder()
           
 
Method Summary
abstract  PrimaryKey getPrimaryKey(JDBCDataStore store, java.lang.String schema, java.lang.String table, java.sql.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimaryKeyFinder

public PrimaryKeyFinder()
Method Detail

getPrimaryKey

public abstract PrimaryKey getPrimaryKey(JDBCDataStore store,
                                         java.lang.String schema,
                                         java.lang.String table,
                                         java.sql.Connection cx)
                                  throws java.sql.SQLException
Returns the PrimaryKey, or null if a specific type could not be determined (the datastore will fall back on NullPrimaryKey in that case. It is advised to return

Parameters:
schema -
table -
cx -
Returns:
Throws:
java.sql.SQLException


Copyright © 1996-2010 Geotools. All Rights Reserved.