1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef __com_sun_star_sdbc_XBlob_idl__
28 #define __com_sun_star_sdbc_XBlob_idl__
30 #ifndef __com_sun_star_uno_XInterface_idl__
31 #include
<com
/sun
/star
/uno
/XInterface.idl
>
34 module com
{ module sun
{ module star
{ module io
{
35 published
interface XInputStream
;
38 #ifndef __com_sun_star_sdbc_SQLException_idl__
39 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
42 module com
{ module sun
{ module star
{ module sdbc
{
45 /** is the representation (mapping) of an SQL
56 is a built-in type that stores a
57 Binary Large Object as a column value in a row of a database table.
64 <code>locator(BLOB)</code>
67 object contains a logical pointer to the SQL
71 data rather than the data itself.
75 object is valid for the duration of the transaction in which is was created.
79 Methods in the interfaces
80 <type scope="com::sun::star::sdbc">XResultSet</type>
83 <type scope="com::sun::star::sdbc">XPreparedStatement</type>
88 allow a programmer to access the SQL
96 interface provides methods for getting the length of a SQL
100 (Binary Large Object) value, for materializing a
104 value on the client and for determining the position of a pattern of bytes within a
111 published
interface XBlob
: com
::sun
::star
::uno
::XInterface
113 //-------------------------------------------------------------------------
115 /** returns the number of bytes in the
126 if a database access error occurs.
128 hyper length
() raises
(SQLException
);
130 //-------------------------------------------------------------------------
132 /** returns as an array of bytes part or all of the
138 object designates. The byte
145 is the ordinal position of the first byte in the
149 value to be extracted; the first byte is at
152 is the number of consecutive bytes to be copied.
154 a byte array containing up to
156 consecutive bytes from the
163 object, starting with the byte at position
167 if there is an error accessing the
173 sequence
<byte> getBytes
([in]hyper pos
, [in]long length
)
174 raises
(SQLException
);
176 //-------------------------------------------------------------------------
184 instance as a stream.
188 if a database access error occurs.
190 com
::sun
::star
::io
::XInputStream getBinaryStream
()
191 raises
(SQLException
);
192 //-------------------------------------------------------------------------
194 /** determines the byte position at which the specified byte
202 object represents. The
209 the pattern to search
213 if a database access error occurs.
215 hyper position
([in]sequence
<byte> pattern
, [in]hyper start
)
216 raises
(SQLException
);
218 //-------------------------------------------------------------------------
220 /** determines the byte position in the
229 begins. The search begins at position
233 the pattern to search
239 if a database access error occurs.
241 hyper positionOfBlob
([in]XBlob pattern
,[in] hyper start
)
242 raises
(SQLException
);
245 //=============================================================================
249 /*===========================================================================
250 ===========================================================================*/