LCOV - code coverage report
Current view: top level - libreoffice/connectivity/source/drivers/dbase - DDatabaseMetaData.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 217 0.0 %
Date: 2012-12-27 Functions: 0 17 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include "dbase/DDatabaseMetaData.hxx"
      21             : #include <com/sun/star/sdbc/DataType.hpp>
      22             : #include <com/sun/star/sdbc/ResultSetType.hpp>
      23             : #include <com/sun/star/sdbc/ColumnValue.hpp>
      24             : #include <com/sun/star/beans/XPropertySet.hpp>
      25             : #include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
      26             : #include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
      27             : #include <com/sun/star/sdbcx/XIndexesSupplier.hpp>
      28             : #include "FDatabaseMetaDataResultSet.hxx"
      29             : #include <com/sun/star/lang/XUnoTunnel.hpp>
      30             : #include "dbase/DIndex.hxx"
      31             : #include "connectivity/FValue.hxx"
      32             : #include <comphelper/extract.hxx>
      33             : #include <comphelper/processfactory.hxx>
      34             : #include <comphelper/types.hxx>
      35             : #include <ucbhelper/content.hxx>
      36             : #include <rtl/logfile.hxx>
      37             : 
      38             : using namespace ::comphelper;
      39             : using namespace connectivity::dbase;
      40             : using namespace connectivity;
      41             : using namespace ::com::sun::star::uno;
      42             : using namespace ::com::sun::star::beans;
      43             : using namespace ::com::sun::star::sdbcx;
      44             : using namespace ::com::sun::star::sdbc;
      45             : using namespace ::com::sun::star::container;
      46             : using namespace ::com::sun::star::ucb;
      47             : using namespace ::com::sun::star::lang;
      48             : 
      49           0 : ODbaseDatabaseMetaData::ODbaseDatabaseMetaData(::connectivity::file::OConnection* _pCon)    :ODatabaseMetaData(_pCon)
      50             : {
      51             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::ODbaseDatabaseMetaData" );
      52           0 : }
      53             : // -------------------------------------------------------------------------
      54           0 : ODbaseDatabaseMetaData::~ODbaseDatabaseMetaData()
      55             : {
      56           0 : }
      57             : // -------------------------------------------------------------------------
      58           0 : Reference< XResultSet > ODbaseDatabaseMetaData::impl_getTypeInfo_throw(  )
      59             : {
      60             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::impl_getTypeInfo_throw" );
      61           0 :     ::osl::MutexGuard aGuard( m_aMutex );
      62             : 
      63           0 :     ::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eTypeInfo);
      64           0 :     Reference< XResultSet > xRef = pResult;
      65             : 
      66           0 :     static ODatabaseMetaDataResultSet::ORows aRows;
      67           0 :     if(aRows.empty())
      68             :     {
      69           0 :         ODatabaseMetaDataResultSet::ORow aRow;
      70           0 :         aRow.reserve(18);
      71             : 
      72           0 :         aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
      73           0 :         aRow.push_back(new ORowSetValueDecorator(::rtl::OUString("VARCHAR")));
      74           0 :         aRow.push_back(new ORowSetValueDecorator(DataType::VARCHAR));
      75           0 :         aRow.push_back(new ORowSetValueDecorator((sal_Int32)254));
      76           0 :         aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
      77           0 :         aRow.push_back(ODatabaseMetaDataResultSet::getQuoteValue());
      78           0 :         aRow.push_back(new ORowSetValueDecorator(::rtl::OUString("length")));
      79           0 :         aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnValue::NULLABLE));
      80           0 :         aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
      81           0 :         aRow.push_back(new ORowSetValueDecorator((sal_Int32)ColumnSearch::FULL));
      82           0 :         aRow.push_back(ODatabaseMetaDataResultSet::get1Value());
      83           0 :         aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
      84           0 :         aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
      85           0 :         aRow.push_back(new ORowSetValueDecorator(::rtl::OUString("C")));
      86           0 :         aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
      87           0 :         aRow.push_back(ODatabaseMetaDataResultSet::get0Value());
      88           0 :         aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
      89           0 :         aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
      90           0 :         aRow.push_back(new ORowSetValueDecorator((sal_Int32)10));
      91             : 
      92           0 :         aRows.push_back(aRow);
      93             : 
      94           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("LONGVARCHAR"));
      95           0 :         aRow[2] = new ORowSetValueDecorator(DataType::LONGVARCHAR);
      96           0 :         aRow[3] = new ORowSetValueDecorator((sal_Int32)2147483647);
      97           0 :         aRow[6] = new ORowSetValueDecorator();
      98           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("M"));
      99           0 :         aRows.push_back(aRow);
     100             : 
     101           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("DATE"));
     102           0 :         aRow[2] = new ORowSetValueDecorator(DataType::DATE);
     103           0 :         aRow[3] = new ORowSetValueDecorator((sal_Int32)10);
     104           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("D"));
     105           0 :         aRows.push_back(aRow);
     106             : 
     107           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("BOOLEAN"));
     108           0 :         aRow[2] = new ORowSetValueDecorator(DataType::BIT);
     109           0 :         aRow[3] = ODatabaseMetaDataResultSet::get1Value();
     110           0 :         aRow[4] = ODatabaseMetaDataResultSet::getEmptyValue();
     111           0 :         aRow[5] = ODatabaseMetaDataResultSet::getEmptyValue();
     112           0 :         aRow[6] = new ORowSetValueDecorator(::rtl::OUString());
     113           0 :         aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
     114           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("L"));
     115           0 :         aRows.push_back(aRow);
     116             : 
     117           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("DOUBLE"));
     118           0 :         aRow[2] = new ORowSetValueDecorator(DataType::DOUBLE);
     119           0 :         aRow[3] = new ORowSetValueDecorator((sal_Int32)8);
     120           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("B"));
     121           0 :         aRows.push_back(aRow);
     122             : 
     123           0 :         aRow[11] = new ORowSetValueDecorator(sal_True);
     124           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("Y"));
     125           0 :         aRows.push_back(aRow);
     126             : 
     127           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("TIMESTAMP"));
     128           0 :         aRow[2] = new ORowSetValueDecorator(DataType::TIMESTAMP);
     129           0 :         aRow[11] = new ORowSetValueDecorator(sal_False);
     130           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("T"));
     131           0 :         aRows.push_back(aRow);
     132             : 
     133           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("INTEGER"));
     134           0 :         aRow[2] = new ORowSetValueDecorator(DataType::INTEGER);
     135           0 :         aRow[3] = new ORowSetValueDecorator((sal_Int32)10);
     136           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("I"));
     137           0 :         aRows.push_back(aRow);
     138             : 
     139           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("DECIMAL"));
     140           0 :         aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
     141           0 :         aRow[3] = new ORowSetValueDecorator((sal_Int32)20);
     142           0 :         aRow[6] = new ORowSetValueDecorator(::rtl::OUString("length,scale"));
     143           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("F"));
     144           0 :         aRows.push_back(aRow);
     145             : 
     146           0 :         aRow[1] = new ORowSetValueDecorator(::rtl::OUString("NUMERIC"));
     147           0 :         aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
     148           0 :         aRow[3] = new ORowSetValueDecorator((sal_Int32)16);
     149           0 :         aRow[13] = new ORowSetValueDecorator(::rtl::OUString("N"));
     150           0 :         aRow[15] = new ORowSetValueDecorator((sal_Int32)16);
     151           0 :         aRows.push_back(aRow);
     152             :     }
     153             : 
     154           0 :     pResult->setRows(aRows);
     155           0 :     return xRef;
     156             : }
     157             : // -------------------------------------------------------------------------
     158           0 : Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getColumns(
     159             :     const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/, const ::rtl::OUString& tableNamePattern,
     160             :         const ::rtl::OUString& columnNamePattern ) throw(SQLException, RuntimeException)
     161             : {
     162             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getColumns" );
     163           0 :     ::osl::MutexGuard aGuard( m_aMutex );
     164             : 
     165             : 
     166           0 :     Reference< XTablesSupplier > xTables = m_pConnection->createCatalog();
     167           0 :     if(!xTables.is())
     168           0 :         throw SQLException();
     169             : 
     170           0 :     Reference< XNameAccess> xNames = xTables->getTables();
     171           0 :     if(!xNames.is())
     172           0 :         throw SQLException();
     173             : 
     174           0 :     ODatabaseMetaDataResultSet::ORows aRows;
     175           0 :     ODatabaseMetaDataResultSet::ORow aRow(19);
     176             : 
     177           0 :     aRow[10] = new ORowSetValueDecorator((sal_Int32)10);
     178           0 :     Sequence< ::rtl::OUString> aTabNames(xNames->getElementNames());
     179           0 :     const ::rtl::OUString* pTabBegin    = aTabNames.getConstArray();
     180           0 :     const ::rtl::OUString* pTabEnd      = pTabBegin + aTabNames.getLength();
     181           0 :     for(;pTabBegin != pTabEnd;++pTabBegin)
     182             :     {
     183           0 :         if(match(tableNamePattern,*pTabBegin,'\0'))
     184             :         {
     185           0 :             Reference< XColumnsSupplier> xTable;
     186           0 :             ::cppu::extractInterface(xTable,xNames->getByName(*pTabBegin));
     187             :             OSL_ENSURE(xTable.is(),"Table not found! Normallya exception had to be thrown here!");
     188           0 :             aRow[3] = new ORowSetValueDecorator(*pTabBegin);
     189             : 
     190           0 :             Reference< XNameAccess> xColumns = xTable->getColumns();
     191           0 :             if(!xColumns.is())
     192           0 :                 throw SQLException();
     193             : 
     194           0 :             Sequence< ::rtl::OUString> aColNames(xColumns->getElementNames());
     195             : 
     196           0 :             const ::rtl::OUString* pBegin = aColNames.getConstArray();
     197           0 :             const ::rtl::OUString* pEnd = pBegin + aColNames.getLength();
     198           0 :             Reference< XPropertySet> xColumn;
     199           0 :             for(sal_Int32 i=1;pBegin != pEnd;++pBegin,++i)
     200             :             {
     201           0 :                 if(match(columnNamePattern,*pBegin,'\0'))
     202             :                 {
     203           0 :                     aRow[4] = new ORowSetValueDecorator(*pBegin);
     204             : 
     205           0 :                     ::cppu::extractInterface(xColumn,xColumns->getByName(*pBegin));
     206             :                     OSL_ENSURE(xColumn.is(),"Columns contains a column who isn't a fastpropertyset!");
     207           0 :                     aRow[5] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPE))));
     208           0 :                     aRow[6] = new ORowSetValueDecorator(getString(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_TYPENAME))));
     209           0 :                     aRow[7] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PRECISION))));
     210           0 :                     aRow[9] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_SCALE))));
     211           0 :                     aRow[11] = new ORowSetValueDecorator(getINT32(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISNULLABLE))));
     212           0 :                     aRow[13] = new ORowSetValueDecorator(getString(xColumn->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_DEFAULTVALUE))));
     213           0 :                     switch((sal_Int32)aRow[5]->getValue())
     214             :                     {
     215             :                     case DataType::CHAR:
     216             :                     case DataType::VARCHAR:
     217           0 :                         aRow[16] = new ORowSetValueDecorator((sal_Int32)254);
     218           0 :                         break;
     219             :                     case DataType::LONGVARCHAR:
     220           0 :                         aRow[16] = new ORowSetValueDecorator((sal_Int32)65535);
     221           0 :                         break;
     222             :                     default:
     223           0 :                         aRow[16] = new ORowSetValueDecorator((sal_Int32)0);
     224             :                     }
     225           0 :                     aRow[17] = new ORowSetValueDecorator(i);
     226           0 :                     switch(sal_Int32(aRow[11]->getValue()))
     227             :                     {
     228             :                     case ColumnValue::NO_NULLS:
     229           0 :                         aRow[18] = new ORowSetValueDecorator(::rtl::OUString("NO"));
     230           0 :                         break;
     231             :                     case ColumnValue::NULLABLE:
     232           0 :                         aRow[18] = new ORowSetValueDecorator(::rtl::OUString("YES"));
     233           0 :                         break;
     234             :                     default:
     235           0 :                         aRow[18] = new ORowSetValueDecorator(::rtl::OUString());
     236             :                     }
     237           0 :                     aRows.push_back(aRow);
     238             :                 }
     239           0 :             }
     240             :         }
     241             :     }
     242           0 :     ::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eColumns);
     243           0 :     Reference< XResultSet > xRef = pResult;
     244           0 :     pResult->setRows(aRows);
     245             : 
     246           0 :     return xRef;
     247             : }
     248             : // -------------------------------------------------------------------------
     249           0 : Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getIndexInfo(
     250             :     const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const ::rtl::OUString& table,
     251             :         sal_Bool unique, sal_Bool /*approximate*/ ) throw(SQLException, RuntimeException)
     252             : {
     253             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getIndexInfo" );
     254           0 :     ::osl::MutexGuard aGuard( m_aMutex );
     255             : 
     256           0 :         Reference< XTablesSupplier > xTables = m_pConnection->createCatalog();
     257           0 :     if(!xTables.is())
     258           0 :                 throw SQLException();
     259             : 
     260           0 :     Reference< XNameAccess> xNames = xTables->getTables();
     261           0 :     if(!xNames.is())
     262           0 :                 throw SQLException();
     263             : 
     264           0 :     ODatabaseMetaDataResultSet::ORows aRows;
     265           0 :     ODatabaseMetaDataResultSet::ORow aRow(14);
     266             : 
     267           0 :     aRow[5]     = new ORowSetValueDecorator(::rtl::OUString());
     268           0 :     aRow[10]    = new ORowSetValueDecorator(::rtl::OUString("A"));
     269             : 
     270           0 :     Reference< XIndexesSupplier> xTable;
     271           0 :     ::cppu::extractInterface(xTable,xNames->getByName(table));
     272           0 :     aRow[3] = new ORowSetValueDecorator(table);
     273           0 :     aRow[7] = new ORowSetValueDecorator((sal_Int32)3);
     274             : 
     275           0 :     Reference< XNameAccess> xIndexes = xTable->getIndexes();
     276           0 :     if(!xIndexes.is())
     277           0 :         throw SQLException();
     278             : 
     279           0 :     Sequence< ::rtl::OUString> aIdxNames(xIndexes->getElementNames());
     280             : 
     281           0 :     const ::rtl::OUString* pBegin = aIdxNames.getConstArray();
     282           0 :     const ::rtl::OUString* pEnd = pBegin + aIdxNames.getLength();
     283           0 :     Reference< XPropertySet> xIndex;
     284           0 :     for(;pBegin != pEnd;++pBegin)
     285             :     {
     286           0 :         ::cppu::extractInterface(xIndex,xIndexes->getByName(*pBegin));
     287             :         OSL_ENSURE(xIndex.is(),"Indexes contains a column who isn't a fastpropertyset!");
     288             : 
     289           0 :         if(unique && !getBOOL(xIndex->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISUNIQUE))))
     290           0 :             continue;
     291           0 :         aRow[4] = new ORowSetValueDecorator(getBOOL(xIndex->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_ISUNIQUE))));
     292           0 :         aRow[6] = new ORowSetValueDecorator(*pBegin);
     293             : 
     294           0 :         Reference< XUnoTunnel> xTunnel(xIndex,UNO_QUERY);
     295           0 :         if(xTunnel.is())
     296             :         {
     297           0 :             ODbaseIndex* pIndex = reinterpret_cast< ODbaseIndex* >( xTunnel->getSomething(ODbaseIndex::getUnoTunnelImplementationId()) );
     298           0 :             if(pIndex)
     299             :             {
     300           0 :                 aRow[11] = new ORowSetValueDecorator((sal_Int32)pIndex->getHeader().db_maxkeys);
     301           0 :                 aRow[12] = new ORowSetValueDecorator((sal_Int32)pIndex->getHeader().db_pagecount);
     302             :             }
     303             :         }
     304             : 
     305           0 :         Reference<XColumnsSupplier> xColumnsSup(xIndex,UNO_QUERY);
     306           0 :         Reference< XNameAccess> xColumns = xColumnsSup->getColumns();
     307           0 :         Sequence< ::rtl::OUString> aColNames(xColumns->getElementNames());
     308             : 
     309           0 :         const ::rtl::OUString* pColBegin = aColNames.getConstArray();
     310           0 :         const ::rtl::OUString* pColEnd = pColBegin + aColNames.getLength();
     311           0 :         Reference< XPropertySet> xColumn;
     312           0 :         for(sal_Int32 j=1;pColBegin != pColEnd;++pColBegin,++j)
     313             :         {
     314           0 :             aRow[8] = new ORowSetValueDecorator(j);
     315           0 :             aRow[9] = new ORowSetValueDecorator(*pColBegin);
     316           0 :             aRows.push_back(aRow);
     317             :         }
     318           0 :     }
     319             : 
     320           0 :     ::connectivity::ODatabaseMetaDataResultSet* pResult = new ::connectivity::ODatabaseMetaDataResultSet(::connectivity::ODatabaseMetaDataResultSet::eIndexInfo);
     321           0 :     Reference< XResultSet > xRef = pResult;
     322           0 :     pResult->setRows(aRows);
     323           0 :     return xRef;
     324             : }
     325             : // -------------------------------------------------------------------------
     326           0 : ::rtl::OUString SAL_CALL ODbaseDatabaseMetaData::getURL(  ) throw(SQLException, RuntimeException)
     327             : {
     328             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getURL" );
     329           0 :     ::osl::MutexGuard aGuard( m_aMutex );
     330           0 :     return ::rtl::OUString("sdbc:dbase:") + m_pConnection->getURL();
     331             : }
     332             : // -------------------------------------------------------------------------
     333           0 : sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxBinaryLiteralLength(  ) throw(SQLException, RuntimeException)
     334             : {
     335             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getMaxBinaryLiteralLength" );
     336           0 :     return STRING_MAXLEN;
     337             : }
     338             : // -------------------------------------------------------------------------
     339           0 : sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxCharLiteralLength(  ) throw(SQLException, RuntimeException)
     340             : {
     341             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getMaxCharLiteralLength" );
     342           0 :     return 254;
     343             : }
     344             : // -------------------------------------------------------------------------
     345           0 : sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnNameLength(  ) throw(SQLException, RuntimeException)
     346             : {
     347             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getMaxColumnNameLength" );
     348           0 :     return 10;
     349             : }
     350             : // -------------------------------------------------------------------------
     351           0 : sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnsInIndex(  ) throw(SQLException, RuntimeException)
     352             : {
     353             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getMaxColumnsInIndex" );
     354           0 :     return 1;
     355             : }
     356             : // -------------------------------------------------------------------------
     357           0 : sal_Int32 SAL_CALL ODbaseDatabaseMetaData::getMaxColumnsInTable(  ) throw(SQLException, RuntimeException)
     358             : {
     359             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::getMaxColumnsInTable" );
     360           0 :     return 128;
     361             : }
     362             : // -----------------------------------------------------------------------------
     363           0 : sal_Bool SAL_CALL ODbaseDatabaseMetaData::supportsAlterTableWithAddColumn(  ) throw(SQLException, RuntimeException)
     364             : {
     365             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::supportsAlterTableWithAddColumn" );
     366           0 :     return sal_True;
     367             : }
     368             : // -------------------------------------------------------------------------
     369           0 : sal_Bool SAL_CALL ODbaseDatabaseMetaData::supportsAlterTableWithDropColumn(  ) throw(SQLException, RuntimeException)
     370             : {
     371             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::supportsAlterTableWithDropColumn" );
     372           0 :     return sal_False;
     373             : }
     374             : // -----------------------------------------------------------------------------
     375           0 : sal_Bool SAL_CALL ODbaseDatabaseMetaData::isReadOnly(  ) throw(SQLException, RuntimeException)
     376             : {
     377             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::isReadOnly" );
     378           0 :     ::osl::MutexGuard aGuard( m_aMutex );
     379             : 
     380           0 :     sal_Bool bReadOnly = sal_False;
     381           0 :     static ::rtl::OUString sReadOnly(  "IsReadOnly" );
     382           0 :     ::ucbhelper::Content aFile(m_pConnection->getContent(),Reference< XCommandEnvironment >(), comphelper::getProcessComponentContext());
     383           0 :     aFile.getPropertyValue(sReadOnly) >>= bReadOnly;
     384             : 
     385           0 :     return bReadOnly;
     386             : }
     387             : // -----------------------------------------------------------------------------
     388           0 : sal_Bool ODbaseDatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw(  )
     389             : {
     390             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::impl_storesMixedCaseQuotedIdentifiers_throw" );
     391           0 :     return sal_True;
     392             : }
     393             : // -----------------------------------------------------------------------------
     394           0 : sal_Bool ODbaseDatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw(  )
     395             : {
     396             :     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen@sun.com", "ODbaseDatabaseMetaData::impl_supportsMixedCaseQuotedIdentifiers_throw" );
     397           0 :     return sal_True;
     398             : }
     399             : // -----------------------------------------------------------------------------
     400             : 
     401             : 
     402             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10