xref: /AOO41X/main/offapi/com/sun/star/sdbc/RowSet.idl (revision d1766043198e81d0bcfc626e12893e7b4d7e31ca)
1*d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*d1766043SAndrew Rist * distributed with this work for additional information
6*d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9*d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*d1766043SAndrew Rist * software distributed under the License is distributed on an
15*d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17*d1766043SAndrew Rist * specific language governing permissions and limitations
18*d1766043SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*d1766043SAndrew Rist *************************************************************/
21*d1766043SAndrew Rist
22*d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_sdbc_RowSet_idl__
24cdf0e10cSrcweir#define __com_sun_star_sdbc_RowSet_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_sdbc_ResultSet_idl__
27cdf0e10cSrcweir#include <com/sun/star/sdbc/ResultSet.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir#ifndef __com_sun_star_sdbc_XColumnLocate_idl__
30cdf0e10cSrcweir#include <com/sun/star/sdbc/XColumnLocate.idl>
31cdf0e10cSrcweir#endif
32cdf0e10cSrcweir
33cdf0e10cSrcweir module com {  module sun {  module star {  module container {
34cdf0e10cSrcweir published interface XNameAccess;
35cdf0e10cSrcweir};};};};
36cdf0e10cSrcweir
37cdf0e10cSrcweir module com {  module sun {  module star {  module sdbc {
38cdf0e10cSrcweir
39cdf0e10cSrcweir published interface XRowSet;
40cdf0e10cSrcweir published interface XParameters;
41cdf0e10cSrcweir
42cdf0e10cSrcweir
43cdf0e10cSrcweir/** is a client side ResultSet, which combines the characteristics of a
44cdf0e10cSrcweir	<type scope="com::sun::star::sdbc">Statement</type>
45cdf0e10cSrcweir	and a
46cdf0e10cSrcweir	<type scope="com::sun::star::sdbc">ResultSet</type>.
47cdf0e10cSrcweir
48cdf0e10cSrcweir
49cdf0e10cSrcweir	<p>
50cdf0e10cSrcweir	It acts like a typical bean. Before you use the RowSet, you have to specify a
51cdf0e10cSrcweir	set of properties like a DataSource and a Command and other properties known of
52cdf0e10cSrcweir	Statement.
53cdf0e10cSrcweir	<br/>
54cdf0e10cSrcweir	Afterwards, you can populate the RowSet by its execute method to fill the set
55cdf0e10cSrcweir	with data.
56cdf0e10cSrcweir	</p>
57cdf0e10cSrcweir	<p>
58cdf0e10cSrcweir	On the one hand, a RowSet can be used as a short cut to retrieve the data of a DataSource.
59cdf0e10cSrcweir	You don't have to establish a connection, create a Statement, and then create
60cdf0e10cSrcweir	a ResultSet. On the other hand, a rowset can be used to implement capabilties for
61cdf0e10cSrcweir	a result set, which are not supported by a driver result set, like caching
62cdf0e10cSrcweir	strategies or update capabilities.
63cdf0e10cSrcweir	</p>
64cdf0e10cSrcweir */
65cdf0e10cSrcweirpublished service RowSet
66cdf0e10cSrcweir{
67cdf0e10cSrcweir	service com::sun::star::sdbc::ResultSet;
68cdf0e10cSrcweir
69cdf0e10cSrcweir	/** used to execute and to add/remove listeners.
70cdf0e10cSrcweir
71cdf0e10cSrcweir        <p>To refresh the content of a <type>RowSet</type>, use this interface's <member>XRowSet::execute</member>
72cdf0e10cSrcweir        method.</p>
73cdf0e10cSrcweir    */
74cdf0e10cSrcweir	interface XRowSet;
75cdf0e10cSrcweir
76cdf0e10cSrcweir	// used to set parameters.
77cdf0e10cSrcweir	interface XParameters;
78cdf0e10cSrcweir
79cdf0e10cSrcweir	/** allows locating columns which's name is known only.
80cdf0e10cSrcweir	*/
81cdf0e10cSrcweir	interface XColumnLocate;
82cdf0e10cSrcweir
83cdf0e10cSrcweir	/** is the name of a named datasource to use.@see com::sun::star::sdbc:XDataSource
84cdf0e10cSrcweir	 */
85cdf0e10cSrcweir	[property] string DataSourceName;
86cdf0e10cSrcweir
87cdf0e10cSrcweir
88cdf0e10cSrcweir	/** is the connection URL. Could be used instead of the DataSourceName.
89cdf0e10cSrcweir	 */
90cdf0e10cSrcweir	[property] string URL;
91cdf0e10cSrcweir
92cdf0e10cSrcweir
93cdf0e10cSrcweir	/** is the command which should be executed.
94cdf0e10cSrcweir	 */
95cdf0e10cSrcweir	[property] string Command;
96cdf0e10cSrcweir
97cdf0e10cSrcweir
98cdf0e10cSrcweir	/** indicates the transaction isolation level, which should be used for the
99cdf0e10cSrcweir		connection.@see com::sun::star::sdbc::TransactionIsolation
100cdf0e10cSrcweir	 */
101cdf0e10cSrcweir	[property] long TransactionIsolation;
102cdf0e10cSrcweir
103cdf0e10cSrcweir
104cdf0e10cSrcweir	/** is the type map that will be used for the custom mapping of SQL structured types
105cdf0e10cSrcweir		and distinct types.
106cdf0e10cSrcweir	 */
107cdf0e10cSrcweir	[property] com::sun::star::container::XNameAccess TypeMap;
108cdf0e10cSrcweir
109cdf0e10cSrcweir
110cdf0e10cSrcweir	/** returns if escape processing is on or off.
111cdf0e10cSrcweir		If escape scanning is on (the default), the driver will do
112cdf0e10cSrcweir		escape substitution before sending the SQL to the database.
113cdf0e10cSrcweir		This is only evaluated, if the CommandType is COMMAND.
114cdf0e10cSrcweir	 */
115cdf0e10cSrcweir	[property] boolean EscapeProcessing;
116cdf0e10cSrcweir
117cdf0e10cSrcweir
118cdf0e10cSrcweir	/** retrieves the number of seconds the driver will wait for a Statement
119cdf0e10cSrcweir		to execute. If the limit is exceeded, a
120cdf0e10cSrcweir		<type scope="com::sun::star::sdbc">SQLException</type>
121cdf0e10cSrcweir		is thrown.
122cdf0e10cSrcweir		There is no limitation, if set to zero.
123cdf0e10cSrcweir	 */
124cdf0e10cSrcweir	[property] long QueryTimeOut;
125cdf0e10cSrcweir
126cdf0e10cSrcweir
127cdf0e10cSrcweir	/** returns the maximum number of bytes allowed for any column value.
128cdf0e10cSrcweir
129cdf0e10cSrcweir		<p>
130cdf0e10cSrcweir		This limit is the maximum number of bytes that can be returned
131cdf0e10cSrcweir		for any column value. The limit applies only to
132cdf0e10cSrcweir		<member scope= "com::sun::star::sdbc">DataType::BINARY</member>
133cdf0e10cSrcweir			  ,
134cdf0e10cSrcweir			  <member scope= "com::sun::star::sdbc">DataType::VARBINARY</member>
135cdf0e10cSrcweir			  ,
136cdf0e10cSrcweir			  <member scope= "com::sun::star::sdbc">DataType::LONGVARBINARY</member>
137cdf0e10cSrcweir			  ,
138cdf0e10cSrcweir			  <member scope= "com::sun::star::sdbc">DataType::CHAR</member>
139cdf0e10cSrcweir			  ,
140cdf0e10cSrcweir			  <member scope= "com::sun::star::sdbc">DataType::VARCHAR</member>
141cdf0e10cSrcweir			  ,
142cdf0e10cSrcweir			  and
143cdf0e10cSrcweir			  <member scope= "com::sun::star::sdbc">DataType::LONGVARCHAR</member>
144cdf0e10cSrcweir			  columns.
145cdf0e10cSrcweir		If the limit is exceeded, the excess data is silently discarded.
146cdf0e10cSrcweir		<br/>
147cdf0e10cSrcweir		There is no limitation, if set to zero.
148cdf0e10cSrcweir		</p>
149cdf0e10cSrcweir	 */
150cdf0e10cSrcweir	[property] long MaxFieldSize;
151cdf0e10cSrcweir
152cdf0e10cSrcweir
153cdf0e10cSrcweir	/** retrieves the maximum number of rows that a ResultSet can contain.
154cdf0e10cSrcweir		If the limit is exceeded, the excess rows are silently dropped.
155cdf0e10cSrcweir		<br/>
156cdf0e10cSrcweir		There is no limitation, if set to zero.
157cdf0e10cSrcweir	 */
158cdf0e10cSrcweir	[property] long MaxRows;
159cdf0e10cSrcweir
160cdf0e10cSrcweir
161cdf0e10cSrcweir	/** determines the user for whom to open the connection.
162cdf0e10cSrcweir	 */
163cdf0e10cSrcweir	[property] string User;
164cdf0e10cSrcweir
165cdf0e10cSrcweir
166cdf0e10cSrcweir	/** determines the user for whom to open the connection.
167cdf0e10cSrcweir	 */
168cdf0e10cSrcweir	[property] string Password;
169cdf0e10cSrcweir
170cdf0e10cSrcweir
171cdf0e10cSrcweir	/** determine the result set type.
172cdf0e10cSrcweir
173cdf0e10cSrcweir		@see com::sun::star::sdbc::ResultSetType
174cdf0e10cSrcweir	 */
175cdf0e10cSrcweir	[property] long ResultSetType;
176cdf0e10cSrcweir};
177cdf0e10cSrcweir
178cdf0e10cSrcweir//=============================================================================
179cdf0e10cSrcweir
180cdf0e10cSrcweir}; }; }; };
181cdf0e10cSrcweir
182cdf0e10cSrcweir/*===========================================================================
183cdf0e10cSrcweir===========================================================================*/
184cdf0e10cSrcweir#endif
185