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 .
20 module com
{ module sun
{ module star
{ module io
{
21 published
interface XInputStream
;
24 module com
{ module sun
{ module star
{ module sdbc
{
27 /** is the mapping for the SQL
36 that stores a Character Large Object as a column value in a row of
38 The driver implements a
41 <code>locator(CLOB)</code>
45 contains a logical pointer to the SQL
50 object is valid for the duration
51 of the transaction in which it was created.
56 interface provides methods for getting the
59 (Character Large Object) value,
62 value on the client, and for
63 searching for a substring or
70 Methods in the interfaces
71 com::sun::star::sdbc::XResultSet
74 com::sun::star::sdbc::XPreparedStatement
79 allow a programmer to access the SQL <code>CLOB</code>.
82 published
interface XClob
: com
::sun
::star
::uno
::XInterface
85 /** returns the number of characters in the
92 the length of the CLOB object
94 if a database access error occurs.
96 hyper length
() raises
(SQLException
);
99 /** returns a copy of the specified substring in the
108 The substring begins at position <code>pos</code> and has up
111 consecutive characters.
114 the starting position, 1-based
116 the length of the substring
120 if a database access error occurs.
122 string getSubString
([in]hyper pos
, [in]long length
) raises
(SQLException
);
127 contents as a stream.
131 if a database access error occurs.
133 com
::sun
::star
::io
::XInputStream getCharacterStream
() raises
(SQLException
);
136 /** determines the character position at which the specified substring
137 <code>searchstr</code>
140 The search begins at position <code>start</code>.
145 the starting position
147 the length of the CLOB object
149 if a database access error occurs.
151 hyper position
([in]string searchstr
, [in]long start
)
152 raises
(SQLException
);
155 /** determines the position at which the specified
162 The search begins at position <code>start</code>.
166 the starting position
168 the position of the CLOB inside
170 if a database access error occurs.
172 hyper positionOfClob
([in]XClob pattern
, [in]hyper start
)
173 raises
(SQLException
);
179 /*===========================================================================
180 ===========================================================================*/
182 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */