|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.jdbc.PrimaryKeyFinder
org.geotools.jdbc.MetadataTablePrimaryKeyFinder
public class MetadataTablePrimaryKeyFinder
Looks up primary key information in a metadata table provided by the user
The table schema will contain:
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_TABLE
The default metadata table name |
protected static java.util.logging.Logger |
LOGGER
|
Constructor Summary | |
---|---|
MetadataTablePrimaryKeyFinder()
|
Method Summary | |
---|---|
PrimaryKey |
getPrimaryKey(JDBCDataStore store,
java.lang.String schema,
java.lang.String table,
java.sql.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. |
java.lang.String |
getTableName()
The metadata table name, defaults to gt2_pk_metadata_table if not specified |
java.lang.String |
getTableSchema()
The schema containing the table schema |
void |
setTableName(java.lang.String tableName)
|
void |
setTableSchema(java.lang.String tableSchema)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger LOGGER
public static final java.lang.String DEFAULT_TABLE
Constructor Detail |
---|
public MetadataTablePrimaryKeyFinder()
Method Detail |
---|
public java.lang.String getTableSchema()
public void setTableSchema(java.lang.String tableSchema)
public java.lang.String getTableName()
gt2_pk_metadata_table
if not specified
public void setTableName(java.lang.String tableName)
public PrimaryKey getPrimaryKey(JDBCDataStore store, java.lang.String schema, java.lang.String table, java.sql.Connection cx) throws java.sql.SQLException
PrimaryKeyFinder
PrimaryKey
, or null
if a specific type could not be determined
(the datastore will fall back on NullPrimaryKey
in that case. It is advised to return
getPrimaryKey
in class PrimaryKeyFinder
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |