LibreOffice Module connectivity (master) 1
propertyids.cxx
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
21#include <propertyids.hxx>
22
23namespace dbtools
24{
26 {
27 // MSVC complains about ambiguous operator=
28 m_aPropertyMap.insert({
29 {PROPERTY_ID_QUERYTIMEOUT, "QueryTimeOut"},
30 {PROPERTY_ID_MAXFIELDSIZE, "MaxFieldSize"},
31 {PROPERTY_ID_MAXROWS, "MaxRows"},
32 {PROPERTY_ID_CURSORNAME, "CursorName"},
33 {PROPERTY_ID_RESULTSETCONCURRENCY, "ResultSetConcurrency"},
34
35 {PROPERTY_ID_RESULTSETTYPE, "ResultSetType"},
36 {PROPERTY_ID_FETCHDIRECTION, "FetchDirection"},
37 {PROPERTY_ID_FETCHSIZE, "FetchSize"},
38 {PROPERTY_ID_ESCAPEPROCESSING, "EscapeProcessing"},
39 {PROPERTY_ID_USEBOOKMARKS, "UseBookmarks"},
40 // Column
41 {PROPERTY_ID_NAME, "Name"},
42 {PROPERTY_ID_TYPE, "Type"},
43 {PROPERTY_ID_TYPENAME, "TypeName"},
44 {PROPERTY_ID_PRECISION, "Precision"},
45 {PROPERTY_ID_SCALE, "Scale"},
46 {PROPERTY_ID_ISNULLABLE, "IsNullable"},
47 {PROPERTY_ID_ISAUTOINCREMENT, "IsAutoIncrement"},
48 {PROPERTY_ID_ISROWVERSION, "IsRowVersion"},
49 {PROPERTY_ID_DESCRIPTION, "Description"},
50 {PROPERTY_ID_DEFAULTVALUE, "DefaultValue"},
51
52 {PROPERTY_ID_REFERENCEDTABLE, "ReferencedTable"},
53 {PROPERTY_ID_UPDATERULE, "UpdateRule"},
54 {PROPERTY_ID_DELETERULE, "DeleteRule"},
55 {PROPERTY_ID_CATALOG, "Catalog"},
56 {PROPERTY_ID_ISUNIQUE, "IsUnique"},
57 {PROPERTY_ID_ISPRIMARYKEYINDEX, "IsPrimaryKeyIndex"},
58 {PROPERTY_ID_ISCLUSTERED, "IsClustered"},
59 {PROPERTY_ID_ISASCENDING, "IsAscending"},
60 {PROPERTY_ID_SCHEMANAME, "SchemaName"},
61 {PROPERTY_ID_CATALOGNAME, "CatalogName"},
62
63 {PROPERTY_ID_COMMAND, "Command"},
64 {PROPERTY_ID_CHECKOPTION, "CheckOption"},
65 {PROPERTY_ID_PASSWORD, "Password"},
66 {PROPERTY_ID_RELATEDCOLUMN, "RelatedColumn"},
67
68 {PROPERTY_ID_FUNCTION, "Function"},
69 {PROPERTY_ID_AGGREGATEFUNCTION, "AggregateFunction"},
70 {PROPERTY_ID_TABLENAME, "TableName"},
71 {PROPERTY_ID_REALNAME, "RealName"},
72 {PROPERTY_ID_DBASEPRECISIONCHANGED,"DbasePrecisionChanged"},
73 {PROPERTY_ID_ISCURRENCY, "IsCurrency"},
74 {PROPERTY_ID_ISBOOKMARKABLE, "IsBookmarkable"},
75 {PROPERTY_ID_HY010, "HY010"}, // error messages
77 {PROPERTY_ID_FORMATKEY, "FormatKey"},
78 {PROPERTY_ID_LOCALE, "Locale"},
79 {PROPERTY_ID_AUTOINCREMENTCREATION, "AutoIncrementCreation"},
80 {PROPERTY_ID_PRIVILEGES, "Privileges"},
81 {PROPERTY_ID_HAVINGCLAUSE, "HavingClause"},
82 {PROPERTY_ID_ISSIGNED, "IsSigned"},
83 {PROPERTY_ID_ISSEARCHABLE, "IsSearchable"},
84 {PROPERTY_ID_LABEL, "Label"},
85 {PROPERTY_ID_APPLYFILTER, "ApplyFilter"},
86 {PROPERTY_ID_FILTER, "Filter"},
87 {PROPERTY_ID_MASTERFIELDS, "MasterFields"},
88 {PROPERTY_ID_DETAILFIELDS, "DetailFields"},
89 {PROPERTY_ID_FIELDTYPE, "FieldType"},
90 {PROPERTY_ID_VALUE, "Value"},
91 {PROPERTY_ID_ACTIVE_CONNECTION, "ActiveConnection"},
92 } );
93 }
94
95 const OUString& OPropertyMap::getNameByIndex(sal_Int32 _nIndex) const
96 {
97 std::map<sal_Int32, OUString>::const_iterator aIter = m_aPropertyMap.find(_nIndex);
98 return aIter->second;
99 }
100}
101
102
103/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::map< sal_Int32, OUString > m_aPropertyMap
Definition: propertyids.hxx:32
const OUString & getNameByIndex(sal_Int32 _nIndex) const
Definition: propertyids.cxx:95
#define PROPERTY_ID_VALUE
#define PROPERTY_ID_ISSIGNED
Definition: propertyids.hxx:97
#define PROPERTY_ID_FIELDTYPE
#define PROPERTY_ID_NAME
Definition: propertyids.hxx:50
#define PROPERTY_ID_HAVINGCLAUSE
Definition: propertyids.hxx:95
#define PROPERTY_ID_CATALOG
Definition: propertyids.hxx:64
#define PROPERTY_ID_ACTIVE_CONNECTION
#define PROPERTY_ID_FORMATKEY
Definition: propertyids.hxx:88
#define PROPERTY_ID_ISBOOKMARKABLE
Definition: propertyids.hxx:82
#define PROPERTY_ID_RESULTSETTYPE
Definition: propertyids.hxx:44
#define PROPERTY_ID_REFERENCEDTABLE
Definition: propertyids.hxx:61
#define PROPERTY_ID_AUTOINCREMENTCREATION
Definition: propertyids.hxx:92
#define PROPERTY_ID_TYPE
Definition: propertyids.hxx:51
#define PROPERTY_ID_QUERYTIMEOUT
Definition: propertyids.hxx:39
#define PROPERTY_ID_TABLENAME
Definition: propertyids.hxx:78
#define PROPERTY_ID_ISUNIQUE
Definition: propertyids.hxx:65
#define PROPERTY_ID_DESCRIPTION
Definition: propertyids.hxx:58
#define PROPERTY_ID_PRIVILEGES
Definition: propertyids.hxx:94
#define PROPERTY_ID_USEBOOKMARKS
Definition: propertyids.hxx:48
#define PROPERTY_ID_LOCALE
Definition: propertyids.hxx:89
#define PROPERTY_ID_MASTERFIELDS
#define PROPERTY_ID_DBASEPRECISIONCHANGED
Definition: propertyids.hxx:80
#define PROPERTY_ID_AGGREGATEFUNCTION
Definition: propertyids.hxx:98
#define PROPERTY_ID_ISPRIMARYKEYINDEX
Definition: propertyids.hxx:66
#define PROPERTY_ID_CATALOGNAME
Definition: propertyids.hxx:70
#define PROPERTY_ID_PASSWORD
Definition: propertyids.hxx:74
#define PROPERTY_ID_ISROWVERSION
Definition: propertyids.hxx:57
#define PROPERTY_ID_CURSORNAME
Definition: propertyids.hxx:42
#define PROPERTY_ID_CHECKOPTION
Definition: propertyids.hxx:73
#define PROPERTY_ID_DETAILFIELDS
#define PROPERTY_ID_FILTER
#define PROPERTY_ID_ISSEARCHABLE
Definition: propertyids.hxx:99
#define PROPERTY_ID_RESULTSETCONCURRENCY
Definition: propertyids.hxx:43
#define PROPERTY_ID_MAXFIELDSIZE
Definition: propertyids.hxx:40
#define PROPERTY_ID_ISASCENDING
Definition: propertyids.hxx:68
#define PROPERTY_ID_ISNULLABLE
Definition: propertyids.hxx:55
#define PROPERTY_ID_FUNCTION
Definition: propertyids.hxx:77
#define PROPERTY_ID_RELATEDCOLUMN
Definition: propertyids.hxx:75
#define PROPERTY_ID_COMMAND
Definition: propertyids.hxx:72
#define PROPERTY_ID_HY010
Definition: propertyids.hxx:85
#define PROPERTY_ID_PRECISION
Definition: propertyids.hxx:53
#define PROPERTY_ID_LABEL
Definition: propertyids.hxx:86
#define PROPERTY_ID_SCHEMANAME
Definition: propertyids.hxx:69
#define PROPERTY_ID_ISAUTOINCREMENT
Definition: propertyids.hxx:56
#define PROPERTY_ID_ISCURRENCY
Definition: propertyids.hxx:81
#define PROPERTY_ID_FETCHSIZE
Definition: propertyids.hxx:46
#define PROPERTY_ID_TYPENAME
Definition: propertyids.hxx:52
#define PROPERTY_ID_DELETERULE
Definition: propertyids.hxx:63
#define PROPERTY_ID_ISCLUSTERED
Definition: propertyids.hxx:67
#define PROPERTY_ID_UPDATERULE
Definition: propertyids.hxx:62
#define PROPERTY_ID_DEFAULTVALUE
Definition: propertyids.hxx:59
#define PROPERTY_ID_REALNAME
Definition: propertyids.hxx:79
#define PROPERTY_ID_MAXROWS
Definition: propertyids.hxx:41
#define PROPERTY_ID_ESCAPEPROCESSING
Definition: propertyids.hxx:47
#define PROPERTY_ID_FETCHDIRECTION
Definition: propertyids.hxx:45
#define PROPERTY_ID_APPLYFILTER
#define PROPERTY_ID_SCALE
Definition: propertyids.hxx:54
#define PROPERTY_ID_DELIMITER
Definition: propertyids.hxx:87