summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-31 08:56:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-31 12:16:30 +0200
commit55dda1367a845b37184cedc287e5f8f03ef0f6cf (patch)
treeb8d08e05eea2a36ce5cdcff673962a63c63af4f7
parentcf73e0217169af9081951c3032d8de5fc30c81d7 (diff)
can keep this comment to document the args
Change-Id: I64b8e461cc692c6c9683df52dc1fea6b2e5a937e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101697 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/svx/dbaexchange.hxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/include/svx/dbaexchange.hxx b/include/svx/dbaexchange.hxx
index c5bbeae01024..c5a0193b886a 100644
--- a/include/svx/dbaexchange.hxx
+++ b/include/svx/dbaexchange.hxx
@@ -159,15 +159,31 @@ namespace svx
// needed to provide a SotClipboardFormatId::SBA_DATAEXCHANGE format
public:
+ /** should be used copying and the connection is needed.
+ @param _rDatasource
+ The data source name.
+ @param _nCommandType
+ The kind of command. @see com.sun.star.sdbc.CommandType
+ @param _rCommand
+ The command, either a name of a table or query or a SQL statement.
+ */
void Update(
- const OUString& _rDatasourceOrLocation,
+ const OUString& _rDatasource,
const sal_Int32 _nCommandType,
const OUString& _rCommand,
const css::uno::Reference< css::sdbc::XConnection >& _rxConnection
);
+ /** should be used when copying a query object and no connection is available.
+ @param _rDatasource
+ The data source name.
+ @param _nCommandType
+ The kind of command. @see com.sun.star.sdbc.CommandType
+ @param _rCommand
+ The command, either a name of a table or query or a SQL statement.
+ */
void Update(
- const OUString& _rDatasourceOrLocation,
+ const OUString& _rDatasource,
const sal_Int32 _nCommandType,
const OUString& _rCommand
);