Package org.geotools.jdbc
Class PrimaryKeyFinder
Object
PrimaryKeyFinder
- Direct Known Subclasses:
CompositePrimaryKeyFinder,HeuristicPrimaryKeyFinder,MetadataTablePrimaryKeyFinder
- Author:
- Andrea Aime - OpenGeo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PrimaryKeygetPrimaryKey(JDBCDataStore store, String schema, String table, Connection cx) Returns thePrimaryKey, ornullif a specific type could not be determined (the datastore will fall back onNullPrimaryKeyin that case.
-
Constructor Details
-
PrimaryKeyFinder
public PrimaryKeyFinder()
-
-
Method Details
-
getPrimaryKey
public abstract PrimaryKey getPrimaryKey(JDBCDataStore store, String schema, String table, Connection cx) throws SQLException Returns thePrimaryKey, ornullif a specific type could not be determined (the datastore will fall back onNullPrimaryKeyin that case. It is advised to return- Throws:
SQLException
-