45 ,m_cFieldDelimiter(
';')
46 ,m_cStringDelimiter(
'"')
47 ,m_cDecimalDelimiter(
',')
48 ,m_cThousandDelimiter(
'.')
52OFlatConnection::~OFlatConnection()
63 osl_atomic_increment( &m_refCount );
65 const PropertyValue *pBegin = info.getConstArray();
66 const PropertyValue *pEnd = pBegin + info.getLength();
67 for(;pBegin != pEnd;++pBegin)
69 if(pBegin->Name ==
"HeaderLine")
71 if( ! (pBegin->Value >>= m_bHeaderLine) )
72 SAL_WARN(
"connectivity.flat",
"construct: unable to get property HeaderLine");
74 else if(pBegin->Name ==
"FieldDelimiter")
77 if( ! (pBegin->Value >>= aVal) )
78 SAL_WARN(
"connectivity.flat",
"construct: unable to get property FieldDelimiter");
80 m_cFieldDelimiter = aVal.toChar();
82 else if(pBegin->Name ==
"StringDelimiter")
85 if( ! (pBegin->Value >>= aVal) )
86 SAL_WARN(
"connectivity.flat",
"construct: unable to get property StringDelimiter");
88 m_cStringDelimiter = aVal.toChar();
90 else if(pBegin->Name ==
"DecimalDelimiter")
93 if( ! (pBegin->Value >>= aVal) )
94 SAL_WARN(
"connectivity.flat",
"construct: unable to get property DecimalDelimiter");
96 m_cDecimalDelimiter = aVal.toChar();
98 else if(pBegin->Name ==
"ThousandDelimiter")
101 if( ! (pBegin->Value >>= aVal) )
102 SAL_WARN(
"connectivity.flat",
"construct: unable to get property ThousandDelimiter");
104 m_cThousandDelimiter = aVal.toChar();
106 else if ( pBegin->Name ==
"MaxRowScan" )
108 pBegin->Value >>= m_nMaxRowsToScan;
112 osl_atomic_decrement( &m_refCount );
113 OConnection::construct(url,info);
114 m_bShowDeleted =
true;
119 ::osl::MutexGuard aGuard(
m_aMutex );
135 ::osl::MutexGuard aGuard(
m_aMutex );
147 ::osl::MutexGuard aGuard(
m_aMutex );
157 ::osl::MutexGuard aGuard(
m_aMutex );
161 pStmt->construct(
sql);
168 ::osl::MutexGuard aGuard(
m_aMutex );
connectivity::file::OConnection OConnection_B
css::uno::WeakReference< css::sdbcx::XTablesSupplier > m_xCatalog
virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData() override
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareCall(const OUString &sql) override
virtual css::uno::Reference< css::sdbc::XStatement > SAL_CALL createStatement() override
virtual css::uno::Reference< css::sdbc::XPreparedStatement > SAL_CALL prepareStatement(const OUString &sql) override
virtual css::uno::Reference< css::sdbcx::XTablesSupplier > createCatalog() override
#define SAL_WARN(area, stream)
void checkDisposed(bool _bThrow)