1*caf5cd79SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*caf5cd79SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*caf5cd79SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*caf5cd79SAndrew Rist  * distributed with this work for additional information
6*caf5cd79SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*caf5cd79SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*caf5cd79SAndrew Rist  * "License"); you may not use this file except in compliance
9*caf5cd79SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*caf5cd79SAndrew Rist  *
11*caf5cd79SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*caf5cd79SAndrew Rist  *
13*caf5cd79SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*caf5cd79SAndrew Rist  * software distributed under the License is distributed on an
15*caf5cd79SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*caf5cd79SAndrew Rist  * KIND, either express or implied.  See the License for the
17*caf5cd79SAndrew Rist  * specific language governing permissions and limitations
18*caf5cd79SAndrew Rist  * under the License.
19*caf5cd79SAndrew Rist  *
20*caf5cd79SAndrew Rist  *************************************************************/
21*caf5cd79SAndrew Rist 
22*caf5cd79SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef CONNECTIVITY_USTRINGDESCRIPTION_IMPL_HXX
25cdf0e10cSrcweir #define CONNECTIVITY_USTRINGDESCRIPTION_IMPL_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #define IMPLEMENT_CONSTASCII_USTRING(name)	\
28cdf0e10cSrcweir UStringDescription name(connectivity::dbtools::get##name)
29cdf0e10cSrcweir 
UStringDescription(PVFN _fCharFkt)30cdf0e10cSrcweir UStringDescription::UStringDescription(PVFN _fCharFkt)
31cdf0e10cSrcweir {
32cdf0e10cSrcweir 	pZeroTerminatedName = (*_fCharFkt)();
33cdf0e10cSrcweir 	nLength = 0;
34cdf0e10cSrcweir 	const sal_Char*	pIter = pZeroTerminatedName;
35cdf0e10cSrcweir 	while((*pIter++) != '\0')
36cdf0e10cSrcweir 		++nLength;
37cdf0e10cSrcweir }
38cdf0e10cSrcweir // -------------------------------------------------------------------------
~UStringDescription()39cdf0e10cSrcweir UStringDescription::~UStringDescription()
40cdf0e10cSrcweir {
41cdf0e10cSrcweir }
42cdf0e10cSrcweir 
43cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_QUERYTIMEOUT			);
44cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_MAXFIELDSIZE			);
45cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_MAXROWS				);
46cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CURSORNAME			);
47cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_RESULTSETCONCURRENCY	);
48cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_RESULTSETTYPE			);
49cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_FETCHDIRECTION		);
50cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_FETCHSIZE				);
51cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ESCAPEPROCESSING		);
52cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_USEBOOKMARKS			);
53cdf0e10cSrcweir 
54cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_NAME);
55cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_TYPE);
56cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_TYPENAME);
57cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_PRECISION);
58cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_SCALE);
59cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISNULLABLE);
60cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISAUTOINCREMENT);
61cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISROWVERSION);
62cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DESCRIPTION);
63cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DEFAULTVALUE);
64cdf0e10cSrcweir 
65cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_REFERENCEDTABLE);
66cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_UPDATERULE);
67cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DELETERULE);
68cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CATALOG);
69cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISUNIQUE);
70cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISPRIMARYKEYINDEX);
71cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISCLUSTERED);
72cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISASCENDING);
73cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_SCHEMANAME);
74cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CATALOGNAME);
75cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_COMMAND);
76cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_CHECKOPTION);
77cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_PASSWORD);
78cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_RELATEDCOLUMN);
79cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISSEARCHABLE);
80cdf0e10cSrcweir 
81cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(STAT_INVALID_INDEX);
82cdf0e10cSrcweir 
83cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_FUNCTION);
84cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_TABLENAME);
85cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_REALNAME);
86cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_DBASEPRECISIONCHANGED);
87cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISCURRENCY);
88cdf0e10cSrcweir 
89cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(PROPERTY_ISBOOKMARKABLE);
90cdf0e10cSrcweir //============================================================
91cdf0e10cSrcweir //= error messages
92cdf0e10cSrcweir //============================================================
93cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(ERRORMSG_SEQUENCE);
94cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(SQLSTATE_SEQUENCE);
95cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(SQLSTATE_GENERAL);
96cdf0e10cSrcweir //============================================================
97cdf0e10cSrcweir //= different
98cdf0e10cSrcweir //============================================================
99cdf0e10cSrcweir IMPLEMENT_CONSTASCII_USTRING(STR_DELIMITER);
100cdf0e10cSrcweir 
101cdf0e10cSrcweir #endif // CONNECTIVITY_USTRINGDESCRIPTION_IMPL_HXX
102cdf0e10cSrcweir 
103