summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/inc/RTableConnectionData.hxx
diff options
context:
space:
mode:
authorOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-02-08 14:07:46 +0100
committerOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-02-08 14:07:46 +0100
commitd16fa93c41e0c55d1b8045891e69d2a9f86f8f9f (patch)
tree52c4b602dd78dfb03c4750f19396765835c84eba /dbaccess/source/ui/inc/RTableConnectionData.hxx
parent67264684972fee59009e9c81ef3a23c3cfc7e233 (diff)
dba33f: don't ask every driver for a tables keys and consolidate some code fragments
Diffstat (limited to 'dbaccess/source/ui/inc/RTableConnectionData.hxx')
-rw-r--r--dbaccess/source/ui/inc/RTableConnectionData.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/inc/RTableConnectionData.hxx b/dbaccess/source/ui/inc/RTableConnectionData.hxx
index 1cb3c75540bd..503ee2b7d10a 100644
--- a/dbaccess/source/ui/inc/RTableConnectionData.hxx
+++ b/dbaccess/source/ui/inc/RTableConnectionData.hxx
@@ -64,9 +64,9 @@ namespace dbaui
sal_Int32 m_nDeleteRules;
sal_Int32 m_nCardinality;
- 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); }
+ BOOL checkPrimaryKey(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& i_xTable,EConnectionSide _eEConnectionSide) const;
+ BOOL IsSourcePrimKey() const { return checkPrimaryKey(getReferencingTable()->getTable(),JTCS_FROM); }
+ BOOL IsDestPrimKey() const { return checkPrimaryKey(getReferencedTable()->getTable(),JTCS_TO); }
protected:
virtual OConnectionLineDataRef CreateLineDataObj();