org.geotools.jdbc
Class PrimaryKeyFinder
Object
PrimaryKeyFinder
- Direct Known Subclasses:
- CompositePrimaryKeyFinder, HeuristicPrimaryKeyFinder, MetadataTablePrimaryKeyFinder
public abstract class PrimaryKeyFinder
- extends Object
A strategy object used by the JDBCDataStore
to determine the PrimaryKey
for a
certain FeatureType
- Author:
- Andrea Aime - OpenGeo
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimaryKeyFinder
public PrimaryKeyFinder()
getPrimaryKey
public abstract PrimaryKey getPrimaryKey(JDBCDataStore store,
String schema,
String table,
Connection cx)
throws 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:
SQLException
Copyright © 1996-2010 Geotools. All Rights Reserved.