org.jpox.store.rdbms.typeinfo
Class ExportedKeyInfo

java.lang.Object
  extended byorg.jpox.store.rdbms.typeinfo.ForeignKeyInfo
      extended byorg.jpox.store.rdbms.typeinfo.ExportedKeyInfo

public class ExportedKeyInfo
extends ForeignKeyInfo

Represents the metadata of a specific exported key column. This class is basically a data structure that makes accessing the JDBC exported key metadata easier. Each of the items returned by DatabaseMetaData.getExportedKeys(String,String,String) is represented by a public field in this class. Subclasses of ExportedKeyInfo can be created on a per-DBMS basis to supply missing metadata or correct faulty metadata obtained from that DBMS's JDBC driver(s).

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class org.jpox.store.rdbms.typeinfo.ForeignKeyInfo
deferrability, deleteRule, fkColumnName, fkName, fkTableCat, fkTableName, fkTableSchem, keySeq, pkColumnName, pkName, pkTableCat, pkTableName, pkTableSchem, updateRule
 
Constructor Summary
ExportedKeyInfo(java.sql.ResultSet rs)
          Constructs a exported key information object from the current row of the given result set.
 
Methods inherited from class org.jpox.store.rdbms.typeinfo.ForeignKeyInfo
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExportedKeyInfo

public ExportedKeyInfo(java.sql.ResultSet rs)
                throws javax.jdo.JDOFatalDataStoreException
Constructs a exported key information object from the current row of the given result set. The ResultSet object passed must have been obtained from a call to java.sql.DatabaseMetaData.getExportedKeys().

This method only retrieves the values from the current row; the caller is required to advance to the next row with ResultSet.next().

Parameters:
rs - The result set returned from java.sql.DatabaseMetaData.getImportedKeys() or java.sql.DatabaseMetaData.getExportedKeys().
Throws:
javax.jdo.JDOFatalDataStoreException - if a column of foreign key information could not be retrieved from the result set.


Copyright © -2007 . All Rights Reserved.