summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/ado
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/inc/ado')
-rw-r--r--connectivity/source/inc/ado/ACallableStatement.hxx76
-rw-r--r--connectivity/source/inc/ado/ACatalog.hxx34
-rw-r--r--connectivity/source/inc/ado/AColumn.hxx42
-rw-r--r--connectivity/source/inc/ado/AColumns.hxx46
-rw-r--r--connectivity/source/inc/ado/AConnection.hxx186
-rw-r--r--connectivity/source/inc/ado/ADatabaseMetaData.hxx372
-rw-r--r--connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx362
-rw-r--r--connectivity/source/inc/ado/ADatabaseMetaDataResultSetMetaData.hxx120
-rw-r--r--connectivity/source/inc/ado/ADriver.hxx94
-rw-r--r--connectivity/source/inc/ado/AGroup.hxx58
-rw-r--r--connectivity/source/inc/ado/AGroups.hxx40
-rw-r--r--connectivity/source/inc/ado/AIndex.hxx30
-rw-r--r--connectivity/source/inc/ado/AIndexes.hxx46
-rw-r--r--connectivity/source/inc/ado/AKey.hxx44
-rw-r--r--connectivity/source/inc/ado/AKeys.hxx46
-rw-r--r--connectivity/source/inc/ado/AResultSet.hxx376
-rw-r--r--connectivity/source/inc/ado/AResultSetMetaData.hxx76
-rw-r--r--connectivity/source/inc/ado/AStatement.hxx348
-rw-r--r--connectivity/source/inc/ado/ATable.hxx58
-rw-r--r--connectivity/source/inc/ado/ATables.hxx44
-rw-r--r--connectivity/source/inc/ado/AUser.hxx94
-rw-r--r--connectivity/source/inc/ado/AUsers.hxx42
-rw-r--r--connectivity/source/inc/ado/AView.hxx34
-rw-r--r--connectivity/source/inc/ado/AViews.hxx36
-rw-r--r--connectivity/source/inc/ado/Aolevariant.hxx168
-rw-r--r--connectivity/source/inc/ado/Aolewrap.hxx222
-rw-r--r--connectivity/source/inc/ado/Awrapado.hxx662
-rw-r--r--connectivity/source/inc/ado/WrapCatalog.hxx38
-rw-r--r--connectivity/source/inc/ado/WrapColumn.hxx58
-rw-r--r--connectivity/source/inc/ado/WrapIndex.hxx42
-rw-r--r--connectivity/source/inc/ado/WrapKey.hxx46
-rw-r--r--connectivity/source/inc/ado/WrapTable.hxx40
-rw-r--r--connectivity/source/inc/ado/WrapTypeDefs.hxx28
-rw-r--r--connectivity/source/inc/ado/adoimp.hxx82
34 files changed, 2045 insertions, 2045 deletions
diff --git a/connectivity/source/inc/ado/ACallableStatement.hxx b/connectivity/source/inc/ado/ACallableStatement.hxx
index e58617b3b00e..707b57ebb315 100644
--- a/connectivity/source/inc/ado/ACallableStatement.hxx
+++ b/connectivity/source/inc/ado/ACallableStatement.hxx
@@ -27,49 +27,49 @@
namespace connectivity::ado
{
- //************ Class: java.sql.CallableStatement
+ //************ Class: java.sql.CallableStatement
- class OCallableStatement : public OPreparedStatement,
- public css::sdbc::XRow,
- public css::sdbc::XOutParameters
- {
- OLEVariant m_aValue;
- public:
- DECLARE_SERVICE_INFO();
+ class OCallableStatement : public OPreparedStatement,
+ public css::sdbc::XRow,
+ public css::sdbc::XOutParameters
+ {
+ OLEVariant m_aValue;
+ public:
+ DECLARE_SERVICE_INFO();
- // a Constructor, that is needed for when Returning the Object is needed:
- OCallableStatement( OConnection* _pConnection, const OUString& sql );
+ // a Constructor, that is needed for when Returning the Object is needed:
+ OCallableStatement( OConnection* _pConnection, const OUString& sql );
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- virtual void SAL_CALL acquire() noexcept override;
- virtual void SAL_CALL release() noexcept override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
- // XRow
- virtual sal_Bool SAL_CALL wasNull( ) override;
- virtual OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
- virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
- virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
- virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
- virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
- virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
- virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
- virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
- virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
- virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
- virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
- virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
- virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
- // XOutParameters
- virtual void SAL_CALL registerOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& typeName ) override;
- virtual void SAL_CALL registerNumericOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, sal_Int32 scale ) override;
- };
+ // XRow
+ virtual sal_Bool SAL_CALL wasNull( ) override;
+ virtual OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
+ virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
+ virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
+ virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
+ virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
+ virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
+ virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
+ virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
+ virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
+ virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
+ virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
+ virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
+ // XOutParameters
+ virtual void SAL_CALL registerOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, const OUString& typeName ) override;
+ virtual void SAL_CALL registerNumericOutParameter( sal_Int32 parameterIndex, sal_Int32 sqlType, sal_Int32 scale ) override;
+ };
}
diff --git a/connectivity/source/inc/ado/ACatalog.hxx b/connectivity/source/inc/ado/ACatalog.hxx
index fd09e9ad3c40..326b803f7f51 100644
--- a/connectivity/source/inc/ado/ACatalog.hxx
+++ b/connectivity/source/inc/ado/ACatalog.hxx
@@ -23,27 +23,27 @@
namespace connectivity::ado
{
- class OConnection;
+ class OConnection;
- class OCatalog : public connectivity::sdbcx::OCatalog
- {
- WpADOCatalog m_aCatalog;
- OConnection* m_pConnection;
+ class OCatalog : public connectivity::sdbcx::OCatalog
+ {
+ WpADOCatalog m_aCatalog;
+ OConnection* m_pConnection;
- public:
- virtual void refreshTables() override;
- virtual void refreshViews() override;
- virtual void refreshGroups() override;
- virtual void refreshUsers() override;
+ public:
+ virtual void refreshTables() override;
+ virtual void refreshViews() override;
+ virtual void refreshGroups() override;
+ virtual void refreshUsers() override;
- public:
- OCatalog(_ADOCatalog* _pCatalog,OConnection* _pCon);
- ~OCatalog() override;
+ public:
+ OCatalog(_ADOCatalog* _pCatalog,OConnection* _pCon);
+ ~OCatalog() override;
- OConnection* getConnection() const { return m_pConnection; }
- sdbcx::OCollection* getPrivateTables() const { return m_pTables.get(); }
- WpADOCatalog getCatalog() const { return m_aCatalog; }
- };
+ OConnection* getConnection() const { return m_pConnection; }
+ sdbcx::OCollection* getPrivateTables() const { return m_pTables.get(); }
+ WpADOCatalog getCatalog() const { return m_aCatalog; }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AColumn.hxx b/connectivity/source/inc/ado/AColumn.hxx
index f297964820dc..151238a5f10d 100644
--- a/connectivity/source/inc/ado/AColumn.hxx
+++ b/connectivity/source/inc/ado/AColumn.hxx
@@ -24,29 +24,29 @@
namespace connectivity::ado
{
- class OConnection;
- typedef sdbcx::OColumn OColumn_ADO;
- class OAdoColumn : public OColumn_ADO
- {
- WpADOColumn m_aColumn;
- OConnection* m_pConnection;
- OUString m_ReferencedColumn;
- bool m_IsAscending;
+ class OConnection;
+ typedef sdbcx::OColumn OColumn_ADO;
+ class OAdoColumn : public OColumn_ADO
+ {
+ WpADOColumn m_aColumn;
+ OConnection* m_pConnection;
+ OUString m_ReferencedColumn;
+ bool m_IsAscending;
- void fillPropertyValues();
- protected:
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
- sal_Int32 nHandle,
- const css::uno::Any& rValue
- ) override;
- public:
- OAdoColumn(bool _bCase,OConnection* _pConnection,_ADOColumn* _pColumn);
- OAdoColumn(bool _bCase,OConnection* _pConnection);
- // ODescriptor
- virtual void construct() override;
+ void fillPropertyValues();
+ protected:
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
+ sal_Int32 nHandle,
+ const css::uno::Any& rValue
+ ) override;
+ public:
+ OAdoColumn(bool _bCase,OConnection* _pConnection,_ADOColumn* _pColumn);
+ OAdoColumn(bool _bCase,OConnection* _pConnection);
+ // ODescriptor
+ virtual void construct() override;
- WpADOColumn getColumnImpl() const;
- };
+ WpADOColumn getColumnImpl() const;
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AColumns.hxx b/connectivity/source/inc/ado/AColumns.hxx
index 9c307c9dc386..4ff9ad041376 100644
--- a/connectivity/source/inc/ado/AColumns.hxx
+++ b/connectivity/source/inc/ado/AColumns.hxx
@@ -26,31 +26,31 @@
namespace connectivity::ado
{
- class OConnection;
- class OColumns : public sdbcx::OCollection
- {
- protected:
- WpADOColumns m_aCollection;
- OConnection* m_pConnection;
+ class OConnection;
+ class OColumns : public sdbcx::OCollection
+ {
+ protected:
+ WpADOColumns m_aCollection;
+ OConnection* m_pConnection;
- virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
- virtual void impl_refresh() override;
- virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
- virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
- public:
- OColumns( ::cppu::OWeakObject& _rParent,
- ::osl::Mutex& _rMutex,
- const ::std::vector< OUString> &_rVector,
- const WpADOColumns& _rCollection,
- bool _bCase,
- OConnection* _pConnection) : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector)
- ,m_aCollection(_rCollection)
- ,m_pConnection(_pConnection)
- {
- }
+ virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
+ virtual void impl_refresh() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
+ public:
+ OColumns( ::cppu::OWeakObject& _rParent,
+ ::osl::Mutex& _rMutex,
+ const ::std::vector< OUString> &_rVector,
+ const WpADOColumns& _rCollection,
+ bool _bCase,
+ OConnection* _pConnection) : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector)
+ ,m_aCollection(_rCollection)
+ ,m_pConnection(_pConnection)
+ {
+ }
- };
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AConnection.hxx b/connectivity/source/inc/ado/AConnection.hxx
index 38a8a6d757bb..2d29fbe64a12 100644
--- a/connectivity/source/inc/ado/AConnection.hxx
+++ b/connectivity/source/inc/ado/AConnection.hxx
@@ -32,100 +32,100 @@
namespace connectivity::ado
{
- struct OExtendedTypeInfo
+ struct OExtendedTypeInfo
+ {
+ ::connectivity::OTypeInfo aSimpleType; // the general type info
+ DataTypeEnum eType;
+
+ OUString getDBName() const { return aSimpleType.aTypeName; }
+ };
+
+ class WpADOConnection;
+ class ODriver;
+ typedef std::multimap<DataTypeEnum, OExtendedTypeInfo*> OTypeInfoMap;
+ typedef connectivity::OMetaConnection OConnection_BASE;
+
+
+ class OConnection : public OConnection_BASE
+ {
+ protected:
+
+ // Data attributes
+
+ OTypeInfoMap m_aTypeInfo; // vector containing an entry
+ // for each row returned by
+ // DatabaseMetaData.getTypeInfo.
+ unotools::WeakReference<OCatalog> m_xCatalog;
+ ODriver* m_pDriver;
+ private:
+ WpADOConnection m_aAdoConnection;
+ sal_Int32 m_nEngineType;
+ bool m_bClosed;
+ bool m_bAutocommit;
+
+ protected:
+ /// @throws css::sdbc::SQLException
+ void buildTypeInfo();
+ public:
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ OConnection(ODriver* _pDriver);
+ // OConnection(const SQLHANDLE _pConnectionHandle);
+ ~OConnection() override;
+ void construct(std::u16string_view url,const css::uno::Sequence< css::beans::PropertyValue >& info);
+
+ //XUnoTunnel
+ virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
+ static css::uno::Sequence< sal_Int8 > getUnoTunnelId();
+ // XServiceInfo
+ DECLARE_SERVICE_INFO();
+ // OComponentHelper
+ virtual void SAL_CALL disposing() override;
+
+ // XConnection
+ 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::sdbc::XPreparedStatement > SAL_CALL prepareCall( const OUString& sql ) override;
+ virtual OUString SAL_CALL nativeSQL( const OUString& sql ) override;
+ virtual void SAL_CALL setAutoCommit( sal_Bool autoCommit ) override;
+ virtual sal_Bool SAL_CALL getAutoCommit( ) override;
+ virtual void SAL_CALL commit( ) override;
+ virtual void SAL_CALL rollback( ) override;
+ virtual sal_Bool SAL_CALL isClosed( ) override;
+ virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData( ) override;
+ virtual void SAL_CALL setReadOnly( sal_Bool readOnly ) override;
+ virtual sal_Bool SAL_CALL isReadOnly( ) override;
+ virtual void SAL_CALL setCatalog( const OUString& catalog ) override;
+ virtual OUString SAL_CALL getCatalog( ) override;
+ virtual void SAL_CALL setTransactionIsolation( sal_Int32 level ) override;
+ virtual sal_Int32 SAL_CALL getTransactionIsolation( ) override;
+ virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTypeMap( ) override;
+ virtual void SAL_CALL setTypeMap( const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
+ // XCloseable
+ virtual void SAL_CALL close( ) override;
+ // XWarningsSupplier
+ virtual css::uno::Any SAL_CALL getWarnings( ) override;
+ virtual void SAL_CALL clearWarnings( ) override;
+
+ WpADOConnection& getConnection() { return m_aAdoConnection; }
+ void setCatalog(OCatalog* _pCatalog) { m_xCatalog = _pCatalog; }
+
+ const OTypeInfoMap* getTypeInfo() const { return &m_aTypeInfo;}
+ OCatalog* getAdoCatalog() const
{
- ::connectivity::OTypeInfo aSimpleType; // the general type info
- DataTypeEnum eType;
-
- OUString getDBName() const { return aSimpleType.aTypeName; }
- };
-
- class WpADOConnection;
- class ODriver;
- typedef std::multimap<DataTypeEnum, OExtendedTypeInfo*> OTypeInfoMap;
- typedef connectivity::OMetaConnection OConnection_BASE;
-
-
- class OConnection : public OConnection_BASE
- {
- protected:
-
- // Data attributes
-
- OTypeInfoMap m_aTypeInfo; // vector containing an entry
- // for each row returned by
- // DatabaseMetaData.getTypeInfo.
- unotools::WeakReference<OCatalog> m_xCatalog;
- ODriver* m_pDriver;
- private:
- WpADOConnection m_aAdoConnection;
- sal_Int32 m_nEngineType;
- bool m_bClosed;
- bool m_bAutocommit;
-
- protected:
- /// @throws css::sdbc::SQLException
- void buildTypeInfo();
- public:
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- OConnection(ODriver* _pDriver);
- // OConnection(const SQLHANDLE _pConnectionHandle);
- ~OConnection() override;
- void construct(std::u16string_view url,const css::uno::Sequence< css::beans::PropertyValue >& info);
-
- //XUnoTunnel
- virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier ) override;
- static css::uno::Sequence< sal_Int8 > getUnoTunnelId();
- // XServiceInfo
- DECLARE_SERVICE_INFO();
- // OComponentHelper
- virtual void SAL_CALL disposing() override;
-
- // XConnection
- 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::sdbc::XPreparedStatement > SAL_CALL prepareCall( const OUString& sql ) override;
- virtual OUString SAL_CALL nativeSQL( const OUString& sql ) override;
- virtual void SAL_CALL setAutoCommit( sal_Bool autoCommit ) override;
- virtual sal_Bool SAL_CALL getAutoCommit( ) override;
- virtual void SAL_CALL commit( ) override;
- virtual void SAL_CALL rollback( ) override;
- virtual sal_Bool SAL_CALL isClosed( ) override;
- virtual css::uno::Reference< css::sdbc::XDatabaseMetaData > SAL_CALL getMetaData( ) override;
- virtual void SAL_CALL setReadOnly( sal_Bool readOnly ) override;
- virtual sal_Bool SAL_CALL isReadOnly( ) override;
- virtual void SAL_CALL setCatalog( const OUString& catalog ) override;
- virtual OUString SAL_CALL getCatalog( ) override;
- virtual void SAL_CALL setTransactionIsolation( sal_Int32 level ) override;
- virtual sal_Int32 SAL_CALL getTransactionIsolation( ) override;
- virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getTypeMap( ) override;
- virtual void SAL_CALL setTypeMap( const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
- // XCloseable
- virtual void SAL_CALL close( ) override;
- // XWarningsSupplier
- virtual css::uno::Any SAL_CALL getWarnings( ) override;
- virtual void SAL_CALL clearWarnings( ) override;
-
- WpADOConnection& getConnection() { return m_aAdoConnection; }
- void setCatalog(OCatalog* _pCatalog) { m_xCatalog = _pCatalog; }
-
- const OTypeInfoMap* getTypeInfo() const { return &m_aTypeInfo;}
- OCatalog* getAdoCatalog() const
- {
- return m_xCatalog.get().get();
- }
-
- sal_Int32 getEngineType() const { return m_nEngineType; }
- ODriver* getDriver() const { return m_pDriver; }
-
- static const OExtendedTypeInfo* getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo,
- DataTypeEnum _nType,
- const OUString& _sTypeName,
- sal_Int32 _nPrecision,
- sal_Int32 _nScale,
- bool& _brForceToType);
- };
+ return m_xCatalog.get().get();
+ }
+
+ sal_Int32 getEngineType() const { return m_nEngineType; }
+ ODriver* getDriver() const { return m_pDriver; }
+
+ static const OExtendedTypeInfo* getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo,
+ DataTypeEnum _nType,
+ const OUString& _sTypeName,
+ sal_Int32 _nPrecision,
+ sal_Int32 _nScale,
+ bool& _brForceToType);
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/ADatabaseMetaData.hxx b/connectivity/source/inc/ado/ADatabaseMetaData.hxx
index 1661ca44181c..2cecedda93fe 100644
--- a/connectivity/source/inc/ado/ADatabaseMetaData.hxx
+++ b/connectivity/source/inc/ado/ADatabaseMetaData.hxx
@@ -24,197 +24,197 @@
namespace connectivity::ado
{
- class WpADOConnection;
- class OConnection;
+ class WpADOConnection;
+ class OConnection;
- //************ Class: ODatabaseMetaData
+ //************ Class: ODatabaseMetaData
- class ODatabaseMetaData : public ODatabaseMetaDataBase
+ class ODatabaseMetaData : public ODatabaseMetaDataBase
+ {
+ struct LiteralInfo
{
- struct LiteralInfo
- {
- OUString pwszLiteralValue;
- sal_uInt32 cchMaxLen;
- bool fSupported;
- };
-
- std::map<sal_uInt32,LiteralInfo> m_aLiteralInfo;
- WpADOConnection& m_rADOConnection;
- OConnection* m_pConnection;
-
- void fillLiterals();
- // get information out of rowset
- sal_Int32 getMaxSize(sal_uInt32 _nId);
- bool isCapable(sal_uInt32 _nId);
- OUString getLiteral(sal_uInt32 _nProperty);
-
- // get info out of properties
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- OUString getStringProperty(const OUString& _aProperty);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getInt32Property(const OUString& _aProperty);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- bool getBoolProperty(const OUString& _aProperty);
-
- virtual css::uno::Reference< css::sdbc::XResultSet > impl_getTypeInfo_throw() override;
- // cached database information
- virtual OUString impl_getIdentifierQuoteString_throw( ) override;
- virtual bool impl_isCatalogAtStart_throw( ) override;
- virtual OUString impl_getCatalogSeparator_throw( ) override;
- virtual bool impl_supportsCatalogsInTableDefinitions_throw( ) override;
- virtual bool impl_supportsSchemasInTableDefinitions_throw( ) override;
- virtual bool impl_supportsCatalogsInDataManipulation_throw( ) override;
- virtual bool impl_supportsSchemasInDataManipulation_throw( ) override;
- virtual bool impl_supportsMixedCaseQuotedIdentifiers_throw( ) override;
- virtual bool impl_supportsAlterTableWithAddColumn_throw( ) override;
- virtual bool impl_supportsAlterTableWithDropColumn_throw( ) override;
- virtual sal_Int32 impl_getMaxStatements_throw( ) override;
- virtual sal_Int32 impl_getMaxTablesInSelect_throw( ) override;
- virtual bool impl_storesMixedCaseQuotedIdentifiers_throw( ) override;
- public:
-
- ODatabaseMetaData(OConnection* _pCon);
-
- // XDatabaseMetaData
- virtual sal_Bool SAL_CALL allProceduresAreCallable( ) override;
- virtual sal_Bool SAL_CALL allTablesAreSelectable( ) override;
- virtual OUString SAL_CALL getURL( ) override;
- virtual OUString SAL_CALL getUserName( ) override;
- virtual sal_Bool SAL_CALL isReadOnly( ) override;
- virtual sal_Bool SAL_CALL nullsAreSortedHigh( ) override;
- virtual sal_Bool SAL_CALL nullsAreSortedLow( ) override;
- virtual sal_Bool SAL_CALL nullsAreSortedAtStart( ) override;
- virtual sal_Bool SAL_CALL nullsAreSortedAtEnd( ) override;
- virtual OUString SAL_CALL getDatabaseProductName( ) override;
- virtual OUString SAL_CALL getDatabaseProductVersion( ) override;
- virtual OUString SAL_CALL getDriverName( ) override;
- virtual OUString SAL_CALL getDriverVersion( ) override;
- virtual sal_Int32 SAL_CALL getDriverMajorVersion( ) override;
- virtual sal_Int32 SAL_CALL getDriverMinorVersion( ) override;
- virtual sal_Bool SAL_CALL usesLocalFiles( ) override;
- virtual sal_Bool SAL_CALL usesLocalFilePerTable( ) override;
- virtual sal_Bool SAL_CALL supportsMixedCaseIdentifiers( ) override;
- virtual sal_Bool SAL_CALL storesUpperCaseIdentifiers( ) override;
- virtual sal_Bool SAL_CALL storesLowerCaseIdentifiers( ) override;
- virtual sal_Bool SAL_CALL storesMixedCaseIdentifiers( ) override;
-
- virtual sal_Bool SAL_CALL storesUpperCaseQuotedIdentifiers( ) override;
- virtual sal_Bool SAL_CALL storesLowerCaseQuotedIdentifiers( ) override;
-
- virtual OUString SAL_CALL getSQLKeywords( ) override;
- virtual OUString SAL_CALL getNumericFunctions( ) override;
- virtual OUString SAL_CALL getStringFunctions( ) override;
- virtual OUString SAL_CALL getSystemFunctions( ) override;
- virtual OUString SAL_CALL getTimeDateFunctions( ) override;
- virtual OUString SAL_CALL getSearchStringEscape( ) override;
- virtual OUString SAL_CALL getExtraNameCharacters( ) override;
- virtual sal_Bool SAL_CALL supportsColumnAliasing( ) override;
- virtual sal_Bool SAL_CALL nullPlusNonNullIsNull( ) override;
- virtual sal_Bool SAL_CALL supportsTypeConversion( ) override;
- virtual sal_Bool SAL_CALL supportsConvert( sal_Int32 fromType, sal_Int32 toType ) override;
- virtual sal_Bool SAL_CALL supportsTableCorrelationNames( ) override;
- virtual sal_Bool SAL_CALL supportsDifferentTableCorrelationNames( ) override;
- virtual sal_Bool SAL_CALL supportsExpressionsInOrderBy( ) override;
- virtual sal_Bool SAL_CALL supportsOrderByUnrelated( ) override;
- virtual sal_Bool SAL_CALL supportsGroupBy( ) override;
- virtual sal_Bool SAL_CALL supportsGroupByUnrelated( ) override;
- virtual sal_Bool SAL_CALL supportsGroupByBeyondSelect( ) override;
- virtual sal_Bool SAL_CALL supportsLikeEscapeClause( ) override;
- virtual sal_Bool SAL_CALL supportsMultipleResultSets( ) override;
- virtual sal_Bool SAL_CALL supportsMultipleTransactions( ) override;
- virtual sal_Bool SAL_CALL supportsNonNullableColumns( ) override;
- virtual sal_Bool SAL_CALL supportsMinimumSQLGrammar( ) override;
- virtual sal_Bool SAL_CALL supportsCoreSQLGrammar( ) override;
- virtual sal_Bool SAL_CALL supportsExtendedSQLGrammar( ) override;
- virtual sal_Bool SAL_CALL supportsANSI92EntryLevelSQL( ) override;
- virtual sal_Bool SAL_CALL supportsANSI92IntermediateSQL( ) override;
- virtual sal_Bool SAL_CALL supportsANSI92FullSQL( ) override;
- virtual sal_Bool SAL_CALL supportsIntegrityEnhancementFacility( ) override;
- virtual sal_Bool SAL_CALL supportsOuterJoins( ) override;
- virtual sal_Bool SAL_CALL supportsFullOuterJoins( ) override;
- virtual sal_Bool SAL_CALL supportsLimitedOuterJoins( ) override;
- virtual OUString SAL_CALL getSchemaTerm( ) override;
- virtual OUString SAL_CALL getProcedureTerm( ) override;
- virtual OUString SAL_CALL getCatalogTerm( ) override;
- virtual sal_Bool SAL_CALL supportsSchemasInProcedureCalls( ) override;
- virtual sal_Bool SAL_CALL supportsSchemasInIndexDefinitions( ) override;
- virtual sal_Bool SAL_CALL supportsSchemasInPrivilegeDefinitions( ) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInProcedureCalls( ) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInIndexDefinitions( ) override;
- virtual sal_Bool SAL_CALL supportsCatalogsInPrivilegeDefinitions( ) override;
- virtual sal_Bool SAL_CALL supportsPositionedDelete( ) override;
- virtual sal_Bool SAL_CALL supportsPositionedUpdate( ) override;
- virtual sal_Bool SAL_CALL supportsSelectForUpdate( ) override;
- virtual sal_Bool SAL_CALL supportsStoredProcedures( ) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInComparisons( ) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInExists( ) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInIns( ) override;
- virtual sal_Bool SAL_CALL supportsSubqueriesInQuantifieds( ) override;
- virtual sal_Bool SAL_CALL supportsCorrelatedSubqueries( ) override;
- virtual sal_Bool SAL_CALL supportsUnion( ) override;
- virtual sal_Bool SAL_CALL supportsUnionAll( ) override;
- virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossCommit( ) override;
- virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossRollback( ) override;
- virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossCommit( ) override;
- virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossRollback( ) override;
- virtual sal_Int32 SAL_CALL getMaxBinaryLiteralLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxCharLiteralLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxColumnNameLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInGroupBy( ) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInIndex( ) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInOrderBy( ) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInSelect( ) override;
- virtual sal_Int32 SAL_CALL getMaxColumnsInTable( ) override;
- virtual sal_Int32 SAL_CALL getMaxConnections( ) override;
- virtual sal_Int32 SAL_CALL getMaxCursorNameLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxIndexLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxSchemaNameLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxProcedureNameLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxCatalogNameLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxRowSize( ) override;
- virtual sal_Bool SAL_CALL doesMaxRowSizeIncludeBlobs( ) override;
- virtual sal_Int32 SAL_CALL getMaxStatementLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxTableNameLength( ) override;
- virtual sal_Int32 SAL_CALL getMaxUserNameLength( ) override;
- virtual sal_Int32 SAL_CALL getDefaultTransactionIsolation( ) override;
- virtual sal_Bool SAL_CALL supportsTransactions( ) override;
- virtual sal_Bool SAL_CALL supportsTransactionIsolationLevel( sal_Int32 level ) override;
- virtual sal_Bool SAL_CALL supportsDataDefinitionAndDataManipulationTransactions( ) override;
- virtual sal_Bool SAL_CALL supportsDataManipulationTransactionsOnly( ) override;
- virtual sal_Bool SAL_CALL dataDefinitionCausesTransactionCommit( ) override;
- virtual sal_Bool SAL_CALL dataDefinitionIgnoredInTransactions( ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedures( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedureColumns( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern, const OUString& columnNamePattern ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTables( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const css::uno::Sequence< OUString >& types ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getSchemas( ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCatalogs( ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTableTypes( ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumns( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const OUString& columnNamePattern ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumnPrivileges( const css::uno::Any& catalog, const OUString& schema, const OUString& table, const OUString& columnNamePattern ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTablePrivileges( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getPrimaryKeys( const css::uno::Any& catalog, const OUString& schema, const OUString& table ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getImportedKeys( const css::uno::Any& catalog, const OUString& schema, const OUString& table ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getExportedKeys( const css::uno::Any& catalog, const OUString& schema, const OUString& table ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCrossReference( const css::uno::Any& primaryCatalog, const OUString& primarySchema, const OUString& primaryTable, const css::uno::Any& foreignCatalog, const OUString& foreignSchema, const OUString& foreignTable ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getIndexInfo( const css::uno::Any& catalog, const OUString& schema, const OUString& table, sal_Bool unique, sal_Bool approximate ) override;
- virtual sal_Bool SAL_CALL supportsResultSetType( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) override;
- virtual sal_Bool SAL_CALL ownUpdatesAreVisible( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL ownDeletesAreVisible( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL ownInsertsAreVisible( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL othersUpdatesAreVisible( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL othersDeletesAreVisible( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL othersInsertsAreVisible( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL updatesAreDetected( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL deletesAreDetected( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL insertsAreDetected( sal_Int32 setType ) override;
- virtual sal_Bool SAL_CALL supportsBatchUpdates( ) override;
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getUDTs( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern, const css::uno::Sequence< sal_Int32 >& types ) override;
+ OUString pwszLiteralValue;
+ sal_uInt32 cchMaxLen;
+ bool fSupported;
};
+
+ std::map<sal_uInt32,LiteralInfo> m_aLiteralInfo;
+ WpADOConnection& m_rADOConnection;
+ OConnection* m_pConnection;
+
+ void fillLiterals();
+ // get information out of rowset
+ sal_Int32 getMaxSize(sal_uInt32 _nId);
+ bool isCapable(sal_uInt32 _nId);
+ OUString getLiteral(sal_uInt32 _nProperty);
+
+ // get info out of properties
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ OUString getStringProperty(const OUString& _aProperty);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getInt32Property(const OUString& _aProperty);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ bool getBoolProperty(const OUString& _aProperty);
+
+ virtual css::uno::Reference< css::sdbc::XResultSet > impl_getTypeInfo_throw() override;
+ // cached database information
+ virtual OUString impl_getIdentifierQuoteString_throw( ) override;
+ virtual bool impl_isCatalogAtStart_throw( ) override;
+ virtual OUString impl_getCatalogSeparator_throw( ) override;
+ virtual bool impl_supportsCatalogsInTableDefinitions_throw( ) override;
+ virtual bool impl_supportsSchemasInTableDefinitions_throw( ) override;
+ virtual bool impl_supportsCatalogsInDataManipulation_throw( ) override;
+ virtual bool impl_supportsSchemasInDataManipulation_throw( ) override;
+ virtual bool impl_supportsMixedCaseQuotedIdentifiers_throw( ) override;
+ virtual bool impl_supportsAlterTableWithAddColumn_throw( ) override;
+ virtual bool impl_supportsAlterTableWithDropColumn_throw( ) override;
+ virtual sal_Int32 impl_getMaxStatements_throw( ) override;
+ virtual sal_Int32 impl_getMaxTablesInSelect_throw( ) override;
+ virtual bool impl_storesMixedCaseQuotedIdentifiers_throw( ) override;
+ public:
+
+ ODatabaseMetaData(OConnection* _pCon);
+
+ // XDatabaseMetaData
+ virtual sal_Bool SAL_CALL allProceduresAreCallable( ) override;
+ virtual sal_Bool SAL_CALL allTablesAreSelectable( ) override;
+ virtual OUString SAL_CALL getURL( ) override;
+ virtual OUString SAL_CALL getUserName( ) override;
+ virtual sal_Bool SAL_CALL isReadOnly( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedHigh( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedLow( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedAtStart( ) override;
+ virtual sal_Bool SAL_CALL nullsAreSortedAtEnd( ) override;
+ virtual OUString SAL_CALL getDatabaseProductName( ) override;
+ virtual OUString SAL_CALL getDatabaseProductVersion( ) override;
+ virtual OUString SAL_CALL getDriverName( ) override;
+ virtual OUString SAL_CALL getDriverVersion( ) override;
+ virtual sal_Int32 SAL_CALL getDriverMajorVersion( ) override;
+ virtual sal_Int32 SAL_CALL getDriverMinorVersion( ) override;
+ virtual sal_Bool SAL_CALL usesLocalFiles( ) override;
+ virtual sal_Bool SAL_CALL usesLocalFilePerTable( ) override;
+ virtual sal_Bool SAL_CALL supportsMixedCaseIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesUpperCaseIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesLowerCaseIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesMixedCaseIdentifiers( ) override;
+
+ virtual sal_Bool SAL_CALL storesUpperCaseQuotedIdentifiers( ) override;
+ virtual sal_Bool SAL_CALL storesLowerCaseQuotedIdentifiers( ) override;
+
+ virtual OUString SAL_CALL getSQLKeywords( ) override;
+ virtual OUString SAL_CALL getNumericFunctions( ) override;
+ virtual OUString SAL_CALL getStringFunctions( ) override;
+ virtual OUString SAL_CALL getSystemFunctions( ) override;
+ virtual OUString SAL_CALL getTimeDateFunctions( ) override;
+ virtual OUString SAL_CALL getSearchStringEscape( ) override;
+ virtual OUString SAL_CALL getExtraNameCharacters( ) override;
+ virtual sal_Bool SAL_CALL supportsColumnAliasing( ) override;
+ virtual sal_Bool SAL_CALL nullPlusNonNullIsNull( ) override;
+ virtual sal_Bool SAL_CALL supportsTypeConversion( ) override;
+ virtual sal_Bool SAL_CALL supportsConvert( sal_Int32 fromType, sal_Int32 toType ) override;
+ virtual sal_Bool SAL_CALL supportsTableCorrelationNames( ) override;
+ virtual sal_Bool SAL_CALL supportsDifferentTableCorrelationNames( ) override;
+ virtual sal_Bool SAL_CALL supportsExpressionsInOrderBy( ) override;
+ virtual sal_Bool SAL_CALL supportsOrderByUnrelated( ) override;
+ virtual sal_Bool SAL_CALL supportsGroupBy( ) override;
+ virtual sal_Bool SAL_CALL supportsGroupByUnrelated( ) override;
+ virtual sal_Bool SAL_CALL supportsGroupByBeyondSelect( ) override;
+ virtual sal_Bool SAL_CALL supportsLikeEscapeClause( ) override;
+ virtual sal_Bool SAL_CALL supportsMultipleResultSets( ) override;
+ virtual sal_Bool SAL_CALL supportsMultipleTransactions( ) override;
+ virtual sal_Bool SAL_CALL supportsNonNullableColumns( ) override;
+ virtual sal_Bool SAL_CALL supportsMinimumSQLGrammar( ) override;
+ virtual sal_Bool SAL_CALL supportsCoreSQLGrammar( ) override;
+ virtual sal_Bool SAL_CALL supportsExtendedSQLGrammar( ) override;
+ virtual sal_Bool SAL_CALL supportsANSI92EntryLevelSQL( ) override;
+ virtual sal_Bool SAL_CALL supportsANSI92IntermediateSQL( ) override;
+ virtual sal_Bool SAL_CALL supportsANSI92FullSQL( ) override;
+ virtual sal_Bool SAL_CALL supportsIntegrityEnhancementFacility( ) override;
+ virtual sal_Bool SAL_CALL supportsOuterJoins( ) override;
+ virtual sal_Bool SAL_CALL supportsFullOuterJoins( ) override;
+ virtual sal_Bool SAL_CALL supportsLimitedOuterJoins( ) override;
+ virtual OUString SAL_CALL getSchemaTerm( ) override;
+ virtual OUString SAL_CALL getProcedureTerm( ) override;
+ virtual OUString SAL_CALL getCatalogTerm( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInProcedureCalls( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInIndexDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsSchemasInPrivilegeDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInProcedureCalls( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInIndexDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsCatalogsInPrivilegeDefinitions( ) override;
+ virtual sal_Bool SAL_CALL supportsPositionedDelete( ) override;
+ virtual sal_Bool SAL_CALL supportsPositionedUpdate( ) override;
+ virtual sal_Bool SAL_CALL supportsSelectForUpdate( ) override;
+ virtual sal_Bool SAL_CALL supportsStoredProcedures( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInComparisons( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInExists( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInIns( ) override;
+ virtual sal_Bool SAL_CALL supportsSubqueriesInQuantifieds( ) override;
+ virtual sal_Bool SAL_CALL supportsCorrelatedSubqueries( ) override;
+ virtual sal_Bool SAL_CALL supportsUnion( ) override;
+ virtual sal_Bool SAL_CALL supportsUnionAll( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossCommit( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenCursorsAcrossRollback( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossCommit( ) override;
+ virtual sal_Bool SAL_CALL supportsOpenStatementsAcrossRollback( ) override;
+ virtual sal_Int32 SAL_CALL getMaxBinaryLiteralLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxCharLiteralLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInGroupBy( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInIndex( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInOrderBy( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInSelect( ) override;
+ virtual sal_Int32 SAL_CALL getMaxColumnsInTable( ) override;
+ virtual sal_Int32 SAL_CALL getMaxConnections( ) override;
+ virtual sal_Int32 SAL_CALL getMaxCursorNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxIndexLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxSchemaNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxProcedureNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxCatalogNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxRowSize( ) override;
+ virtual sal_Bool SAL_CALL doesMaxRowSizeIncludeBlobs( ) override;
+ virtual sal_Int32 SAL_CALL getMaxStatementLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxTableNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getMaxUserNameLength( ) override;
+ virtual sal_Int32 SAL_CALL getDefaultTransactionIsolation( ) override;
+ virtual sal_Bool SAL_CALL supportsTransactions( ) override;
+ virtual sal_Bool SAL_CALL supportsTransactionIsolationLevel( sal_Int32 level ) override;
+ virtual sal_Bool SAL_CALL supportsDataDefinitionAndDataManipulationTransactions( ) override;
+ virtual sal_Bool SAL_CALL supportsDataManipulationTransactionsOnly( ) override;
+ virtual sal_Bool SAL_CALL dataDefinitionCausesTransactionCommit( ) override;
+ virtual sal_Bool SAL_CALL dataDefinitionIgnoredInTransactions( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedures( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getProcedureColumns( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& procedureNamePattern, const OUString& columnNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTables( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const css::uno::Sequence< OUString >& types ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getSchemas( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCatalogs( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTableTypes( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumns( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern, const OUString& columnNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getColumnPrivileges( const css::uno::Any& catalog, const OUString& schema, const OUString& table, const OUString& columnNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getTablePrivileges( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& tableNamePattern ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getPrimaryKeys( const css::uno::Any& catalog, const OUString& schema, const OUString& table ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getImportedKeys( const css::uno::Any& catalog, const OUString& schema, const OUString& table ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getExportedKeys( const css::uno::Any& catalog, const OUString& schema, const OUString& table ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getCrossReference( const css::uno::Any& primaryCatalog, const OUString& primarySchema, const OUString& primaryTable, const css::uno::Any& foreignCatalog, const OUString& foreignSchema, const OUString& foreignTable ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getIndexInfo( const css::uno::Any& catalog, const OUString& schema, const OUString& table, sal_Bool unique, sal_Bool approximate ) override;
+ virtual sal_Bool SAL_CALL supportsResultSetType( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL supportsResultSetConcurrency( sal_Int32 setType, sal_Int32 concurrency ) override;
+ virtual sal_Bool SAL_CALL ownUpdatesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL ownDeletesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL ownInsertsAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL othersUpdatesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL othersDeletesAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL othersInsertsAreVisible( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL updatesAreDetected( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL deletesAreDetected( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL insertsAreDetected( sal_Int32 setType ) override;
+ virtual sal_Bool SAL_CALL supportsBatchUpdates( ) override;
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getUDTs( const css::uno::Any& catalog, const OUString& schemaPattern, const OUString& typeNamePattern, const css::uno::Sequence< sal_Int32 >& types ) override;
+ };
}
diff --git a/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx b/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx
index fda0b6e72440..3c3e1dd30f34 100644
--- a/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx
+++ b/connectivity/source/inc/ado/ADatabaseMetaDataResultSet.hxx
@@ -35,191 +35,191 @@
namespace connectivity::ado
{
- /*
- ** java_sql_ResultSet
- */
- typedef ::cppu::WeakComponentImplHelper< css::sdbc::XResultSet,
- css::sdbc::XRow,
- css::sdbc::XResultSetMetaDataSupplier,
- css::util::XCancellable,
- css::sdbc::XWarningsSupplier,
- css::sdbc::XCloseable,
- css::sdbc::XColumnLocate> ODatabaseMetaDataResultSet_BASE;
-
- class ODatabaseMetaDataResultSet : public cppu::BaseMutex,
- public ODatabaseMetaDataResultSet_BASE,
- public ::cppu::OPropertySetHelper,
- public ::comphelper::OPropertyArrayUsageHelper<ODatabaseMetaDataResultSet>
- {
- std::vector<sal_Int32> m_aColMapping; // pos 0 is unused so we don't have to decrement 1 every time
-
- std::map<sal_Int32, ::std::map<sal_Int32,sal_Int32> > m_aValueRange;
- std::map<sal_Int32, ::std::map<sal_Int32,sal_Int32> >::iterator m_aValueRangeIter;
-
- std::map<sal_Int32, std::map< OUString,sal_Int32> > m_aStrValueRange;
- std::map<sal_Int32, std::map< OUString,sal_Int32> >::iterator m_aStrValueRangeIter;
-
- std::map<sal_Int32, std::map< sal_Int32,OUString> > m_aIntValueRange;
- std::map<sal_Int32, std::map< sal_Int32,OUString> >::iterator m_aIntValueRangeIter;
-
- ADORecordset* m_pRecordSet;
- css::uno::WeakReferenceHelper m_aStatement1;
- css::uno::Reference< css::sdbc::XResultSetMetaData> m_xMetaData;
- OLEVariant m_aValue;
- sal_Int32 m_nRowPos;
- bool m_bWasNull;
- bool m_bEOF;
- bool m_bOnFirstAfterOpen;
-
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static sal_Int32 getResultSetConcurrency();
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static sal_Int32 getResultSetType();
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static sal_Int32 getFetchDirection();
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getFetchSize() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static OUString getCursorName();
-
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setFetchDirection(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setFetchSize(sal_Int32 _par0);
-
-
- inline sal_Int32 mapColumn (sal_Int32 column);
- /// @throws css::sdbc::SQLException
- void checkRecordSet();
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- OLEVariant getValue(sal_Int32 columnIndex );
-
- protected:
-
- // OPropertyArrayUsageHelper
- virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
- // OPropertySetHelper
- virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
-
- virtual sal_Bool SAL_CALL convertFastPropertyValue(
- css::uno::Any & rConvertedValue,
- css::uno::Any & rOldValue,
+ /*
+ ** java_sql_ResultSet
+ */
+ typedef ::cppu::WeakComponentImplHelper< css::sdbc::XResultSet,
+ css::sdbc::XRow,
+ css::sdbc::XResultSetMetaDataSupplier,
+ css::util::XCancellable,
+ css::sdbc::XWarningsSupplier,
+ css::sdbc::XCloseable,
+ css::sdbc::XColumnLocate> ODatabaseMetaDataResultSet_BASE;
+
+ class ODatabaseMetaDataResultSet : public cppu::BaseMutex,
+ public ODatabaseMetaDataResultSet_BASE,
+ public ::cppu::OPropertySetHelper,
+ public ::comphelper::OPropertyArrayUsageHelper<ODatabaseMetaDataResultSet>
+ {
+ std::vector<sal_Int32> m_aColMapping; // pos 0 is unused so we don't have to decrement 1 every time
+
+ std::map<sal_Int32, ::std::map<sal_Int32,sal_Int32> > m_aValueRange;
+ std::map<sal_Int32, ::std::map<sal_Int32,sal_Int32> >::iterator m_aValueRangeIter;
+
+ std::map<sal_Int32, std::map< OUString,sal_Int32> > m_aStrValueRange;
+ std::map<sal_Int32, std::map< OUString,sal_Int32> >::iterator m_aStrValueRangeIter;
+
+ std::map<sal_Int32, std::map< sal_Int32,OUString> > m_aIntValueRange;
+ std::map<sal_Int32, std::map< sal_Int32,OUString> >::iterator m_aIntValueRangeIter;
+
+ ADORecordset* m_pRecordSet;
+ css::uno::WeakReferenceHelper m_aStatement1;
+ css::uno::Reference< css::sdbc::XResultSetMetaData> m_xMetaData;
+ OLEVariant m_aValue;
+ sal_Int32 m_nRowPos;
+ bool m_bWasNull;
+ bool m_bEOF;
+ bool m_bOnFirstAfterOpen;
+
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static sal_Int32 getResultSetConcurrency();
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static sal_Int32 getResultSetType();
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static sal_Int32 getFetchDirection();
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getFetchSize() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static OUString getCursorName();
+
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setFetchDirection(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setFetchSize(sal_Int32 _par0);
+
+
+ inline sal_Int32 mapColumn (sal_Int32 column);
+ /// @throws css::sdbc::SQLException
+ void checkRecordSet();
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ OLEVariant getValue(sal_Int32 columnIndex );
+
+ protected:
+
+ // OPropertyArrayUsageHelper
+ virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
+ // OPropertySetHelper
+ virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
+
+ virtual sal_Bool SAL_CALL convertFastPropertyValue(
+ css::uno::Any & rConvertedValue,
+ css::uno::Any & rOldValue,
+ sal_Int32 nHandle,
+ const css::uno::Any& rValue ) override;
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
- const css::uno::Any& rValue ) override;
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
- sal_Int32 nHandle,
- const css::uno::Any& rValue
- ) override;
- virtual void SAL_CALL getFastPropertyValue(
- css::uno::Any& rValue,
- sal_Int32 nHandle
- ) const override;
- public:
- // a Constructor, that is needed for when Returning the Object is needed:
- ODatabaseMetaDataResultSet( ADORecordset* _pRecordSet);
- ~ODatabaseMetaDataResultSet() override;
-
- // ::cppu::OComponentHelper
- virtual void SAL_CALL disposing() override;
- // XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- virtual void SAL_CALL acquire() noexcept override;
- virtual void SAL_CALL release() noexcept override;
- //XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
- // XPropertySet
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
- // XResultSet
- virtual sal_Bool SAL_CALL next( ) override;
- virtual sal_Bool SAL_CALL isBeforeFirst( ) override;
- virtual sal_Bool SAL_CALL isAfterLast( ) override;
- virtual sal_Bool SAL_CALL isFirst( ) override;
- virtual sal_Bool SAL_CALL isLast( ) override;
- virtual void SAL_CALL beforeFirst( ) override;
- virtual void SAL_CALL afterLast( ) override;
- virtual sal_Bool SAL_CALL first( ) override;
- virtual sal_Bool SAL_CALL last( ) override;
- virtual sal_Int32 SAL_CALL getRow( ) override;
- virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) override;
- virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) override;
- virtual sal_Bool SAL_CALL previous( ) override;
- virtual void SAL_CALL refreshRow( ) override;
- virtual sal_Bool SAL_CALL rowUpdated( ) override;
- virtual sal_Bool SAL_CALL rowInserted( ) override;
- virtual sal_Bool SAL_CALL rowDeleted( ) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement( ) override;
- // XRow
- virtual sal_Bool SAL_CALL wasNull( ) override;
- virtual OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
- virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
- virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
- virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
- virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
- virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
- virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
- virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
- virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
- virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
- virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
- virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
- virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
- // XResultSetMetaDataSupplier
- virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) override;
- // XCancellable
- virtual void SAL_CALL cancel( ) override;
- // XCloseable
- virtual void SAL_CALL close( ) override;
- // XWarningsSupplier
- virtual css::uno::Any SAL_CALL getWarnings( ) override;
- virtual void SAL_CALL clearWarnings( ) override;
- // XColumnLocate
- virtual sal_Int32 SAL_CALL findColumn( const OUString& columnName ) override;
-
- const std::vector<sal_Int32>& getColumnMapping() { return m_aColMapping; }
-
- void setCatalogsMap();
- void setSchemasMap();
- void setColumnPrivilegesMap();
- void setColumnsMap();
- void setTablesMap();
- void setProcedureColumnsMap();
- void setProceduresMap();
- void setExportedKeysMap();
- void setImportedKeysMap();
- void setPrimaryKeysMap();
- void setIndexInfoMap();
- void setTablePrivilegesMap();
- void setCrossReferenceMap();
- void setTypeInfoMap(bool _bJetEngine);
- };
-
- inline sal_Int32 ODatabaseMetaDataResultSet::mapColumn (sal_Int32 column)
+ const css::uno::Any& rValue
+ ) override;
+ virtual void SAL_CALL getFastPropertyValue(
+ css::uno::Any& rValue,
+ sal_Int32 nHandle
+ ) const override;
+ public:
+ // a Constructor, that is needed for when Returning the Object is needed:
+ ODatabaseMetaDataResultSet( ADORecordset* _pRecordSet);
+ ~ODatabaseMetaDataResultSet() override;
+
+ // ::cppu::OComponentHelper
+ virtual void SAL_CALL disposing() override;
+ // XInterface
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
+ //XTypeProvider
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
+ // XPropertySet
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
+ // XResultSet
+ virtual sal_Bool SAL_CALL next( ) override;
+ virtual sal_Bool SAL_CALL isBeforeFirst( ) override;
+ virtual sal_Bool SAL_CALL isAfterLast( ) override;
+ virtual sal_Bool SAL_CALL isFirst( ) override;
+ virtual sal_Bool SAL_CALL isLast( ) override;
+ virtual void SAL_CALL beforeFirst( ) override;
+ virtual void SAL_CALL afterLast( ) override;
+ virtual sal_Bool SAL_CALL first( ) override;
+ virtual sal_Bool SAL_CALL last( ) override;
+ virtual sal_Int32 SAL_CALL getRow( ) override;
+ virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) override;
+ virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) override;
+ virtual sal_Bool SAL_CALL previous( ) override;
+ virtual void SAL_CALL refreshRow( ) override;
+ virtual sal_Bool SAL_CALL rowUpdated( ) override;
+ virtual sal_Bool SAL_CALL rowInserted( ) override;
+ virtual sal_Bool SAL_CALL rowDeleted( ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement( ) override;
+ // XRow
+ virtual sal_Bool SAL_CALL wasNull( ) override;
+ virtual OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
+ virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
+ virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
+ virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
+ virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
+ virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
+ virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
+ virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
+ virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
+ virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
+ virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
+ virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
+ // XResultSetMetaDataSupplier
+ virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) override;
+ // XCancellable
+ virtual void SAL_CALL cancel( ) override;
+ // XCloseable
+ virtual void SAL_CALL close( ) override;
+ // XWarningsSupplier
+ virtual css::uno::Any SAL_CALL getWarnings( ) override;
+ virtual void SAL_CALL clearWarnings( ) override;
+ // XColumnLocate
+ virtual sal_Int32 SAL_CALL findColumn( const OUString& columnName ) override;
+
+ const std::vector<sal_Int32>& getColumnMapping() { return m_aColMapping; }
+
+ void setCatalogsMap();
+ void setSchemasMap();
+ void setColumnPrivilegesMap();
+ void setColumnsMap();
+ void setTablesMap();
+ void setProcedureColumnsMap();
+ void setProceduresMap();
+ void setExportedKeysMap();
+ void setImportedKeysMap();
+ void setPrimaryKeysMap();
+ void setIndexInfoMap();
+ void setTablePrivilegesMap();
+ void setCrossReferenceMap();
+ void setTypeInfoMap(bool _bJetEngine);
+ };
+
+ inline sal_Int32 ODatabaseMetaDataResultSet::mapColumn (sal_Int32 column)
+ {
+ sal_Int32 map = column;
+
+ if (!m_aColMapping.empty())
{
- sal_Int32 map = column;
-
- if (!m_aColMapping.empty())
- {
- // Validate column number
- map = m_aColMapping[column];
- }
-
- return map;
+ // Validate column number
+ map = m_aColMapping[column];
}
+ return map;
+ }
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/ADatabaseMetaDataResultSetMetaData.hxx b/connectivity/source/inc/ado/ADatabaseMetaDataResultSetMetaData.hxx
index abac49ba1d9b..9d14454b6469 100644
--- a/connectivity/source/inc/ado/ADatabaseMetaDataResultSetMetaData.hxx
+++ b/connectivity/source/inc/ado/ADatabaseMetaDataResultSetMetaData.hxx
@@ -29,74 +29,74 @@
namespace connectivity::ado
{
- //************ Class: ResultSetMetaData
+ //************ Class: ResultSetMetaData
- typedef ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData> ODatabaseMetaResultSetMetaData_BASE;
+ typedef ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData> ODatabaseMetaResultSetMetaData_BASE;
- class ODatabaseMetaDataResultSetMetaData : public ODatabaseMetaResultSetMetaData_BASE
- {
- friend class ODatabaseMetaDataResultSet;
+ class ODatabaseMetaDataResultSetMetaData : public ODatabaseMetaResultSetMetaData_BASE
+ {
+ friend class ODatabaseMetaDataResultSet;
- const std::vector<sal_Int32> &m_vMapping; // when not every column is needed
- std::map<sal_Int32,connectivity::OColumn> m_mColumns;
- std::map<sal_Int32,connectivity::OColumn>::const_iterator m_mColumnsIter;
+ const std::vector<sal_Int32> &m_vMapping; // when not every column is needed
+ std::map<sal_Int32,connectivity::OColumn> m_mColumns;
+ std::map<sal_Int32,connectivity::OColumn>::const_iterator m_mColumnsIter;
- ADORecordset* m_pRecordSet;
- sal_Int32 m_nColCount;
+ ADORecordset* m_pRecordSet;
+ sal_Int32 m_nColCount;
- private:
- ODatabaseMetaDataResultSetMetaData( const ODatabaseMetaDataResultSetMetaData& ); // never implemented
- ODatabaseMetaDataResultSetMetaData& operator=( const ODatabaseMetaDataResultSetMetaData& ); // never implemented
+ private:
+ ODatabaseMetaDataResultSetMetaData( const ODatabaseMetaDataResultSetMetaData& ); // never implemented
+ ODatabaseMetaDataResultSetMetaData& operator=( const ODatabaseMetaDataResultSetMetaData& ); // never implemented
- protected:
- void setColumnPrivilegesMap();
- void setColumnsMap();
- void setTablesMap();
- void setProcedureColumnsMap();
- void setPrimaryKeysMap();
- void setIndexInfoMap();
- void setTablePrivilegesMap();
- void setCrossReferenceMap();
- void setTypeInfoMap();
- void setProceduresMap();
- public:
- // a Constructor, that is needed for when Returning the Object is needed:
- ODatabaseMetaDataResultSetMetaData( ADORecordset* _pRecordSet ,ODatabaseMetaDataResultSet* _pRes)
- : m_vMapping(_pRes->getColumnMapping()),
- m_pRecordSet(_pRecordSet),
- m_nColCount(m_vMapping.size()-1)
- {
- if(m_pRecordSet)
- m_pRecordSet->AddRef();
- }
- ~ODatabaseMetaDataResultSetMetaData() override;
+ protected:
+ void setColumnPrivilegesMap();
+ void setColumnsMap();
+ void setTablesMap();
+ void setProcedureColumnsMap();
+ void setPrimaryKeysMap();
+ void setIndexInfoMap();
+ void setTablePrivilegesMap();
+ void setCrossReferenceMap();
+ void setTypeInfoMap();
+ void setProceduresMap();
+ public:
+ // a Constructor, that is needed for when Returning the Object is needed:
+ ODatabaseMetaDataResultSetMetaData( ADORecordset* _pRecordSet ,ODatabaseMetaDataResultSet* _pRes)
+ : m_vMapping(_pRes->getColumnMapping()),
+ m_pRecordSet(_pRecordSet),
+ m_nColCount(m_vMapping.size()-1)
+ {
+ if(m_pRecordSet)
+ m_pRecordSet->AddRef();
+ }
+ ~ODatabaseMetaDataResultSetMetaData() override;
- /// Avoid ambiguous cast error from the compiler.
- operator css::uno::Reference< css::sdbc::XResultSetMetaData > () noexcept
- { return this; }
+ /// Avoid ambiguous cast error from the compiler.
+ operator css::uno::Reference< css::sdbc::XResultSetMetaData > () noexcept
+ { return this; }
- virtual sal_Int32 SAL_CALL getColumnCount( ) override;
- virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnLabel( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnName( sal_Int32 column ) override;
- virtual OUString SAL_CALL getSchemaName( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) override;
- virtual OUString SAL_CALL getTableName( sal_Int32 column ) override;
- virtual OUString SAL_CALL getCatalogName( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnTypeName( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnServiceName( sal_Int32 column ) override;
- };
+ virtual sal_Int32 SAL_CALL getColumnCount( ) override;
+ virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnLabel( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnName( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getSchemaName( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getTableName( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getCatalogName( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnTypeName( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnServiceName( sal_Int32 column ) override;
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/ADriver.hxx b/connectivity/source/inc/ado/ADriver.hxx
index 1e13b97e2647..7aacd59c95cb 100644
--- a/connectivity/source/inc/ado/ADriver.hxx
+++ b/connectivity/source/inc/ado/ADriver.hxx
@@ -30,53 +30,53 @@ namespace com::sun::star::uno { class XComponentContext; }
namespace connectivity::ado
{
- class OConnection;
-
- typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver,
- css::sdbcx::XDataDefinitionSupplier,
- css::lang::XServiceInfo
- > ODriver_BASE;
- class ODriver : public ODriver_BASE
- {
- ::osl::Mutex m_aMutex;
-
- std::vector<unotools::WeakReference<OConnection>>
- m_xConnections; // vector containing a list
- // of all the Connection objects
- // for this Driver
- css::uno::Reference< css::uno::XComponentContext > m_xContext;
-
- // to put back all the inits with COINIT_MULTITHREADED if needed
- int mnNbCallCoInitializeExForReinit;
-
- public:
- ODriver(const css::uno::Reference< css::uno::XComponentContext >& xContext);
- ~ODriver() override;
-
- // OComponentHelper
- virtual void SAL_CALL disposing() override;
-
- css::uno::Reference< css::uno::XComponentContext > getContext() const { return m_xContext; }
-
- private:
- void impl_checkURL_throw(const OUString& _sUrl);
-
- // XServiceInfo
- virtual OUString SAL_CALL getImplementationName( ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
-
- // XDriver
- virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
- virtual sal_Bool SAL_CALL acceptsURL( const OUString& url ) override;
- virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
- virtual sal_Int32 SAL_CALL getMajorVersion( ) override;
- virtual sal_Int32 SAL_CALL getMinorVersion( ) override;
-
- // XDataDefinitionSupplier
- virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByConnection( const css::uno::Reference< css::sdbc::XConnection >& connection ) override;
- virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByURL( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
- };
+ class OConnection;
+
+ typedef ::cppu::WeakComponentImplHelper< css::sdbc::XDriver,
+ css::sdbcx::XDataDefinitionSupplier,
+ css::lang::XServiceInfo
+ > ODriver_BASE;
+ class ODriver : public ODriver_BASE
+ {
+ ::osl::Mutex m_aMutex;
+
+ std::vector<unotools::WeakReference<OConnection>>
+ m_xConnections; // vector containing a list
+ // of all the Connection objects
+ // for this Driver
+ css::uno::Reference< css::uno::XComponentContext > m_xContext;
+
+ // to put back all the inits with COINIT_MULTITHREADED if needed
+ int mnNbCallCoInitializeExForReinit;
+
+ public:
+ ODriver(const css::uno::Reference< css::uno::XComponentContext >& xContext);
+ ~ODriver() override;
+
+ // OComponentHelper
+ virtual void SAL_CALL disposing() override;
+
+ css::uno::Reference< css::uno::XComponentContext > getContext() const { return m_xContext; }
+
+ private:
+ void impl_checkURL_throw(const OUString& _sUrl);
+
+ // XServiceInfo
+ virtual OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
+
+ // XDriver
+ virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL connect( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
+ virtual sal_Bool SAL_CALL acceptsURL( const OUString& url ) override;
+ virtual css::uno::Sequence< css::sdbc::DriverPropertyInfo > SAL_CALL getPropertyInfo( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
+ virtual sal_Int32 SAL_CALL getMajorVersion( ) override;
+ virtual sal_Int32 SAL_CALL getMinorVersion( ) override;
+
+ // XDataDefinitionSupplier
+ virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByConnection( const css::uno::Reference< css::sdbc::XConnection >& connection ) override;
+ virtual css::uno::Reference< css::sdbcx::XTablesSupplier > SAL_CALL getDataDefinitionByURL( const OUString& url, const css::uno::Sequence< css::beans::PropertyValue >& info ) override;
+ };
}
diff --git a/connectivity/source/inc/ado/AGroup.hxx b/connectivity/source/inc/ado/AGroup.hxx
index 00207a5fa23a..a5cdef4b2025 100644
--- a/connectivity/source/inc/ado/AGroup.hxx
+++ b/connectivity/source/inc/ado/AGroup.hxx
@@ -24,35 +24,35 @@
namespace connectivity::ado
{
- typedef sdbcx::OGroup OGroup_ADO;
- class OCatalog;
-
- class OAdoGroup : public OGroup_ADO
- {
- WpADOGroup m_aGroup;
- OCatalog* m_pCatalog;
-
- static sal_Int32 MapRight(RightsEnum _eNum);
- static RightsEnum Map2Right(sal_Int32 _eNum);
- static ObjectTypeEnum MapObjectType(sal_Int32 ObjType);
- protected:
- virtual void SAL_CALL getFastPropertyValue(css::uno::Any& rValue,sal_Int32 nHandle) const override;
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
-
- public:
- virtual void refreshUsers() override;
- public:
- OAdoGroup(OCatalog* _pParent,bool _bCase, ADOGroup* _pGroup=nullptr);
- OAdoGroup(OCatalog* _pParent,bool _bCase, const OUString& Name);
-
- // XAuthorizable
- virtual sal_Int32 SAL_CALL getPrivileges( const OUString& objName, sal_Int32 objType ) override;
- virtual sal_Int32 SAL_CALL getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) override;
- virtual void SAL_CALL grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
- virtual void SAL_CALL revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
-
- WpADOGroup getImpl() const { return m_aGroup; }
- };
+ typedef sdbcx::OGroup OGroup_ADO;
+ class OCatalog;
+
+ class OAdoGroup : public OGroup_ADO
+ {
+ WpADOGroup m_aGroup;
+ OCatalog* m_pCatalog;
+
+ static sal_Int32 MapRight(RightsEnum _eNum);
+ static RightsEnum Map2Right(sal_Int32 _eNum);
+ static ObjectTypeEnum MapObjectType(sal_Int32 ObjType);
+ protected:
+ virtual void SAL_CALL getFastPropertyValue(css::uno::Any& rValue,sal_Int32 nHandle) const override;
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
+
+ public:
+ virtual void refreshUsers() override;
+ public:
+ OAdoGroup(OCatalog* _pParent,bool _bCase, ADOGroup* _pGroup=nullptr);
+ OAdoGroup(OCatalog* _pParent,bool _bCase, const OUString& Name);
+
+ // XAuthorizable
+ virtual sal_Int32 SAL_CALL getPrivileges( const OUString& objName, sal_Int32 objType ) override;
+ virtual sal_Int32 SAL_CALL getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) override;
+ virtual void SAL_CALL grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
+ virtual void SAL_CALL revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
+
+ WpADOGroup getImpl() const { return m_aGroup; }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AGroups.hxx b/connectivity/source/inc/ado/AGroups.hxx
index c5bdba263947..e3d7e2555b8a 100644
--- a/connectivity/source/inc/ado/AGroups.hxx
+++ b/connectivity/source/inc/ado/AGroups.hxx
@@ -25,27 +25,27 @@
namespace connectivity::ado
{
- class OGroups : public sdbcx::OCollection
- {
- WpADOGroups m_aCollection;
- OCatalog* m_pCatalog;
- protected:
+ class OGroups : public sdbcx::OCollection
+ {
+ WpADOGroups m_aCollection;
+ OCatalog* m_pCatalog;
+ protected:
- virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
- virtual void impl_refresh() override;
- virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
- virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
- public:
- OGroups(OCatalog* _pParent,
- ::osl::Mutex& _rMutex,
- const ::std::vector< OUString> &_rVector,
- const WpADOGroups& _rCollection,bool _bCase) : sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
- ,m_aCollection(_rCollection)
- ,m_pCatalog(_pParent)
- {
- }
- };
+ virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
+ virtual void impl_refresh() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
+ public:
+ OGroups(OCatalog* _pParent,
+ ::osl::Mutex& _rMutex,
+ const ::std::vector< OUString> &_rVector,
+ const WpADOGroups& _rCollection,bool _bCase) : sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
+ ,m_aCollection(_rCollection)
+ ,m_pCatalog(_pParent)
+ {
+ }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AIndex.hxx b/connectivity/source/inc/ado/AIndex.hxx
index 98c3a77d1ceb..d6e7c65a0215 100644
--- a/connectivity/source/inc/ado/AIndex.hxx
+++ b/connectivity/source/inc/ado/AIndex.hxx
@@ -25,22 +25,22 @@
namespace connectivity::ado
{
- class OConnection;
- class OAdoIndex : public sdbcx::OIndex
- {
- WpADOIndex m_aIndex;
- OConnection* m_pConnection;
- protected:
- void fillPropertyValues();
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
- public:
- virtual void refreshColumns() override;
- public:
- OAdoIndex(bool _bCase, OConnection* _pConnection,ADOIndex* _pIndex);
- OAdoIndex(bool _bCase, OConnection* _pConnection);
+ class OConnection;
+ class OAdoIndex : public sdbcx::OIndex
+ {
+ WpADOIndex m_aIndex;
+ OConnection* m_pConnection;
+ protected:
+ void fillPropertyValues();
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
+ public:
+ virtual void refreshColumns() override;
+ public:
+ OAdoIndex(bool _bCase, OConnection* _pConnection,ADOIndex* _pIndex);
+ OAdoIndex(bool _bCase, OConnection* _pConnection);
- WpADOIndex getImpl() const { return m_aIndex;}
- };
+ WpADOIndex getImpl() const { return m_aIndex;}
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AIndexes.hxx b/connectivity/source/inc/ado/AIndexes.hxx
index 85d2c30314f3..525c6052a8c1 100644
--- a/connectivity/source/inc/ado/AIndexes.hxx
+++ b/connectivity/source/inc/ado/AIndexes.hxx
@@ -24,30 +24,30 @@
namespace connectivity::ado
{
- class OConnection;
- class OIndexes : public sdbcx::OCollection
+ class OConnection;
+ class OIndexes : public sdbcx::OCollection
+ {
+ WpADOIndexes m_aCollection;
+ OConnection* m_pConnection;
+ protected:
+ virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
+ virtual void impl_refresh() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
+ public:
+ OIndexes(::cppu::OWeakObject& _rParent,
+ ::osl::Mutex& _rMutex,
+ const ::std::vector< OUString> &_rVector,
+ const WpADOIndexes& _rCollection,
+ bool _bCase,
+ OConnection* _pConnection)
+ : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector)
+ , m_aCollection(_rCollection)
+ , m_pConnection(_pConnection)
{
- WpADOIndexes m_aCollection;
- OConnection* m_pConnection;
- protected:
- virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
- virtual void impl_refresh() override;
- virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
- virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
- public:
- OIndexes(::cppu::OWeakObject& _rParent,
- ::osl::Mutex& _rMutex,
- const ::std::vector< OUString> &_rVector,
- const WpADOIndexes& _rCollection,
- bool _bCase,
- OConnection* _pConnection)
- : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector)
- , m_aCollection(_rCollection)
- , m_pConnection(_pConnection)
- {
- }
- };
+ }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AKey.hxx b/connectivity/source/inc/ado/AKey.hxx
index 5ec3fa972b12..f4fe154c96d0 100644
--- a/connectivity/source/inc/ado/AKey.hxx
+++ b/connectivity/source/inc/ado/AKey.hxx
@@ -25,31 +25,31 @@
namespace connectivity::ado
{
- typedef sdbcx::OKey OKey_ADO;
+ typedef sdbcx::OKey OKey_ADO;
- class OConnection;
- class OAdoKey : public OKey_ADO
- {
- WpADOKey m_aKey;
- OConnection* m_pConnection;
- protected:
- void fillPropertyValues();
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
- public:
- virtual void refreshColumns() override;
- public:
- OAdoKey(bool _bCase,OConnection* _pConnection,ADOKey* _pKey);
- OAdoKey(bool _bCase,OConnection* _pConnection);
+ class OConnection;
+ class OAdoKey : public OKey_ADO
+ {
+ WpADOKey m_aKey;
+ OConnection* m_pConnection;
+ protected:
+ void fillPropertyValues();
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
+ public:
+ virtual void refreshColumns() override;
+ public:
+ OAdoKey(bool _bCase,OConnection* _pConnection,ADOKey* _pKey);
+ OAdoKey(bool _bCase,OConnection* _pConnection);
- WpADOKey getImpl() const { return m_aKey;}
- // map the update/delete rules
- static RuleEnum Map2Rule(sal_Int32 _eNum);
- static sal_Int32 MapRule(const RuleEnum& _eNum);
+ WpADOKey getImpl() const { return m_aKey;}
+ // map the update/delete rules
+ static RuleEnum Map2Rule(sal_Int32 _eNum);
+ static sal_Int32 MapRule(const RuleEnum& _eNum);
- // map the keytypes
- static sal_Int32 MapKeyRule(const KeyTypeEnum& _eNum);
- static KeyTypeEnum Map2KeyRule(sal_Int32 _eNum);
- };
+ // map the keytypes
+ static sal_Int32 MapKeyRule(const KeyTypeEnum& _eNum);
+ static KeyTypeEnum Map2KeyRule(sal_Int32 _eNum);
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AKeys.hxx b/connectivity/source/inc/ado/AKeys.hxx
index 65af4dd0ee75..4514c3bc7c70 100644
--- a/connectivity/source/inc/ado/AKeys.hxx
+++ b/connectivity/source/inc/ado/AKeys.hxx
@@ -24,30 +24,30 @@
namespace connectivity::ado
{
- class OConnection;
- class OKeys : public sdbcx::OCollection
- {
- WpADOKeys m_aCollection;
- OConnection* m_pConnection;
+ class OConnection;
+ class OKeys : public sdbcx::OCollection
+ {
+ WpADOKeys m_aCollection;
+ OConnection* m_pConnection;
- protected:
- virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
- virtual void impl_refresh() override;
- virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
- virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
- public:
- OKeys(::cppu::OWeakObject& _rParent,
- ::osl::Mutex& _rMutex,
- const ::std::vector< OUString> &_rVector,
- const WpADOKeys& _rCollection,
- bool _bCase,
- OConnection* _pConnection) : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector)
- ,m_aCollection(_rCollection)
- ,m_pConnection(_pConnection)
- {
- }
- };
+ protected:
+ virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
+ virtual void impl_refresh() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
+ public:
+ OKeys(::cppu::OWeakObject& _rParent,
+ ::osl::Mutex& _rMutex,
+ const ::std::vector< OUString> &_rVector,
+ const WpADOKeys& _rCollection,
+ bool _bCase,
+ OConnection* _pConnection) : sdbcx::OCollection(_rParent,_bCase,_rMutex,_rVector)
+ ,m_aCollection(_rCollection)
+ ,m_pConnection(_pConnection)
+ {
+ }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AResultSet.hxx b/connectivity/source/inc/ado/AResultSet.hxx
index b9f024765b34..64f83f06ed93 100644
--- a/connectivity/source/inc/ado/AResultSet.hxx
+++ b/connectivity/source/inc/ado/AResultSet.hxx
@@ -38,195 +38,195 @@
namespace connectivity::ado
{
- /*
- ** java_sql_ResultSet
- */
- typedef ::cppu::WeakComponentImplHelper< css::sdbc::XResultSet,
- css::sdbc::XRow,
- css::sdbc::XResultSetMetaDataSupplier,
- css::util::XCancellable,
- css::sdbc::XWarningsSupplier,
- css::sdbc::XResultSetUpdate,
- css::sdbc::XRowUpdate,
- css::sdbc::XCloseable,
- css::sdbc::XColumnLocate,
- css::sdbcx::XRowLocate,
- css::sdbcx::XDeleteRows,
- css::lang::XServiceInfo> OResultSet_BASE;
-
- class OResultSet : public cppu::BaseMutex,
- public OResultSet_BASE,
- public ::cppu::OPropertySetHelper,
- public ::comphelper::OPropertyArrayUsageHelper<OResultSet>
- {
-
- ADORecordset* m_pRecordSet;
- OStatement_Base* m_pStmt;
- css::uno::Reference< css::uno::XInterface> m_xStatement;
- css::uno::Reference< css::sdbc::XResultSetMetaData> m_xMetaData;
- std::vector<OLEVariant> m_aBookmarks;
- OLEVariant m_aValue;
- long m_nRowPos;
- bool m_bEOF;
- bool m_bOnFirstAfterOpen;
-
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getResultSetConcurrency() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getResultSetType() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static sal_Int32 getFetchDirection();
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getFetchSize() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static OUString getCursorName();
-
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setFetchDirection(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setFetchSize(sal_Int32 _par0);
- void updateValue(sal_Int32 columnIndex,const OLEVariant& x);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- OLEVariant getValue(sal_Int32 columnIndex );
-
- protected:
-
- // OPropertyArrayUsageHelper
- virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
- // OPropertySetHelper
- virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
- virtual sal_Bool SAL_CALL convertFastPropertyValue(
- css::uno::Any & rConvertedValue,
- css::uno::Any & rOldValue,
+ /*
+ ** java_sql_ResultSet
+ */
+ typedef ::cppu::WeakComponentImplHelper< css::sdbc::XResultSet,
+ css::sdbc::XRow,
+ css::sdbc::XResultSetMetaDataSupplier,
+ css::util::XCancellable,
+ css::sdbc::XWarningsSupplier,
+ css::sdbc::XResultSetUpdate,
+ css::sdbc::XRowUpdate,
+ css::sdbc::XCloseable,
+ css::sdbc::XColumnLocate,
+ css::sdbcx::XRowLocate,
+ css::sdbcx::XDeleteRows,
+ css::lang::XServiceInfo> OResultSet_BASE;
+
+ class OResultSet : public cppu::BaseMutex,
+ public OResultSet_BASE,
+ public ::cppu::OPropertySetHelper,
+ public ::comphelper::OPropertyArrayUsageHelper<OResultSet>
+ {
+
+ ADORecordset* m_pRecordSet;
+ OStatement_Base* m_pStmt;
+ css::uno::Reference< css::uno::XInterface> m_xStatement;
+ css::uno::Reference< css::sdbc::XResultSetMetaData> m_xMetaData;
+ std::vector<OLEVariant> m_aBookmarks;
+ OLEVariant m_aValue;
+ long m_nRowPos;
+ bool m_bEOF;
+ bool m_bOnFirstAfterOpen;
+
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getResultSetConcurrency() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getResultSetType() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static sal_Int32 getFetchDirection();
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getFetchSize() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static OUString getCursorName();
+
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setFetchDirection(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setFetchSize(sal_Int32 _par0);
+ void updateValue(sal_Int32 columnIndex,const OLEVariant& x);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ OLEVariant getValue(sal_Int32 columnIndex );
+
+ protected:
+
+ // OPropertyArrayUsageHelper
+ virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
+ // OPropertySetHelper
+ virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
+ virtual sal_Bool SAL_CALL convertFastPropertyValue(
+ css::uno::Any & rConvertedValue,
+ css::uno::Any & rOldValue,
+ sal_Int32 nHandle,
+ const css::uno::Any& rValue ) override;
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
- const css::uno::Any& rValue ) override;
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
- sal_Int32 nHandle,
- const css::uno::Any& rValue
- ) override;
- virtual void SAL_CALL getFastPropertyValue(
- css::uno::Any& rValue,
- sal_Int32 nHandle
- ) const override;
- virtual ~OResultSet() override;
- public:
- // a Constructor, that is needed for when Returning the Object is needed:
- OResultSet( ADORecordset* _pRecordSet,OStatement_Base* pStmt);
- OResultSet( ADORecordset* _pRecordSet);
-
- // late constructor
- void construct();
- void setMetaData(const css::uno::Reference< css::sdbc::XResultSetMetaData>& _xMetaData) { m_xMetaData = _xMetaData;}
-
- virtual OUString SAL_CALL getImplementationName( ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
-
- // ::cppu::OComponentHelper
- virtual void SAL_CALL disposing() override;
- // XInterface
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- virtual void SAL_CALL acquire() noexcept override;
- virtual void SAL_CALL release() noexcept override;
- //XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
- // XPropertySet
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
- // XResultSet
- virtual sal_Bool SAL_CALL next( ) override;
- virtual sal_Bool SAL_CALL isBeforeFirst( ) override;
- virtual sal_Bool SAL_CALL isAfterLast( ) override;
- virtual sal_Bool SAL_CALL isFirst( ) override;
- virtual sal_Bool SAL_CALL isLast( ) override;
- virtual void SAL_CALL beforeFirst( ) override;
- virtual void SAL_CALL afterLast( ) override;
- virtual sal_Bool SAL_CALL first( ) override;
- virtual sal_Bool SAL_CALL last( ) override;
- virtual sal_Int32 SAL_CALL getRow( ) override;
- virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) override;
- virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) override;
- virtual sal_Bool SAL_CALL previous( ) override;
- virtual void SAL_CALL refreshRow( ) override;
- virtual sal_Bool SAL_CALL rowUpdated( ) override;
- virtual sal_Bool SAL_CALL rowInserted( ) override;
- virtual sal_Bool SAL_CALL rowDeleted( ) override;
- virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement( ) override;
- // XRow
- virtual sal_Bool SAL_CALL wasNull( ) override;
- virtual OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
- virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
- virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
- virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
- virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
- virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
- virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
- virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
- virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
- virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
- virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
- virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
- virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
- virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
- virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
- // XResultSetMetaDataSupplier
- virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) override;
- // XCancellable
- virtual void SAL_CALL cancel( ) override;
- // XCloseable
- virtual void SAL_CALL close( ) override;
- // XWarningsSupplier
- virtual css::uno::Any SAL_CALL getWarnings( ) override;
- virtual void SAL_CALL clearWarnings( ) override;
- // XResultSetUpdate
- virtual void SAL_CALL insertRow( ) override;
- virtual void SAL_CALL updateRow( ) override;
- virtual void SAL_CALL deleteRow( ) override;
- virtual void SAL_CALL cancelRowUpdates( ) override;
- virtual void SAL_CALL moveToInsertRow( ) override;
- virtual void SAL_CALL moveToCurrentRow( ) override;
- // XRowUpdate
- virtual void SAL_CALL updateNull( sal_Int32 columnIndex ) override;
- virtual void SAL_CALL updateBoolean( sal_Int32 columnIndex, sal_Bool x ) override;
- virtual void SAL_CALL updateByte( sal_Int32 columnIndex, sal_Int8 x ) override;
- virtual void SAL_CALL updateShort( sal_Int32 columnIndex, sal_Int16 x ) override;
- virtual void SAL_CALL updateInt( sal_Int32 columnIndex, sal_Int32 x ) override;
- virtual void SAL_CALL updateLong( sal_Int32 columnIndex, sal_Int64 x ) override;
- virtual void SAL_CALL updateFloat( sal_Int32 columnIndex, float x ) override;
- virtual void SAL_CALL updateDouble( sal_Int32 columnIndex, double x ) override;
- virtual void SAL_CALL updateString( sal_Int32 columnIndex, const OUString& x ) override;
- virtual void SAL_CALL updateBytes( sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 >& x ) override;
- virtual void SAL_CALL updateDate( sal_Int32 columnIndex, const css::util::Date& x ) override;
- virtual void SAL_CALL updateTime( sal_Int32 columnIndex, const css::util::Time& x ) override;
- virtual void SAL_CALL updateTimestamp( sal_Int32 columnIndex, const css::util::DateTime& x ) override;
- virtual void SAL_CALL updateBinaryStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
- virtual void SAL_CALL updateCharacterStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
- virtual void SAL_CALL updateObject( sal_Int32 columnIndex, const css::uno::Any& x ) override;
- virtual void SAL_CALL updateNumericObject( sal_Int32 columnIndex, const css::uno::Any& x, sal_Int32 scale ) override;
- // XColumnLocate
- virtual sal_Int32 SAL_CALL findColumn( const OUString& columnName ) override;
- // XRowLocate
- virtual css::uno::Any SAL_CALL getBookmark( ) override;
- virtual sal_Bool SAL_CALL moveToBookmark( const css::uno::Any& bookmark ) override;
- virtual sal_Bool SAL_CALL moveRelativeToBookmark( const css::uno::Any& bookmark, sal_Int32 rows ) override;
- virtual sal_Int32 SAL_CALL compareBookmarks( const css::uno::Any& first, const css::uno::Any& second ) override;
- virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) override;
- virtual sal_Int32 SAL_CALL hashBookmark( const css::uno::Any& bookmark ) override;
- // XDeleteRows
- virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const css::uno::Sequence< css::uno::Any >& rows ) override;
-
- };
+ const css::uno::Any& rValue
+ ) override;
+ virtual void SAL_CALL getFastPropertyValue(
+ css::uno::Any& rValue,
+ sal_Int32 nHandle
+ ) const override;
+ virtual ~OResultSet() override;
+ public:
+ // a Constructor, that is needed for when Returning the Object is needed:
+ OResultSet( ADORecordset* _pRecordSet,OStatement_Base* pStmt);
+ OResultSet( ADORecordset* _pRecordSet);
+
+ // late constructor
+ void construct();
+ void setMetaData(const css::uno::Reference< css::sdbc::XResultSetMetaData>& _xMetaData) { m_xMetaData = _xMetaData;}
+
+ virtual OUString SAL_CALL getImplementationName( ) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
+
+ // ::cppu::OComponentHelper
+ virtual void SAL_CALL disposing() override;
+ // XInterface
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
+ //XTypeProvider
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
+ // XPropertySet
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
+ // XResultSet
+ virtual sal_Bool SAL_CALL next( ) override;
+ virtual sal_Bool SAL_CALL isBeforeFirst( ) override;
+ virtual sal_Bool SAL_CALL isAfterLast( ) override;
+ virtual sal_Bool SAL_CALL isFirst( ) override;
+ virtual sal_Bool SAL_CALL isLast( ) override;
+ virtual void SAL_CALL beforeFirst( ) override;
+ virtual void SAL_CALL afterLast( ) override;
+ virtual sal_Bool SAL_CALL first( ) override;
+ virtual sal_Bool SAL_CALL last( ) override;
+ virtual sal_Int32 SAL_CALL getRow( ) override;
+ virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) override;
+ virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) override;
+ virtual sal_Bool SAL_CALL previous( ) override;
+ virtual void SAL_CALL refreshRow( ) override;
+ virtual sal_Bool SAL_CALL rowUpdated( ) override;
+ virtual sal_Bool SAL_CALL rowInserted( ) override;
+ virtual sal_Bool SAL_CALL rowDeleted( ) override;
+ virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement( ) override;
+ // XRow
+ virtual sal_Bool SAL_CALL wasNull( ) override;
+ virtual OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
+ virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
+ virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
+ virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
+ virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
+ virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
+ virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
+ virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
+ virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
+ virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
+ virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
+ virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
+ virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
+ virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
+ virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
+ // XResultSetMetaDataSupplier
+ virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) override;
+ // XCancellable
+ virtual void SAL_CALL cancel( ) override;
+ // XCloseable
+ virtual void SAL_CALL close( ) override;
+ // XWarningsSupplier
+ virtual css::uno::Any SAL_CALL getWarnings( ) override;
+ virtual void SAL_CALL clearWarnings( ) override;
+ // XResultSetUpdate
+ virtual void SAL_CALL insertRow( ) override;
+ virtual void SAL_CALL updateRow( ) override;
+ virtual void SAL_CALL deleteRow( ) override;
+ virtual void SAL_CALL cancelRowUpdates( ) override;
+ virtual void SAL_CALL moveToInsertRow( ) override;
+ virtual void SAL_CALL moveToCurrentRow( ) override;
+ // XRowUpdate
+ virtual void SAL_CALL updateNull( sal_Int32 columnIndex ) override;
+ virtual void SAL_CALL updateBoolean( sal_Int32 columnIndex, sal_Bool x ) override;
+ virtual void SAL_CALL updateByte( sal_Int32 columnIndex, sal_Int8 x ) override;
+ virtual void SAL_CALL updateShort( sal_Int32 columnIndex, sal_Int16 x ) override;
+ virtual void SAL_CALL updateInt( sal_Int32 columnIndex, sal_Int32 x ) override;
+ virtual void SAL_CALL updateLong( sal_Int32 columnIndex, sal_Int64 x ) override;
+ virtual void SAL_CALL updateFloat( sal_Int32 columnIndex, float x ) override;
+ virtual void SAL_CALL updateDouble( sal_Int32 columnIndex, double x ) override;
+ virtual void SAL_CALL updateString( sal_Int32 columnIndex, const OUString& x ) override;
+ virtual void SAL_CALL updateBytes( sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 >& x ) override;
+ virtual void SAL_CALL updateDate( sal_Int32 columnIndex, const css::util::Date& x ) override;
+ virtual void SAL_CALL updateTime( sal_Int32 columnIndex, const css::util::Time& x ) override;
+ virtual void SAL_CALL updateTimestamp( sal_Int32 columnIndex, const css::util::DateTime& x ) override;
+ virtual void SAL_CALL updateBinaryStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
+ virtual void SAL_CALL updateCharacterStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
+ virtual void SAL_CALL updateObject( sal_Int32 columnIndex, const css::uno::Any& x ) override;
+ virtual void SAL_CALL updateNumericObject( sal_Int32 columnIndex, const css::uno::Any& x, sal_Int32 scale ) override;
+ // XColumnLocate
+ virtual sal_Int32 SAL_CALL findColumn( const OUString& columnName ) override;
+ // XRowLocate
+ virtual css::uno::Any SAL_CALL getBookmark( ) override;
+ virtual sal_Bool SAL_CALL moveToBookmark( const css::uno::Any& bookmark ) override;
+ virtual sal_Bool SAL_CALL moveRelativeToBookmark( const css::uno::Any& bookmark, sal_Int32 rows ) override;
+ virtual sal_Int32 SAL_CALL compareBookmarks( const css::uno::Any& first, const css::uno::Any& second ) override;
+ virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) override;
+ virtual sal_Int32 SAL_CALL hashBookmark( const css::uno::Any& bookmark ) override;
+ // XDeleteRows
+ virtual css::uno::Sequence< sal_Int32 > SAL_CALL deleteRows( const css::uno::Sequence< css::uno::Any >& rows ) override;
+
+ };
}
diff --git a/connectivity/source/inc/ado/AResultSetMetaData.hxx b/connectivity/source/inc/ado/AResultSetMetaData.hxx
index 1eeb22656245..762593233f22 100644
--- a/connectivity/source/inc/ado/AResultSetMetaData.hxx
+++ b/connectivity/source/inc/ado/AResultSetMetaData.hxx
@@ -30,50 +30,50 @@ namespace connectivity::ado
{
- //************ Class: ResultSetMetaData
+ //************ Class: ResultSetMetaData
- typedef ::cppu::WeakImplHelper<css::sdbc::XResultSetMetaData> OResultSetMetaData_BASE;
+ typedef ::cppu::WeakImplHelper<css::sdbc::XResultSetMetaData> OResultSetMetaData_BASE;
- class OResultSetMetaData : public OResultSetMetaData_BASE
- {
- friend class OResultSet;
+ class OResultSetMetaData : public OResultSetMetaData_BASE
+ {
+ friend class OResultSet;
- ADORecordset* m_pRecordSet;
- sal_Int32 m_nColCount;
+ ADORecordset* m_pRecordSet;
+ sal_Int32 m_nColCount;
- sal_Int32 MapADOType2Jdbc(DataTypeEnum eType);
- private:
- OResultSetMetaData( const OResultSetMetaData& ); // never implemented
- OResultSetMetaData& operator=( const OResultSetMetaData& ); // never implemented
+ sal_Int32 MapADOType2Jdbc(DataTypeEnum eType);
+ private:
+ OResultSetMetaData( const OResultSetMetaData& ); // never implemented
+ OResultSetMetaData& operator=( const OResultSetMetaData& ); // never implemented
- protected:
- virtual ~OResultSetMetaData() override;
- public:
- // a Constructor, that is needed for when Returning the Object is needed:
- OResultSetMetaData( ADORecordset* _pRecordSet);
+ protected:
+ virtual ~OResultSetMetaData() override;
+ public:
+ // a Constructor, that is needed for when Returning the Object is needed:
+ OResultSetMetaData( ADORecordset* _pRecordSet);
- virtual sal_Int32 SAL_CALL getColumnCount( ) override;
- virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnLabel( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnName( sal_Int32 column ) override;
- virtual OUString SAL_CALL getSchemaName( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) override;
- virtual OUString SAL_CALL getTableName( sal_Int32 column ) override;
- virtual OUString SAL_CALL getCatalogName( sal_Int32 column ) override;
- virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnTypeName( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) override;
- virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) override;
- virtual OUString SAL_CALL getColumnServiceName( sal_Int32 column ) override;
- };
+ virtual sal_Int32 SAL_CALL getColumnCount( ) override;
+ virtual sal_Bool SAL_CALL isAutoIncrement( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isCaseSensitive( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isSearchable( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isCurrency( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL isNullable( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isSigned( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getColumnDisplaySize( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnLabel( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnName( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getSchemaName( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getPrecision( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getScale( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getTableName( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getCatalogName( sal_Int32 column ) override;
+ virtual sal_Int32 SAL_CALL getColumnType( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnTypeName( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isReadOnly( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isWritable( sal_Int32 column ) override;
+ virtual sal_Bool SAL_CALL isDefinitelyWritable( sal_Int32 column ) override;
+ virtual OUString SAL_CALL getColumnServiceName( sal_Int32 column ) override;
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AStatement.hxx b/connectivity/source/inc/ado/AStatement.hxx
index b8e3e1a6ff9c..00e37b66d3b5 100644
--- a/connectivity/source/inc/ado/AStatement.hxx
+++ b/connectivity/source/inc/ado/AStatement.hxx
@@ -38,181 +38,181 @@
namespace connectivity::ado
{
- typedef ::cppu::WeakComponentImplHelper< css::sdbc::XStatement,
- css::sdbc::XWarningsSupplier,
- css::util::XCancellable,
- css::sdbc::XCloseable,
- css::sdbc::XMultipleResults> OStatement_BASE;
-
-
- //************ Class: java.sql.Statement
-
- class OStatement_Base : public cppu::BaseMutex,
- public OStatement_BASE,
- public ::cppu::OPropertySetHelper,
- public ::comphelper::OPropertyArrayUsageHelper<OStatement_Base>
-
- {
- friend class OResultSet;
-
- css::sdbc::SQLWarning m_aLastWarning;
-
- protected:
- std::vector< OUString> m_aBatchVector;
-
- unotools::WeakReference<OResultSet> m_xResultSet; // The last ResultSet created
- // for this Statement
-
- OConnection* m_pConnection;// The owning Connection object
- WpADOCommand m_Command;
- WpADORecordset m_RecordSet;
- OLEVariant m_RecordsAffected;
- OLEVariant m_Parameters;
- std::vector<connectivity::OTypeInfo> m_aTypeInfo; // Hashtable containing an entry
- // for each row returned by
- // DatabaseMetaData.getTypeInfo.
- long m_nMaxRows;
- sal_Int32 m_nFetchSize;
- LockTypeEnum m_eLockType;
- CursorTypeEnum m_eCursorType;
-
- using OStatement_BASE::rBHelper;
- private:
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getQueryTimeOut() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static sal_Int32 getMaxFieldSize();
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getMaxRows() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getResultSetConcurrency() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getResultSetType() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static sal_Int32 getFetchDirection();
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- sal_Int32 getFetchSize() const;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- OUString getCursorName() const;
-
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setQueryTimeOut(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setMaxFieldSize(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setMaxRows(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setResultSetConcurrency(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setResultSetType(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setFetchDirection(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setFetchSize(sal_Int32 _par0);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- void setCursorName(std::u16string_view _par0);
-
- protected:
-
- void assignRecordSet( ADORecordset* _pRS );
-
- /// @throws css::sdbc::SQLException
- void reset ();
- /// @throws css::sdbc::SQLException
- void clearMyResultSet ();
- /// @throws css::sdbc::SQLException
- void setWarning (const css::sdbc::SQLWarning &ex);
- /// @throws css::sdbc::SQLException
- sal_Int32 getRowCount ();
- sal_Int32 getPrecision ( sal_Int32 sqlType);
-
- void disposeResultSet();
-
- // OPropertyArrayUsageHelper
- virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
- // OPropertySetHelper
- virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
- virtual sal_Bool SAL_CALL convertFastPropertyValue(
- css::uno::Any & rConvertedValue,
- css::uno::Any & rOldValue,
+ typedef ::cppu::WeakComponentImplHelper< css::sdbc::XStatement,
+ css::sdbc::XWarningsSupplier,
+ css::util::XCancellable,
+ css::sdbc::XCloseable,
+ css::sdbc::XMultipleResults> OStatement_BASE;
+
+
+ //************ Class: java.sql.Statement
+
+ class OStatement_Base : public cppu::BaseMutex,
+ public OStatement_BASE,
+ public ::cppu::OPropertySetHelper,
+ public ::comphelper::OPropertyArrayUsageHelper<OStatement_Base>
+
+ {
+ friend class OResultSet;
+
+ css::sdbc::SQLWarning m_aLastWarning;
+
+ protected:
+ std::vector< OUString> m_aBatchVector;
+
+ unotools::WeakReference<OResultSet> m_xResultSet; // The last ResultSet created
+ // for this Statement
+
+ OConnection* m_pConnection;// The owning Connection object
+ WpADOCommand m_Command;
+ WpADORecordset m_RecordSet;
+ OLEVariant m_RecordsAffected;
+ OLEVariant m_Parameters;
+ std::vector<connectivity::OTypeInfo> m_aTypeInfo; // Hashtable containing an entry
+ // for each row returned by
+ // DatabaseMetaData.getTypeInfo.
+ long m_nMaxRows;
+ sal_Int32 m_nFetchSize;
+ LockTypeEnum m_eLockType;
+ CursorTypeEnum m_eCursorType;
+
+ using OStatement_BASE::rBHelper;
+ private:
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getQueryTimeOut() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static sal_Int32 getMaxFieldSize();
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getMaxRows() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getResultSetConcurrency() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getResultSetType() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static sal_Int32 getFetchDirection();
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ sal_Int32 getFetchSize() const;
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ OUString getCursorName() const;
+
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setQueryTimeOut(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setMaxFieldSize(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setMaxRows(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setResultSetConcurrency(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setResultSetType(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setFetchDirection(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setFetchSize(sal_Int32 _par0);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ void setCursorName(std::u16string_view _par0);
+
+ protected:
+
+ void assignRecordSet( ADORecordset* _pRS );
+
+ /// @throws css::sdbc::SQLException
+ void reset ();
+ /// @throws css::sdbc::SQLException
+ void clearMyResultSet ();
+ /// @throws css::sdbc::SQLException
+ void setWarning (const css::sdbc::SQLWarning &ex);
+ /// @throws css::sdbc::SQLException
+ sal_Int32 getRowCount ();
+ sal_Int32 getPrecision ( sal_Int32 sqlType);
+
+ void disposeResultSet();
+
+ // OPropertyArrayUsageHelper
+ virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
+ // OPropertySetHelper
+ virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
+ virtual sal_Bool SAL_CALL convertFastPropertyValue(
+ css::uno::Any & rConvertedValue,
+ css::uno::Any & rOldValue,
+ sal_Int32 nHandle,
+ const css::uno::Any& rValue ) override;
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
sal_Int32 nHandle,
- const css::uno::Any& rValue ) override;
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
- sal_Int32 nHandle,
- const css::uno::Any& rValue
- ) override;
- virtual void SAL_CALL getFastPropertyValue(
- css::uno::Any& rValue,
- sal_Int32 nHandle
- ) const override;
- public:
- OStatement_Base(OConnection* _pConnection );
-
- using OStatement_BASE::operator css::uno::Reference< css::uno::XInterface >;
- // OComponentHelper
- virtual void SAL_CALL disposing() override;
- // XInterface
- virtual void SAL_CALL acquire() noexcept override;
- virtual void SAL_CALL release() noexcept override;
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- //XTypeProvider
- virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
-
- // XPropertySet
- virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
- // XStatement
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery( const OUString& sql ) override;
- virtual sal_Int32 SAL_CALL executeUpdate( const OUString& sql ) override;
- virtual sal_Bool SAL_CALL execute( const OUString& sql ) override;
- virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection( ) override;
- // XWarningsSupplier
- virtual css::uno::Any SAL_CALL getWarnings( ) override;
- virtual void SAL_CALL clearWarnings( ) override;
- // XCancellable
- virtual void SAL_CALL cancel( ) override;
- // XCloseable
- virtual void SAL_CALL close( ) override;
- // XMultipleResults
- virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSet( ) override;
- virtual sal_Int32 SAL_CALL getUpdateCount( ) override;
- virtual sal_Bool SAL_CALL getMoreResults( ) override;
- };
-
- class OStatement : public OStatement_Base,
- public css::sdbc::XBatchExecution,
- public css::lang::XServiceInfo
- {
- public:
- // a Constructor, that is needed for when Returning the Object is needed:
- OStatement( OConnection* _pConnection) : OStatement_Base( _pConnection){};
- ~OStatement() override;
-
- DECLARE_SERVICE_INFO();
-
- virtual void SAL_CALL acquire() noexcept override;
- virtual void SAL_CALL release() noexcept override;
- virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
- // XBatchExecution
- virtual void SAL_CALL addBatch( const OUString& sql ) override;
- virtual void SAL_CALL clearBatch( ) override;
- virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) override;
- };
+ const css::uno::Any& rValue
+ ) override;
+ virtual void SAL_CALL getFastPropertyValue(
+ css::uno::Any& rValue,
+ sal_Int32 nHandle
+ ) const override;
+ public:
+ OStatement_Base(OConnection* _pConnection );
+
+ using OStatement_BASE::operator css::uno::Reference< css::uno::XInterface >;
+ // OComponentHelper
+ virtual void SAL_CALL disposing() override;
+ // XInterface
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
+ //XTypeProvider
+ virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
+
+ // XPropertySet
+ virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
+ // XStatement
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL executeQuery( const OUString& sql ) override;
+ virtual sal_Int32 SAL_CALL executeUpdate( const OUString& sql ) override;
+ virtual sal_Bool SAL_CALL execute( const OUString& sql ) override;
+ virtual css::uno::Reference< css::sdbc::XConnection > SAL_CALL getConnection( ) override;
+ // XWarningsSupplier
+ virtual css::uno::Any SAL_CALL getWarnings( ) override;
+ virtual void SAL_CALL clearWarnings( ) override;
+ // XCancellable
+ virtual void SAL_CALL cancel( ) override;
+ // XCloseable
+ virtual void SAL_CALL close( ) override;
+ // XMultipleResults
+ virtual css::uno::Reference< css::sdbc::XResultSet > SAL_CALL getResultSet( ) override;
+ virtual sal_Int32 SAL_CALL getUpdateCount( ) override;
+ virtual sal_Bool SAL_CALL getMoreResults( ) override;
+ };
+
+ class OStatement : public OStatement_Base,
+ public css::sdbc::XBatchExecution,
+ public css::lang::XServiceInfo
+ {
+ public:
+ // a Constructor, that is needed for when Returning the Object is needed:
+ OStatement( OConnection* _pConnection) : OStatement_Base( _pConnection){};
+ ~OStatement() override;
+
+ DECLARE_SERVICE_INFO();
+
+ virtual void SAL_CALL acquire() noexcept override;
+ virtual void SAL_CALL release() noexcept override;
+ virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
+ // XBatchExecution
+ virtual void SAL_CALL addBatch( const OUString& sql ) override;
+ virtual void SAL_CALL clearBatch( ) override;
+ virtual css::uno::Sequence< sal_Int32 > SAL_CALL executeBatch( ) override;
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/ATable.hxx b/connectivity/source/inc/ado/ATable.hxx
index 827485a6b480..83f21d4f78fe 100644
--- a/connectivity/source/inc/ado/ATable.hxx
+++ b/connectivity/source/inc/ado/ATable.hxx
@@ -25,45 +25,45 @@
namespace connectivity::ado
{
- typedef connectivity::sdbcx::OTable OTable_TYPEDEF;
- typedef connectivity::sdbcx::OTableDescriptor_BASE OTableDescriptor_BASE_TYPEDEF;
+ typedef connectivity::sdbcx::OTable OTable_TYPEDEF;
+ typedef connectivity::sdbcx::OTableDescriptor_BASE OTableDescriptor_BASE_TYPEDEF;
- class OAdoTable : public OTable_TYPEDEF
- {
- WpADOTable m_aTable;
- OCatalog* m_pCatalog;
+ class OAdoTable : public OTable_TYPEDEF
+ {
+ WpADOTable m_aTable;
+ OCatalog* m_pCatalog;
- protected:
- void fillPropertyValues();
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
+ protected:
+ void fillPropertyValues();
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const css::uno::Any& rValue) override;
- public:
- virtual void refreshColumns() override;
- virtual void refreshKeys() override;
- virtual void refreshIndexes() override;
+ public:
+ virtual void refreshColumns() override;
+ virtual void refreshKeys() override;
+ virtual void refreshIndexes() override;
- // ::cppu::OComponentHelper
- virtual void SAL_CALL disposing() override;
+ // ::cppu::OComponentHelper
+ virtual void SAL_CALL disposing() override;
- public:
- OAdoTable(sdbcx::OCollection* _pTables,bool _bCase,OCatalog* _pCatalog,_ADOTable* _pTable);
- OAdoTable(sdbcx::OCollection* _pTables,bool _bCase,OCatalog* _pCatalog);
+ public:
+ OAdoTable(sdbcx::OCollection* _pTables,bool _bCase,OCatalog* _pCatalog,_ADOTable* _pTable);
+ OAdoTable(sdbcx::OCollection* _pTables,bool _bCase,OCatalog* _pCatalog);
- virtual OUString SAL_CALL getName() override;
- OUString getSchema() const { return m_SchemaName; }
- virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() const override;
+ virtual OUString SAL_CALL getName() override;
+ OUString getSchema() const { return m_SchemaName; }
+ virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() const override;
- // XRename
- virtual void SAL_CALL rename( const OUString& newName ) override;
+ // XRename
+ virtual void SAL_CALL rename( const OUString& newName ) override;
- // XAlterTable
- virtual void SAL_CALL alterColumnByName( const OUString& colName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void SAL_CALL alterColumnByIndex( sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ // XAlterTable
+ virtual void SAL_CALL alterColumnByName( const OUString& colName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void SAL_CALL alterColumnByIndex( sal_Int32 index, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- WpADOTable getImpl() const { return m_aTable;}
- OCatalog* getCatalog() const { return m_pCatalog; }
- };
+ WpADOTable getImpl() const { return m_aTable;}
+ OCatalog* getCatalog() const { return m_pCatalog; }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/ATables.hxx b/connectivity/source/inc/ado/ATables.hxx
index 37c91f7c451f..2f37340133a3 100644
--- a/connectivity/source/inc/ado/ATables.hxx
+++ b/connectivity/source/inc/ado/ATables.hxx
@@ -24,29 +24,29 @@
namespace connectivity::ado
{
- class OCatalog;
- class OTables : public sdbcx::OCollection
+ class OCatalog;
+ class OTables : public sdbcx::OCollection
+ {
+ WpADOTables m_aCollection;
+ OCatalog* m_pCatalog;
+ protected:
+ virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
+ virtual void impl_refresh() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
+ public:
+ OTables(OCatalog* _pParent, ::osl::Mutex& _rMutex,
+ const ::std::vector< OUString> &_rVector,
+ const WpADOTables& _rCollection,
+ bool _bCase) : sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
+ ,m_aCollection(_rCollection)
+ ,m_pCatalog(_pParent)
{
- WpADOTables m_aCollection;
- OCatalog* m_pCatalog;
- protected:
- virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
- virtual void impl_refresh() override;
- virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
- virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
- public:
- OTables(OCatalog* _pParent, ::osl::Mutex& _rMutex,
- const ::std::vector< OUString> &_rVector,
- const WpADOTables& _rCollection,
- bool _bCase) : sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
- ,m_aCollection(_rCollection)
- ,m_pCatalog(_pParent)
- {
- OSL_ENSURE(m_aCollection.IsValid(),"Collection isn't valid");
- }
- void appendNew(const OUString& _rsNewTable);
- };
+ OSL_ENSURE(m_aCollection.IsValid(),"Collection isn't valid");
+ }
+ void appendNew(const OUString& _rsNewTable);
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AUser.hxx b/connectivity/source/inc/ado/AUser.hxx
index 8d0c0f7321b6..c0c661904776 100644
--- a/connectivity/source/inc/ado/AUser.hxx
+++ b/connectivity/source/inc/ado/AUser.hxx
@@ -24,60 +24,60 @@
namespace connectivity::ado
{
- class OCatalog;
- typedef connectivity::sdbcx::OUser OUser_TYPEDEF;
- typedef connectivity::sdbcx::OUser_BASE OUser_BASE_TYPEDEF;
+ class OCatalog;
+ typedef connectivity::sdbcx::OUser OUser_TYPEDEF;
+ typedef connectivity::sdbcx::OUser_BASE OUser_BASE_TYPEDEF;
- class OAdoUser : public OUser_TYPEDEF
- {
- protected:
- WpADOUser m_aUser;
- OCatalog* m_pCatalog;
+ class OAdoUser : public OUser_TYPEDEF
+ {
+ protected:
+ WpADOUser m_aUser;
+ OCatalog* m_pCatalog;
- virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
- sal_Int32 nHandle,
- const css::uno::Any& rValue
- ) override;
- virtual void SAL_CALL getFastPropertyValue(
- css::uno::Any& rValue,
- sal_Int32 nHandle
- ) const override;
- public:
- virtual void refreshGroups() override;
- public:
- OAdoUser(OCatalog* _pParent,bool _bCase, ADOUser* _pUser=nullptr);
- OAdoUser(OCatalog* _pParent,bool _bCase, const OUString& Name);
+ virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
+ sal_Int32 nHandle,
+ const css::uno::Any& rValue
+ ) override;
+ virtual void SAL_CALL getFastPropertyValue(
+ css::uno::Any& rValue,
+ sal_Int32 nHandle
+ ) const override;
+ public:
+ virtual void refreshGroups() override;
+ public:
+ OAdoUser(OCatalog* _pParent,bool _bCase, ADOUser* _pUser=nullptr);
+ OAdoUser(OCatalog* _pParent,bool _bCase, const OUString& Name);
- // XUser
- virtual void SAL_CALL changePassword( const OUString& objPassword, const OUString& newPassword ) override;
- // XAuthorizable
- virtual sal_Int32 SAL_CALL getPrivileges( const OUString& objName, sal_Int32 objType ) override;
- virtual sal_Int32 SAL_CALL getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) override;
- virtual void SAL_CALL grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
- virtual void SAL_CALL revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
+ // XUser
+ virtual void SAL_CALL changePassword( const OUString& objPassword, const OUString& newPassword ) override;
+ // XAuthorizable
+ virtual sal_Int32 SAL_CALL getPrivileges( const OUString& objName, sal_Int32 objType ) override;
+ virtual sal_Int32 SAL_CALL getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) override;
+ virtual void SAL_CALL grantPrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
+ virtual void SAL_CALL revokePrivileges( const OUString& objName, sal_Int32 objType, sal_Int32 objPrivileges ) override;
- WpADOUser getImpl() const { return m_aUser;}
- };
+ WpADOUser getImpl() const { return m_aUser;}
+ };
- class OUserExtend;
- typedef ::comphelper::OPropertyArrayUsageHelper<OUserExtend> OUserExtend_PROP;
+ class OUserExtend;
+ typedef ::comphelper::OPropertyArrayUsageHelper<OUserExtend> OUserExtend_PROP;
- class OUserExtend : public OAdoUser,
- public OUserExtend_PROP
- {
- protected:
- OUString m_Password;
- // OPropertyArrayUsageHelper
- virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const override;
- // OPropertySetHelper
- virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
- public:
- OUserExtend(OCatalog* _pParent,bool _bCase,ADOUser* _pUser=nullptr);
- OUserExtend(OCatalog* _pParent,bool _bCase,const OUString& Name);
+ class OUserExtend : public OAdoUser,
+ public OUserExtend_PROP
+ {
+ protected:
+ OUString m_Password;
+ // OPropertyArrayUsageHelper
+ virtual ::cppu::IPropertyArrayHelper* createArrayHelper() const override;
+ // OPropertySetHelper
+ virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
+ public:
+ OUserExtend(OCatalog* _pParent,bool _bCase,ADOUser* _pUser=nullptr);
+ OUserExtend(OCatalog* _pParent,bool _bCase,const OUString& Name);
- virtual void construct() override;
- OUString getPassword() const { return m_Password;}
- };
+ virtual void construct() override;
+ OUString getPassword() const { return m_Password;}
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AUsers.hxx b/connectivity/source/inc/ado/AUsers.hxx
index 3f715f8b7209..b88776206321 100644
--- a/connectivity/source/inc/ado/AUsers.hxx
+++ b/connectivity/source/inc/ado/AUsers.hxx
@@ -26,28 +26,28 @@
namespace connectivity::ado
{
- class OUsers : public sdbcx::OCollection
+ class OUsers : public sdbcx::OCollection
+ {
+ WpADOUsers m_aCollection;
+ OCatalog* m_pCatalog;
+ public:
+ virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
+ virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ virtual void impl_refresh() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
+ public:
+ OUsers( OCatalog* _pParent,
+ ::osl::Mutex& _rMutex,
+ const ::std::vector< OUString> &_rVector,
+ const WpADOUsers& _rCollection,
+ bool _bCase)
+ :sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
+ ,m_aCollection(_rCollection)
+ ,m_pCatalog(_pParent)
{
- WpADOUsers m_aCollection;
- OCatalog* m_pCatalog;
- public:
- virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
- virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
- virtual void impl_refresh() override;
- virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
- public:
- OUsers( OCatalog* _pParent,
- ::osl::Mutex& _rMutex,
- const ::std::vector< OUString> &_rVector,
- const WpADOUsers& _rCollection,
- bool _bCase)
- :sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
- ,m_aCollection(_rCollection)
- ,m_pCatalog(_pParent)
- {
- }
- };
+ }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AView.hxx b/connectivity/source/inc/ado/AView.hxx
index db81c4e70bb5..320140df4a68 100644
--- a/connectivity/source/inc/ado/AView.hxx
+++ b/connectivity/source/inc/ado/AView.hxx
@@ -25,23 +25,23 @@
namespace connectivity::ado
{
- typedef sdbcx::OView OView_ADO;
-
- class OAdoView : public OView_ADO
- {
- WpADOView m_aView;
-
- protected:
- // OPropertySetHelper
- virtual void SAL_CALL getFastPropertyValue(
- css::uno::Any& rValue,
- sal_Int32 nHandle
- ) const override;
- public:
- OAdoView(bool _bCase, ADOView* _pView=nullptr);
-
- WpADOView getImpl() const { return m_aView;}
- };
+ typedef sdbcx::OView OView_ADO;
+
+ class OAdoView : public OView_ADO
+ {
+ WpADOView m_aView;
+
+ protected:
+ // OPropertySetHelper
+ virtual void SAL_CALL getFastPropertyValue(
+ css::uno::Any& rValue,
+ sal_Int32 nHandle
+ ) const override;
+ public:
+ OAdoView(bool _bCase, ADOView* _pView=nullptr);
+
+ WpADOView getImpl() const { return m_aView;}
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/AViews.hxx b/connectivity/source/inc/ado/AViews.hxx
index 8709bdc9fae8..5d3e322f4a89 100644
--- a/connectivity/source/inc/ado/AViews.hxx
+++ b/connectivity/source/inc/ado/AViews.hxx
@@ -27,25 +27,25 @@
namespace connectivity::ado
{
- class OViews : public sdbcx::OCollection
+ class OViews : public sdbcx::OCollection
+ {
+ WpADOViews m_aCollection;
+ OCatalog* m_pCatalog;
+ protected:
+ virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
+ virtual void impl_refresh() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
+ virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
+ virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
+ public:
+ OViews(OCatalog* _pParent, ::osl::Mutex& _rMutex,
+ const ::std::vector< OUString> &_rVector,
+ WpADOViews const & _rCollection,bool _bCase) : sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
+ ,m_aCollection(_rCollection)
+ ,m_pCatalog(_pParent)
{
- WpADOViews m_aCollection;
- OCatalog* m_pCatalog;
- protected:
- virtual css::uno::Reference< css::beans::XPropertySet > createObject(const OUString& _rName) override;
- virtual void impl_refresh() override;
- virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
- virtual css::uno::Reference< css::beans::XPropertySet > appendObject( const OUString& _rForName, const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
- virtual void dropObject(sal_Int32 _nPos,const OUString& _sElementName) override;
- public:
- OViews(OCatalog* _pParent, ::osl::Mutex& _rMutex,
- const ::std::vector< OUString> &_rVector,
- WpADOViews const & _rCollection,bool _bCase) : sdbcx::OCollection(*_pParent,_bCase,_rMutex,_rVector)
- ,m_aCollection(_rCollection)
- ,m_pCatalog(_pParent)
- {
- }
- };
+ }
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/Aolevariant.hxx b/connectivity/source/inc/ado/Aolevariant.hxx
index ba0653156a94..72929c37db73 100644
--- a/connectivity/source/inc/ado/Aolevariant.hxx
+++ b/connectivity/source/inc/ado/Aolevariant.hxx
@@ -33,91 +33,91 @@ namespace com::sun::star::util
namespace connectivity::ado
{
- class OLEVariant : public ::tagVARIANT
+ class OLEVariant : public ::tagVARIANT
+ {
+ public:
+ OLEVariant();
+ OLEVariant(const VARIANT& varSrc);
+ OLEVariant(const OLEVariant& varSrc) ;
+ OLEVariant(bool x) ;
+ OLEVariant(sal_Bool) = delete;
+ OLEVariant(sal_Int8 n) ;
+ OLEVariant(sal_Int16 n) ;
+ OLEVariant(sal_Int32 n) ;
+ OLEVariant(sal_Int64 x) ;
+
+ OLEVariant(std::u16string_view us);
+ OLEVariant(const OUString& us)
+ : OLEVariant(std::u16string_view(us))
{
- public:
- OLEVariant();
- OLEVariant(const VARIANT& varSrc);
- OLEVariant(const OLEVariant& varSrc) ;
- OLEVariant(bool x) ;
- OLEVariant(sal_Bool) = delete;
- OLEVariant(sal_Int8 n) ;
- OLEVariant(sal_Int16 n) ;
- OLEVariant(sal_Int32 n) ;
- OLEVariant(sal_Int64 x) ;
-
- OLEVariant(std::u16string_view us);
- OLEVariant(const OUString& us)
- : OLEVariant(std::u16string_view(us))
- {
- }
- ~OLEVariant() ;
- OLEVariant(const css::util::Date& x );
- OLEVariant(const css::util::Time& x );
- OLEVariant(const css::util::DateTime& x );
- OLEVariant(float x);
- OLEVariant(const double &x);
- OLEVariant(IDispatch* pDispInterface);
- OLEVariant(const css::uno::Sequence< sal_Int8 >& x);
- OLEVariant& operator=(const OLEVariant& varSrc);
- // Assign a const VARIANT& (::VariantCopy handles everything)
-
- OLEVariant& operator=(const tagVARIANT& varSrc);
- // Assign a const VARIANT* (::VariantCopy handles everything)
-
- OLEVariant& operator=(const VARIANT* pSrc);
- void setByte(sal_uInt8 n) ;
- void setInt16(sal_Int16 n) ;
- void setInt32(sal_Int32 n) ;
- void setFloat(float f) ;
- void setDouble(double d) ;
- void setDate(DATE d) ;
- void setChar(unsigned char a) ;
- void setCurrency(double aCur) ;
- void setBool(bool b) ;
- void setString(std::u16string_view us);
- void setNoArg() ;
-
- void setIDispatch(IDispatch* pDispInterface);
- void setNull() ;
- void setEmpty() ;
-
- void setUI1SAFEARRAYPtr(SAFEARRAY* pSafeAr);
- void setArray(SAFEARRAY* pSafeArray, VARTYPE vtType);
- bool isNull() const ;
- bool isEmpty() const ;
-
- VARTYPE getType() const ;
- void ChangeType(VARTYPE vartype, const OLEVariant* pSrc);
-
- OUString getString() const;
- bool getBool() const;
- IUnknown* getIUnknown() const;
- IDispatch* getIDispatch() const;
- sal_uInt8 getByte() const;
- sal_Int16 getInt16() const;
- sal_Int8 getInt8() const;
- sal_Int32 getInt32() const;
- sal_uInt32 getUInt32() const;
- float getFloat() const;
- double getDouble() const;
- double getDateAsDouble() const;
- CY getCurrency() const;
- css::util::Date getDate() const;
- css::util::Time getTime() const;
- css::util::DateTime getDateTime() const;
- css::uno::Sequence<sal_Int8> getByteSequence() const;
- SAFEARRAY* getUI1SAFEARRAYPtr() const;
- css::uno::Any makeAny() const;
-
- static VARIANT_BOOL VariantBool(bool bEinBoolean);
-
- private:
- void CHS();
-
- void set(double n);
-
- };
+ }
+ ~OLEVariant() ;
+ OLEVariant(const css::util::Date& x );
+ OLEVariant(const css::util::Time& x );
+ OLEVariant(const css::util::DateTime& x );
+ OLEVariant(float x);
+ OLEVariant(const double &x);
+ OLEVariant(IDispatch* pDispInterface);
+ OLEVariant(const css::uno::Sequence< sal_Int8 >& x);
+ OLEVariant& operator=(const OLEVariant& varSrc);
+ // Assign a const VARIANT& (::VariantCopy handles everything)
+
+ OLEVariant& operator=(const tagVARIANT& varSrc);
+ // Assign a const VARIANT* (::VariantCopy handles everything)
+
+ OLEVariant& operator=(const VARIANT* pSrc);
+ void setByte(sal_uInt8 n) ;
+ void setInt16(sal_Int16 n) ;
+ void setInt32(sal_Int32 n) ;
+ void setFloat(float f) ;
+ void setDouble(double d) ;
+ void setDate(DATE d) ;
+ void setChar(unsigned char a) ;
+ void setCurrency(double aCur) ;
+ void setBool(bool b) ;
+ void setString(std::u16string_view us);
+ void setNoArg() ;
+
+ void setIDispatch(IDispatch* pDispInterface);
+ void setNull() ;
+ void setEmpty() ;
+
+ void setUI1SAFEARRAYPtr(SAFEARRAY* pSafeAr);
+ void setArray(SAFEARRAY* pSafeArray, VARTYPE vtType);
+ bool isNull() const ;
+ bool isEmpty() const ;
+
+ VARTYPE getType() const ;
+ void ChangeType(VARTYPE vartype, const OLEVariant* pSrc);
+
+ OUString getString() const;
+ bool getBool() const;
+ IUnknown* getIUnknown() const;
+ IDispatch* getIDispatch() const;
+ sal_uInt8 getByte() const;
+ sal_Int16 getInt16() const;
+ sal_Int8 getInt8() const;
+ sal_Int32 getInt32() const;
+ sal_uInt32 getUInt32() const;
+ float getFloat() const;
+ double getDouble() const;
+ double getDateAsDouble() const;
+ CY getCurrency() const;
+ css::util::Date getDate() const;
+ css::util::Time getTime() const;
+ css::util::DateTime getDateTime() const;
+ css::uno::Sequence<sal_Int8> getByteSequence() const;
+ SAFEARRAY* getUI1SAFEARRAYPtr() const;
+ css::uno::Any makeAny() const;
+
+ static VARIANT_BOOL VariantBool(bool bEinBoolean);
+
+ private:
+ void CHS();
+
+ void set(double n);
+
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/Aolewrap.hxx b/connectivity/source/inc/ado/Aolewrap.hxx
index 9d402fcf21b1..6069d319c471 100644
--- a/connectivity/source/inc/ado/Aolewrap.hxx
+++ b/connectivity/source/inc/ado/Aolewrap.hxx
@@ -33,142 +33,142 @@ namespace rtl
}
namespace connectivity::ado
{
- // Template class WpOLEBase<class T>
- // ==================================
- //
- // Objects of this class contain a pointer to an interface of the type T.
+ // Template class WpOLEBase<class T>
+ // ==================================
+ //
+ // Objects of this class contain a pointer to an interface of the type T.
- template<class T> class WpOLEBase
- {
- protected:
- sal::systools::COMReference<T> pInterface;
+ template<class T> class WpOLEBase
+ {
+ protected:
+ sal::systools::COMReference<T> pInterface;
- public:
- WpOLEBase(T* pInt = nullptr) : pInterface(pInt){}
+ public:
+ WpOLEBase(T* pInt = nullptr) : pInterface(pInt){}
- WpOLEBase(const WpOLEBase<T>& aWrapper)
- : pInterface( aWrapper.pInterface )
- {
- }
+ WpOLEBase(const WpOLEBase<T>& aWrapper)
+ : pInterface( aWrapper.pInterface )
+ {
+ }
- //inline
- WpOLEBase<T>& operator=(const WpOLEBase<T>& rhs)
- {
- pInterface = rhs.pInterface;
- return *this;
- };
-
- operator T*() const { return pInterface.get(); }
- T** operator&() { return &pInterface; }
- bool IsValid() const { return pInterface.is(); }
- void set(T* p) { pInterface = p; }
- void clear() { pInterface.clear(); }
+ //inline
+ WpOLEBase<T>& operator=(const WpOLEBase<T>& rhs)
+ {
+ pInterface = rhs.pInterface;
+ return *this;
};
-
- // Template class WpOLECollection<class Ts, class WrapT>
- // ===============================================================
- //
- // This class (derived from WpOLEBase<Ts>), abstracts away the properties
- // common to DAO collections:
- //
- // They are accessed via an interface Ts (e.g. DAOFields) and can return
- // Items of the type wrapped by WrapT (actually: with the interface, e.g.
- // DAOField) via get_Item (here GetItem).
- //
- // This wrapper class exposes an object of the class WrapT.
-
- template<class Ts, class WrapT> class WpOLECollection : public WpOLEBase<Ts>
+ operator T*() const { return pInterface.get(); }
+ T** operator&() { return &pInterface; }
+ bool IsValid() const { return pInterface.is(); }
+ void set(T* p) { pInterface = p; }
+ void clear() { pInterface.clear(); }
+ };
+
+
+ // Template class WpOLECollection<class Ts, class WrapT>
+ // ===============================================================
+ //
+ // This class (derived from WpOLEBase<Ts>), abstracts away the properties
+ // common to DAO collections:
+ //
+ // They are accessed via an interface Ts (e.g. DAOFields) and can return
+ // Items of the type wrapped by WrapT (actually: with the interface, e.g.
+ // DAOField) via get_Item (here GetItem).
+ //
+ // This wrapper class exposes an object of the class WrapT.
+
+ template<class Ts, class WrapT> class WpOLECollection : public WpOLEBase<Ts>
+ {
+ public:
+ using WpOLEBase<Ts>::pInterface;
+ using WpOLEBase<Ts>::IsValid;
+ // Ctors, operator=
+ // They only call the superclass
+ WpOLECollection() = default;
+ WpOLECollection(const WpOLECollection& rhs) : WpOLEBase<Ts>(rhs) {}
+ WpOLECollection& operator=(const WpOLECollection& rhs)
+ {WpOLEBase<Ts>::operator=(rhs); return *this;};
+
+
+ void Refresh(){pInterface->Refresh();}
+
+ sal_Int32 GetItemCount() const
{
- public:
- using WpOLEBase<Ts>::pInterface;
- using WpOLEBase<Ts>::IsValid;
- // Ctors, operator=
- // They only call the superclass
- WpOLECollection() = default;
- WpOLECollection(const WpOLECollection& rhs) : WpOLEBase<Ts>(rhs) {}
- WpOLECollection& operator=(const WpOLECollection& rhs)
- {WpOLEBase<Ts>::operator=(rhs); return *this;};
+ sal_Int32 nCount = 0;
+ return pInterface ? (SUCCEEDED(pInterface->get_Count(&nCount)) ? nCount : sal_Int32(0)) : sal_Int32(0);
+ }
+ WrapT GetItem(sal_Int32 index) const
+ {
+ OSL_ENSURE(index >= 0 && index<GetItemCount(),"Wrong index for field!");
+ WrapT aRet;
+ pInterface->get_Item(OLEVariant(index), &aRet);
+ return aRet;
+ }
- void Refresh(){pInterface->Refresh();}
-
- sal_Int32 GetItemCount() const
- {
- sal_Int32 nCount = 0;
- return pInterface ? (SUCCEEDED(pInterface->get_Count(&nCount)) ? nCount : sal_Int32(0)) : sal_Int32(0);
- }
-
- WrapT GetItem(sal_Int32 index) const
- {
- OSL_ENSURE(index >= 0 && index<GetItemCount(),"Wrong index for field!");
- WrapT aRet;
- pInterface->get_Item(OLEVariant(index), &aRet);
- return aRet;
- }
-
- WrapT GetItem(const OLEVariant& index) const
- {
- WrapT aRet;
- pInterface->get_Item(index, &aRet);
- return aRet;
- }
+ WrapT GetItem(const OLEVariant& index) const
+ {
+ WrapT aRet;
+ pInterface->get_Item(index, &aRet);
+ return aRet;
+ }
- WrapT GetItem(const OUString& sStr) const
+ WrapT GetItem(const OUString& sStr) const
+ {
+ WrapT aRet;
+ if (FAILED(pInterface->get_Item(OLEVariant(sStr), &aRet)))
{
- WrapT aRet;
- if (FAILED(pInterface->get_Item(OLEVariant(sStr), &aRet)))
- {
#if OSL_DEBUG_LEVEL > 0
- OString sTemp("Unknown Item: " + OString(sStr.getStr(),sStr.getLength(),osl_getThreadTextEncoding()));
- OSL_FAIL(sTemp.getStr());
+ OString sTemp("Unknown Item: " + OString(sStr.getStr(),sStr.getLength(),osl_getThreadTextEncoding()));
+ OSL_FAIL(sTemp.getStr());
#endif
- }
- return aRet;
}
- void fillElementNames(::std::vector< OUString>& _rVector)
+ return aRet;
+ }
+ void fillElementNames(::std::vector< OUString>& _rVector)
+ {
+ if(IsValid())
{
- if(IsValid())
+ Refresh();
+ sal_Int32 nCount = GetItemCount();
+ _rVector.reserve(nCount);
+ for(sal_Int32 i=0;i< nCount;++i)
{
- Refresh();
- sal_Int32 nCount = GetItemCount();
- _rVector.reserve(nCount);
- for(sal_Int32 i=0;i< nCount;++i)
- {
- WrapT aElement = GetItem(i);
- if(aElement.IsValid())
- _rVector.push_back(aElement.get_Name());
- }
+ WrapT aElement = GetItem(i);
+ if(aElement.IsValid())
+ _rVector.push_back(aElement.get_Name());
}
}
- };
+ }
+ };
- template<class Ts, class WrapT> class WpOLEAppendCollection:
- public WpOLECollection<Ts,WrapT>
- {
+ template<class Ts, class WrapT> class WpOLEAppendCollection:
+ public WpOLECollection<Ts,WrapT>
+ {
- public:
- // Ctors, operator=
- // They only call the superclass
- using WpOLEBase<Ts>::pInterface;
- WpOLEAppendCollection() = default;
- WpOLEAppendCollection(const WpOLEAppendCollection& rhs) : WpOLECollection<Ts, WrapT>(rhs) {}
- WpOLEAppendCollection& operator=(const WpOLEAppendCollection& rhs)
- {WpOLEBase<Ts>::operator=(rhs); return *this;};
+ public:
+ // Ctors, operator=
+ // They only call the superclass
+ using WpOLEBase<Ts>::pInterface;
+ WpOLEAppendCollection() = default;
+ WpOLEAppendCollection(const WpOLEAppendCollection& rhs) : WpOLECollection<Ts, WrapT>(rhs) {}
+ WpOLEAppendCollection& operator=(const WpOLEAppendCollection& rhs)
+ {WpOLEBase<Ts>::operator=(rhs); return *this;};
- bool Append(const WrapT& aWrapT)
- {
- return SUCCEEDED(pInterface->Append(OLEVariant(aWrapT)));
- };
+ bool Append(const WrapT& aWrapT)
+ {
+ return SUCCEEDED(pInterface->Append(OLEVariant(aWrapT)));
+ };
- bool Delete(const OUString& sName)
- {
- return SUCCEEDED(pInterface->Delete(OLEVariant(sName)));
- };
+ bool Delete(const OUString& sName)
+ {
+ return SUCCEEDED(pInterface->Delete(OLEVariant(sName)));
+ };
- };
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/Awrapado.hxx b/connectivity/source/inc/ado/Awrapado.hxx
index bcdbe18b0dd9..a8b4b382a4fa 100644
--- a/connectivity/source/inc/ado/Awrapado.hxx
+++ b/connectivity/source/inc/ado/Awrapado.hxx
@@ -34,339 +34,339 @@
namespace connectivity::ado
{
- class WpADOConnection;
- class WpADOCommand;
- class WpADORecordset;
- class WpADOField;
- class WpADOParameter;
- class WpADOError;
- class WpADOProperty;
-
- typedef WpOLEAppendCollection< ADOFields, WpADOField> WpADOFields;
- typedef WpOLECollection< ADOProperties, WpADOProperty> WpADOProperties;
-
-
- class WpADOConnection : public WpOLEBase<ADOConnection>
- {
- public:
-
- WpADOConnection() = default;
-
- WpADOConnection(const WpADOConnection& rhs) : WpOLEBase<ADOConnection>(rhs) {}
-
- WpADOConnection& operator=(const WpADOConnection& rhs)
- {WpOLEBase<ADOConnection>::operator=(rhs); return *this;}
-
-
- WpADOProperties get_Properties() const;
-
- OUString GetConnectionString() const;
- bool PutConnectionString(std::u16string_view aCon) const;
- sal_Int32 GetCommandTimeout() const;
- void PutCommandTimeout(sal_Int32 nRet);
- sal_Int32 GetConnectionTimeout() const ;
- void PutConnectionTimeout(sal_Int32 nRet);
-
- bool Close( ) ;
- bool Execute(std::u16string_view CommandText,OLEVariant& RecordsAffected,long Options, WpADORecordset** ppiRset);
- bool BeginTrans();
- bool CommitTrans( ) ;
- bool RollbackTrans( );
- bool Open(std::u16string_view ConnectionString, std::u16string_view UserID,std::u16string_view Password,long Options);
- bool GetErrors(ADOErrors** pErrors);
-
- OUString GetDefaultDatabase() const;
- bool PutDefaultDatabase(std::u16string_view _bstr);
-
- IsolationLevelEnum get_IsolationLevel() const ;
- bool put_IsolationLevel(const IsolationLevelEnum& eNum) ;
-
- sal_Int32 get_Attributes() const;
- bool put_Attributes(sal_Int32 nRet);
-
- CursorLocationEnum get_CursorLocation() const;
- bool put_CursorLocation(const CursorLocationEnum &eNum) ;
-
- ConnectModeEnum get_Mode() const;
- bool put_Mode(const ConnectModeEnum &eNum) ;
-
- OUString get_Provider() const;
- bool put_Provider(std::u16string_view _bstr);
-
- sal_Int32 get_State() const;
-
- bool OpenSchema(SchemaEnum eNum,OLEVariant const & Restrictions,OLEVariant const & SchemaID,ADORecordset**pprset);
-
- OUString get_Version() const;
-
- // special methods
- ADORecordset* getExportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
- ADORecordset* getImportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
- ADORecordset* getPrimaryKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
- ADORecordset* getIndexInfo( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table, bool unique, bool approximate );
- ADORecordset* getTablePrivileges( const css::uno::Any& catalog,
- const OUString& schemaPattern,
- std::u16string_view tableNamePattern );
- ADORecordset* getCrossReference( const css::uno::Any& primaryCatalog,
- const OUString& primarySchema,
- std::u16string_view primaryTable,
- const css::uno::Any& foreignCatalog,
- const OUString& foreignSchema,
- std::u16string_view foreignTable);
- ADORecordset* getProcedures( const css::uno::Any& catalog,
- const OUString& schemaPattern,
- std::u16string_view procedureNamePattern );
- ADORecordset* getProcedureColumns( const css::uno::Any& catalog,
- const OUString& schemaPattern,
- std::u16string_view procedureNamePattern,
- std::u16string_view columnNamePattern );
- ADORecordset* getTables( const css::uno::Any& catalog,
- const OUString& schemaPattern,
- std::u16string_view tableNamePattern,
- const css::uno::Sequence< OUString >& types );
- ADORecordset* getColumns( const css::uno::Any& catalog,
- const OUString& schemaPattern,
- std::u16string_view tableNamePattern,
- std::u16string_view columnNamePattern );
- ADORecordset* getColumnPrivileges( const css::uno::Any& catalog,
- const OUString& schemaPattern,
- std::u16string_view table,
- std::u16string_view columnNamePattern );
- ADORecordset* getTypeInfo(DataTypeEnum _eType = adEmpty );
- };
-
-
- class WpADOCommand : public WpOLEBase<ADOCommand>
- {
- public:
- WpADOCommand() = default;
- // Ctors, operator=
- // They only call the superclass
- WpADOCommand(const WpADOCommand& rhs) : WpOLEBase<ADOCommand>(rhs) {}
-
- WpADOCommand& operator=(const WpADOCommand& rhs)
- {
- WpOLEBase<ADOCommand>::operator=(rhs); return *this;}
-
-
- bool putref_ActiveConnection(const WpADOConnection& rCon);
-
- void put_ActiveConnection(/* [in] */ const OLEVariant& vConn);
- void Create();
- sal_Int32 get_State() const;
- OUString get_CommandText() const;
- bool put_CommandText(std::u16string_view aCon) ;
- sal_Int32 get_CommandTimeout() const;
- void put_CommandTimeout(sal_Int32 nRet);
- bool get_Prepared() const;
- bool put_Prepared(VARIANT_BOOL bPrepared) const;
- bool Execute(OLEVariant& RecordsAffected,OLEVariant& Parameters,long Options, ADORecordset** ppiRset);
- ADOParameter* CreateParameter(std::u16string_view _bstr,DataTypeEnum Type,ParameterDirectionEnum Direction,long nSize,const OLEVariant &Value);
-
- ADOParameters* get_Parameters() const;
- bool put_CommandType( /* [in] */ CommandTypeEnum lCmdType);
- CommandTypeEnum get_CommandType( ) const ;
- // Returns the field's name
- OUString GetName() const ;
- bool put_Name(std::u16string_view Name);
- bool Cancel();
- };
-
- class WpADOError : public WpOLEBase<ADOError>
- {
- public:
-
- // Ctors, operator=
- // They only call the superclass
- WpADOError() = default;
-
- WpADOError(const WpADOError& rhs) : WpOLEBase<ADOError>(rhs) {}
-
- WpADOError& operator=(const WpADOError& rhs)
- {WpOLEBase<ADOError>::operator=(rhs); return *this;}
-
-
- OUString GetDescription() const;
- OUString GetSource() const ;
- sal_Int32 GetNumber() const ;
- OUString GetSQLState() const ;
- sal_Int32 GetNativeError() const ;
- };
-
-
- class WpADOField : public WpOLEBase<ADOField>
- {
- // friend class WpADOFields;
- public:
-
- // Ctors, operator=
- // They only call the superclass
- WpADOField() = default;
- WpADOField(const WpADOField& rhs) : WpOLEBase<ADOField>(rhs) {}
-
- WpADOField& operator=(const WpADOField& rhs)
- {WpOLEBase<ADOField>::operator=(rhs); return *this;}
-
-
- WpADOProperties get_Properties();
- sal_Int32 GetActualSize() const ;
- sal_Int32 GetAttributes() const ;
- sal_Int32 GetStatus() const ;
- sal_Int32 GetDefinedSize() const ;
- // Returns the field's name
- OUString GetName() const ;
- DataTypeEnum GetADOType() const ;
- void get_Value(OLEVariant& aValVar) const ;
- OLEVariant get_Value() const;
- bool PutValue(const OLEVariant& aVariant);
- sal_Int32 GetPrecision() const ;
- sal_Int32 GetNumericScale() const ;
- bool AppendChunk(const OLEVariant& Variant);
- OLEVariant GetChunk(long Length) const;
- void GetChunk(long Length,OLEVariant &aValVar) const;
- OLEVariant GetOriginalValue() const;
- void GetOriginalValue(OLEVariant &aValVar) const;
- OLEVariant GetUnderlyingValue() const;
-
- void GetUnderlyingValue(OLEVariant &aValVar) const;
-
- bool PutPrecision(sal_Int8 _prec);
-
- bool PutNumericScale(sal_Int8 _prec);
-
- void PutADOType(DataTypeEnum eType) ;
-
- bool PutDefinedSize(sal_Int32 _nDefSize);
-
- bool PutAttributes(sal_Int32 _nDefSize);
- };
-
-
- class WpADOProperty: public WpOLEBase<ADOProperty>
- {
- public:
- // Ctors, operator=
- // They only call the superclass
- WpADOProperty() = default;
- WpADOProperty(const WpADOProperty& rhs) : WpOLEBase<ADOProperty>(rhs) {}
- WpADOProperty& operator=(const WpADOProperty& rhs)
- {WpOLEBase<ADOProperty>::operator=(rhs); return *this;}
-
-
- OLEVariant GetValue() const;
- void GetValue(OLEVariant &aValVar) const;
- bool PutValue(const OLEVariant &aValVar) ;
- OUString GetName() const ;
- DataTypeEnum GetADOType() const ;
- sal_Int32 GetAttributes() const ;
- bool PutAttributes(sal_Int32 _nDefSize);
- };
-
-
- class WpADORecordset : public WpOLEBase<ADORecordset>
- {
-
- public:
- // Ctors, operator=
- // They only call the superclass
- WpADORecordset() = default;
- WpADORecordset(const WpADORecordset& rhs) : WpOLEBase<ADORecordset>() {operator=(rhs);}
- WpADORecordset& operator=(const WpADORecordset& rhs)
- {
- WpOLEBase<ADORecordset>::operator=(rhs);
- return *this;
- }
-
- void Create();
- bool Open(
- /* [optional][in] */ VARIANT Source,
- /* [optional][in] */ VARIANT ActiveConnection,
- /* [defaultvalue][in] */ CursorTypeEnum CursorType,
- /* [defaultvalue][in] */ LockTypeEnum LockType,
- /* [defaultvalue][in] */ sal_Int32 Options);
- LockTypeEnum GetLockType();
- void Close();
- bool Cancel() const;
- sal_Int32 get_State( );
- bool Supports( /* [in] */ CursorOptionEnum CursorOptions);
- PositionEnum get_AbsolutePosition();
- void GetDataSource(IUnknown** pIUnknown) const ;
- void PutRefDataSource(IUnknown* pIUnknown);
- void GetBookmark(VARIANT& var);
- OLEVariant GetBookmark();
- CompareEnum CompareBookmarks(const OLEVariant& left,const OLEVariant& right);
- bool SetBookmark(const OLEVariant &pSafeAr);
- WpADOFields GetFields() const;
- bool Move(sal_Int32 nRows, VARIANT aBmk);
- bool MoveNext();
- bool MovePrevious();
- bool MoveFirst();
- bool MoveLast();
-
- bool IsAtBOF() const;
- bool IsAtEOF() const;
- bool Delete(AffectEnum eNum);
- bool AddNew(const OLEVariant &FieldList,const OLEVariant &Values);
- bool Update(const OLEVariant &FieldList,const OLEVariant &Values);
- bool CancelUpdate();
- WpADOProperties get_Properties() const;
- bool NextRecordset(OLEVariant& RecordsAffected,ADORecordset** ppiRset);
- bool get_RecordCount(long& _nRet) const;
- bool get_MaxRecords(long& _nRet) const;
- bool put_MaxRecords(ADO_LONGPTR _nRet);
- bool get_CursorType(CursorTypeEnum &_nRet) const;
- bool put_CursorType(CursorTypeEnum _nRet);
- bool get_LockType(LockTypeEnum &_nRet) const;
- bool put_LockType(LockTypeEnum _nRet);
- bool get_CacheSize(sal_Int32 &_nRet) const;
- bool put_CacheSize(sal_Int32 _nRet);
- bool UpdateBatch(AffectEnum AffectRecords);
- };
-
-
- class WpADOParameter:public WpOLEBase<ADOParameter>
+ class WpADOConnection;
+ class WpADOCommand;
+ class WpADORecordset;
+ class WpADOField;
+ class WpADOParameter;
+ class WpADOError;
+ class WpADOProperty;
+
+ typedef WpOLEAppendCollection< ADOFields, WpADOField> WpADOFields;
+ typedef WpOLECollection< ADOProperties, WpADOProperty> WpADOProperties;
+
+
+ class WpADOConnection : public WpOLEBase<ADOConnection>
+ {
+ public:
+
+ WpADOConnection() = default;
+
+ WpADOConnection(const WpADOConnection& rhs) : WpOLEBase<ADOConnection>(rhs) {}
+
+ WpADOConnection& operator=(const WpADOConnection& rhs)
+ {WpOLEBase<ADOConnection>::operator=(rhs); return *this;}
+
+
+ WpADOProperties get_Properties() const;
+
+ OUString GetConnectionString() const;
+ bool PutConnectionString(std::u16string_view aCon) const;
+ sal_Int32 GetCommandTimeout() const;
+ void PutCommandTimeout(sal_Int32 nRet);
+ sal_Int32 GetConnectionTimeout() const ;
+ void PutConnectionTimeout(sal_Int32 nRet);
+
+ bool Close( ) ;
+ bool Execute(std::u16string_view CommandText,OLEVariant& RecordsAffected,long Options, WpADORecordset** ppiRset);
+ bool BeginTrans();
+ bool CommitTrans( ) ;
+ bool RollbackTrans( );
+ bool Open(std::u16string_view ConnectionString, std::u16string_view UserID,std::u16string_view Password,long Options);
+ bool GetErrors(ADOErrors** pErrors);
+
+ OUString GetDefaultDatabase() const;
+ bool PutDefaultDatabase(std::u16string_view _bstr);
+
+ IsolationLevelEnum get_IsolationLevel() const ;
+ bool put_IsolationLevel(const IsolationLevelEnum& eNum) ;
+
+ sal_Int32 get_Attributes() const;
+ bool put_Attributes(sal_Int32 nRet);
+
+ CursorLocationEnum get_CursorLocation() const;
+ bool put_CursorLocation(const CursorLocationEnum &eNum) ;
+
+ ConnectModeEnum get_Mode() const;
+ bool put_Mode(const ConnectModeEnum &eNum) ;
+
+ OUString get_Provider() const;
+ bool put_Provider(std::u16string_view _bstr);
+
+ sal_Int32 get_State() const;
+
+ bool OpenSchema(SchemaEnum eNum,OLEVariant const & Restrictions,OLEVariant const & SchemaID,ADORecordset**pprset);
+
+ OUString get_Version() const;
+
+ // special methods
+ ADORecordset* getExportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
+ ADORecordset* getImportedKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
+ ADORecordset* getPrimaryKeys( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table );
+ ADORecordset* getIndexInfo( const css::uno::Any& catalog, const OUString& schema, std::u16string_view table, bool unique, bool approximate );
+ ADORecordset* getTablePrivileges( const css::uno::Any& catalog,
+ const OUString& schemaPattern,
+ std::u16string_view tableNamePattern );
+ ADORecordset* getCrossReference( const css::uno::Any& primaryCatalog,
+ const OUString& primarySchema,
+ std::u16string_view primaryTable,
+ const css::uno::Any& foreignCatalog,
+ const OUString& foreignSchema,
+ std::u16string_view foreignTable);
+ ADORecordset* getProcedures( const css::uno::Any& catalog,
+ const OUString& schemaPattern,
+ std::u16string_view procedureNamePattern );
+ ADORecordset* getProcedureColumns( const css::uno::Any& catalog,
+ const OUString& schemaPattern,
+ std::u16string_view procedureNamePattern,
+ std::u16string_view columnNamePattern );
+ ADORecordset* getTables( const css::uno::Any& catalog,
+ const OUString& schemaPattern,
+ std::u16string_view tableNamePattern,
+ const css::uno::Sequence< OUString >& types );
+ ADORecordset* getColumns( const css::uno::Any& catalog,
+ const OUString& schemaPattern,
+ std::u16string_view tableNamePattern,
+ std::u16string_view columnNamePattern );
+ ADORecordset* getColumnPrivileges( const css::uno::Any& catalog,
+ const OUString& schemaPattern,
+ std::u16string_view table,
+ std::u16string_view columnNamePattern );
+ ADORecordset* getTypeInfo(DataTypeEnum _eType = adEmpty );
+ };
+
+
+ class WpADOCommand : public WpOLEBase<ADOCommand>
+ {
+ public:
+ WpADOCommand() = default;
+ // Ctors, operator=
+ // They only call the superclass
+ WpADOCommand(const WpADOCommand& rhs) : WpOLEBase<ADOCommand>(rhs) {}
+
+ WpADOCommand& operator=(const WpADOCommand& rhs)
{
- public:
- // Ctors, operator=
- // They only call the superclass
- WpADOParameter() = default;
- WpADOParameter(const WpADOParameter& rhs):WpOLEBase<ADOParameter>(rhs){}
- WpADOParameter& operator=(const WpADOParameter& rhs)
- {WpOLEBase<ADOParameter>::operator=(rhs); return *this;}
-
-
- OUString GetName() const ;
- DataTypeEnum GetADOType() const ;
- void put_Type(const DataTypeEnum& _eType);
- bool put_Size(sal_Int32 _nSize);
- sal_Int32 GetAttributes() const ;
- sal_Int32 GetPrecision() const ;
- sal_Int32 GetNumericScale() const ;
- ParameterDirectionEnum get_Direction() const;
- void GetValue(OLEVariant& aValVar) const ;
- OLEVariant GetValue() const;
- bool PutValue(const OLEVariant& aVariant);
- bool AppendChunk(const OLEVariant& aVariant);
- };
-
- class OTools
+ WpOLEBase<ADOCommand>::operator=(rhs); return *this;}
+
+
+ bool putref_ActiveConnection(const WpADOConnection& rCon);
+
+ void put_ActiveConnection(/* [in] */ const OLEVariant& vConn);
+ void Create();
+ sal_Int32 get_State() const;
+ OUString get_CommandText() const;
+ bool put_CommandText(std::u16string_view aCon) ;
+ sal_Int32 get_CommandTimeout() const;
+ void put_CommandTimeout(sal_Int32 nRet);
+ bool get_Prepared() const;
+ bool put_Prepared(VARIANT_BOOL bPrepared) const;
+ bool Execute(OLEVariant& RecordsAffected,OLEVariant& Parameters,long Options, ADORecordset** ppiRset);
+ ADOParameter* CreateParameter(std::u16string_view _bstr,DataTypeEnum Type,ParameterDirectionEnum Direction,long nSize,const OLEVariant &Value);
+
+ ADOParameters* get_Parameters() const;
+ bool put_CommandType( /* [in] */ CommandTypeEnum lCmdType);
+ CommandTypeEnum get_CommandType( ) const ;
+ // Returns the field's name
+ OUString GetName() const ;
+ bool put_Name(std::u16string_view Name);
+ bool Cancel();
+ };
+
+ class WpADOError : public WpOLEBase<ADOError>
+ {
+ public:
+
+ // Ctors, operator=
+ // They only call the superclass
+ WpADOError() = default;
+
+ WpADOError(const WpADOError& rhs) : WpOLEBase<ADOError>(rhs) {}
+
+ WpADOError& operator=(const WpADOError& rhs)
+ {WpOLEBase<ADOError>::operator=(rhs); return *this;}
+
+
+ OUString GetDescription() const;
+ OUString GetSource() const ;
+ sal_Int32 GetNumber() const ;
+ OUString GetSQLState() const ;
+ sal_Int32 GetNativeError() const ;
+ };
+
+
+ class WpADOField : public WpOLEBase<ADOField>
+ {
+ // friend class WpADOFields;
+ public:
+
+ // Ctors, operator=
+ // They only call the superclass
+ WpADOField() = default;
+ WpADOField(const WpADOField& rhs) : WpOLEBase<ADOField>(rhs) {}
+
+ WpADOField& operator=(const WpADOField& rhs)
+ {WpOLEBase<ADOField>::operator=(rhs); return *this;}
+
+
+ WpADOProperties get_Properties();
+ sal_Int32 GetActualSize() const ;
+ sal_Int32 GetAttributes() const ;
+ sal_Int32 GetStatus() const ;
+ sal_Int32 GetDefinedSize() const ;
+ // Returns the field's name
+ OUString GetName() const ;
+ DataTypeEnum GetADOType() const ;
+ void get_Value(OLEVariant& aValVar) const ;
+ OLEVariant get_Value() const;
+ bool PutValue(const OLEVariant& aVariant);
+ sal_Int32 GetPrecision() const ;
+ sal_Int32 GetNumericScale() const ;
+ bool AppendChunk(const OLEVariant& Variant);
+ OLEVariant GetChunk(long Length) const;
+ void GetChunk(long Length,OLEVariant &aValVar) const;
+ OLEVariant GetOriginalValue() const;
+ void GetOriginalValue(OLEVariant &aValVar) const;
+ OLEVariant GetUnderlyingValue() const;
+
+ void GetUnderlyingValue(OLEVariant &aValVar) const;
+
+ bool PutPrecision(sal_Int8 _prec);
+
+ bool PutNumericScale(sal_Int8 _prec);
+
+ void PutADOType(DataTypeEnum eType) ;
+
+ bool PutDefinedSize(sal_Int32 _nDefSize);
+
+ bool PutAttributes(sal_Int32 _nDefSize);
+ };
+
+
+ class WpADOProperty: public WpOLEBase<ADOProperty>
+ {
+ public:
+ // Ctors, operator=
+ // They only call the superclass
+ WpADOProperty() = default;
+ WpADOProperty(const WpADOProperty& rhs) : WpOLEBase<ADOProperty>(rhs) {}
+ WpADOProperty& operator=(const WpADOProperty& rhs)
+ {WpOLEBase<ADOProperty>::operator=(rhs); return *this;}
+
+
+ OLEVariant GetValue() const;
+ void GetValue(OLEVariant &aValVar) const;
+ bool PutValue(const OLEVariant &aValVar) ;
+ OUString GetName() const ;
+ DataTypeEnum GetADOType() const ;
+ sal_Int32 GetAttributes() const ;
+ bool PutAttributes(sal_Int32 _nDefSize);
+ };
+
+
+ class WpADORecordset : public WpOLEBase<ADORecordset>
+ {
+
+ public:
+ // Ctors, operator=
+ // They only call the superclass
+ WpADORecordset() = default;
+ WpADORecordset(const WpADORecordset& rhs) : WpOLEBase<ADORecordset>() {operator=(rhs);}
+ WpADORecordset& operator=(const WpADORecordset& rhs)
{
- public:
- /** putValue set the property value at the ado column
- @param _rProps the properties where to set
- @param _aPosition which property to set
- @param _aValVar the value to set
- */
- static void putValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition,const OLEVariant &_aValVar);
-
- /** getValue returns a specific property value
- @param _rProps the properties where to set
- @param _aPosition the property
-
- @return the property value
- */
- static OLEVariant getValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition);
- };
+ WpOLEBase<ADORecordset>::operator=(rhs);
+ return *this;
+ }
+
+ void Create();
+ bool Open(
+ /* [optional][in] */ VARIANT Source,
+ /* [optional][in] */ VARIANT ActiveConnection,
+ /* [defaultvalue][in] */ CursorTypeEnum CursorType,
+ /* [defaultvalue][in] */ LockTypeEnum LockType,
+ /* [defaultvalue][in] */ sal_Int32 Options);
+ LockTypeEnum GetLockType();
+ void Close();
+ bool Cancel() const;
+ sal_Int32 get_State( );
+ bool Supports( /* [in] */ CursorOptionEnum CursorOptions);
+ PositionEnum get_AbsolutePosition();
+ void GetDataSource(IUnknown** pIUnknown) const ;
+ void PutRefDataSource(IUnknown* pIUnknown);
+ void GetBookmark(VARIANT& var);
+ OLEVariant GetBookmark();
+ CompareEnum CompareBookmarks(const OLEVariant& left,const OLEVariant& right);
+ bool SetBookmark(const OLEVariant &pSafeAr);
+ WpADOFields GetFields() const;
+ bool Move(sal_Int32 nRows, VARIANT aBmk);
+ bool MoveNext();
+ bool MovePrevious();
+ bool MoveFirst();
+ bool MoveLast();
+
+ bool IsAtBOF() const;
+ bool IsAtEOF() const;
+ bool Delete(AffectEnum eNum);
+ bool AddNew(const OLEVariant &FieldList,const OLEVariant &Values);
+ bool Update(const OLEVariant &FieldList,const OLEVariant &Values);
+ bool CancelUpdate();
+ WpADOProperties get_Properties() const;
+ bool NextRecordset(OLEVariant& RecordsAffected,ADORecordset** ppiRset);
+ bool get_RecordCount(long& _nRet) const;
+ bool get_MaxRecords(long& _nRet) const;
+ bool put_MaxRecords(ADO_LONGPTR _nRet);
+ bool get_CursorType(CursorTypeEnum &_nRet) const;
+ bool put_CursorType(CursorTypeEnum _nRet);
+ bool get_LockType(LockTypeEnum &_nRet) const;
+ bool put_LockType(LockTypeEnum _nRet);
+ bool get_CacheSize(sal_Int32 &_nRet) const;
+ bool put_CacheSize(sal_Int32 _nRet);
+ bool UpdateBatch(AffectEnum AffectRecords);
+ };
+
+
+ class WpADOParameter:public WpOLEBase<ADOParameter>
+ {
+ public:
+ // Ctors, operator=
+ // They only call the superclass
+ WpADOParameter() = default;
+ WpADOParameter(const WpADOParameter& rhs):WpOLEBase<ADOParameter>(rhs){}
+ WpADOParameter& operator=(const WpADOParameter& rhs)
+ {WpOLEBase<ADOParameter>::operator=(rhs); return *this;}
+
+
+ OUString GetName() const ;
+ DataTypeEnum GetADOType() const ;
+ void put_Type(const DataTypeEnum& _eType);
+ bool put_Size(sal_Int32 _nSize);
+ sal_Int32 GetAttributes() const ;
+ sal_Int32 GetPrecision() const ;
+ sal_Int32 GetNumericScale() const ;
+ ParameterDirectionEnum get_Direction() const;
+ void GetValue(OLEVariant& aValVar) const ;
+ OLEVariant GetValue() const;
+ bool PutValue(const OLEVariant& aVariant);
+ bool AppendChunk(const OLEVariant& aVariant);
+ };
+
+ class OTools
+ {
+ public:
+ /** putValue set the property value at the ado column
+ @param _rProps the properties where to set
+ @param _aPosition which property to set
+ @param _aValVar the value to set
+ */
+ static void putValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition,const OLEVariant &_aValVar);
+
+ /** getValue returns a specific property value
+ @param _rProps the properties where to set
+ @param _aPosition the property
+
+ @return the property value
+ */
+ static OLEVariant getValue(const WpADOProperties& _rProps,const OLEVariant &_aPosition);
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/WrapCatalog.hxx b/connectivity/source/inc/ado/WrapCatalog.hxx
index 0bcff441c23a..edfd846bbedc 100644
--- a/connectivity/source/inc/ado/WrapCatalog.hxx
+++ b/connectivity/source/inc/ado/WrapCatalog.hxx
@@ -26,25 +26,25 @@
namespace connectivity::ado
{
- class WpADOCatalog : public WpOLEBase<_ADOCatalog>
- {
- public:
- WpADOCatalog(_ADOCatalog* pInt = nullptr) : WpOLEBase<_ADOCatalog>(pInt){}
- WpADOCatalog(const WpADOCatalog& rhs) : WpOLEBase<_ADOCatalog>(rhs) {}
-
- WpADOCatalog& operator=(const WpADOCatalog& rhs)
- {WpOLEBase<_ADOCatalog>::operator=(rhs); return *this;}
-
- OUString GetObjectOwner(std::u16string_view _rName, ObjectTypeEnum _eNum);
-
- void putref_ActiveConnection(IDispatch* pCon);
- WpADOTables get_Tables();
- WpADOViews get_Views();
- WpADOGroups get_Groups();
- WpADOUsers get_Users();
- ADOProcedures* get_Procedures();
- void Create();
- };
+ class WpADOCatalog : public WpOLEBase<_ADOCatalog>
+ {
+ public:
+ WpADOCatalog(_ADOCatalog* pInt = nullptr) : WpOLEBase<_ADOCatalog>(pInt){}
+ WpADOCatalog(const WpADOCatalog& rhs) : WpOLEBase<_ADOCatalog>(rhs) {}
+
+ WpADOCatalog& operator=(const WpADOCatalog& rhs)
+ {WpOLEBase<_ADOCatalog>::operator=(rhs); return *this;}
+
+ OUString GetObjectOwner(std::u16string_view _rName, ObjectTypeEnum _eNum);
+
+ void putref_ActiveConnection(IDispatch* pCon);
+ WpADOTables get_Tables();
+ WpADOViews get_Views();
+ WpADOGroups get_Groups();
+ WpADOUsers get_Users();
+ ADOProcedures* get_Procedures();
+ void Create();
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/WrapColumn.hxx b/connectivity/source/inc/ado/WrapColumn.hxx
index f1b73585fba9..e5c277a92555 100644
--- a/connectivity/source/inc/ado/WrapColumn.hxx
+++ b/connectivity/source/inc/ado/WrapColumn.hxx
@@ -28,35 +28,35 @@
namespace connectivity::ado
{
- class WpADOColumn : public WpOLEBase<_ADOColumn>
- {
- public:
- WpADOColumn() = default;
- WpADOColumn(const WpADOColumn& rhs) : WpOLEBase<_ADOColumn>(rhs) {}
-
- void Create();
-
- WpADOColumn& operator=(const WpADOColumn& rhs)
- {WpOLEBase<_ADOColumn>::operator=(rhs); return *this;}
-
- OUString get_Name() const;
- OUString get_RelatedColumn() const;
- void put_Name(std::u16string_view _rName);
- void put_RelatedColumn(std::u16string_view _rName);
- DataTypeEnum get_Type() const;
- void put_Type(const DataTypeEnum& _eNum) ;
- sal_Int32 get_Precision() const;
- void put_Precision(sal_Int32 _nPre) ;
- sal_uInt8 get_NumericScale() const;
- void put_NumericScale(sal_Int8 _nScale);
- SortOrderEnum get_SortOrder() const;
- void put_SortOrder(SortOrderEnum _nScale);
- sal_Int32 get_DefinedSize() const;
- ColumnAttributesEnum get_Attributes() const;
- bool put_Attributes(const ColumnAttributesEnum& _eNum);
- WpADOProperties get_Properties() const;
- void put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject);
- };
+ class WpADOColumn : public WpOLEBase<_ADOColumn>
+ {
+ public:
+ WpADOColumn() = default;
+ WpADOColumn(const WpADOColumn& rhs) : WpOLEBase<_ADOColumn>(rhs) {}
+
+ void Create();
+
+ WpADOColumn& operator=(const WpADOColumn& rhs)
+ {WpOLEBase<_ADOColumn>::operator=(rhs); return *this;}
+
+ OUString get_Name() const;
+ OUString get_RelatedColumn() const;
+ void put_Name(std::u16string_view _rName);
+ void put_RelatedColumn(std::u16string_view _rName);
+ DataTypeEnum get_Type() const;
+ void put_Type(const DataTypeEnum& _eNum) ;
+ sal_Int32 get_Precision() const;
+ void put_Precision(sal_Int32 _nPre) ;
+ sal_uInt8 get_NumericScale() const;
+ void put_NumericScale(sal_Int8 _nScale);
+ SortOrderEnum get_SortOrder() const;
+ void put_SortOrder(SortOrderEnum _nScale);
+ sal_Int32 get_DefinedSize() const;
+ ColumnAttributesEnum get_Attributes() const;
+ bool put_Attributes(const ColumnAttributesEnum& _eNum);
+ WpADOProperties get_Properties() const;
+ void put_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject);
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/WrapIndex.hxx b/connectivity/source/inc/ado/WrapIndex.hxx
index 4444bb340ae5..1644007424ce 100644
--- a/connectivity/source/inc/ado/WrapIndex.hxx
+++ b/connectivity/source/inc/ado/WrapIndex.hxx
@@ -26,27 +26,27 @@
namespace connectivity::ado
{
- class WpADOIndex : public WpOLEBase<_ADOIndex>
- {
- public:
- WpADOIndex() = default;
- WpADOIndex(const WpADOIndex& rhs) : WpOLEBase<_ADOIndex>(rhs) {}
-
- WpADOIndex& operator=(const WpADOIndex& rhs)
- {WpOLEBase<_ADOIndex>::operator=(rhs); return *this;}
-
- void Create();
-
- OUString get_Name() const;
- void put_Name(std::u16string_view _rName);
- bool get_Clustered() const;
- void put_Clustered(bool _b);
- bool get_Unique() const;
- void put_Unique(bool _b);
- bool get_PrimaryKey() const;
- void put_PrimaryKey(bool _b);
- WpADOColumns get_Columns() const;
- };
+ class WpADOIndex : public WpOLEBase<_ADOIndex>
+ {
+ public:
+ WpADOIndex() = default;
+ WpADOIndex(const WpADOIndex& rhs) : WpOLEBase<_ADOIndex>(rhs) {}
+
+ WpADOIndex& operator=(const WpADOIndex& rhs)
+ {WpOLEBase<_ADOIndex>::operator=(rhs); return *this;}
+
+ void Create();
+
+ OUString get_Name() const;
+ void put_Name(std::u16string_view _rName);
+ bool get_Clustered() const;
+ void put_Clustered(bool _b);
+ bool get_Unique() const;
+ void put_Unique(bool _b);
+ bool get_PrimaryKey() const;
+ void put_PrimaryKey(bool _b);
+ WpADOColumns get_Columns() const;
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/WrapKey.hxx b/connectivity/source/inc/ado/WrapKey.hxx
index 1f984445b8ae..682da4fdffa8 100644
--- a/connectivity/source/inc/ado/WrapKey.hxx
+++ b/connectivity/source/inc/ado/WrapKey.hxx
@@ -26,29 +26,29 @@
namespace connectivity::ado
{
- class WpADOKey : public WpOLEBase<ADOKey>
- {
- public:
- WpADOKey() = default;
- WpADOKey(const WpADOKey& rhs) : WpOLEBase<ADOKey>(rhs) {}
-
- WpADOKey& operator=(const WpADOKey& rhs)
- {WpOLEBase<ADOKey>::operator=(rhs); return *this;}
-
- void Create();
-
- OUString get_Name() const;
- void put_Name(std::u16string_view _rName);
- KeyTypeEnum get_Type() const;
- void put_Type(const KeyTypeEnum& _eNum) ;
- OUString get_RelatedTable() const;
- void put_RelatedTable(std::u16string_view _rName);
- RuleEnum get_DeleteRule() const;
- void put_DeleteRule(const RuleEnum& _eNum) ;
- RuleEnum get_UpdateRule() const;
- void put_UpdateRule(const RuleEnum& _eNum) ;
- WpADOColumns get_Columns() const;
- };
+ class WpADOKey : public WpOLEBase<ADOKey>
+ {
+ public:
+ WpADOKey() = default;
+ WpADOKey(const WpADOKey& rhs) : WpOLEBase<ADOKey>(rhs) {}
+
+ WpADOKey& operator=(const WpADOKey& rhs)
+ {WpOLEBase<ADOKey>::operator=(rhs); return *this;}
+
+ void Create();
+
+ OUString get_Name() const;
+ void put_Name(std::u16string_view _rName);
+ KeyTypeEnum get_Type() const;
+ void put_Type(const KeyTypeEnum& _eNum) ;
+ OUString get_RelatedTable() const;
+ void put_RelatedTable(std::u16string_view _rName);
+ RuleEnum get_DeleteRule() const;
+ void put_DeleteRule(const RuleEnum& _eNum) ;
+ RuleEnum get_UpdateRule() const;
+ void put_UpdateRule(const RuleEnum& _eNum) ;
+ WpADOColumns get_Columns() const;
+ };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/WrapTable.hxx b/connectivity/source/inc/ado/WrapTable.hxx
index dc06dbc03a8e..0519db42a435 100644
--- a/connectivity/source/inc/ado/WrapTable.hxx
+++ b/connectivity/source/inc/ado/WrapTable.hxx
@@ -26,32 +26,32 @@
namespace connectivity::ado
{
- class WpADOCatalog;
+ class WpADOCatalog;
- class WpADOTable : public WpOLEBase<_ADOTable>
- {
- public:
- WpADOTable() = default;
- WpADOTable(const WpADOTable& rhs) : WpOLEBase<_ADOTable>(rhs) {}
+ class WpADOTable : public WpOLEBase<_ADOTable>
+ {
+ public:
+ WpADOTable() = default;
+ WpADOTable(const WpADOTable& rhs) : WpOLEBase<_ADOTable>(rhs) {}
- WpADOTable& operator=(const WpADOTable& rhs)
- {WpOLEBase<_ADOTable>::operator=(rhs); return *this;}
+ WpADOTable& operator=(const WpADOTable& rhs)
+ {WpOLEBase<_ADOTable>::operator=(rhs); return *this;}
- void Create();
+ void Create();
- OUString get_Name() const;
- void put_Name(std::u16string_view _rName);
- OUString get_Type() const;
- WpADOColumns get_Columns() const;
- WpADOIndexes get_Indexes() const;
- WpADOKeys get_Keys() const;
- WpADOCatalog get_ParentCatalog() const;
- WpADOProperties get_Properties() const;
- void putref_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject);
- };
+ OUString get_Name() const;
+ void put_Name(std::u16string_view _rName);
+ OUString get_Type() const;
+ WpADOColumns get_Columns() const;
+ WpADOIndexes get_Indexes() const;
+ WpADOKeys get_Keys() const;
+ WpADOCatalog get_ParentCatalog() const;
+ WpADOProperties get_Properties() const;
+ void putref_ParentCatalog(/* [in] */ _ADOCatalog __RPC_FAR *ppvObject);
+ };
- typedef WpOLEAppendCollection<ADOTables, WpADOTable> WpADOTables;
+ typedef WpOLEAppendCollection<ADOTables, WpADOTable> WpADOTables;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/WrapTypeDefs.hxx b/connectivity/source/inc/ado/WrapTypeDefs.hxx
index 91bea8453480..a5bd3dea02b6 100644
--- a/connectivity/source/inc/ado/WrapTypeDefs.hxx
+++ b/connectivity/source/inc/ado/WrapTypeDefs.hxx
@@ -21,21 +21,21 @@
namespace connectivity::ado
{
- class WpADOTable;
- class WpADOKey;
- class WpADOIndex;
- class WpADOColumn;
- class WpADOGroup;
- class WpADOView;
- class WpADOUser;
+ class WpADOTable;
+ class WpADOKey;
+ class WpADOIndex;
+ class WpADOColumn;
+ class WpADOGroup;
+ class WpADOView;
+ class WpADOUser;
- typedef WpOLEAppendCollection<ADOTables, WpADOTable> WpADOTables;
- typedef WpOLEAppendCollection<ADOKeys, WpADOKey> WpADOKeys;
- typedef WpOLEAppendCollection<ADOIndexes, WpADOIndex> WpADOIndexes;
- typedef WpOLEAppendCollection<ADOColumns, WpADOColumn> WpADOColumns;
- typedef WpOLEAppendCollection<ADOGroups, WpADOGroup> WpADOGroups;
- typedef WpOLEAppendCollection<ADOViews, WpADOView> WpADOViews;
- typedef WpOLEAppendCollection<ADOUsers, WpADOUser> WpADOUsers;
+ typedef WpOLEAppendCollection<ADOTables, WpADOTable> WpADOTables;
+ typedef WpOLEAppendCollection<ADOKeys, WpADOKey> WpADOKeys;
+ typedef WpOLEAppendCollection<ADOIndexes, WpADOIndex> WpADOIndexes;
+ typedef WpOLEAppendCollection<ADOColumns, WpADOColumn> WpADOColumns;
+ typedef WpOLEAppendCollection<ADOGroups, WpADOGroup> WpADOGroups;
+ typedef WpOLEAppendCollection<ADOViews, WpADOView> WpADOViews;
+ typedef WpOLEAppendCollection<ADOUsers, WpADOUser> WpADOUsers;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/inc/ado/adoimp.hxx b/connectivity/source/inc/ado/adoimp.hxx
index b1bb1548716e..41a5f1c18370 100644
--- a/connectivity/source/inc/ado/adoimp.hxx
+++ b/connectivity/source/inc/ado/adoimp.hxx
@@ -27,61 +27,61 @@ struct ADOConnection;
namespace connectivity::ado
{
- class WpADOField;
- class ADOS
- {
- public:
- static BSTR GetKeyStr();
+ class WpADOField;
+ class ADOS
+ {
+ public:
+ static BSTR GetKeyStr();
- static const CLSID CLSID_ADOCATALOG_25;
- static const IID IID_ADOCATALOG_25;
+ static const CLSID CLSID_ADOCATALOG_25;
+ static const IID IID_ADOCATALOG_25;
- static const CLSID CLSID_ADOCONNECTION_21;
- static const IID IID_ADOCONNECTION_21;
+ static const CLSID CLSID_ADOCONNECTION_21;
+ static const IID IID_ADOCONNECTION_21;
- static const CLSID CLSID_ADOCOMMAND_21;
- static const IID IID_ADOCOMMAND_21;
+ static const CLSID CLSID_ADOCOMMAND_21;
+ static const IID IID_ADOCOMMAND_21;
- static const CLSID CLSID_ADORECORDSET_21;
- static const IID IID_ADORECORDSET_21;
+ static const CLSID CLSID_ADORECORDSET_21;
+ static const IID IID_ADORECORDSET_21;
- static const CLSID CLSID_ADOINDEX_25;
- static const IID IID_ADOINDEX_25;
+ static const CLSID CLSID_ADOINDEX_25;
+ static const IID IID_ADOINDEX_25;
- static const CLSID CLSID_ADOCOLUMN_25;
- static const IID IID_ADOCOLUMN_25;
+ static const CLSID CLSID_ADOCOLUMN_25;
+ static const IID IID_ADOCOLUMN_25;
- static const CLSID CLSID_ADOKEY_25;
- static const IID IID_ADOKEY_25;
+ static const CLSID CLSID_ADOKEY_25;
+ static const IID IID_ADOKEY_25;
- static const CLSID CLSID_ADOTABLE_25;
- static const IID IID_ADOTABLE_25;
+ static const CLSID CLSID_ADOTABLE_25;
+ static const IID IID_ADOTABLE_25;
- static const CLSID CLSID_ADOGROUP_25;
- static const IID IID_ADOGROUP_25;
+ static const CLSID CLSID_ADOGROUP_25;
+ static const IID IID_ADOGROUP_25;
- static const CLSID CLSID_ADOUSER_25;
- static const IID IID_ADOUSER_25;
+ static const CLSID CLSID_ADOUSER_25;
+ static const IID IID_ADOUSER_25;
- static const CLSID CLSID_ADOVIEW_25;
- static const IID IID_ADOVIEW_25;
+ static const CLSID CLSID_ADOVIEW_25;
+ static const IID IID_ADOVIEW_25;
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static void ThrowException(ADOConnection* _pAdoCon,const css::uno::Reference< css::uno::XInterface >& _xInterface);
- static sal_Int32 MapADOType2Jdbc(DataTypeEnum eType);
- static DataTypeEnum MapJdbc2ADOType(sal_Int32 _nType,sal_Int32 _nJetEngine);
- static bool isJetEngine(sal_Int32 _nEngineType);
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static void ThrowException(ADOConnection* _pAdoCon,const css::uno::Reference< css::uno::XInterface >& _xInterface);
+ static sal_Int32 MapADOType2Jdbc(DataTypeEnum eType);
+ static DataTypeEnum MapJdbc2ADOType(sal_Int32 _nType,sal_Int32 _nJetEngine);
+ static bool isJetEngine(sal_Int32 _nEngineType);
- static ObjectTypeEnum mapObjectType2Ado(sal_Int32 objType);
- static sal_Int32 mapAdoType2Object(ObjectTypeEnum objType);
- static sal_Int32 mapAdoRights2Sdbc(RightsEnum eRights);
- static sal_Int32 mapRights2Ado(sal_Int32 nRights);
+ static ObjectTypeEnum mapObjectType2Ado(sal_Int32 objType);
+ static sal_Int32 mapAdoType2Object(ObjectTypeEnum objType);
+ static sal_Int32 mapAdoRights2Sdbc(RightsEnum eRights);
+ static sal_Int32 mapRights2Ado(sal_Int32 nRights);
- /// @throws css::sdbc::SQLException
- /// @throws css::uno::RuntimeException
- static WpADOField getField(ADORecordset* _pRecordSet,sal_Int32 _nColumnIndex);
- };
+ /// @throws css::sdbc::SQLException
+ /// @throws css::uno::RuntimeException
+ static WpADOField getField(ADORecordset* _pRecordSet,sal_Int32 _nColumnIndex);
+ };
}