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