User: rt Date: 2008-06-06 14:10:16+0000 Modified: dba/dbaccess/source/ui/inc/RTableConnectionData.hxx
Log: 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 File Changes: Directory: /dba/dbaccess/source/ui/inc/ ======================================= File [changed]: RTableConnectionData.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/inc/RTableConnectionData.hxx?r1=1.8&r2=1.9 Delta lines: +3 -3 ------------------- --- RTableConnectionData.hxx 2008-04-10 15:12:53+0000 1.8 +++ RTableConnectionData.hxx 2008-06-06 14:10:14+0000 1.9 @@ -65,9 +65,9 @@ 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(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
