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 .
19 #ifndef __com_sun_star_sdbc_XClob_idl__
20 #define __com_sun_star_sdbc_XClob_idl__
22 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 module com
{ module sun
{ module star
{ module io
{
25 published
interface XInputStream
;
28 #include
<com
/sun
/star
/sdbc
/SQLException.idl
>
30 module com
{ module sun
{ module star
{ module sdbc
{
33 /** is the mapping for the SQL
42 that stores a Character Large Object as a column value in a row of
44 The driver implements a
47 <code>locator(CLOB)</code>
51 contains a logical pointer to the SQL
56 object is valid for the duration
57 of the transaction in which it was created.
62 interface provides methods for getting the
65 (Character Large Object) value,
68 value on the client, and for
69 searching for a substring or
76 Methods in the interfaces
77 com::sun::star::sdbc::XResultSet
80 com::sun::star::sdbc::XPreparedStatement
85 allow a programmer to access the SQL <code>CLOB</code>.
88 published
interface XClob
: com
::sun
::star
::uno
::XInterface
91 /** returns the number of characters in the
98 the length of the CLOB object
100 if a database access error occurs.
102 hyper length
() raises
(SQLException
);
105 /** returns a copy of the specified substring in the
114 The substring begins at position <code>pos</code> and has up
117 consecutive characters.
120 the starting position
122 the length of the substring
126 if a database access error occurs.
128 string getSubString
([in]hyper pos
, [in]long length
) raises
(SQLException
);
133 contents as a stream.
137 if a database access error occurs.
139 com
::sun
::star
::io
::XInputStream getCharacterStream
() raises
(SQLException
);
142 /** determines the character position at which the specified substring
143 <code>searchstr</code>
146 The search begins at position <code>start</code>.
151 the starting position
153 the length of the CLOB object
155 if a database access error occurs.
157 hyper position
([in]string searchstr
, [in]long start
)
158 raises
(SQLException
);
161 /** determines the position at which the specified
168 The search begins at position <code>start</code>.
172 the starting position
174 the position of the CLOB inside
176 if a database access error occurs.
178 hyper positionOfClob
([in]XClob pattern
, [in]hyper start
)
179 raises
(SQLException
);
185 /*===========================================================================
186 ===========================================================================*/
189 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */