Package org.geotools.jdbc
Class CompositePrimaryKeyFinder
- Object
-
- PrimaryKeyFinder
-
- CompositePrimaryKeyFinder
-
public class CompositePrimaryKeyFinder extends PrimaryKeyFinder
Executes a chain ofPrimaryKeyFinder
in the order they are defined- Author:
- Andrea Aime - OpenGeo
-
-
Constructor Summary
Constructors Constructor Description CompositePrimaryKeyFinder(PrimaryKeyFinder... finders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
CompositePrimaryKeyFinder
public CompositePrimaryKeyFinder(PrimaryKeyFinder... finders)
-
-
Method Detail
-
getPrimaryKey
public PrimaryKey getPrimaryKey(JDBCDataStore store, String schema, String table, Connection cx) throws SQLException
Description copied from class:PrimaryKeyFinder
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- Specified by:
getPrimaryKey
in classPrimaryKeyFinder
- Throws:
SQLException
-
-