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