LibreOffice Module connectivity (master) 1
statementcomposer.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#ifndef INCLUDED_CONNECTIVITY_STATEMENTCOMPOSER_HXX
21#define INCLUDED_CONNECTIVITY_STATEMENTCOMPOSER_HXX
22
23#include <rtl/ustring.hxx>
24
25#include <memory>
27
28namespace com::sun::star::sdbc { class XConnection; }
29namespace com::sun::star::sdb { class XSingleSelectQueryComposer; }
30namespace com::sun::star::uno { template <typename > class Reference; }
31
32
33namespace dbtools
34{
35
36
37 //= StatementComposer
38
39 struct StatementComposer_Data;
43 {
44 ::std::unique_ptr< StatementComposer_Data > m_pData;
45
46 public:
53 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
54 const OUString& _rCommand,
55 const sal_Int32 _nCommandType,
56 const bool _bEscapeProcessing
57 );
58
60
68 void setDisposeComposer( bool _bDoDispose );
69
70 void setFilter( const OUString& _rFilter );
71 void setHavingClause( const OUString& _rHavingClause );
72 void setOrder( const OUString& _rOrder );
73
79 css::uno::Reference< css::sdb::XSingleSelectQueryComposer > const &
80 getComposer();
81
90 OUString
91 getQuery();
92
93 private:
97 };
98
99
100} // namespace dbtools
101
102
103#endif // INCLUDED_CONNECTIVITY_STATEMENTCOMPOSER_HXX
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
a class which is able to compose queries (SELECT statements) from a command and a command type
StatementComposer(const StatementComposer &)=delete
StatementComposer & operator=(const StatementComposer &)=delete
::std::unique_ptr< StatementComposer_Data > m_pData
StatementComposer(const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const OUString &_rCommand, const sal_Int32 _nCommandType, const bool _bEscapeProcessing)
constructs an instance
#define OOO_DLLPUBLIC_DBTOOLS
Reference