1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_sdbc_ColumnSearch_idl__ 28#define __com_sun_star_sdbc_ColumnSearch_idl__ 29 30 module com { module sun { module star { module sdbc { 31 32 33/** indicates in which way a column can be used in the WHERE search. 34 */ 35published constants ColumnSearch 36{ 37 //------------------------------------------------------------------------- 38 39 /** A possible value for column <code>SEARCHABLE</code> in the 40 <type scope="com::sun::star::sdbc">XResultSet</type> 41 object returned by the method 42 <member scope="com::sun::star::sdbc">XDatabaseMetaData::getTypeInfo()</member> 43 . 44 <p> 45 Indicates that 46 <code>WHERE</code> 47 search clauses are not supported 48 for this type. 49 */ 50 const long NONE = 0; 51 //------------------------------------------------------------------------- 52 53 /** A possible value for column <code>SEARCHABLE</code> in the 54 <type scope="com::sun::star::sdbc">XResultSet</type> 55 object returned by the method 56 <member scope="com::sun::star::sdbc">XDatabaseMetaData::getTypeInfo()</member> 57 . 58 <p> 59 Indicates that the only 60 <code>WHERE</code> 61 search clause that can 62 be based on this type is 63 <code>WHERE...LIKE</code> 64 . 65 */ 66 const long CHAR = 1; 67 //------------------------------------------------------------------------- 68 69 /** A possible value for column <code>SEARCHABLE</code> in the 70 <type scope="com::sun::star::sdbc">XResultSet</type> 71 object returned by the method 72 <member scope="com::sun::star::sdbc">XDatabaseMetaData::getTypeInfo()</member> 73 . 74 <p> 75 Indicates that one can base all 76 <code>WHERE</code> 77 search clauses 78 except 79 <code>WHERE...LIKE</code> 80 on this data type. 81 */ 82 const long BASIC = 2; 83 //------------------------------------------------------------------------- 84 85 /** A possible value for column 86 <code>SEARCHABLE</code> 87 in the 88 <type scope="com::sun::star::sdbc">XResultSet</type> 89 object returned by the method 90 <member scope="com::sun::star::sdbc">XDatabaseMetaData::getTypeInfo()</member> 91 . 92 <p> 93 Indicates that all 94 <code>WHERE</code> 95 search clauses can be 96 based on this type. 97 */ 98 const long FULL = 3; 99}; 100 101//============================================================================= 102 103}; }; }; }; 104 105/*=========================================================================== 106===========================================================================*/ 107#endif 108