diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-21 08:30:41 +0100 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-08-21 11:29:44 +0100 |
commit | 7358cf00822a916b1690ffd86822a28d3996e288 (patch) | |
tree | df4dc3327e5de83044ef9ac9483d2723e0a26dbb /connectivity/source/drivers/firebird/Keys.hxx | |
parent | a22f4351cc5db1be2278813aef78a7920452d2fe (diff) |
Add custom wrapper for OKeysHelper.firebird. (firebird-sdbc)
Keys are handled as a constraint in firebird so need different handling
when dropping to other dbs.
Change-Id: Ifc4929a1ee7477260b9a279487d44edbb525a17a
Diffstat (limited to 'connectivity/source/drivers/firebird/Keys.hxx')
-rw-r--r-- | connectivity/source/drivers/firebird/Keys.hxx | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/connectivity/source/drivers/firebird/Keys.hxx b/connectivity/source/drivers/firebird/Keys.hxx new file mode 100644 index 000000000000..a99edbdb2e1a --- /dev/null +++ b/connectivity/source/drivers/firebird/Keys.hxx @@ -0,0 +1,41 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef CONNECTIVITY_FIREBIRD_KEYS_HXX +#define CONNECTIVITY_FIREBIRD_KEYS_HXX + +#include <connectivity/TKeys.hxx> + +namespace connectivity +{ + + namespace firebird + { + + class Table; + + class Keys: public ::connectivity::OKeysHelper + { + private: + Table* m_pTable; + + public: + Keys(Table* pTable, + ::osl::Mutex& rMutex, + const ::connectivity::TStringVector& rNames); + + // OKeysHelper / XDrop + void dropObject(sal_Int32 nPosition, const ::rtl::OUString sName); + + }; + } +} +#endif // CONNECTIVITY_FIREBIRD_KEYS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |