1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <rtl/ustring.hxx>
16 enum class AlterAction
27 OUString m_sTableName
;
28 OUString m_sColumnName
;
29 AlterAction m_eAction
= AlterAction::UNKNOWN
;
30 sal_Int32 m_nIdentityParam
= 0;
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
; }
39 virtual ~AlterStmtParser() = default;
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: */