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: XClob.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_XClob_idl__
31 #define __com_sun_star_sdbc_XClob_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 mapping for the SQL
57 that stores a Character Large Object as a column value in a row of
59 The driver implements a
62 <code>locator(CLOB)</code>
66 contains a logical pointer to the SQL
71 object is valid for the duration
72 of the transaction in which it was created.
77 interface provides methods for getting the
80 (Character Large Object) value,
83 value on the client, and for
84 searching for a substring or
91 Methods in the interfaces
92 <type scope="com::sun::star::sdbc">XResultSet</type>
95 <type scope="com::sun::star::sdbc">XPreparedStatement</type>
100 allow a programmer to
106 published
interface XClob
: com
::sun
::star
::uno
::XInterface
108 //-------------------------------------------------------------------------
110 /** returns the number of characters in the
117 the length of the CLOB object
119 if a database access error occurs.
121 hyper length
() raises
(SQLException
);
123 //-------------------------------------------------------------------------
125 /** returns a copy of the specified substring in the
134 The substring begins at position <code>pos</code> and has up
137 consecutive characters.
140 the starting position
142 the length of the substring
146 if a database access error occurs.
148 string getSubString
([in]hyper pos
, [in]long length
) raises
(SQLException
);
150 //-------------------------------------------------------------------------
154 contents as a stream.
158 if a database access error occurs.
160 com
::sun
::star
::io
::XInputStream getCharacterStream
() raises
(SQLException
);
162 //-------------------------------------------------------------------------
164 /** determines the character position at which the specified substring
165 <code>searchstr</code>
168 . The search begins at position
174 the starting position
176 the length of the CLOB object
178 if a database access error occurs.
180 hyper position
([in]string searchstr
, [in]long start
)
181 raises
(SQLException
);
183 //-------------------------------------------------------------------------
185 /** determines the position at which the specified
191 object. The search begins at position
197 the starting position
199 the position of the CLOB inside
201 if a database access error occurs.
203 hyper positionOfClob
([in]XClob pattern
, [in]hyper start
)
204 raises
(SQLException
);
207 //=============================================================================
211 /*===========================================================================
212 ===========================================================================*/