1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef CONNECTIVITY_USTRINGDESCRIPTION_IMPL_HXX
30 #define CONNECTIVITY_USTRINGDESCRIPTION_IMPL_HXX
32 #define IMPLEMENT_CONSTASCII_USTRING(name) \
33 UStringDescription name(connectivity::dbtools::get##name)
35 UStringDescription::UStringDescription(PVFN _fCharFkt
)
37 pZeroTerminatedName
= (*_fCharFkt
)();
39 const sal_Char
* pIter
= pZeroTerminatedName
;
40 while((*pIter
++) != '\0')
43 // -------------------------------------------------------------------------
44 UStringDescription::~UStringDescription()
48 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_QUERYTIMEOUT
);
49 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_MAXFIELDSIZE
);
50 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_MAXROWS
);
51 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CURSORNAME
);
52 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_RESULTSETCONCURRENCY
);
53 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_RESULTSETTYPE
);
54 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_FETCHDIRECTION
);
55 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_FETCHSIZE
);
56 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ESCAPEPROCESSING
);
57 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_USEBOOKMARKS
);
59 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_NAME
);
60 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_TYPE
);
61 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_TYPENAME
);
62 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_PRECISION
);
63 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_SCALE
);
64 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISNULLABLE
);
65 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISAUTOINCREMENT
);
66 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISROWVERSION
);
67 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DESCRIPTION
);
68 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DEFAULTVALUE
);
70 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_REFERENCEDTABLE
);
71 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_UPDATERULE
);
72 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DELETERULE
);
73 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CATALOG
);
74 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISUNIQUE
);
75 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISPRIMARYKEYINDEX
);
76 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISCLUSTERED
);
77 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISASCENDING
);
78 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_SCHEMANAME
);
79 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CATALOGNAME
);
80 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_COMMAND
);
81 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CHECKOPTION
);
82 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_PASSWORD
);
83 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_RELATEDCOLUMN
);
84 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISSEARCHABLE
);
86 IMPLEMENT_CONSTASCII_USTRING(STAT_INVALID_INDEX
);
88 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_FUNCTION
);
89 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_TABLENAME
);
90 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_REALNAME
);
91 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DBASEPRECISIONCHANGED
);
92 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISCURRENCY
);
94 IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISBOOKMARKABLE
);
95 //============================================================
97 //============================================================
98 IMPLEMENT_CONSTASCII_USTRING(ERRORMSG_SEQUENCE
);
99 IMPLEMENT_CONSTASCII_USTRING(SQLSTATE_SEQUENCE
);
100 IMPLEMENT_CONSTASCII_USTRING(SQLSTATE_GENERAL
);
101 //============================================================
103 //============================================================
104 IMPLEMENT_CONSTASCII_USTRING(STR_DELIMITER
);
106 #endif // CONNECTIVITY_USTRINGDESCRIPTION_IMPL_HXX
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */