20#ifndef INCLUDED_CONNECTIVITY_DBTOOLS_HXX
21#define INCLUDED_CONNECTIVITY_DBTOOLS_HXX
36 class XSingleSelectQueryComposer;
39 class XTablesSupplier;
43 class XDatabaseMetaData;
63 class XComponentContext;
66 class XNumberFormatTypes;
67 class XNumberFormatsSupplier;
79 class ISQLStatementHelper;
97 const css::uno::Reference< css::util::XNumberFormatTypes >& _xTypes,
98 const css::lang::Locale& _rLocale);
107 const css::uno::Reference< css::util::XNumberFormatTypes >& _xTypes,
108 const css::lang::Locale& _rLocale);
147 const css::uno::Reference< css::sdbc::XRowSet>& _rxRowSet,
148 const css::uno::Reference< css::uno::XComponentContext>& _rxContext,
149 const css::uno::Reference< css::awt::XWindow>& _rxParent
171 const css::uno::Reference< css::sdbc::XRowSet>& _rxRowSet,
172 const css::uno::Reference< css::uno::XComponentContext>& _rxContext,
173 const css::uno::Reference< css::awt::XWindow>& _rxParent
182 const OUString& _rDataSourceName,
183 const OUString& _rUser,
184 const OUString& _rPwd,
185 const css::uno::Reference< css::uno::XComponentContext>& _rxContext,
186 const css::uno::Reference< css::awt::XWindow>& _rxParent);
193 const css::uno::Reference< css::uno::XInterface >& _rxComponent,
194 css::uno::Reference< css::sdbc::XConnection >& _rxActualConnection
200 const css::uno::Reference< css::sdbc::XConnection>& _rxConn,
201 const OUString& _rName
207 const css::uno::Any& i_aTable
210 const css::uno::Reference< css::beans::XPropertySet >& i_xTable
253 css::uno::Reference< css::container::XNameAccess >
255 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
256 const sal_Int32 _nCommandType,
257 const OUString& _rCommand,
258 css::uno::Reference< css::lang::XComponent >& _rxKeepFieldsAlive,
292 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
293 const sal_Int32 _nCommandType,
294 const OUString& _rCommand,
304 const css::sdbc::SQLException& _rChainedException,
305 const css::uno::Reference< css::uno::XInterface >& _rxContext,
306 const OUString& _rAdditionalError,
321 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
322 const char* _pAsciiSettingName
325 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
326 const OUString& rSettingName
336 const OUString& _sProperty,
355 const css::uno::Reference< css::uno::XInterface >& _rxDataSource,
356 const char* _pAsciiSettingsName,
357 css::uno::Any& _rSettingsValue
361 const css::uno::Reference< css::uno::XInterface >& _rxDataSource,
362 const OUString& _sSettingsName,
363 css::uno::Any& _rSettingsValue
375 OUString
quoteTableName(
const css::uno::Reference< css::sdbc::XDatabaseMetaData>& _rxMeta
376 ,
const OUString& _rName
388 const OUString& _rQualifiedName, OUString& _rCatalog, OUString& _rSchema, OUString& _rName,
EComposeRule _eComposeRule);
399 const css::uno::Reference< css::sdbc::XConnection>& _rxConn,
400 bool _bAllowDefault =
false,
401 const css::uno::Reference< css::uno::XComponentContext>& _rxContext = css::uno::Reference< css::uno::XComponentContext>()
413 const css::uno::Reference< css::beans::XPropertySet>& _rxRowSetProps,
414 const css::uno::Reference< css::uno::XComponentContext>& _rxContext,
415 const css::uno::Reference< css::awt::XWindow>& _rxParent
424 const css::uno::Reference< css::beans::XPropertySet>& _rxOld,
425 const css::uno::Reference< css::beans::XPropertySet>& _rxNew,
426 const css::lang::Locale& _rLocale
446 const OUString& _rCatalog,
447 const OUString& _rSchema,
448 const OUString& _rName,
459 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
460 const OUString& _rCatalog,
461 const OUString& _rSchema,
462 const OUString& _rName );
471 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
472 const css::uno::Reference< css::beans::XPropertySet>& _xTable );
481 const css::uno::Reference< css::sdbc::XDatabaseMetaData>& _xMetaData,
482 const css::uno::Reference< css::beans::XPropertySet>& _xTable,
488 sal_Int32 _nDataType);
491 const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
504 OUString
createUniqueName(
const css::uno::Reference< css::container::XNameAccess>& _rxContainer,
505 const OUString& _rBaseName,
506 bool _bStartWithNumber =
true);
511 const css::uno::Sequence< OUString >& _rNames,
512 const OUString& _rBaseName,
513 bool _bStartWithNumber
535 const css::uno::Reference< css::awt::XWindow>& _pParent,
536 const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
551 bool implUpdateObject(
const css::uno::Reference< css::sdbc::XRowUpdate >& _rxUpdatedObject,
552 const sal_Int32 _nColumnIndex,
553 const css::uno::Any& _rValue);
562 void askForParameters(
const css::uno::Reference< css::sdb::XSingleSelectQueryComposer >& _xComposer,
563 const css::uno::Reference< css::sdbc::XParameters>& _xParameters,
564 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
565 const css::uno::Reference< css::task::XInteractionHandler >& _rxHandler,
566 const ::std::vector<
bool, std::allocator<bool> >& _aParametersSet = ::std::vector<
bool, std::allocator<bool> >());
579 sal_Int32 parameterIndex,
580 const css::uno::Any& x,
595 sal_Int32 parameterIndex,
596 const ::connectivity::ORowSetValue& x,
614 bool implSetObject(
const css::uno::Reference< css::sdbc::XParameters>& _rxParameters,
615 const sal_Int32 _nColumnIndex,
616 const css::uno::Any& _rValue);
628 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
630 std::u16string_view _sCreatePattern);
640 const css::uno::Reference< css::sdbc::XConnection>& _xConnection);
652 ,
const css::uno::Reference< css::sdbc::XConnection>& _xConnection
653 ,std::u16string_view _sCreatePattern = {});
667 ,
const css::uno::Reference< css::sdbc::XConnection>& _xConnection
669 ,std::u16string_view _sCreatePattern = {});
683 ,
const css::uno::Reference< css::sdbc::XConnection>& _xConnection);
702 css::uno::Reference< css::beans::XPropertySet>
704 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
705 const OUString& _rName,
708 bool _bIsAutoIncrement,
710 sal_Int32 _nDataType);
723 const OUString& _rsUrl,
724 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
725 const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
739 const OUString& _sCatalog,
740 const OUString& _sSchema,
741 const OUString& _sTable);
759 std::u16string_view _sComposedTableName,
760 std::u16string_view _rName,
777 std::u16string_view _rExpression,
779 const sal_Int32 _nBooleanComparisonMode,
780 OUStringBuffer& _out_rSQLPredicate
791 const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &_xComposer,
792 const css::uno::Reference< css::beans::XPropertySet > &_xField
803 const css::uno::Reference< css::container::XNameAccess > &_xColumns,
804 const OUString &_sName
812 const css::uno::Reference< css::beans::XPropertySet > &_xColumn
class SAL_NO_VTABLE XPropertySet
bool dbfReadCharset(rtl_TextEncoding &nCharSet, SvStream *dbf_Stream)
decode a DBase file's codepage byte to a RTL charset
bool dbfDecodeCharset(rtl_TextEncoding &_out_encoding, sal_uInt8 nType, sal_uInt8 nCodepage)
decode a DBase file's codepage byte to a RTL charset