public class HeuristicPrimaryKeyFinder extends PrimaryKeyFinder
DatabaseMetaData for the specified table, looking both
for primary keys and unique indexes. The sequence lookup is performed in conjuction with the sql
dialect| Constructor and Description |
|---|
HeuristicPrimaryKeyFinder() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryKey |
getPrimaryKey(JDBCDataStore store,
String databaseSchema,
String tableName,
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. |
protected static final Logger LOGGER
public PrimaryKey getPrimaryKey(JDBCDataStore store, String databaseSchema, String tableName, Connection cx) throws SQLException
PrimaryKeyFinderPrimaryKey, or null if a specific type could not be determined
(the datastore will fall back on NullPrimaryKey in that case. It is advised to returngetPrimaryKey in class PrimaryKeyFinderSQLExceptionCopyright © 1996–2019 Geotools. All rights reserved.