public class MetadataTablePrimaryKeyFinder extends PrimaryKeyFinder
The table schema will contain:
DEFAULT_TABLE| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TABLE
The default metadata table name: "GT_PK_METADATA".
|
protected static Logger |
LOGGER |
| Constructor and Description |
|---|
MetadataTablePrimaryKeyFinder() |
| Modifier and Type | Method and Description |
|---|---|
PrimaryKey |
getPrimaryKey(JDBCDataStore store,
String schema,
String table,
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. |
String |
getTableName()
The metadata table name, defaults to
GT_PK_METADATA if not specified. |
String |
getTableSchema()
The schema containing the table schema
|
void |
setTableName(String tableName) |
void |
setTableSchema(String tableSchema) |
protected static final Logger LOGGER
public static final String DEFAULT_TABLE
public String getTableSchema()
public void setTableSchema(String tableSchema)
public String getTableName()
GT_PK_METADATA if not specified.DEFAULT_TABLEpublic void setTableName(String tableName)
public PrimaryKey getPrimaryKey(JDBCDataStore store, String schema, String table, 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.