1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 module com
{ module sun
{ module star
{ module container
{
21 published
interface XNameAccess
;
24 module com
{ module sun
{ module star
{ module sdbc
{
26 published
interface XRowSet
;
27 published
interface XParameters
;
30 /** is a client side ResultSet, which combines the characteristics of a
31 com::sun::star::sdbc::Statement
33 com::sun::star::sdbc::ResultSet.
37 It acts like a typical bean. Before you use the RowSet, you have to specify a
38 set of properties like a DataSource and a Command and other properties known of
41 Afterwards, you can populate the RowSet by its execute method to fill the set
45 On the one hand, a RowSet can be used as a short cut to retrieve the data of a DataSource.
46 You don't have to establish a connection, create a Statement, and then create
47 a ResultSet. On the other hand, a row set can be used to implement capabilities for
48 a result set, which are not supported by a driver result set, like caching
49 strategies or update capabilities.
52 published service RowSet
54 service com
::sun
::star
::sdbc
::ResultSet
;
56 /** used to execute and to add/remove listeners.
58 <p>To refresh the content of a RowSet, use this interface's XRowSet::execute()
63 // used to set parameters.
64 interface XParameters
;
66 /** allows locating columns whose name is known only.
68 interface XColumnLocate
;
70 /** is the name of a named datasource to use.@see com::sun::star::sdbc:XDataSource
72 [property
] string DataSourceName
;
75 /** is the connection URL. Could be used instead of the DataSourceName.
77 [property
] string URL
;
80 /** is the command which should be executed.
82 [property
] string Command
;
85 /** indicates the transaction isolation level, which should be used for the
86 connection.@see com::sun::star::sdbc::TransactionIsolation
88 [property
] long TransactionIsolation
;
91 /** is the type map that will be used for the custom mapping of SQL structured types
94 [property
] com
::sun
::star
::container
::XNameAccess TypeMap
;
97 /** returns if escape processing is on or off.
98 If escape scanning is on (the default), the driver will do
99 escape substitution before sending the SQL to the database.
100 This is only evaluated, if the CommandType is COMMAND.
102 [property
] boolean EscapeProcessing
;
105 /** retrieves the number of seconds the driver will wait for a Statement
106 to execute. If the limit is exceeded, a
107 com::sun::star::sdbc::SQLException
109 There is no limitation, if set to zero.
111 [property
] long QueryTimeOut
;
114 /** returns the maximum number of bytes allowed for any column value.
117 This limit is the maximum number of bytes that can be returned
118 for any column value. The limit applies only to
119 com::sun::star::sdbc::DataType::BINARY
121 com::sun::star::sdbc::DataType::VARBINARY
123 com::sun::star::sdbc::DataType::LONGVARBINARY
125 com::sun::star::sdbc::DataType::CHAR
127 com::sun::star::sdbc::DataType::VARCHAR
130 com::sun::star::sdbc::DataType::LONGVARCHAR
132 If the limit is exceeded, the excess data is silently discarded.
134 There is no limitation, if set to zero.
137 [property
] long MaxFieldSize
;
140 /** retrieves the maximum number of rows that a ResultSet can contain.
141 If the limit is exceeded, the excess rows are silently dropped.
143 There is no limitation, if set to zero.
145 [property
] long MaxRows
;
148 /** determines the user for whom to open the connection.
150 [property
] string User
;
153 /** determines the user for whom to open the connection.
155 [property
] string Password
;
158 /** determine the result set type.
160 @see com::sun::star::sdbc::ResultSetType
162 [property
] long ResultSetType
;
168 /*===========================================================================
169 ===========================================================================*/
171 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */