Exemple #1
0
        /// <summary>
        /// Retrieves the <c>CLOB</c> value designated by this <c>IClob</c>
        /// object as a <see cref="TextReader"/> object.
        /// </summary>
        /// <returns>
        /// A <see cref="TextReader"/> containing the <c>CLOB</c> data.
        /// </returns>
        /// <exception cref="HsqlDataSourceException">
        /// If there is an error accessing the <c>CLOB</c> value.
        /// </exception>
        TextReader IClob.GetCharacterStream()
        {
            lock (this)
            {
                CheckFree();

                try
                {
                    return(new JavaReaderWrapper(m_clob.getCharacterStream()));
                }
                catch (java.sql.SQLException se)
                {
                    throw new HsqlDataSourceException(se);
                }
                catch (java.lang.Exception e)
                {
                    throw new HsqlDataSourceException(e.toString(), e);
                }
            }
        }