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 io
{
21 published
interface XInputStream
;
24 module com
{ module sun
{ module star
{ module container
{
25 published
interface XNameAccess
;
28 module com
{ module sun
{ module star
{ module sdbc
{
29 published
interface XRef
;
30 published
interface XArray
;
31 published
interface XBlob
;
32 published
interface XClob
;
35 module com
{ module sun
{ module star
{ module sdb
{
38 /** is used to access data which is collected in a row.
40 published
interface XColumn
: com
::sun
::star
::uno
::XInterface
43 /** reports whether the last column read had a value of SQL NULL.
44 Note that you must first call getXXX on a column to try to read
45 its value and then call
46 <code>wasNull()</code>
47 to see if the value read was SQL NULL.
50 @throws com::sun::star::sdbc::SQLException
51 if a database access error occurs.
53 boolean wasNull
() raises
(com
::sun
::star
::sdbc
::SQLException
);
55 /** gets the value of a column in the current row as a String.
58 @throws com::sun::star::sdbc::SQLException
59 if a database access error occurs.
61 string getString
() raises
(com
::sun
::star
::sdbc
::SQLException
);
63 /** gets the value of a column in the current row as boolean.
66 @throws com::sun::star::sdbc::SQLException
67 if a database access error occurs.
69 boolean getBoolean
() raises
(com
::sun
::star
::sdbc
::SQLException
);
71 /** gets the value of a column in the current row as a byte.
74 @throws com::sun::star::sdbc::SQLException
75 if a database access error occurs.
77 byte getByte
() raises
(com
::sun
::star
::sdbc
::SQLException
);
79 /** gets the value of a column in the current row as a short.
82 @throws com::sun::star::sdbc::SQLException
83 if a database access error occurs.
85 short getShort
() raises
(com
::sun
::star
::sdbc
::SQLException
);
87 /** gets the value of a column in the current row as a long.
90 @throws com::sun::star::sdbc::SQLException
91 if a database access error occurs.
93 long getInt
() raises
(com
::sun
::star
::sdbc
::SQLException
);
95 /** gets the value of a column in the current row as a hyper.
98 @throws com::sun::star::sdbc::SQLException
99 if a database access error occurs.
101 hyper getLong
() raises
(com
::sun
::star
::sdbc
::SQLException
);
103 /** gets the value of a column in the current row as a float.
106 @throws com::sun::star::sdbc::SQLException
107 if a database access error occurs.
109 float getFloat
() raises
(com
::sun
::star
::sdbc
::SQLException
);
111 /** gets the value of a column in the current row as a double.
114 @throws com::sun::star::sdbc::SQLException
115 if a database access error occurs.
117 double getDouble
() raises
(com
::sun
::star
::sdbc
::SQLException
);
119 /** gets the value of a column in the current row as a byte array.
120 The bytes represent the raw values returned by the driver.
121 @returns the column value;
122 if the value is SQL NULL, the result is empty.
123 @throws com::sun::star::sdbc::SQLException
124 if a database access error occurs.
126 sequence
<byte> getBytes
() raises
(com
::sun
::star
::sdbc
::SQLException
);
128 /** gets the value of a column in the current row as a date object.
131 @throws com::sun::star::sdbc::SQLException
132 if a database access error occurs.
134 com
::sun
::star
::util
::Date getDate
()
135 raises
(com
::sun
::star
::sdbc
::SQLException
);
137 /** gets the value of a column in the current row as a time object.
140 @throws com::sun::star::sdbc::SQLException
141 if a database access error occurs.
143 com
::sun
::star
::util
::Time getTime
()
144 raises
(com
::sun
::star
::sdbc
::SQLException
);
146 /** gets the value of a column in the current row as a datetime object.
149 @throws com::sun::star::sdbc::SQLException
150 if a database access error occurs.
152 com
::sun
::star
::util
::DateTime getTimestamp
()
153 raises
(com
::sun
::star
::sdbc
::SQLException
);
155 /** gets the value of a column in the current row as a stream of
156 uninterpreted bytes. The value can then be read in chunks from the
157 stream. This method is particularly suitable for retrieving large
158 LONGVARBINARY or LONGVARCHAR values.
162 <b>Note:</b> All the data in the returned stream must be
163 read prior to getting the value of any other column. The next
164 call to a get method implicitly closes the stream. Also, a
165 stream may return 0 when the method
166 com::sun::star::io::XInputStream::available()
167 is called whether there is data available or not.
171 @throws com::sun::star::sdbc::SQLException
172 if a database access error occurs.
174 com
::sun
::star
::io
::XInputStream getBinaryStream
()
175 raises
(com
::sun
::star
::sdbc
::SQLException
);
177 /** gets the value of a column in the current row as a stream of
178 uninterpreted bytes. The value can then be read in chunks from the
179 stream. This method is particularly suitable for retrieving large
183 <b>Note:</b> All the data in the returned stream must be
184 read prior to getting the value of any other column. The next
185 call to a get method implicitly closes the stream. Also, a
186 stream may return 0 when the method
187 com::sun::star::io::XInputStream::available()
188 is called whether there is data available or not.
192 @throws com::sun::star::sdbc::SQLException
193 if a database access error occurs.
195 com
::sun
::star
::io
::XInputStream getCharacterStream
()
196 raises
(com
::sun
::star
::sdbc
::SQLException
);
198 /** @returns the value of a column in the current row as an object.
199 This method uses the given
202 for the custom mapping of the SQL structure or distinct type
203 that is being retrieved.
205 the type map is used to fetch the correct type
208 @throws com::sun::star::sdbc::SQLException
209 if a database access error occurs.
211 any getObject
([in]com
::sun
::star
::container
::XNameAccess typeMap
)
212 raises
(com
::sun
::star
::sdbc
::SQLException
);
214 /** gets a REF(<structured-type>) column value from the current row.
218 @throws com::sun::star::sdbc::SQLException
219 if a database access error occurs.
221 com
::sun
::star
::sdbc
::XRef getRef
() raises
(com
::sun
::star
::sdbc
::SQLException
);
223 /** gets a BLOB (Binary Large OBject) value in the current row.
226 @throws com::sun::star::sdbc::SQLException
227 if a database access error occurs.
229 com
::sun
::star
::sdbc
::XBlob getBlob
() raises
(com
::sun
::star
::sdbc
::SQLException
);
231 /** gets a CLOB value in the current row of this <code>ResultSet</code> object.
234 @throws com::sun::star::sdbc::SQLException
235 if a database access error occurs.
237 com
::sun
::star
::sdbc
::XClob getClob
() raises
(com
::sun
::star
::sdbc
::SQLException
);
239 /** gets a SQL ARRAY value from the current row.
242 @throws com::sun::star::sdbc::SQLException
243 if a database access error occurs.
245 com
::sun
::star
::sdbc
::XArray getArray
() raises
(com
::sun
::star
::sdbc
::SQLException
);
251 /*===========================================================================
252 ===========================================================================*/
254 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */