Version 4.3.0.0.beta1, tag libreoffice-4.3.0.0.beta1
[LibreOffice.git] / connectivity / source / drivers / mozab / MTable.cxx
blobe0939535352dc9db4553e12eea6c27763ade6b1f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "MTable.hxx"
21 #include "MTables.hxx"
22 #include "MColumns.hxx"
23 #include <com/sun/star/sdbc/XRow.hpp>
24 #include <com/sun/star/sdbc/XResultSet.hpp>
25 #include <com/sun/star/sdbcx/KeyType.hpp>
26 #include <com/sun/star/sdbc/KeyRule.hpp>
27 #include <cppuhelper/typeprovider.hxx>
28 #include <com/sun/star/lang/DisposedException.hpp>
29 #include <com/sun/star/sdbc/ColumnValue.hpp>
30 #include <comphelper/sequence.hxx>
31 #include <comphelper/extract.hxx>
32 #include <comphelper/types.hxx>
33 #include "connectivity/dbtools.hxx"
34 #include "connectivity/TKeys.hxx"
35 #include "connectivity/TIndexes.hxx"
36 #include "MCatalog.hxx"
39 using namespace ::comphelper;
40 using namespace connectivity::mozab;
41 using namespace connectivity;
42 using namespace ::com::sun::star::uno;
43 using namespace ::com::sun::star::beans;
44 using namespace ::com::sun::star::sdbcx;
45 using namespace ::com::sun::star::sdbc;
46 using namespace ::com::sun::star::container;
47 using namespace ::com::sun::star::lang;
50 OTable::OTable( sdbcx::OCollection* _pTables, OConnection* _pConnection,
51 const OUString& _Name, const OUString& _Type, const OUString& _Description )
52 :OTable_Base(_pTables, _pConnection, sal_True, _Name, _Type, _Description )
53 ,m_pConnection( _pConnection )
55 construct();
59 sdbcx::OCollection* OTable::createColumns( const TStringVector& _rNames )
61 return new OColumns( this, m_aMutex, _rNames );
65 sdbcx::OCollection* OTable::createKeys(const TStringVector& _rNames)
67 return new OKeysHelper( this, m_aMutex, _rNames );
71 sdbcx::OCollection* OTable::createIndexes(const TStringVector& _rNames)
73 return new OIndexesHelper( this, m_aMutex, _rNames );
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */