android: Update app icon to new startcenter icon
[LibreOffice.git] / dbaccess / source / filter / hsqldb / alterparser.hxx
blob813ca7b0beffc49c9847d62875d0de92c1ae1bc8
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/.
8 */
10 #pragma once
12 #include <rtl/ustring.hxx>
14 namespace dbahsql
16 enum class AlterAction
18 UNKNOWN,
19 ADD_FOREIGN,
20 IDENTITY_RESTART
23 class AlterStmtParser
25 private:
26 OUString m_sStmt;
27 OUString m_sTableName;
28 OUString m_sColumnName;
29 AlterAction m_eAction = AlterAction::UNKNOWN;
30 sal_Int32 m_nIdentityParam = 0;
32 protected:
33 AlterAction getActionType() const { return m_eAction; }
34 OUString const& getColumnName() const { return m_sColumnName; }
35 sal_Int32 getIdentityParam() const { return m_nIdentityParam; }
36 OUString const& getStatement() const { return m_sStmt; }
38 public:
39 virtual ~AlterStmtParser() = default;
41 /**
42 * @return name of the table which is to be created.
44 OUString const& getTableName() const { return m_sTableName; }
46 void parse(const OUString& sSql);
48 virtual OUString compose() const = 0;
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */