LibreOffice Module dbaccess (master) 1
columndef.cxx
Go to the documentation of this file.
1
2/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3/*
4 * This file is part of the LibreOffice project.
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 *
10 * This file incorporates work covered by the following license notice:
11 *
12 * Licensed to the Apache Software Foundation (ASF) under one or more
13 * contributor license agreements. See the NOTICE file distributed
14 * with this work for additional information regarding copyright
15 * ownership. The ASF licenses this file to you under the Apache
16 * License, Version 2.0 (the "License"); you may not use this file
17 * except in compliance with the License. You may obtain a copy of
18 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 */
20
21#include "columndef.hxx"
22#include <com/sun/star/sdbc/DataType.hpp>
23#include <utility>
24
25namespace dbahsql
26{
27using namespace css::sdbc;
28
30 std::vector<sal_Int32>&& aParams, bool bPrimary,
31 sal_Int32 nAutoIncr, bool bNullable, bool bCaseInsensitive,
32 OUString sDefault)
33 : m_sName(std::move(sName))
34 , m_eType(eType)
35 , m_aParams(std::move(aParams))
36 , m_bPrimaryKey(bPrimary)
37 , m_nAutoIncrement(nAutoIncr)
38 , m_bNullable(bNullable)
39 , m_bCaseInsensitive(bCaseInsensitive)
40 , m_sDefaultValue(std::move(sDefault))
41{
42}
43}
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OptionalString sName
ColumnDefinition(OUString sName, sal_Int32 eType, std::vector< sal_Int32 > &&aParams, bool bPrimary=false, sal_Int32 nAutoIncr=-1, bool bNullable=true, bool bCaseInsensitive=false, OUString sDefault=OUString{})
Definition: columndef.cxx:29
OUString m_sName
const EnumerationType m_eType
OUString eType
Definition: generalpage.cxx:78