LibreOffice Module dbaccess (master) 1
alterparser.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
10#pragma once
11
12#include <rtl/ustring.hxx>
13
14namespace dbahsql
15{
16enum class AlterAction
17{
18 UNKNOWN,
21};
22
24{
25private:
26 OUString m_sStmt;
27 OUString m_sTableName;
28 OUString m_sColumnName;
30 sal_Int32 m_nIdentityParam = 0;
31
32protected:
34 OUString const& getColumnName() const { return m_sColumnName; }
35 sal_Int32 getIdentityParam() const { return m_nIdentityParam; }
36 OUString const& getStatement() const { return m_sStmt; }
37
38public:
39 virtual ~AlterStmtParser() = default;
40
44 OUString const& getTableName() const { return m_sTableName; }
45
46 void parse(const OUString& sSql);
47
48 virtual OUString compose() const = 0;
49};
50}
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AlterAction getActionType() const
Definition: alterparser.hxx:33
void parse(const OUString &sSql)
Definition: alterparser.cxx:27
OUString const & getTableName() const
Definition: alterparser.hxx:44
OUString const & getColumnName() const
Definition: alterparser.hxx:34
virtual ~AlterStmtParser()=default
OUString const & getStatement() const
Definition: alterparser.hxx:36
sal_Int32 getIdentityParam() const
Definition: alterparser.hxx:35
virtual OUString compose() const =0
UNKNOWN