summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-06-06 13:10:14 +0000
committerRüdiger Timm <rt@openoffice.org>2008-06-06 13:10:14 +0000
commit4768f4dbaf5ec0d07ff8e5d5efbfd8469302321f (patch)
treef35944302da2fce1dc3cae5417781ca5246a9820 /dbaccess
parent45b623c2f6c4b82066ee4de1a9ce16f1c7debcd6 (diff)
INTEGRATION: CWS dba30c (1.8.8); FILE MERGED
2008/05/05 11:13:36 oj 1.8.8.1: #i87131# collect keys only once, getKeys always refetch keys
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/inc/RTableConnectionData.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/inc/RTableConnectionData.hxx b/dbaccess/source/ui/inc/RTableConnectionData.hxx
index d2216f41a2bf..d5215e503734 100644
--- a/dbaccess/source/ui/inc/RTableConnectionData.hxx
+++ b/dbaccess/source/ui/inc/RTableConnectionData.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: RTableConnectionData.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
* This file is part of OpenOffice.org.
*
@@ -65,9 +65,9 @@ namespace dbaui
sal_Int32 m_nDeleteRules;
sal_Int32 m_nCardinality;
- BOOL checkPrimaryKey(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& _xTable,EConnectionSide _eEConnectionSide) const;
- BOOL IsSourcePrimKey() const { return checkPrimaryKey(getReferencingTable()->getTable(),JTCS_FROM); }
- BOOL IsDestPrimKey() const { return checkPrimaryKey(getReferencedTable()->getTable(),JTCS_TO); }
+ BOOL checkPrimaryKey(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& _xKeys,EConnectionSide _eEConnectionSide) const;
+ BOOL IsSourcePrimKey() const { return checkPrimaryKey(getReferencingTable()->getKeys(),JTCS_FROM); }
+ BOOL IsDestPrimKey() const { return checkPrimaryKey(getReferencedTable()->getKeys(),JTCS_TO); }
protected:
virtual OConnectionLineDataRef CreateLineDataObj();