|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPrimaryKeyFinder
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 String |
DEFAULT_TABLE
The default metadata table name |
protected static Logger |
LOGGER
|
Constructor Summary | |
---|---|
MetadataTablePrimaryKeyFinder()
|
Method Summary | |
---|---|
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 gt2_pk_metadata_table if not specified |
String |
getTableSchema()
The schema containing the table schema |
void |
setTableName(String tableName)
|
void |
setTableSchema(String tableSchema)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
public static final String DEFAULT_TABLE
Constructor Detail |
---|
public MetadataTablePrimaryKeyFinder()
Method Detail |
---|
public String getTableSchema()
public void setTableSchema(String tableSchema)
public String getTableName()
gt2_pk_metadata_table
if not specified
public void setTableName(String tableName)
public PrimaryKey getPrimaryKey(JDBCDataStore store, String schema, String table, Connection cx) throws 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
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |