org.apache.cayenne.map.naming
Class ExportedKey
java.lang.Object
   org.apache.cayenne.map.naming.ExportedKey
org.apache.cayenne.map.naming.ExportedKey
- public class ExportedKey 
- extends Object
ExportedKey is an representation of relationship between two tables 
 in database. It can be used for creating names for relationships
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ExportedKey
public ExportedKey(String pkTable,
                   String pkColumn,
                   String pkName,
                   String fkTable,
                   String fkColumn,
                   String fkName)
extractData
public static ExportedKey extractData(ResultSet rs)
                               throws SQLException
- Extracts data from a resultset pointing to a exported key to
 ExportedKey class instance
 
- 
- Parameters:
- rs- ResultSet pointing to a exported key, fetched using
 DataBaseMetaData.getExportedKeys(...)
- Throws:
- SQLException
 
getPKTableName
public String getPKTableName()
- 
- Returns:
- source table name
 
getFKTableName
public String getFKTableName()
- 
- Returns:
- destination table name
 
getPKColumnName
public String getPKColumnName()
- 
- Returns:
- source column name
 
getFKColumnName
public String getFKColumnName()
- 
- Returns:
- destination column name
 
getPKName
public String getPKName()
- 
- Returns:
- PK name
 
getFKName
public String getFKName()
- 
- Returns:
- FK name
 
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.