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_XClob_idl__
28 #define __com_sun_star_sdbc_XClob_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 mapping for the SQL
54 that stores a Character Large Object as a column value in a row of
56 The driver implements a
59 <code>locator(CLOB)</code>
63 contains a logical pointer to the SQL
68 object is valid for the duration
69 of the transaction in which it was created.
74 interface provides methods for getting the
77 (Character Large Object) value,
80 value on the client, and for
81 searching for a substring or
88 Methods in the interfaces
89 <type scope="com::sun::star::sdbc">XResultSet</type>
92 <type scope="com::sun::star::sdbc">XPreparedStatement</type>
103 published
interface XClob
: com
::sun
::star
::uno
::XInterface
105 //-------------------------------------------------------------------------
107 /** returns the number of characters in the
114 the length of the CLOB object
116 if a database access error occurs.
118 hyper length
() raises
(SQLException
);
120 //-------------------------------------------------------------------------
122 /** returns a copy of the specified substring in the
131 The substring begins at position <code>pos</code> and has up
134 consecutive characters.
137 the starting position
139 the length of the substring
143 if a database access error occurs.
145 string getSubString
([in]hyper pos
, [in]long length
) raises
(SQLException
);
147 //-------------------------------------------------------------------------
151 contents as a stream.
155 if a database access error occurs.
157 com
::sun
::star
::io
::XInputStream getCharacterStream
() raises
(SQLException
);
159 //-------------------------------------------------------------------------
161 /** determines the character position at which the specified substring
162 <code>searchstr</code>
165 . The search begins at position
171 the starting position
173 the length of the CLOB object
175 if a database access error occurs.
177 hyper position
([in]string searchstr
, [in]long start
)
178 raises
(SQLException
);
180 //-------------------------------------------------------------------------
182 /** determines the position at which the specified
188 object. The search begins at position
194 the starting position
196 the position of the CLOB inside
198 if a database access error occurs.
200 hyper positionOfClob
([in]XClob pattern
, [in]hyper start
)
201 raises
(SQLException
);
204 //=============================================================================
208 /*===========================================================================
209 ===========================================================================*/