/** * Determines the character position at which the specified substring * <code>searchstr</code> appears in the SQL <code>CLOB</code> value * represented by this <code>Clob</code> object. The search * begins at position <code>start</code>. * @param searchstr the substring for which to search * @param start the position at which to begin searching; the first position * is 1 * @return the position at which the substring appears, else -1; the first * position is 1 * @exception SQLException if there is an error accessing the * <code>CLOB</code> value */ public long position(String searchstr, long start) throws SQLException { if (searchstr == null) { return -1; } return position(new ClobImpl(searchstr), start); }
/** * Determines the character position at which the specified substring * <code>searchstr</code> appears in the SQL <code>CLOB</code> value * represented by this <code>Clob</code> object. The search * begins at position <code>start</code>. * @param searchstr the substring for which to search * @param start the position at which to begin searching; the first position * is 1 * @return the position at which the substring appears, else -1; the first * position is 1 * @exception SQLException if there is an error accessing the * <code>CLOB</code> value */ public long position(String searchstr, long start) throws SQLException { if (searchstr == null) { return -1; } return position(new ClobImpl(searchstr), start); }