22#include <com/sun/star/sdbc/ColumnSearch.hpp>
23#include <com/sun/star/sdbc/DataType.hpp>
24#include <com/sun/star/sdbc/ColumnValue.hpp>
25#include <com/sun/star/sdbc/SQLException.hpp>
26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
106 aTmp.push_back(aRow);
113 aTmp.push_back(aRow);
118 pResult->setRows(std::move(aRows));
123 const Any& ,
const OUString& ,
const OUString& tableNamePattern,
124 const OUString& columnNamePattern )
126 ::osl::MutexGuard aGuard(
m_aMutex );
131 throw SQLException();
135 throw SQLException();
143 const OUString* pTabIter = aTabNames.getConstArray();
144 const OUString* pTabEnd = pTabIter + aTabNames.getLength();
145 for(;pTabIter != pTabEnd;++pTabIter)
147 if(
match(tableNamePattern,*pTabIter,
'\0'))
154 throw SQLException();
158 const OUString* pColumnIter =
aColNames.getConstArray();
159 const OUString* pEnd = pColumnIter +
aColNames.getLength();
161 for(sal_Int32
i=1;pColumnIter != pEnd;++pColumnIter,++
i)
163 if(
match(columnNamePattern,*pColumnIter,
'\0'))
167 xColumns->getByName(*pColumnIter) >>=
xColumn;
168 OSL_ENSURE(
xColumn.is(),
"Columns contains a column who isn't a fastpropertyset!");
179 switch(aRow[5]->
getValue().getInt32())
182 case DataType::VARCHAR:
185 case DataType::LONGVARCHAR:
192 switch(aRow[11]->
getValue().getInt32())
194 case ColumnValue::NO_NULLS:
197 case ColumnValue::NULLABLE:
203 aRows.push_back(aRow);
210 pResult->setRows(std::move(aRows));
ORowSetValueDecorator decorates an ORowSetValue so the value is "refcounted".
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > createCatalog()
mutable::osl::Mutex m_aMutex
static bool getValue(EContact *pContact, sal_Int32 nColumnNum, GType nType, GValue *pStackValue, bool &_out_rWasNull)
bool match(const sal_Unicode *pWild, const sal_Unicode *pStr, const sal_Unicode cEscape)
#define PROPERTY_ID_ISNULLABLE
#define PROPERTY_ID_PRECISION
#define PROPERTY_ID_TYPENAME
#define PROPERTY_ID_DEFAULTVALUE
#define PROPERTY_ID_SCALE
const Color aColNames[SC_RANGECOLORS]