1*34dd1e25SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*34dd1e25SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*34dd1e25SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*34dd1e25SAndrew Rist * distributed with this work for additional information 6*34dd1e25SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*34dd1e25SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*34dd1e25SAndrew Rist * "License"); you may not use this file except in compliance 9*34dd1e25SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*34dd1e25SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*34dd1e25SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*34dd1e25SAndrew Rist * software distributed under the License is distributed on an 15*34dd1e25SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*34dd1e25SAndrew Rist * KIND, either express or implied. See the License for the 17*34dd1e25SAndrew Rist * specific language governing permissions and limitations 18*34dd1e25SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*34dd1e25SAndrew Rist *************************************************************/ 21*34dd1e25SAndrew Rist 22*34dd1e25SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include "SDatabaseMetaData.hxx" 25cdf0e10cSrcweir #include <com/sun/star/sdbc/DataType.hpp> 26cdf0e10cSrcweir #include <com/sun/star/sdbc/ResultSetType.hpp> 27cdf0e10cSrcweir #include <com/sun/star/sdbc/ResultSetConcurrency.hpp> 28cdf0e10cSrcweir #include <com/sun/star/sdbc/TransactionIsolation.hpp> 29cdf0e10cSrcweir 30cdf0e10cSrcweir using namespace connectivity::skeleton; 31cdf0e10cSrcweir using namespace com::sun::star::uno; 32cdf0e10cSrcweir using namespace com::sun::star::lang; 33cdf0e10cSrcweir using namespace com::sun::star::beans; 34cdf0e10cSrcweir using namespace com::sun::star::sdbc; 35cdf0e10cSrcweir 36cdf0e10cSrcweir ODatabaseMetaData::ODatabaseMetaData(OConnection* _pCon) 37cdf0e10cSrcweir : m_pConnection(_pCon) 38cdf0e10cSrcweir , m_bUseCatalog(sal_True) 39cdf0e10cSrcweir { 40cdf0e10cSrcweir OSL_ENSURE(m_pConnection,"ODatabaseMetaData::ODatabaseMetaData: No connection set!"); 41cdf0e10cSrcweir if(!m_pConnection->isCatalogUsed()) 42cdf0e10cSrcweir { 43cdf0e10cSrcweir osl_incrementInterlockedCount( &m_refCount ); 44cdf0e10cSrcweir m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable()); 45cdf0e10cSrcweir osl_decrementInterlockedCount( &m_refCount ); 46cdf0e10cSrcweir } 47cdf0e10cSrcweir } 48cdf0e10cSrcweir // ------------------------------------------------------------------------- 49cdf0e10cSrcweir ODatabaseMetaData::~ODatabaseMetaData() 50cdf0e10cSrcweir { 51cdf0e10cSrcweir } 52cdf0e10cSrcweir // ------------------------------------------------------------------------- 53cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getCatalogSeparator( ) throw(SQLException, RuntimeException) 54cdf0e10cSrcweir { 55cdf0e10cSrcweir ::rtl::OUString aVal; 56cdf0e10cSrcweir if(m_bUseCatalog) 57cdf0e10cSrcweir { // do some special here for you database 58cdf0e10cSrcweir } 59cdf0e10cSrcweir 60cdf0e10cSrcweir return aVal; 61cdf0e10cSrcweir } 62cdf0e10cSrcweir // ------------------------------------------------------------------------- 63cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxBinaryLiteralLength( ) throw(SQLException, RuntimeException) 64cdf0e10cSrcweir { 65cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 66cdf0e10cSrcweir return nValue; 67cdf0e10cSrcweir } 68cdf0e10cSrcweir // ------------------------------------------------------------------------- 69cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxRowSize( ) throw(SQLException, RuntimeException) 70cdf0e10cSrcweir { 71cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 72cdf0e10cSrcweir return nValue; 73cdf0e10cSrcweir } 74cdf0e10cSrcweir // ------------------------------------------------------------------------- 75cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCatalogNameLength( ) throw(SQLException, RuntimeException) 76cdf0e10cSrcweir { 77cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 78cdf0e10cSrcweir return nValue; 79cdf0e10cSrcweir } 80cdf0e10cSrcweir // ------------------------------------------------------------------------- 81cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCharLiteralLength( ) throw(SQLException, RuntimeException) 82cdf0e10cSrcweir { 83cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 84cdf0e10cSrcweir return nValue; 85cdf0e10cSrcweir } 86cdf0e10cSrcweir // ------------------------------------------------------------------------- 87cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnNameLength( ) throw(SQLException, RuntimeException) 88cdf0e10cSrcweir { 89cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 90cdf0e10cSrcweir return nValue; 91cdf0e10cSrcweir } 92cdf0e10cSrcweir // ------------------------------------------------------------------------- 93cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInIndex( ) throw(SQLException, RuntimeException) 94cdf0e10cSrcweir { 95cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 96cdf0e10cSrcweir return nValue; 97cdf0e10cSrcweir } 98cdf0e10cSrcweir // ------------------------------------------------------------------------- 99cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength( ) throw(SQLException, RuntimeException) 100cdf0e10cSrcweir { 101cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 102cdf0e10cSrcweir return nValue; 103cdf0e10cSrcweir } 104cdf0e10cSrcweir // ------------------------------------------------------------------------- 105cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections( ) throw(SQLException, RuntimeException) 106cdf0e10cSrcweir { 107cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 108cdf0e10cSrcweir return nValue; 109cdf0e10cSrcweir } 110cdf0e10cSrcweir // ------------------------------------------------------------------------- 111cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable( ) throw(SQLException, RuntimeException) 112cdf0e10cSrcweir { 113cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 114cdf0e10cSrcweir return nValue; 115cdf0e10cSrcweir } 116cdf0e10cSrcweir // ------------------------------------------------------------------------- 117cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength( ) throw(SQLException, RuntimeException) 118cdf0e10cSrcweir { 119cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 120cdf0e10cSrcweir return nValue; 121cdf0e10cSrcweir } 122cdf0e10cSrcweir // ------------------------------------------------------------------------- 123cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTableNameLength( ) throw(SQLException, RuntimeException) 124cdf0e10cSrcweir { 125cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 126cdf0e10cSrcweir return nValue; 127cdf0e10cSrcweir } 128cdf0e10cSrcweir // ------------------------------------------------------------------------- 129cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxTablesInSelect( ) throw(SQLException, RuntimeException) 130cdf0e10cSrcweir { 131cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 132cdf0e10cSrcweir return nValue; 133cdf0e10cSrcweir } 134cdf0e10cSrcweir // ------------------------------------------------------------------------- 135cdf0e10cSrcweir // ------------------------------------------------------------------------- 136cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( ) throw(SQLException, RuntimeException) 137cdf0e10cSrcweir { 138cdf0e10cSrcweir return sal_False; 139cdf0e10cSrcweir } 140cdf0e10cSrcweir // ------------------------------------------------------------------------- 141cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) 142cdf0e10cSrcweir { 143cdf0e10cSrcweir return sal_False; 144cdf0e10cSrcweir } 145cdf0e10cSrcweir // ------------------------------------------------------------------------- 146cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers( ) throw(SQLException, RuntimeException) 147cdf0e10cSrcweir { 148cdf0e10cSrcweir return sal_False; 149cdf0e10cSrcweir } 150cdf0e10cSrcweir // ------------------------------------------------------------------------- 151cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) 152cdf0e10cSrcweir { 153cdf0e10cSrcweir return sal_False; 154cdf0e10cSrcweir } 155cdf0e10cSrcweir // ------------------------------------------------------------------------- 156cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers( ) throw(SQLException, RuntimeException) 157cdf0e10cSrcweir { 158cdf0e10cSrcweir return sal_False; 159cdf0e10cSrcweir } 160cdf0e10cSrcweir // ------------------------------------------------------------------------- 161cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) 162cdf0e10cSrcweir { 163cdf0e10cSrcweir return sal_False; 164cdf0e10cSrcweir } 165cdf0e10cSrcweir // ------------------------------------------------------------------------- 166cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers( ) throw(SQLException, RuntimeException) 167cdf0e10cSrcweir { 168cdf0e10cSrcweir return sal_False; 169cdf0e10cSrcweir } 170cdf0e10cSrcweir // ------------------------------------------------------------------------- 171cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithAddColumn( ) throw(SQLException, RuntimeException) 172cdf0e10cSrcweir { 173cdf0e10cSrcweir return sal_False; 174cdf0e10cSrcweir } 175cdf0e10cSrcweir // ------------------------------------------------------------------------- 176cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsAlterTableWithDropColumn( ) throw(SQLException, RuntimeException) 177cdf0e10cSrcweir { 178cdf0e10cSrcweir return sal_False; 179cdf0e10cSrcweir } 180cdf0e10cSrcweir // ------------------------------------------------------------------------- 181cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxIndexLength( ) throw(SQLException, RuntimeException) 182cdf0e10cSrcweir { 183cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 184cdf0e10cSrcweir return nValue; 185cdf0e10cSrcweir } 186cdf0e10cSrcweir // ------------------------------------------------------------------------- 187cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsNonNullableColumns( ) throw(SQLException, RuntimeException) 188cdf0e10cSrcweir { 189cdf0e10cSrcweir return sal_False; 190cdf0e10cSrcweir } 191cdf0e10cSrcweir // ------------------------------------------------------------------------- 192cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( ) throw(SQLException, RuntimeException) 193cdf0e10cSrcweir { 194cdf0e10cSrcweir ::rtl::OUString aVal; 195cdf0e10cSrcweir if(m_bUseCatalog) 196cdf0e10cSrcweir { 197cdf0e10cSrcweir } 198cdf0e10cSrcweir return aVal; 199cdf0e10cSrcweir } 200cdf0e10cSrcweir // ------------------------------------------------------------------------- 201cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString( ) throw(SQLException, RuntimeException) 202cdf0e10cSrcweir { 203cdf0e10cSrcweir // normally this is " 204cdf0e10cSrcweir ::rtl::OUString aVal = ::rtl::OUString::createFromAscii("\""); 205cdf0e10cSrcweir return aVal; 206cdf0e10cSrcweir } 207cdf0e10cSrcweir // ------------------------------------------------------------------------- 208cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( ) throw(SQLException, RuntimeException) 209cdf0e10cSrcweir { 210cdf0e10cSrcweir ::rtl::OUString aVal; 211cdf0e10cSrcweir return aVal; 212cdf0e10cSrcweir } 213cdf0e10cSrcweir // ------------------------------------------------------------------------- 214cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsDifferentTableCorrelationNames( ) throw(SQLException, RuntimeException) 215cdf0e10cSrcweir { 216cdf0e10cSrcweir return sal_False; 217cdf0e10cSrcweir } 218cdf0e10cSrcweir // ------------------------------------------------------------------------- 219cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::isCatalogAtStart( ) throw(SQLException, RuntimeException) 220cdf0e10cSrcweir { 221cdf0e10cSrcweir sal_Bool bValue = sal_False; 222cdf0e10cSrcweir if(m_bUseCatalog) 223cdf0e10cSrcweir { 224cdf0e10cSrcweir } 225cdf0e10cSrcweir return bValue; 226cdf0e10cSrcweir } 227cdf0e10cSrcweir // ------------------------------------------------------------------------- 228cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionIgnoredInTransactions( ) throw(SQLException, RuntimeException) 229cdf0e10cSrcweir { 230cdf0e10cSrcweir return sal_True; 231cdf0e10cSrcweir } 232cdf0e10cSrcweir // ------------------------------------------------------------------------- 233cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::dataDefinitionCausesTransactionCommit( ) throw(SQLException, RuntimeException) 234cdf0e10cSrcweir { 235cdf0e10cSrcweir return sal_True; 236cdf0e10cSrcweir } 237cdf0e10cSrcweir // ------------------------------------------------------------------------- 238cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsDataManipulationTransactionsOnly( ) throw(SQLException, RuntimeException) 239cdf0e10cSrcweir { 240cdf0e10cSrcweir return sal_True; 241cdf0e10cSrcweir } 242cdf0e10cSrcweir // ------------------------------------------------------------------------- 243cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsDataDefinitionAndDataManipulationTransactions( ) throw(SQLException, RuntimeException) 244cdf0e10cSrcweir { 245cdf0e10cSrcweir return sal_True; 246cdf0e10cSrcweir } 247cdf0e10cSrcweir // ------------------------------------------------------------------------- 248cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedDelete( ) throw(SQLException, RuntimeException) 249cdf0e10cSrcweir { 250cdf0e10cSrcweir return sal_False; 251cdf0e10cSrcweir } 252cdf0e10cSrcweir // ------------------------------------------------------------------------- 253cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsPositionedUpdate( ) throw(SQLException, RuntimeException) 254cdf0e10cSrcweir { 255cdf0e10cSrcweir return sal_False; 256cdf0e10cSrcweir } 257cdf0e10cSrcweir // ------------------------------------------------------------------------- 258cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossRollback( ) throw(SQLException, RuntimeException) 259cdf0e10cSrcweir { 260cdf0e10cSrcweir return sal_False; 261cdf0e10cSrcweir } 262cdf0e10cSrcweir // ------------------------------------------------------------------------- 263cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenStatementsAcrossCommit( ) throw(SQLException, RuntimeException) 264cdf0e10cSrcweir { 265cdf0e10cSrcweir return sal_False; 266cdf0e10cSrcweir } 267cdf0e10cSrcweir // ------------------------------------------------------------------------- 268cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossCommit( ) throw(SQLException, RuntimeException) 269cdf0e10cSrcweir { 270cdf0e10cSrcweir return sal_False; 271cdf0e10cSrcweir } 272cdf0e10cSrcweir // ------------------------------------------------------------------------- 273cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsOpenCursorsAcrossRollback( ) throw(SQLException, RuntimeException) 274cdf0e10cSrcweir { 275cdf0e10cSrcweir return sal_False; 276cdf0e10cSrcweir } 277cdf0e10cSrcweir // ------------------------------------------------------------------------- 278cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( sal_Int32 level ) throw(SQLException, RuntimeException) 279cdf0e10cSrcweir { 280cdf0e10cSrcweir return sal_False; 281cdf0e10cSrcweir } 282cdf0e10cSrcweir // ------------------------------------------------------------------------- 283cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInDataManipulation( ) throw(SQLException, RuntimeException) 284cdf0e10cSrcweir { 285cdf0e10cSrcweir return sal_False; 286cdf0e10cSrcweir } 287cdf0e10cSrcweir // ------------------------------------------------------------------------- 288cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92FullSQL( ) throw(SQLException, RuntimeException) 289cdf0e10cSrcweir { 290cdf0e10cSrcweir return sal_False; 291cdf0e10cSrcweir } 292cdf0e10cSrcweir // ------------------------------------------------------------------------- 293cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92EntryLevelSQL( ) throw(SQLException, RuntimeException) 294cdf0e10cSrcweir { 295cdf0e10cSrcweir return sal_True; // should be supported at least 296cdf0e10cSrcweir } 297cdf0e10cSrcweir // ------------------------------------------------------------------------- 298cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsIntegrityEnhancementFacility( ) throw(SQLException, RuntimeException) 299cdf0e10cSrcweir { 300cdf0e10cSrcweir return sal_False; 301cdf0e10cSrcweir } 302cdf0e10cSrcweir // ------------------------------------------------------------------------- 303cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInIndexDefinitions( ) throw(SQLException, RuntimeException) 304cdf0e10cSrcweir { 305cdf0e10cSrcweir return sal_False; 306cdf0e10cSrcweir } 307cdf0e10cSrcweir // ------------------------------------------------------------------------- 308cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInTableDefinitions( ) throw(SQLException, RuntimeException) 309cdf0e10cSrcweir { 310cdf0e10cSrcweir return sal_False; 311cdf0e10cSrcweir } 312cdf0e10cSrcweir // ------------------------------------------------------------------------- 313cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInTableDefinitions( ) throw(SQLException, RuntimeException) 314cdf0e10cSrcweir { 315cdf0e10cSrcweir return sal_False; 316cdf0e10cSrcweir } 317cdf0e10cSrcweir // ------------------------------------------------------------------------- 318cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInIndexDefinitions( ) throw(SQLException, RuntimeException) 319cdf0e10cSrcweir { 320cdf0e10cSrcweir return sal_False; 321cdf0e10cSrcweir } 322cdf0e10cSrcweir // ------------------------------------------------------------------------- 323cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInDataManipulation( ) throw(SQLException, RuntimeException) 324cdf0e10cSrcweir { 325cdf0e10cSrcweir return sal_False; 326cdf0e10cSrcweir } 327cdf0e10cSrcweir // ------------------------------------------------------------------------- 328cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsOuterJoins( ) throw(SQLException, RuntimeException) 329cdf0e10cSrcweir { 330cdf0e10cSrcweir return sal_False; 331cdf0e10cSrcweir } 332cdf0e10cSrcweir // ------------------------------------------------------------------------- 333cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatements( ) throw(SQLException, RuntimeException) 334cdf0e10cSrcweir { 335cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 336cdf0e10cSrcweir return nValue; 337cdf0e10cSrcweir } 338cdf0e10cSrcweir // ------------------------------------------------------------------------- 339cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxProcedureNameLength( ) throw(SQLException, RuntimeException) 340cdf0e10cSrcweir { 341cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 342cdf0e10cSrcweir return nValue; 343cdf0e10cSrcweir } 344cdf0e10cSrcweir // ------------------------------------------------------------------------- 345cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxSchemaNameLength( ) throw(SQLException, RuntimeException) 346cdf0e10cSrcweir { 347cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 348cdf0e10cSrcweir return nValue; 349cdf0e10cSrcweir } 350cdf0e10cSrcweir // ------------------------------------------------------------------------- 351cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactions( ) throw(SQLException, RuntimeException) 352cdf0e10cSrcweir { 353cdf0e10cSrcweir return sal_False; 354cdf0e10cSrcweir } 355cdf0e10cSrcweir // ------------------------------------------------------------------------- 356cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::allProceduresAreCallable( ) throw(SQLException, RuntimeException) 357cdf0e10cSrcweir { 358cdf0e10cSrcweir return sal_False; 359cdf0e10cSrcweir } 360cdf0e10cSrcweir // ------------------------------------------------------------------------- 361cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsStoredProcedures( ) throw(SQLException, RuntimeException) 362cdf0e10cSrcweir { 363cdf0e10cSrcweir return sal_False; 364cdf0e10cSrcweir } 365cdf0e10cSrcweir // ------------------------------------------------------------------------- 366cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSelectForUpdate( ) throw(SQLException, RuntimeException) 367cdf0e10cSrcweir { 368cdf0e10cSrcweir return sal_False; 369cdf0e10cSrcweir } 370cdf0e10cSrcweir // ------------------------------------------------------------------------- 371cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::allTablesAreSelectable( ) throw(SQLException, RuntimeException) 372cdf0e10cSrcweir { 373cdf0e10cSrcweir return sal_False; 374cdf0e10cSrcweir } 375cdf0e10cSrcweir // ------------------------------------------------------------------------- 376cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::isReadOnly( ) throw(SQLException, RuntimeException) 377cdf0e10cSrcweir { 378cdf0e10cSrcweir return sal_False; 379cdf0e10cSrcweir } 380cdf0e10cSrcweir // ------------------------------------------------------------------------- 381cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFiles( ) throw(SQLException, RuntimeException) 382cdf0e10cSrcweir { 383cdf0e10cSrcweir return sal_False; 384cdf0e10cSrcweir } 385cdf0e10cSrcweir // ------------------------------------------------------------------------- 386cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::usesLocalFilePerTable( ) throw(SQLException, RuntimeException) 387cdf0e10cSrcweir { 388cdf0e10cSrcweir return sal_False; 389cdf0e10cSrcweir } 390cdf0e10cSrcweir // ------------------------------------------------------------------------- 391cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsTypeConversion( ) throw(SQLException, RuntimeException) 392cdf0e10cSrcweir { 393cdf0e10cSrcweir return sal_False; 394cdf0e10cSrcweir } 395cdf0e10cSrcweir // ------------------------------------------------------------------------- 396cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::nullPlusNonNullIsNull( ) throw(SQLException, RuntimeException) 397cdf0e10cSrcweir { 398cdf0e10cSrcweir return sal_False; 399cdf0e10cSrcweir } 400cdf0e10cSrcweir // ------------------------------------------------------------------------- 401cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsColumnAliasing( ) throw(SQLException, RuntimeException) 402cdf0e10cSrcweir { 403cdf0e10cSrcweir return sal_False; 404cdf0e10cSrcweir } 405cdf0e10cSrcweir // ------------------------------------------------------------------------- 406cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames( ) throw(SQLException, RuntimeException) 407cdf0e10cSrcweir { 408cdf0e10cSrcweir return sal_False; 409cdf0e10cSrcweir } 410cdf0e10cSrcweir // ------------------------------------------------------------------------- 411cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 fromType, sal_Int32 toType ) throw(SQLException, RuntimeException) 412cdf0e10cSrcweir { 413cdf0e10cSrcweir return sal_False; 414cdf0e10cSrcweir } 415cdf0e10cSrcweir // ------------------------------------------------------------------------- 416cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsExpressionsInOrderBy( ) throw(SQLException, RuntimeException) 417cdf0e10cSrcweir { 418cdf0e10cSrcweir return sal_False; 419cdf0e10cSrcweir } 420cdf0e10cSrcweir // ------------------------------------------------------------------------- 421cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupBy( ) throw(SQLException, RuntimeException) 422cdf0e10cSrcweir { 423cdf0e10cSrcweir return sal_False; 424cdf0e10cSrcweir } 425cdf0e10cSrcweir // ------------------------------------------------------------------------- 426cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByBeyondSelect( ) throw(SQLException, RuntimeException) 427cdf0e10cSrcweir { 428cdf0e10cSrcweir return sal_False; 429cdf0e10cSrcweir } 430cdf0e10cSrcweir // ------------------------------------------------------------------------- 431cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsGroupByUnrelated( ) throw(SQLException, RuntimeException) 432cdf0e10cSrcweir { 433cdf0e10cSrcweir return sal_False; 434cdf0e10cSrcweir } 435cdf0e10cSrcweir // ------------------------------------------------------------------------- 436cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleTransactions( ) throw(SQLException, RuntimeException) 437cdf0e10cSrcweir { 438cdf0e10cSrcweir return sal_False; 439cdf0e10cSrcweir } 440cdf0e10cSrcweir // ------------------------------------------------------------------------- 441cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsMultipleResultSets( ) throw(SQLException, RuntimeException) 442cdf0e10cSrcweir { 443cdf0e10cSrcweir return sal_False; 444cdf0e10cSrcweir } 445cdf0e10cSrcweir // ------------------------------------------------------------------------- 446cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsLikeEscapeClause( ) throw(SQLException, RuntimeException) 447cdf0e10cSrcweir { 448cdf0e10cSrcweir return sal_False; 449cdf0e10cSrcweir } 450cdf0e10cSrcweir // ------------------------------------------------------------------------- 451cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsOrderByUnrelated( ) throw(SQLException, RuntimeException) 452cdf0e10cSrcweir { 453cdf0e10cSrcweir return sal_False; 454cdf0e10cSrcweir } 455cdf0e10cSrcweir // ------------------------------------------------------------------------- 456cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsUnion( ) throw(SQLException, RuntimeException) 457cdf0e10cSrcweir { 458cdf0e10cSrcweir return sal_False; 459cdf0e10cSrcweir } 460cdf0e10cSrcweir // ------------------------------------------------------------------------- 461cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll( ) throw(SQLException, RuntimeException) 462cdf0e10cSrcweir { 463cdf0e10cSrcweir return sal_False; 464cdf0e10cSrcweir } 465cdf0e10cSrcweir // ------------------------------------------------------------------------- 466cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers( ) throw(SQLException, RuntimeException) 467cdf0e10cSrcweir { 468cdf0e10cSrcweir return sal_False; 469cdf0e10cSrcweir } 470cdf0e10cSrcweir // ------------------------------------------------------------------------- 471cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers( ) throw(SQLException, RuntimeException) 472cdf0e10cSrcweir { 473cdf0e10cSrcweir return sal_False; 474cdf0e10cSrcweir } 475cdf0e10cSrcweir // ------------------------------------------------------------------------- 476cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd( ) throw(SQLException, RuntimeException) 477cdf0e10cSrcweir { 478cdf0e10cSrcweir return sal_False; 479cdf0e10cSrcweir } 480cdf0e10cSrcweir // ------------------------------------------------------------------------- 481cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtStart( ) throw(SQLException, RuntimeException) 482cdf0e10cSrcweir { 483cdf0e10cSrcweir return sal_False; 484cdf0e10cSrcweir } 485cdf0e10cSrcweir // ------------------------------------------------------------------------- 486cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedHigh( ) throw(SQLException, RuntimeException) 487cdf0e10cSrcweir { 488cdf0e10cSrcweir return sal_False; 489cdf0e10cSrcweir } 490cdf0e10cSrcweir // ------------------------------------------------------------------------- 491cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedLow( ) throw(SQLException, RuntimeException) 492cdf0e10cSrcweir { 493cdf0e10cSrcweir return sal_False; 494cdf0e10cSrcweir } 495cdf0e10cSrcweir // ------------------------------------------------------------------------- 496cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInProcedureCalls( ) throw(SQLException, RuntimeException) 497cdf0e10cSrcweir { 498cdf0e10cSrcweir return sal_False; 499cdf0e10cSrcweir } 500cdf0e10cSrcweir // ------------------------------------------------------------------------- 501cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSchemasInPrivilegeDefinitions( ) throw(SQLException, RuntimeException) 502cdf0e10cSrcweir { 503cdf0e10cSrcweir return sal_False; 504cdf0e10cSrcweir } 505cdf0e10cSrcweir // ------------------------------------------------------------------------- 506cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInProcedureCalls( ) throw(SQLException, RuntimeException) 507cdf0e10cSrcweir { 508cdf0e10cSrcweir return sal_False; 509cdf0e10cSrcweir } 510cdf0e10cSrcweir // ------------------------------------------------------------------------- 511cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsCatalogsInPrivilegeDefinitions( ) throw(SQLException, RuntimeException) 512cdf0e10cSrcweir { 513cdf0e10cSrcweir return sal_False; 514cdf0e10cSrcweir } 515cdf0e10cSrcweir // ------------------------------------------------------------------------- 516cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsCorrelatedSubqueries( ) throw(SQLException, RuntimeException) 517cdf0e10cSrcweir { 518cdf0e10cSrcweir return sal_False; 519cdf0e10cSrcweir } 520cdf0e10cSrcweir // ------------------------------------------------------------------------- 521cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInComparisons( ) throw(SQLException, RuntimeException) 522cdf0e10cSrcweir { 523cdf0e10cSrcweir return sal_False; 524cdf0e10cSrcweir } 525cdf0e10cSrcweir // ------------------------------------------------------------------------- 526cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInExists( ) throw(SQLException, RuntimeException) 527cdf0e10cSrcweir { 528cdf0e10cSrcweir return sal_False; 529cdf0e10cSrcweir } 530cdf0e10cSrcweir // ------------------------------------------------------------------------- 531cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInIns( ) throw(SQLException, RuntimeException) 532cdf0e10cSrcweir { 533cdf0e10cSrcweir return sal_False; 534cdf0e10cSrcweir } 535cdf0e10cSrcweir // ------------------------------------------------------------------------- 536cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsSubqueriesInQuantifieds( ) throw(SQLException, RuntimeException) 537cdf0e10cSrcweir { 538cdf0e10cSrcweir return sal_False; 539cdf0e10cSrcweir } 540cdf0e10cSrcweir // ------------------------------------------------------------------------- 541cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( ) throw(SQLException, RuntimeException) 542cdf0e10cSrcweir { 543cdf0e10cSrcweir return sal_False; 544cdf0e10cSrcweir } 545cdf0e10cSrcweir // ------------------------------------------------------------------------- 546cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeException) 547cdf0e10cSrcweir { 548cdf0e10cSrcweir ::rtl::OUString aValue = ::rtl::OUString::createFromAscii("sdbc:skeleton:"); 549cdf0e10cSrcweir return aValue; 550cdf0e10cSrcweir } 551cdf0e10cSrcweir // ------------------------------------------------------------------------- 552cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getUserName( ) throw(SQLException, RuntimeException) 553cdf0e10cSrcweir { 554cdf0e10cSrcweir ::rtl::OUString aValue; 555cdf0e10cSrcweir return aValue; 556cdf0e10cSrcweir } 557cdf0e10cSrcweir // ------------------------------------------------------------------------- 558cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getDriverName( ) throw(SQLException, RuntimeException) 559cdf0e10cSrcweir { 560cdf0e10cSrcweir ::rtl::OUString aValue; 561cdf0e10cSrcweir return aValue; 562cdf0e10cSrcweir } 563cdf0e10cSrcweir // ------------------------------------------------------------------------- 564cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getDriverVersion() throw(SQLException, RuntimeException) 565cdf0e10cSrcweir { 566cdf0e10cSrcweir ::rtl::OUString aValue; 567cdf0e10cSrcweir return aValue; 568cdf0e10cSrcweir } 569cdf0e10cSrcweir // ------------------------------------------------------------------------- 570cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( ) throw(SQLException, RuntimeException) 571cdf0e10cSrcweir { 572cdf0e10cSrcweir ::rtl::OUString aValue; 573cdf0e10cSrcweir return aValue; 574cdf0e10cSrcweir } 575cdf0e10cSrcweir // ------------------------------------------------------------------------- 576cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( ) throw(SQLException, RuntimeException) 577cdf0e10cSrcweir { 578cdf0e10cSrcweir ::rtl::OUString aValue; 579cdf0e10cSrcweir return aValue; 580cdf0e10cSrcweir } 581cdf0e10cSrcweir // ------------------------------------------------------------------------- 582cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( ) throw(SQLException, RuntimeException) 583cdf0e10cSrcweir { 584cdf0e10cSrcweir ::rtl::OUString aValue; 585cdf0e10cSrcweir return aValue; 586cdf0e10cSrcweir } 587cdf0e10cSrcweir // ------------------------------------------------------------------------- 588cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getSchemaTerm( ) throw(SQLException, RuntimeException) 589cdf0e10cSrcweir { 590cdf0e10cSrcweir ::rtl::OUString aValue; 591cdf0e10cSrcweir return aValue; 592cdf0e10cSrcweir } 593cdf0e10cSrcweir // ------------------------------------------------------------------------- 594cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion( ) throw(RuntimeException) 595cdf0e10cSrcweir { 596cdf0e10cSrcweir return 1; 597cdf0e10cSrcweir } 598cdf0e10cSrcweir // ------------------------------------------------------------------------- 599cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation( ) throw(SQLException, RuntimeException) 600cdf0e10cSrcweir { 601cdf0e10cSrcweir return TransactionIsolation::NONE; 602cdf0e10cSrcweir } 603cdf0e10cSrcweir // ------------------------------------------------------------------------- 604cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion( ) throw(RuntimeException) 605cdf0e10cSrcweir { 606cdf0e10cSrcweir return 0; 607cdf0e10cSrcweir } 608cdf0e10cSrcweir // ------------------------------------------------------------------------- 609cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) throw(SQLException, RuntimeException) 610cdf0e10cSrcweir { 611cdf0e10cSrcweir ::rtl::OUString aValue; 612cdf0e10cSrcweir return aValue; 613cdf0e10cSrcweir } 614cdf0e10cSrcweir // ------------------------------------------------------------------------- 615cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( ) throw(SQLException, RuntimeException) 616cdf0e10cSrcweir { 617cdf0e10cSrcweir ::rtl::OUString aValue; 618cdf0e10cSrcweir return aValue; 619cdf0e10cSrcweir } 620cdf0e10cSrcweir // ------------------------------------------------------------------------- 621cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getStringFunctions( ) throw(SQLException, RuntimeException) 622cdf0e10cSrcweir { 623cdf0e10cSrcweir return ::rtl::OUString(); 624cdf0e10cSrcweir } 625cdf0e10cSrcweir // ------------------------------------------------------------------------- 626cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( ) throw(SQLException, RuntimeException) 627cdf0e10cSrcweir { 628cdf0e10cSrcweir return ::rtl::OUString(); 629cdf0e10cSrcweir } 630cdf0e10cSrcweir // ------------------------------------------------------------------------- 631cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( ) throw(SQLException, RuntimeException) 632cdf0e10cSrcweir { 633cdf0e10cSrcweir return ::rtl::OUString(); 634cdf0e10cSrcweir } 635cdf0e10cSrcweir // ------------------------------------------------------------------------- 636cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( ) throw(SQLException, RuntimeException) 637cdf0e10cSrcweir { 638cdf0e10cSrcweir return ::rtl::OUString(); 639cdf0e10cSrcweir } 640cdf0e10cSrcweir // ------------------------------------------------------------------------- 641cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( ) throw(SQLException, RuntimeException) 642cdf0e10cSrcweir { 643cdf0e10cSrcweir return sal_False; 644cdf0e10cSrcweir } 645cdf0e10cSrcweir // ------------------------------------------------------------------------- 646cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsCoreSQLGrammar( ) throw(SQLException, RuntimeException) 647cdf0e10cSrcweir { 648cdf0e10cSrcweir return sal_False; 649cdf0e10cSrcweir } 650cdf0e10cSrcweir // ------------------------------------------------------------------------- 651cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsMinimumSQLGrammar( ) throw(SQLException, RuntimeException) 652cdf0e10cSrcweir { 653cdf0e10cSrcweir return sal_True; 654cdf0e10cSrcweir } 655cdf0e10cSrcweir // ------------------------------------------------------------------------- 656cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsFullOuterJoins( ) throw(SQLException, RuntimeException) 657cdf0e10cSrcweir { 658cdf0e10cSrcweir return sal_False; 659cdf0e10cSrcweir } 660cdf0e10cSrcweir // ------------------------------------------------------------------------- 661cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsLimitedOuterJoins( ) throw(SQLException, RuntimeException) 662cdf0e10cSrcweir { 663cdf0e10cSrcweir return sal_False; 664cdf0e10cSrcweir } 665cdf0e10cSrcweir // ------------------------------------------------------------------------- 666cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInGroupBy( ) throw(SQLException, RuntimeException) 667cdf0e10cSrcweir { 668cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 669cdf0e10cSrcweir return nValue; 670cdf0e10cSrcweir } 671cdf0e10cSrcweir // ------------------------------------------------------------------------- 672cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInOrderBy( ) throw(SQLException, RuntimeException) 673cdf0e10cSrcweir { 674cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 675cdf0e10cSrcweir return nValue; 676cdf0e10cSrcweir } 677cdf0e10cSrcweir // ------------------------------------------------------------------------- 678cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInSelect( ) throw(SQLException, RuntimeException) 679cdf0e10cSrcweir { 680cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 681cdf0e10cSrcweir return nValue; 682cdf0e10cSrcweir } 683cdf0e10cSrcweir // ------------------------------------------------------------------------- 684cdf0e10cSrcweir sal_Int32 SAL_CALL ODatabaseMetaData::getMaxUserNameLength( ) throw(SQLException, RuntimeException) 685cdf0e10cSrcweir { 686cdf0e10cSrcweir sal_Int32 nValue = 0; // 0 means no limit 687cdf0e10cSrcweir return nValue; 688cdf0e10cSrcweir } 689cdf0e10cSrcweir // ------------------------------------------------------------------------- 690cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType ) throw(SQLException, RuntimeException) 691cdf0e10cSrcweir { 692cdf0e10cSrcweir return sal_False; 693cdf0e10cSrcweir } 694cdf0e10cSrcweir // ------------------------------------------------------------------------- 695cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) throw(SQLException, RuntimeException) 696cdf0e10cSrcweir { 697cdf0e10cSrcweir return sal_False; 698cdf0e10cSrcweir } 699cdf0e10cSrcweir // ------------------------------------------------------------------------- 700cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException) 701cdf0e10cSrcweir { 702cdf0e10cSrcweir return sal_False; 703cdf0e10cSrcweir } 704cdf0e10cSrcweir // ------------------------------------------------------------------------- 705cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException) 706cdf0e10cSrcweir { 707cdf0e10cSrcweir return sal_False; 708cdf0e10cSrcweir } 709cdf0e10cSrcweir // ------------------------------------------------------------------------- 710cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException) 711cdf0e10cSrcweir { 712cdf0e10cSrcweir return sal_False; 713cdf0e10cSrcweir } 714cdf0e10cSrcweir // ------------------------------------------------------------------------- 715cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException) 716cdf0e10cSrcweir { 717cdf0e10cSrcweir return sal_False; 718cdf0e10cSrcweir } 719cdf0e10cSrcweir // ------------------------------------------------------------------------- 720cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException) 721cdf0e10cSrcweir { 722cdf0e10cSrcweir return sal_False; 723cdf0e10cSrcweir } 724cdf0e10cSrcweir // ------------------------------------------------------------------------- 725cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException) 726cdf0e10cSrcweir { 727cdf0e10cSrcweir return sal_False; 728cdf0e10cSrcweir } 729cdf0e10cSrcweir // ------------------------------------------------------------------------- 730cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException) 731cdf0e10cSrcweir { 732cdf0e10cSrcweir return sal_False; 733cdf0e10cSrcweir } 734cdf0e10cSrcweir // ------------------------------------------------------------------------- 735cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException) 736cdf0e10cSrcweir { 737cdf0e10cSrcweir return sal_False; 738cdf0e10cSrcweir } 739cdf0e10cSrcweir // ------------------------------------------------------------------------- 740cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 setType ) throw(SQLException, RuntimeException) 741cdf0e10cSrcweir { 742cdf0e10cSrcweir return sal_False; 743cdf0e10cSrcweir } 744cdf0e10cSrcweir // ------------------------------------------------------------------------- 745cdf0e10cSrcweir sal_Bool SAL_CALL ODatabaseMetaData::supportsBatchUpdates( ) throw(SQLException, RuntimeException) 746cdf0e10cSrcweir { 747cdf0e10cSrcweir return sal_False; 748cdf0e10cSrcweir } 749cdf0e10cSrcweir // ------------------------------------------------------------------------- 750cdf0e10cSrcweir Reference< XConnection > SAL_CALL ODatabaseMetaData::getConnection( ) throw(SQLException, RuntimeException) 751cdf0e10cSrcweir { 752cdf0e10cSrcweir return (Reference< XConnection >)m_pConnection;//new OConnection(m_aConnectionHandle); 753cdf0e10cSrcweir } 754cdf0e10cSrcweir // ------------------------------------------------------------------------- 755cdf0e10cSrcweir // here follow all methods which return a resultset 756cdf0e10cSrcweir // the first methods is an example implementation how to use this resultset 757cdf0e10cSrcweir // of course you could implement it on your and you should do this because 758cdf0e10cSrcweir // the general way is more memory expensive 759cdf0e10cSrcweir // ------------------------------------------------------------------------- 760cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( ) throw(SQLException, RuntimeException) 761cdf0e10cSrcweir { 762cdf0e10cSrcweir return NULL; 763cdf0e10cSrcweir } 764cdf0e10cSrcweir // ------------------------------------------------------------------------- 765cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo( ) throw(SQLException, RuntimeException) 766cdf0e10cSrcweir { 767cdf0e10cSrcweir return NULL; 768cdf0e10cSrcweir } 769cdf0e10cSrcweir // ------------------------------------------------------------------------- 770cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCatalogs( ) throw(SQLException, RuntimeException) 771cdf0e10cSrcweir { 772cdf0e10cSrcweir return NULL; 773cdf0e10cSrcweir } 774cdf0e10cSrcweir // ----------------------------------------------------------------------------- 775cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getSchemas( ) throw(SQLException, RuntimeException) 776cdf0e10cSrcweir { 777cdf0e10cSrcweir return NULL; 778cdf0e10cSrcweir } 779cdf0e10cSrcweir // ------------------------------------------------------------------------- 780cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges( 781cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, 782cdf0e10cSrcweir const ::rtl::OUString& columnNamePattern ) throw(SQLException, RuntimeException) 783cdf0e10cSrcweir { 784cdf0e10cSrcweir return NULL; 785cdf0e10cSrcweir } 786cdf0e10cSrcweir // ------------------------------------------------------------------------- 787cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns( 788cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern, 789cdf0e10cSrcweir const ::rtl::OUString& columnNamePattern ) throw(SQLException, RuntimeException) 790cdf0e10cSrcweir { 791cdf0e10cSrcweir return NULL; 792cdf0e10cSrcweir } 793cdf0e10cSrcweir // ------------------------------------------------------------------------- 794cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables( 795cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schemaPattern, 796cdf0e10cSrcweir const ::rtl::OUString& tableNamePattern, const Sequence< ::rtl::OUString >& types ) throw(SQLException, RuntimeException) 797cdf0e10cSrcweir { 798cdf0e10cSrcweir return NULL; 799cdf0e10cSrcweir } 800cdf0e10cSrcweir // ------------------------------------------------------------------------- 801cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns( 802cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schemaPattern, 803cdf0e10cSrcweir const ::rtl::OUString& procedureNamePattern, const ::rtl::OUString& columnNamePattern ) throw(SQLException, RuntimeException) 804cdf0e10cSrcweir { 805cdf0e10cSrcweir return NULL; 806cdf0e10cSrcweir } 807cdf0e10cSrcweir // ------------------------------------------------------------------------- 808cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures( 809cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schemaPattern, 810cdf0e10cSrcweir const ::rtl::OUString& procedureNamePattern ) throw(SQLException, RuntimeException) 811cdf0e10cSrcweir { 812cdf0e10cSrcweir return NULL; 813cdf0e10cSrcweir } 814cdf0e10cSrcweir // ------------------------------------------------------------------------- 815cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns( 816cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(SQLException, RuntimeException) 817cdf0e10cSrcweir { 818cdf0e10cSrcweir return NULL; 819cdf0e10cSrcweir } 820cdf0e10cSrcweir // ------------------------------------------------------------------------- 821cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys( 822cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(SQLException, RuntimeException) 823cdf0e10cSrcweir { 824cdf0e10cSrcweir return NULL; 825cdf0e10cSrcweir } 826cdf0e10cSrcweir // ------------------------------------------------------------------------- 827cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys( 828cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(SQLException, RuntimeException) 829cdf0e10cSrcweir { 830cdf0e10cSrcweir return NULL; 831cdf0e10cSrcweir } 832cdf0e10cSrcweir // ------------------------------------------------------------------------- 833cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys( 834cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table ) throw(SQLException, RuntimeException) 835cdf0e10cSrcweir { 836cdf0e10cSrcweir return NULL; 837cdf0e10cSrcweir } 838cdf0e10cSrcweir // ------------------------------------------------------------------------- 839cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo( 840cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, 841cdf0e10cSrcweir sal_Bool unique, sal_Bool approximate ) throw(SQLException, RuntimeException) 842cdf0e10cSrcweir { 843cdf0e10cSrcweir return NULL; 844cdf0e10cSrcweir } 845cdf0e10cSrcweir // ------------------------------------------------------------------------- 846cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier( 847cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schema, const ::rtl::OUString& table, sal_Int32 scope, 848cdf0e10cSrcweir sal_Bool nullable ) throw(SQLException, RuntimeException) 849cdf0e10cSrcweir { 850cdf0e10cSrcweir return NULL; 851cdf0e10cSrcweir } 852cdf0e10cSrcweir // ------------------------------------------------------------------------- 853cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges( 854cdf0e10cSrcweir const Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& tableNamePattern ) throw(SQLException, RuntimeException) 855cdf0e10cSrcweir { 856cdf0e10cSrcweir return NULL; 857cdf0e10cSrcweir } 858cdf0e10cSrcweir // ------------------------------------------------------------------------- 859cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference( 860cdf0e10cSrcweir const Any& primaryCatalog, const ::rtl::OUString& primarySchema, 861cdf0e10cSrcweir const ::rtl::OUString& primaryTable, const Any& foreignCatalog, 862cdf0e10cSrcweir const ::rtl::OUString& foreignSchema, const ::rtl::OUString& foreignTable ) throw(SQLException, RuntimeException) 863cdf0e10cSrcweir { 864cdf0e10cSrcweir return NULL; 865cdf0e10cSrcweir } 866cdf0e10cSrcweir // ------------------------------------------------------------------------- 867cdf0e10cSrcweir Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& typeNamePattern, const Sequence< sal_Int32 >& types ) throw(SQLException, RuntimeException) 868cdf0e10cSrcweir { 869cdf0e10cSrcweir OSL_ENSURE(0,"Not implemented yet!"); 870cdf0e10cSrcweir throw SQLException(); 871cdf0e10cSrcweir return NULL; 872cdf0e10cSrcweir } 873cdf0e10cSrcweir // ----------------------------------------------------------------------------- 874cdf0e10cSrcweir 875cdf0e10cSrcweir 876cdf0e10cSrcweir 877