Package org.geotools.jdbc
Class PrimaryKeyFinder
- Object
-
- PrimaryKeyFinder
-
- Direct Known Subclasses:
CompositePrimaryKeyFinder
,HeuristicPrimaryKeyFinder
,MetadataTablePrimaryKeyFinder
public abstract class PrimaryKeyFinder extends Object
- Author:
- Andrea Aime - OpenGeo
-
-
Constructor Summary
Constructors Constructor Description PrimaryKeyFinder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PrimaryKey
getPrimaryKey(JDBCDataStore store, String schema, String table, Connection cx)
Returns thePrimaryKey
, ornull
if a specific type could not be determined (the datastore will fall back onNullPrimaryKey
in that case.
-
-
-
Method Detail
-
getPrimaryKey
public abstract PrimaryKey getPrimaryKey(JDBCDataStore store, String schema, String table, Connection cx) throws SQLException
Returns thePrimaryKey
, ornull
if a specific type could not be determined (the datastore will fall back onNullPrimaryKey
in that case. It is advised to return- Throws:
SQLException
-
-