//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: Clob(java.sql.Clob clob) throws java.sql.SQLException internal Clob(java.sql.Clob clob) { long length = clob.length(); if (length >= 0) { value = clob.getSubString(1, (int)length); } }
/// <summary> /// Retrieves a copy of the specified substring in the <c>CLOB</c> /// value designated by this <c>IClob</c> object. The substring begins /// at position <c>pos</c> and has up to <c>length</c> consecutive /// characters. /// </summary> /// <param name="pos"> /// The first character of the substring to be extracted. /// The first character is at position 1. /// </param> /// <param name="length"> /// The number of consecutive characters to be copied /// </param> /// <returns> /// A character sequence that is the specified substring in the <c>CLOB</c> /// value designated by this <c>IClob</c> object. /// </returns> /// <exception cref="HsqlDataSourceException"> /// If there is an error accessing the <c>CLOB</c> value. /// </exception> /// <exception cref="ArgumentOutOfRangeException"> /// When <c>pos</c> is less than 1; /// <c>pos</c> is greater than <c>this.Length</c>; /// <c>length</c> is less than zero; /// <c>length</c> is greater than <c>this.Length</c> - <c>pos - 1</c> /// </exception> string IClob.GetSubString(long pos, int length) { lock (this) { CheckFree(); try { return(m_clob.getSubString(pos, length)); } catch (java.sql.SQLException ex) { throw new HsqlDataSourceException(ex); } catch (java.lang.Exception e) { throw new HsqlDataSourceException(e.toString(), e); } } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public long position(java.sql.Clob searchstr, long start) throws java.sql.SQLException public virtual long position(java.sql.Clob searchstr, long start) { return(position(searchstr.getSubString(1, (int)searchstr.length()), start--)); }