public class ExportedKey extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
String |
fkCatalog |
String |
fkColumn
Name of destination column
|
String |
fkName
Name of foreign key (might be null)
|
String |
fkSchema |
String |
fkTable
Name of destination table
|
short |
keySeq |
String |
pkCatalog |
String |
pkColumn
Name of source column
|
String |
pkName
Name of primary key (might be null)
|
String |
pkSchema |
String |
pkTable
Name of source table
|
Constructor and Description |
---|
ExportedKey(String pkTable,
String pkColumn,
String pkName,
String fkTable,
String fkColumn,
String fkName,
short keySeq) |
ExportedKey(String pkCatalog,
String pkSchema,
String pkTable,
String pkColumn,
String pkName,
String fkCatalog,
String fkSchema,
String fkTable,
String fkColumn,
String fkName,
short keySeq) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object obj) |
static ExportedKey |
extractData(ResultSet rs)
Extracts data from a resultset pointing to a exported key to
ExportedKey class instance
|
String |
getFkCatalog() |
String |
getFKColumnName() |
String |
getFKName() |
String |
getFkSchema() |
String |
getFKTableName() |
short |
getKeySeq() |
String |
getPkCatalog() |
String |
getPKColumnName() |
String |
getPKName() |
String |
getPkSchema() |
String |
getPKTableName() |
String |
getStrKey() |
int |
hashCode() |
String |
toString() |
public final String pkCatalog
public final String pkSchema
public final String pkTable
public final String pkColumn
public final String fkCatalog
public final String fkSchema
public final String fkTable
public final String fkColumn
public final String fkName
public final String pkName
public final short keySeq
public ExportedKey(String pkTable, String pkColumn, String pkName, String fkTable, String fkColumn, String fkName, short keySeq)
public static ExportedKey extractData(ResultSet rs) throws SQLException
rs
- ResultSet pointing to a exported key, fetched using
DataBaseMetaData.getExportedKeys(...)SQLException
public String getPkCatalog()
public String getPkSchema()
public String getFkCatalog()
public String getFkSchema()
public String getPKTableName()
public String getFKTableName()
public String getPKColumnName()
public String getFKColumnName()
public String getPKName()
public String getFKName()
public short getKeySeq()
public int compareTo(Object obj)
compareTo
in interface Comparable
public String getStrKey()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.