1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XBlob.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_sdbc_XBlob_idl__
31 #define __com_sun_star_sdbc_XBlob_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include
<com
/sun
/star
/uno
/XInterface.idl
>
37 module com
{ module sun
{ module star
{ module io
{
38 published
interface XInputStream
;
41 #ifndef __com_sun_star_sdbc_SQLException_idl__
42 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
45 module com
{ module sun
{ module star
{ module sdbc
{
48 /** is the representation (mapping) of an SQL
59 is a built-in type that stores a
60 Binary Large Object as a column value in a row of a database table.
67 <code>locator(BLOB)</code>
70 object contains a logical pointer to the SQL
74 data rather than the data itself.
78 object is valid for the duration of the transaction in which is was created.
82 Methods in the interfaces
83 <type scope="com::sun::star::sdbc">XResultSet</type>
86 <type scope="com::sun::star::sdbc">XPreparedStatement</type>
91 allow a programmer to access the SQL
99 interface provides methods for getting the length of a SQL
103 (Binary Large Object) value, for materializing a
107 value on the client and for determining the position of a pattern of bytes within a
114 published
interface XBlob
: com
::sun
::star
::uno
::XInterface
116 //-------------------------------------------------------------------------
118 /** returns the number of bytes in the
129 if a database access error occurs.
131 hyper length
() raises
(SQLException
);
133 //-------------------------------------------------------------------------
135 /** returns as an array of bytes part or all of the
141 object designates. The byte
148 is the ordinal position of the first byte in the
152 value to be extracted; the first byte is at
155 is the number of consecutive bytes to be copied.
157 a byte array containing up to
159 consecutive bytes from the
166 object, starting with the byte at position
170 if there is an error accessing the
176 sequence
<byte> getBytes
([in]hyper pos
, [in]long length
)
177 raises
(SQLException
);
179 //-------------------------------------------------------------------------
187 instance as a stream.
191 if a database access error occurs.
193 com
::sun
::star
::io
::XInputStream getBinaryStream
()
194 raises
(SQLException
);
195 //-------------------------------------------------------------------------
197 /** determines the byte position at which the specified byte
205 object represents. The
212 the pattern to search
216 if a database access error occurs.
218 hyper position
([in]sequence
<byte> pattern
, [in]hyper start
)
219 raises
(SQLException
);
221 //-------------------------------------------------------------------------
223 /** determines the byte position in the
232 begins. The search begins at position
236 the pattern to search
242 if a database access error occurs.
244 hyper positionOfBlob
([in]XBlob pattern
,[in] hyper start
)
245 raises
(SQLException
);
248 //=============================================================================
252 /*===========================================================================
253 ===========================================================================*/