beforeFirst() is a method of the ResultSet class since 1.2; se below:

beforeFirst

public void beforeFirst() throws SQLException
        Moves the cursor to the front of this ResultSet object, just before the
first row. This method has      no effect if the result set contains no rows.
        Throws:
                SQLException - if a database access error occurs or the result set 
type is
TYPE_FORWARD_ONLY
        Since:
                1.2
        See Also:
                What Is in the JDBC 2.0 API

taken from my JDK1.3 API documentation.

[ Matthias Carlsson ]
[ Programmer (Java, CGI/Perl, Javascript, HTML) ] [ Web Designer ]
[ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]

-----Ursprungligt meddelande-----
Fran: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]For
[EMAIL PROTECTED]
Skickat: den 31 augusti 2000 19:16
Till: [EMAIL PROTECTED]
Amne: Re: SV: how to check ResultSet is null or not?


Hi Matthias,

In your response, you indicated that you wrote a utility class named
Utilities. There is a statement "rs.beforeFirst();" which I could not find
in
the ResultSet class and also generates a compilation error. Am I missing
some
codes here? Where did you get the beforeFirst() method?

Thank you,
Eva

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to