loplugin:finalclasses in connectivity
Change-Id: I0cd075efad83c0a8d6f05c91201a9aa86649590b Reviewed-on: https://gerrit.libreoffice.org/44386 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
52abd40ce8
commit
ded02dafbc
@ -34,9 +34,8 @@ namespace connectivity
|
|||||||
|
|
||||||
typedef ::cppu::WeakImplHelper< css::sdbc::XDriver > ODriverWrapper_BASE;
|
typedef ::cppu::WeakImplHelper< css::sdbc::XDriver > ODriverWrapper_BASE;
|
||||||
|
|
||||||
class ODriverWrapper : public ODriverWrapper_BASE
|
class ODriverWrapper final : public ODriverWrapper_BASE
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
css::uno::Reference< css::uno::XAggregation >
|
css::uno::Reference< css::uno::XAggregation >
|
||||||
m_xDriverAggregate;
|
m_xDriverAggregate;
|
||||||
css::uno::Reference< css::sdbc::XDriver >
|
css::uno::Reference< css::sdbc::XDriver >
|
||||||
@ -58,7 +57,7 @@ namespace connectivity
|
|||||||
// XInterface
|
// XInterface
|
||||||
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
|
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type& aType ) override;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
/// dtor
|
/// dtor
|
||||||
virtual ~ODriverWrapper() override;
|
virtual ~ODriverWrapper() override;
|
||||||
// XDriver
|
// XDriver
|
||||||
|
@ -27,9 +27,8 @@ namespace connectivity
|
|||||||
{
|
{
|
||||||
namespace evoab
|
namespace evoab
|
||||||
{
|
{
|
||||||
class OEvoabColumns : public sdbcx::OCollection
|
class OEvoabColumns final : public sdbcx::OCollection
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
OEvoabTable* m_pTable;
|
OEvoabTable* m_pTable;
|
||||||
|
|
||||||
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
||||||
|
@ -41,10 +41,8 @@ namespace connectivity
|
|||||||
css::lang::XServiceInfo > ODriver_BASE;
|
css::lang::XServiceInfo > ODriver_BASE;
|
||||||
|
|
||||||
|
|
||||||
class OEvoabDriver : public ODriver_BASE
|
class OEvoabDriver final : public ODriver_BASE
|
||||||
{
|
{
|
||||||
|
|
||||||
protected:
|
|
||||||
::osl::Mutex m_aMutex;
|
::osl::Mutex m_aMutex;
|
||||||
connectivity::OWeakRefArray m_xConnections;
|
connectivity::OWeakRefArray m_xConnections;
|
||||||
css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory;
|
css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory;
|
||||||
|
@ -42,13 +42,9 @@ namespace connectivity
|
|||||||
css::sdbc::XMultipleResults,
|
css::sdbc::XMultipleResults,
|
||||||
css::lang::XServiceInfo> OPreparedStatement_BASE;
|
css::lang::XServiceInfo> OPreparedStatement_BASE;
|
||||||
|
|
||||||
class OEvoabPreparedStatement :public OCommonStatement
|
class OEvoabPreparedStatement final:public OCommonStatement
|
||||||
,public OPreparedStatement_BASE
|
,public OPreparedStatement_BASE
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
// Data attributes
|
|
||||||
|
|
||||||
|
|
||||||
// our SQL statement
|
// our SQL statement
|
||||||
OUString m_sSqlStatement;
|
OUString m_sSqlStatement;
|
||||||
// the EBookQuery we're working with
|
// the EBookQuery we're working with
|
||||||
@ -56,7 +52,6 @@ namespace connectivity
|
|||||||
// our meta data
|
// our meta data
|
||||||
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData;
|
css::uno::Reference< css::sdbc::XResultSetMetaData > m_xMetaData;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual ~OEvoabPreparedStatement() override;
|
virtual ~OEvoabPreparedStatement() override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -64,7 +59,7 @@ namespace connectivity
|
|||||||
|
|
||||||
void construct( const OUString& _sql );
|
void construct( const OUString& _sql );
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
DECLARE_SERVICE_INFO();
|
DECLARE_SERVICE_INFO();
|
||||||
//XInterface
|
//XInterface
|
||||||
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
|
||||||
|
@ -76,7 +76,7 @@ namespace connectivity
|
|||||||
> OResultSet_BASE;
|
> OResultSet_BASE;
|
||||||
|
|
||||||
|
|
||||||
class OEvoabResultSet :public cppu::BaseMutex
|
class OEvoabResultSet final : public cppu::BaseMutex
|
||||||
,public OResultSet_BASE
|
,public OResultSet_BASE
|
||||||
,public ::comphelper::OPropertyContainer
|
,public ::comphelper::OPropertyContainer
|
||||||
,public ::comphelper::OPropertyArrayUsageHelper<OEvoabResultSet>
|
,public ::comphelper::OPropertyArrayUsageHelper<OEvoabResultSet>
|
||||||
@ -84,8 +84,6 @@ namespace connectivity
|
|||||||
private:
|
private:
|
||||||
std::unique_ptr<OEvoabVersionHelper> m_pVersionHelper;
|
std::unique_ptr<OEvoabVersionHelper> m_pVersionHelper;
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
OCommonStatement* m_pStatement;
|
OCommonStatement* m_pStatement;
|
||||||
OEvoabConnection* m_pConnection;
|
OEvoabConnection* m_pConnection;
|
||||||
rtl::Reference<OEvoabResultSetMetaData> m_xMetaData;
|
rtl::Reference<OEvoabResultSetMetaData> m_xMetaData;
|
||||||
|
@ -29,9 +29,8 @@ namespace connectivity
|
|||||||
{
|
{
|
||||||
namespace mork
|
namespace mork
|
||||||
{
|
{
|
||||||
class OColumns : public sdbcx::OCollection
|
class OColumns final : public sdbcx::OCollection
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
OTable* m_pTable;
|
OTable* m_pTable;
|
||||||
|
|
||||||
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
||||||
|
@ -28,13 +28,11 @@ namespace connectivity
|
|||||||
|
|
||||||
typedef connectivity::OMetaConnection OConnection_BASE; // implements basics and text encoding
|
typedef connectivity::OMetaConnection OConnection_BASE; // implements basics and text encoding
|
||||||
|
|
||||||
class OConnection : public OConnection_BASE,
|
class OConnection final : public OConnection_BASE,
|
||||||
public connectivity::OSubComponent<OConnection, OConnection_BASE>
|
public connectivity::OSubComponent<OConnection, OConnection_BASE>
|
||||||
{
|
{
|
||||||
friend class connectivity::OSubComponent<OConnection, OConnection_BASE>;
|
friend class connectivity::OSubComponent<OConnection, OConnection_BASE>;
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
// Data attributes
|
// Data attributes
|
||||||
|
|
||||||
rtl::Reference<MorkDriver> m_xDriver; // Pointer to the owning
|
rtl::Reference<MorkDriver> m_xDriver; // Pointer to the owning
|
||||||
|
@ -36,10 +36,9 @@ namespace connectivity
|
|||||||
css::sdbc::XMultipleResults,
|
css::sdbc::XMultipleResults,
|
||||||
css::lang::XServiceInfo> OPreparedStatement_BASE;
|
css::lang::XServiceInfo> OPreparedStatement_BASE;
|
||||||
|
|
||||||
class OPreparedStatement : public OCommonStatement,
|
class OPreparedStatement final : public OCommonStatement,
|
||||||
public OPreparedStatement_BASE
|
public OPreparedStatement_BASE
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
// Data attributes
|
// Data attributes
|
||||||
|
|
||||||
OUString m_sSqlStatement;
|
OUString m_sSqlStatement;
|
||||||
@ -48,7 +47,6 @@ namespace connectivity
|
|||||||
::rtl::Reference<connectivity::OSQLColumns> m_xParamColumns; // the parameter columns
|
::rtl::Reference<connectivity::OSQLColumns> m_xParamColumns; // the parameter columns
|
||||||
OValueRow m_aParameterRow;
|
OValueRow m_aParameterRow;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,
|
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,
|
||||||
const css::uno::Any& rValue) override;
|
const css::uno::Any& rValue) override;
|
||||||
virtual ~OPreparedStatement() override;
|
virtual ~OPreparedStatement() override;
|
||||||
@ -125,7 +123,7 @@ namespace connectivity
|
|||||||
using OCommonStatement::executeQuery;
|
using OCommonStatement::executeQuery;
|
||||||
using OCommonStatement::executeUpdate;
|
using OCommonStatement::executeUpdate;
|
||||||
using OCommonStatement::execute;
|
using OCommonStatement::execute;
|
||||||
protected:
|
private:
|
||||||
using OPropertySetHelper::getFastPropertyValue;
|
using OPropertySetHelper::getFastPropertyValue;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -64,8 +64,7 @@ namespace connectivity
|
|||||||
bool isExpr( ) const { return m_eNodeType == node_type::Expr; }
|
bool isExpr( ) const { return m_eNodeType == node_type::Expr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class MQueryExpressionString : public MQueryExpressionBase {
|
class MQueryExpressionString final : public MQueryExpressionBase {
|
||||||
protected:
|
|
||||||
OUString m_aName; // LHS
|
OUString m_aName; // LHS
|
||||||
MQueryOp::cond_type m_aBooleanCondition;
|
MQueryOp::cond_type m_aBooleanCondition;
|
||||||
OUString m_aValue; // RHS
|
OUString m_aValue; // RHS
|
||||||
@ -96,7 +95,7 @@ namespace connectivity
|
|||||||
const OUString& getValue() const { return m_aValue; }
|
const OUString& getValue() const { return m_aValue; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class MQueryExpression : public MQueryExpressionBase
|
class MQueryExpression final : public MQueryExpressionBase
|
||||||
{
|
{
|
||||||
friend class MQueryHelper;
|
friend class MQueryHelper;
|
||||||
|
|
||||||
@ -134,11 +133,10 @@ namespace connectivity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
ExprVector m_aExprVector;
|
ExprVector m_aExprVector;
|
||||||
bool_cond m_aExprCondType;
|
bool_cond m_aExprCondType;
|
||||||
|
|
||||||
private:
|
|
||||||
MQueryExpression(const MQueryExpression&) = delete;
|
MQueryExpression(const MQueryExpression&) = delete;
|
||||||
MQueryExpression& operator=(const MQueryExpression&) = delete;
|
MQueryExpression& operator=(const MQueryExpression&) = delete;
|
||||||
};
|
};
|
||||||
|
@ -65,7 +65,7 @@ enum MorkErrors
|
|||||||
|
|
||||||
/// Class MorkParser
|
/// Class MorkParser
|
||||||
|
|
||||||
class LO_DLLPUBLIC_MORK MorkParser
|
class LO_DLLPUBLIC_MORK MorkParser final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ public:
|
|||||||
// All lists
|
// All lists
|
||||||
std::vector<OUString> lists_;
|
std::vector<OUString> lists_;
|
||||||
|
|
||||||
protected: // Members
|
private: // Members
|
||||||
|
|
||||||
void initVars();
|
void initVars();
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ protected: // Members
|
|||||||
bool parseRow( int TableId, int TableScope );
|
bool parseRow( int TableId, int TableScope );
|
||||||
bool parseGroup();
|
bool parseGroup();
|
||||||
|
|
||||||
protected: // Data
|
private: // Data
|
||||||
|
|
||||||
// Columns in mork means value names
|
// Columns in mork means value names
|
||||||
MorkDict columns_;
|
MorkDict columns_;
|
||||||
@ -143,7 +143,6 @@ protected: // Data
|
|||||||
// Indicates entity is being parsed
|
// Indicates entity is being parsed
|
||||||
enum class NP { Columns, Values, Rows } nowParsing_;
|
enum class NP { Columns, Values, Rows } nowParsing_;
|
||||||
|
|
||||||
private:
|
|
||||||
MorkParser(const MorkParser &) = delete;
|
MorkParser(const MorkParser &) = delete;
|
||||||
MorkParser &operator=(const MorkParser &) = delete;
|
MorkParser &operator=(const MorkParser &) = delete;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ struct UpdateableField
|
|||||||
|
|
||||||
typedef std::vector< UpdateableField > UpdateableFieldVector;
|
typedef std::vector< UpdateableField > UpdateableFieldVector;
|
||||||
|
|
||||||
class UpdateableResultSet :
|
class UpdateableResultSet final :
|
||||||
public SequenceResultSet,
|
public SequenceResultSet,
|
||||||
public css::sdbc::XResultSetUpdate,
|
public css::sdbc::XResultSetUpdate,
|
||||||
public css::sdbc::XRowUpdate
|
public css::sdbc::XRowUpdate
|
||||||
@ -72,7 +72,7 @@ class UpdateableResultSet :
|
|||||||
UpdateableFieldVector m_updateableField;
|
UpdateableFieldVector m_updateableField;
|
||||||
bool m_insertRow;
|
bool m_insertRow;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
UpdateableResultSet(
|
UpdateableResultSet(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & mutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & mutex,
|
||||||
const css::uno::Reference< css::uno::XInterface > &owner,
|
const css::uno::Reference< css::uno::XInterface > &owner,
|
||||||
|
@ -56,7 +56,7 @@ void alterColumnByDescriptor(
|
|||||||
OUString columnMetaData2SDBCX(
|
OUString columnMetaData2SDBCX(
|
||||||
ReflectionBase *pBase, const css::uno::Reference< css::sdbc::XRow > &xRow );
|
ReflectionBase *pBase, const css::uno::Reference< css::sdbc::XRow > &xRow );
|
||||||
|
|
||||||
class Columns : public Container
|
class Columns final : public Container
|
||||||
{
|
{
|
||||||
OUString m_schemaName;
|
OUString m_schemaName;
|
||||||
OUString m_tableName;
|
OUString m_tableName;
|
||||||
@ -70,7 +70,7 @@ public: // instances Columns 'exception safe'
|
|||||||
const OUString &tableName,
|
const OUString &tableName,
|
||||||
Columns **pColumns);
|
Columns **pColumns);
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
Columns(
|
Columns(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
namespace pq_sdbc_driver
|
namespace pq_sdbc_driver
|
||||||
{
|
{
|
||||||
|
|
||||||
class IndexColumns : public Container
|
class IndexColumns final : public Container
|
||||||
{
|
{
|
||||||
OUString m_schemaName;
|
OUString m_schemaName;
|
||||||
OUString m_tableName;
|
OUString m_tableName;
|
||||||
@ -59,7 +59,7 @@ public: // instances IndexColumns 'exception safe'
|
|||||||
const OUString &indexName,
|
const OUString &indexName,
|
||||||
const css::uno::Sequence< OUString > &columns );
|
const css::uno::Sequence< OUString > &columns );
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
IndexColumns(
|
IndexColumns(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
@ -87,7 +87,7 @@ public: // XDataDescriptorFactory
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class IndexColumnDescriptors : public Container
|
class IndexColumnDescriptors final : public Container
|
||||||
{
|
{
|
||||||
|
|
||||||
public: // instances IndexColumns 'exception safe'
|
public: // instances IndexColumns 'exception safe'
|
||||||
@ -96,7 +96,7 @@ public: // instances IndexColumns 'exception safe'
|
|||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
ConnectionSettings *pSettings );
|
ConnectionSettings *pSettings );
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
IndexColumnDescriptors(
|
IndexColumnDescriptors(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
namespace pq_sdbc_driver
|
namespace pq_sdbc_driver
|
||||||
{
|
{
|
||||||
class Indexes : public Container
|
class Indexes final : public Container
|
||||||
{
|
{
|
||||||
OUString m_schemaName;
|
OUString m_schemaName;
|
||||||
OUString m_tableName;
|
OUString m_tableName;
|
||||||
@ -54,7 +54,7 @@ public: // instances Columns 'exception safe'
|
|||||||
const OUString &schemaName,
|
const OUString &schemaName,
|
||||||
const OUString &tableName);
|
const OUString &tableName);
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
Indexes(
|
Indexes(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
@ -79,7 +79,7 @@ public: // XDataDescriptorFactory
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class IndexDescriptors : public Container
|
class IndexDescriptors final : public Container
|
||||||
{
|
{
|
||||||
public: // instances IndexDescriptors 'exception safe'
|
public: // instances IndexDescriptors 'exception safe'
|
||||||
static css::uno::Reference< css::container::XNameAccess > create(
|
static css::uno::Reference< css::container::XNameAccess > create(
|
||||||
@ -87,7 +87,7 @@ public: // instances IndexDescriptors 'exception safe'
|
|||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
ConnectionSettings *pSettings );
|
ConnectionSettings *pSettings );
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
IndexDescriptors(
|
IndexDescriptors(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
namespace pq_sdbc_driver
|
namespace pq_sdbc_driver
|
||||||
{
|
{
|
||||||
|
|
||||||
class KeyColumns : public Container
|
class KeyColumns final : public Container
|
||||||
{
|
{
|
||||||
OUString m_schemaName;
|
OUString m_schemaName;
|
||||||
OUString m_tableName;
|
OUString m_tableName;
|
||||||
@ -59,7 +59,7 @@ public: // instances KeyColumns 'exception safe'
|
|||||||
const css::uno::Sequence< OUString > &keyColumns,
|
const css::uno::Sequence< OUString > &keyColumns,
|
||||||
const css::uno::Sequence< OUString > &foreignColumnNames );
|
const css::uno::Sequence< OUString > &foreignColumnNames );
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
KeyColumns(
|
KeyColumns(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
namespace pq_sdbc_driver
|
namespace pq_sdbc_driver
|
||||||
{
|
{
|
||||||
class Keys : public Container
|
class Keys final : public Container
|
||||||
{
|
{
|
||||||
OUString m_schemaName;
|
OUString m_schemaName;
|
||||||
OUString m_tableName;
|
OUString m_tableName;
|
||||||
@ -54,7 +54,7 @@ public: // instances Columns 'exception safe'
|
|||||||
const OUString &schemaName,
|
const OUString &schemaName,
|
||||||
const OUString &tableName);
|
const OUString &tableName);
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
Keys(
|
Keys(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
@ -79,7 +79,7 @@ public: // XDataDescriptorFactory
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class KeyDescriptors : public Container
|
class KeyDescriptors final : public Container
|
||||||
{
|
{
|
||||||
public: // instances Columns 'exception safe'
|
public: // instances Columns 'exception safe'
|
||||||
static css::uno::Reference< css::container::XIndexAccess > create(
|
static css::uno::Reference< css::container::XIndexAccess > create(
|
||||||
@ -87,7 +87,7 @@ public: // instances Columns 'exception safe'
|
|||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
ConnectionSettings *pSettings );
|
ConnectionSettings *pSettings );
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
KeyDescriptors(
|
KeyDescriptors(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
namespace pq_sdbc_driver
|
namespace pq_sdbc_driver
|
||||||
{
|
{
|
||||||
|
|
||||||
class Users : public Container
|
class Users final : public Container
|
||||||
{
|
{
|
||||||
|
|
||||||
public: // instances Tables 'exception safe'
|
public: // instances Tables 'exception safe'
|
||||||
@ -51,7 +51,7 @@ public: // instances Tables 'exception safe'
|
|||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
ConnectionSettings *pSettings );
|
ConnectionSettings *pSettings );
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
Users(
|
Users(
|
||||||
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex,
|
||||||
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
const css::uno::Reference< css::sdbc::XConnection > & origin,
|
||||||
@ -59,21 +59,22 @@ protected:
|
|||||||
|
|
||||||
virtual ~Users() override;
|
virtual ~Users() override;
|
||||||
|
|
||||||
public: // XAppend
|
public:
|
||||||
|
// XAppend
|
||||||
virtual void SAL_CALL appendByDescriptor(
|
virtual void SAL_CALL appendByDescriptor(
|
||||||
const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
|
const css::uno::Reference< css::beans::XPropertySet >& descriptor ) override;
|
||||||
|
|
||||||
public: // XDrop
|
// XDrop
|
||||||
virtual void SAL_CALL dropByName( const OUString& elementName ) override;
|
virtual void SAL_CALL dropByName( const OUString& elementName ) override;
|
||||||
virtual void SAL_CALL dropByIndex( sal_Int32 index ) override;
|
virtual void SAL_CALL dropByIndex( sal_Int32 index ) override;
|
||||||
|
|
||||||
public: // XRefreshable
|
// XRefreshable
|
||||||
virtual void SAL_CALL refresh( ) override;
|
virtual void SAL_CALL refresh( ) override;
|
||||||
|
|
||||||
public: // XDataDescriptorFactory
|
// XDataDescriptorFactory
|
||||||
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor( ) override;
|
virtual css::uno::Reference< css::beans::XPropertySet > SAL_CALL createDataDescriptor( ) override;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
virtual void SAL_CALL disposing() override;
|
virtual void SAL_CALL disposing() override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ namespace connectivity
|
|||||||
typedef ::cppu::WeakImplHelper< css::util::XStringSubstitution
|
typedef ::cppu::WeakImplHelper< css::util::XStringSubstitution
|
||||||
,css::lang::XServiceInfo
|
,css::lang::XServiceInfo
|
||||||
,css::lang::XInitialization > ParameterSubstitution_BASE;
|
,css::lang::XInitialization > ParameterSubstitution_BASE;
|
||||||
class ParameterSubstitution : public ParameterSubstitution_BASE
|
class ParameterSubstitution final : public ParameterSubstitution_BASE
|
||||||
{
|
{
|
||||||
::osl::Mutex m_aMutex;
|
::osl::Mutex m_aMutex;
|
||||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
||||||
@ -46,7 +46,7 @@ namespace connectivity
|
|||||||
/// @throws css::uno::RuntimeException
|
/// @throws css::uno::RuntimeException
|
||||||
static css::uno::Sequence< OUString > getSupportedServiceNames_Static( );
|
static css::uno::Sequence< OUString > getSupportedServiceNames_Static( );
|
||||||
static css::uno::Reference< css::uno::XInterface > create( const css::uno::Reference< css::uno::XComponentContext > & xContext);
|
static css::uno::Reference< css::uno::XInterface > create( const css::uno::Reference< css::uno::XComponentContext > & xContext);
|
||||||
protected:
|
private:
|
||||||
ParameterSubstitution(const css::uno::Reference< css::uno::XComponentContext >& _rxContext );
|
ParameterSubstitution(const css::uno::Reference< css::uno::XComponentContext >& _rxContext );
|
||||||
virtual ~ParameterSubstitution() override {}
|
virtual ~ParameterSubstitution() override {}
|
||||||
|
|
||||||
|
@ -24,13 +24,11 @@
|
|||||||
|
|
||||||
namespace connectivity
|
namespace connectivity
|
||||||
{
|
{
|
||||||
class OOO_DLLPUBLIC_DBTOOLS OKeyValue
|
class OOO_DLLPUBLIC_DBTOOLS OKeyValue final
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
std::vector<ORowSetValueDecoratorRef> m_aKeys;
|
std::vector<ORowSetValueDecoratorRef> m_aKeys;
|
||||||
sal_Int32 m_nValue;
|
sal_Int32 m_nValue;
|
||||||
|
|
||||||
protected:
|
|
||||||
OKeyValue(sal_Int32 nVal);
|
OKeyValue(sal_Int32 nVal);
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace connectivity
|
|||||||
class OSQLAnalyzer;
|
class OSQLAnalyzer;
|
||||||
typedef std::vector<OCode*> OCodeList;
|
typedef std::vector<OCode*> OCodeList;
|
||||||
|
|
||||||
class OPredicateCompiler : public ::salhelper::SimpleReferenceObject
|
class OPredicateCompiler final : public ::salhelper::SimpleReferenceObject
|
||||||
{
|
{
|
||||||
friend class OPredicateInterpreter;
|
friend class OPredicateInterpreter;
|
||||||
friend class OSQLAnalyzer;
|
friend class OSQLAnalyzer;
|
||||||
@ -66,7 +66,7 @@ namespace connectivity
|
|||||||
bool hasCode() const {return !isClean();}
|
bool hasCode() const {return !isClean();}
|
||||||
void setOrigColumns(const css::uno::Reference< css::container::XNameAccess>& rCols) { m_orgColumns = rCols; }
|
void setOrigColumns(const css::uno::Reference< css::container::XNameAccess>& rCols) { m_orgColumns = rCols; }
|
||||||
const css::uno::Reference< css::container::XNameAccess>& getOrigColumns() const { return m_orgColumns; }
|
const css::uno::Reference< css::container::XNameAccess>& getOrigColumns() const { return m_orgColumns; }
|
||||||
protected:
|
private:
|
||||||
/// @throws css::sdbc::SQLException
|
/// @throws css::sdbc::SQLException
|
||||||
/// @throws css::uno::RuntimeException
|
/// @throws css::uno::RuntimeException
|
||||||
void execute_COMPARE(connectivity::OSQLParseNode const * pPredicateNode);
|
void execute_COMPARE(connectivity::OSQLParseNode const * pPredicateNode);
|
||||||
|
@ -58,7 +58,7 @@ namespace connectivity
|
|||||||
/** delegates all calls to the original driver and extend the existing one with the SDBCX layer.
|
/** delegates all calls to the original driver and extend the existing one with the SDBCX layer.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
class ODriverDelegator : public ::cppu::BaseMutex
|
class ODriverDelegator final : public ::cppu::BaseMutex
|
||||||
,public ODriverDelegator_BASE
|
,public ODriverDelegator_BASE
|
||||||
{
|
{
|
||||||
TWeakPairVector m_aConnections; // vector containing a list
|
TWeakPairVector m_aConnections; // vector containing a list
|
||||||
@ -118,7 +118,7 @@ namespace connectivity
|
|||||||
|
|
||||||
void shutdownConnections();
|
void shutdownConnections();
|
||||||
void flushConnections();
|
void flushConnections();
|
||||||
protected:
|
private:
|
||||||
/// dtor
|
/// dtor
|
||||||
virtual ~ODriverDelegator() override;
|
virtual ~ODriverDelegator() override;
|
||||||
// OComponentHelper
|
// OComponentHelper
|
||||||
|
@ -25,11 +25,10 @@ namespace connectivity
|
|||||||
{
|
{
|
||||||
namespace hsqldb
|
namespace hsqldb
|
||||||
{
|
{
|
||||||
class OTables : public sdbcx::OCollection
|
class OTables final : public sdbcx::OCollection
|
||||||
{
|
{
|
||||||
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
||||||
virtual void impl_refresh() override;
|
virtual void impl_refresh() override;
|
||||||
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
||||||
|
@ -25,13 +25,12 @@ namespace connectivity
|
|||||||
{
|
{
|
||||||
namespace hsqldb
|
namespace hsqldb
|
||||||
{
|
{
|
||||||
class HViews : public sdbcx::OCollection
|
class HViews final : public sdbcx::OCollection
|
||||||
{
|
{
|
||||||
css::uno::Reference< css::sdbc::XConnection > m_xConnection;
|
css::uno::Reference< css::sdbc::XConnection > m_xConnection;
|
||||||
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
||||||
bool m_bInDrop;
|
bool m_bInDrop;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
||||||
virtual void impl_refresh() override;
|
virtual void impl_refresh() override;
|
||||||
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
||||||
|
@ -33,7 +33,7 @@ namespace connectivity { namespace jdbc
|
|||||||
the object from an JNI method).
|
the object from an JNI method).
|
||||||
*/
|
*/
|
||||||
template< typename T >
|
template< typename T >
|
||||||
class LocalRef
|
class LocalRef final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit LocalRef( JNIEnv& environment )
|
explicit LocalRef( JNIEnv& environment )
|
||||||
@ -79,7 +79,6 @@ namespace connectivity { namespace jdbc
|
|||||||
LocalRef(LocalRef &) = delete;
|
LocalRef(LocalRef &) = delete;
|
||||||
void operator =(LocalRef &) = delete;
|
void operator =(LocalRef &) = delete;
|
||||||
|
|
||||||
protected:
|
|
||||||
JNIEnv& m_environment;
|
JNIEnv& m_environment;
|
||||||
T m_object;
|
T m_object;
|
||||||
};
|
};
|
||||||
|
@ -30,10 +30,9 @@ namespace connectivity
|
|||||||
|
|
||||||
//************ Class: java.io.InputStream
|
//************ Class: java.io.InputStream
|
||||||
|
|
||||||
class java_io_Reader : public java_lang_Object,
|
class java_io_Reader final : public java_lang_Object,
|
||||||
public ::cppu::WeakImplHelper< css::io::XInputStream>
|
public ::cppu::WeakImplHelper< css::io::XInputStream>
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
// static Data for the Class
|
// static Data for the Class
|
||||||
static jclass theClass;
|
static jclass theClass;
|
||||||
virtual ~java_io_Reader() override;
|
virtual ~java_io_Reader() override;
|
||||||
|
@ -30,10 +30,9 @@ namespace connectivity
|
|||||||
//************ Class: java.sql.ResultSetMetaData
|
//************ Class: java.sql.ResultSetMetaData
|
||||||
|
|
||||||
class java_sql_Connection;
|
class java_sql_Connection;
|
||||||
class java_sql_ResultSetMetaData : public ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData>,
|
class java_sql_ResultSetMetaData final : public ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData>,
|
||||||
public java_lang_Object
|
public java_lang_Object
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
java_sql_Connection* m_pConnection;
|
java_sql_Connection* m_pConnection;
|
||||||
sal_Int32 m_nColumnCount;
|
sal_Int32 m_nColumnCount;
|
||||||
|
|
||||||
|
@ -26,12 +26,11 @@ namespace connectivity
|
|||||||
{
|
{
|
||||||
namespace mysql
|
namespace mysql
|
||||||
{
|
{
|
||||||
class OTables : public sdbcx::OCollection,
|
class OTables final : public sdbcx::OCollection,
|
||||||
public ::dbtools::ISQLStatementHelper
|
public ::dbtools::ISQLStatementHelper
|
||||||
{
|
{
|
||||||
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
||||||
virtual void impl_refresh() override;
|
virtual void impl_refresh() override;
|
||||||
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
||||||
|
@ -25,12 +25,10 @@ namespace connectivity
|
|||||||
{
|
{
|
||||||
namespace mysql
|
namespace mysql
|
||||||
{
|
{
|
||||||
class OViews : public sdbcx::OCollection
|
class OViews final : public sdbcx::OCollection
|
||||||
{
|
{
|
||||||
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
css::uno::Reference< css::sdbc::XDatabaseMetaData > m_xMetaData;
|
||||||
bool m_bInDrop;
|
bool m_bInDrop;
|
||||||
// OCatalog* m_pParent;
|
|
||||||
protected:
|
|
||||||
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
virtual sdbcx::ObjectType createObject(const OUString& _rName) override;
|
||||||
virtual void impl_refresh() override;
|
virtual void impl_refresh() override;
|
||||||
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
virtual css::uno::Reference< css::beans::XPropertySet > createDescriptor() override;
|
||||||
|
@ -32,7 +32,7 @@ namespace connectivity
|
|||||||
//************ Class: ODatabaseMetaData
|
//************ Class: ODatabaseMetaData
|
||||||
|
|
||||||
|
|
||||||
class OOO_DLLPUBLIC_ODBCBASE ODatabaseMetaData :
|
class OOO_DLLPUBLIC_ODBCBASE ODatabaseMetaData final :
|
||||||
public ODatabaseMetaDataBase
|
public ODatabaseMetaDataBase
|
||||||
{
|
{
|
||||||
SQLHANDLE m_aConnectionHandle;
|
SQLHANDLE m_aConnectionHandle;
|
||||||
@ -53,7 +53,6 @@ namespace connectivity
|
|||||||
virtual sal_Int32 impl_getMaxStatements_throw( ) override;
|
virtual sal_Int32 impl_getMaxStatements_throw( ) override;
|
||||||
virtual sal_Int32 impl_getMaxTablesInSelect_throw( ) override;
|
virtual sal_Int32 impl_getMaxTablesInSelect_throw( ) override;
|
||||||
virtual bool impl_storesMixedCaseQuotedIdentifiers_throw( ) override;
|
virtual bool impl_storesMixedCaseQuotedIdentifiers_throw( ) override;
|
||||||
protected:
|
|
||||||
OUString getURLImpl();
|
OUString getURLImpl();
|
||||||
virtual css::uno::Reference< css::sdbc::XResultSet > impl_getTypeInfo_throw() override;
|
virtual css::uno::Reference< css::sdbc::XResultSet > impl_getTypeInfo_throw() override;
|
||||||
virtual ~ODatabaseMetaData() override;
|
virtual ~ODatabaseMetaData() override;
|
||||||
|
@ -41,11 +41,10 @@ namespace connectivity
|
|||||||
css::sdbc::XResultSetMetaDataSupplier,
|
css::sdbc::XResultSetMetaDataSupplier,
|
||||||
css::lang::XServiceInfo> OPreparedStatement_BASE;
|
css::lang::XServiceInfo> OPreparedStatement_BASE;
|
||||||
|
|
||||||
class OOO_DLLPUBLIC_ODBCBASE OPreparedStatement :
|
class OOO_DLLPUBLIC_ODBCBASE OPreparedStatement final :
|
||||||
public OStatement_BASE2,
|
public OStatement_BASE2,
|
||||||
public OPreparedStatement_BASE
|
public OPreparedStatement_BASE
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
static const short invalid_scale = -1;
|
static const short invalid_scale = -1;
|
||||||
|
|
||||||
// Data attributes
|
// Data attributes
|
||||||
@ -87,7 +86,6 @@ namespace connectivity
|
|||||||
*/
|
*/
|
||||||
virtual OResultSet* createResulSet() override;
|
virtual OResultSet* createResulSet() override;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,
|
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,
|
||||||
const css::uno::Any& rValue) override;
|
const css::uno::Any& rValue) override;
|
||||||
public:
|
public:
|
||||||
|
@ -36,10 +36,9 @@ namespace connectivity
|
|||||||
|
|
||||||
typedef ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData> OResultSetMetaData_BASE;
|
typedef ::cppu::WeakImplHelper< css::sdbc::XResultSetMetaData> OResultSetMetaData_BASE;
|
||||||
|
|
||||||
class OOO_DLLPUBLIC_ODBCBASE OResultSetMetaData :
|
class OOO_DLLPUBLIC_ODBCBASE OResultSetMetaData final :
|
||||||
public OResultSetMetaData_BASE
|
public OResultSetMetaData_BASE
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
std::vector<sal_Int32> m_vMapping; // when not every column is needed
|
std::vector<sal_Int32> m_vMapping; // when not every column is needed
|
||||||
std::map<sal_Int32,sal_Int32> m_aColumnTypes;
|
std::map<sal_Int32,sal_Int32> m_aColumnTypes;
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ namespace drivermanager
|
|||||||
, css::uno::XNamingService
|
, css::uno::XNamingService
|
||||||
> OSDBCDriverManager_Base;
|
> OSDBCDriverManager_Base;
|
||||||
|
|
||||||
class OSDBCDriverManager : public OSDBCDriverManager_Base
|
class OSDBCDriverManager final : public OSDBCDriverManager_Base
|
||||||
{
|
{
|
||||||
friend class ODriverEnumeration;
|
friend class ODriverEnumeration;
|
||||||
|
|
||||||
@ -76,7 +76,6 @@ namespace drivermanager
|
|||||||
::connectivity::DriversConfig m_aDriverConfig;
|
::connectivity::DriversConfig m_aDriverConfig;
|
||||||
sal_Int32 m_nLoginTimeout;
|
sal_Int32 m_nLoginTimeout;
|
||||||
|
|
||||||
private:
|
|
||||||
explicit OSDBCDriverManager(
|
explicit OSDBCDriverManager(
|
||||||
const css::uno::Reference< css::uno::XComponentContext >& _rxContext );
|
const css::uno::Reference< css::uno::XComponentContext >& _rxContext );
|
||||||
virtual ~OSDBCDriverManager() override;
|
virtual ~OSDBCDriverManager() override;
|
||||||
@ -118,7 +117,7 @@ namespace drivermanager
|
|||||||
virtual void SAL_CALL registerObject( const OUString& Name, const css::uno::Reference< css::uno::XInterface >& Object ) override;
|
virtual void SAL_CALL registerObject( const OUString& Name, const css::uno::Reference< css::uno::XInterface >& Object ) override;
|
||||||
virtual void SAL_CALL revokeObject( const OUString& Name ) override;
|
virtual void SAL_CALL revokeObject( const OUString& Name ) override;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
css::uno::Reference< css::sdbc::XDriver > implGetDriverForURL(const OUString& _rURL);
|
css::uno::Reference< css::sdbc::XDriver > implGetDriverForURL(const OUString& _rURL);
|
||||||
|
|
||||||
/** retrieve the driver order preferences from the configuration and
|
/** retrieve the driver order preferences from the configuration and
|
||||||
|
@ -58,7 +58,7 @@ enum OOoBaseErrorCode
|
|||||||
//= SQLExceptionInfo - encapsulating the type info of an SQLException-derived class
|
//= SQLExceptionInfo - encapsulating the type info of an SQLException-derived class
|
||||||
|
|
||||||
|
|
||||||
class OOO_DLLPUBLIC_DBTOOLS SQLExceptionInfo
|
class OOO_DLLPUBLIC_DBTOOLS SQLExceptionInfo final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum class TYPE { SQLException, SQLWarning, SQLContext, Undefined };
|
enum class TYPE { SQLException, SQLWarning, SQLContext, Undefined };
|
||||||
@ -138,7 +138,7 @@ public:
|
|||||||
m_eType = TYPE::Undefined;
|
m_eType = TYPE::Undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
void implDetermineType();
|
void implDetermineType();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -146,9 +146,8 @@ protected:
|
|||||||
//= SQLExceptionIteratorHelper - iterating through an SQLException chain
|
//= SQLExceptionIteratorHelper - iterating through an SQLException chain
|
||||||
|
|
||||||
|
|
||||||
class OOO_DLLPUBLIC_DBTOOLS SQLExceptionIteratorHelper
|
class OOO_DLLPUBLIC_DBTOOLS SQLExceptionIteratorHelper final
|
||||||
{
|
{
|
||||||
protected:
|
|
||||||
const css::sdbc::SQLException* m_pCurrent;
|
const css::sdbc::SQLException* m_pCurrent;
|
||||||
SQLExceptionInfo::TYPE m_eCurrentType;
|
SQLExceptionInfo::TYPE m_eCurrentType;
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ namespace connectivity
|
|||||||
|
|
||||||
struct OSQLParseTreeIteratorImpl;
|
struct OSQLParseTreeIteratorImpl;
|
||||||
|
|
||||||
class OOO_DLLPUBLIC_DBTOOLS OSQLParseTreeIterator
|
class OOO_DLLPUBLIC_DBTOOLS OSQLParseTreeIterator final
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
css::sdbc::SQLException m_aErrors; // conatins the error while iterating through the statement
|
css::sdbc::SQLException m_aErrors; // conatins the error while iterating through the statement
|
||||||
@ -142,7 +142,6 @@ namespace connectivity
|
|||||||
css::uno::Reference< css::beans::XPropertySet > findSelectColumn(
|
css::uno::Reference< css::beans::XPropertySet > findSelectColumn(
|
||||||
const OUString & rColumnName );
|
const OUString & rColumnName );
|
||||||
|
|
||||||
protected:
|
|
||||||
void setSelectColumnName(::rtl::Reference<OSQLColumns> const & _rColumns,const OUString & rColumnName,const OUString & rColumnAlias, const OUString & rTableRange, bool bFkt=false, sal_Int32 _nType = css::sdbc::DataType::VARCHAR, bool bAggFkt=false);
|
void setSelectColumnName(::rtl::Reference<OSQLColumns> const & _rColumns,const OUString & rColumnName,const OUString & rColumnAlias, const OUString & rTableRange, bool bFkt=false, sal_Int32 _nType = css::sdbc::DataType::VARCHAR, bool bAggFkt=false);
|
||||||
void appendColumns(::rtl::Reference<OSQLColumns> const & _rColumns,const OUString& _rTableAlias,const OSQLTable& _rTable);
|
void appendColumns(::rtl::Reference<OSQLColumns> const & _rColumns,const OUString& _rTableAlias,const OSQLTable& _rTable);
|
||||||
// Other member variables that should be available in the "set" functions
|
// Other member variables that should be available in the "set" functions
|
||||||
@ -150,8 +149,6 @@ namespace connectivity
|
|||||||
// in its constructor and, after the "traverse" routines have been used,
|
// in its constructor and, after the "traverse" routines have been used,
|
||||||
// they can be queried using other functions.
|
// they can be queried using other functions.
|
||||||
|
|
||||||
|
|
||||||
private:
|
|
||||||
OSQLParseTreeIterator(const OSQLParseTreeIterator & rIter) = delete;
|
OSQLParseTreeIterator(const OSQLParseTreeIterator & rIter) = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -297,7 +294,6 @@ namespace connectivity
|
|||||||
|
|
||||||
bool traverseSelectionCriteria(const OSQLParseNode* pSelectNode);
|
bool traverseSelectionCriteria(const OSQLParseNode* pSelectNode);
|
||||||
|
|
||||||
private:
|
|
||||||
/** constructs a new iterator, which inherits some of the settings from a parent iterator
|
/** constructs a new iterator, which inherits some of the settings from a parent iterator
|
||||||
*/
|
*/
|
||||||
OSQLParseTreeIterator(
|
OSQLParseTreeIterator(
|
||||||
@ -329,7 +325,6 @@ namespace connectivity
|
|||||||
void setOrderByColumnName(const OUString & rColumnName, OUString & rTableRange, bool bAscending);
|
void setOrderByColumnName(const OUString & rColumnName, OUString & rTableRange, bool bAscending);
|
||||||
void setGroupByColumnName(const OUString & rColumnName, OUString & rTableRange);
|
void setGroupByColumnName(const OUString & rColumnName, OUString & rTableRange);
|
||||||
|
|
||||||
private:
|
|
||||||
/** appends an SQLException corresponding to the given error code to our error collection
|
/** appends an SQLException corresponding to the given error code to our error collection
|
||||||
|
|
||||||
@param _eError
|
@param _eError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user