executeQuery() in Statement class ....

From: Raquel (raquel_at_nospam.com)
Date: 06/18/04


Date: Fri, 18 Jun 2004 01:33:36 -0400

This piece of code in a JDBC program executes fine:

   Statement st = conn.createStatement();
   ResultSet rec = st.executeQuery( "SELECT DEPTNO FROM TABLE1");

But when I see the documentation for "Statement" at the following URL, it
does not show executeQuery() as a method at all in Statement class. The
closest method available is execute(). So, how does executeQuery work
successfully?

http://java.sun.com/j2se/1.4.2/docs/api/java/beans/Statement.html

Actually I am confused by the description of execute(). It says:

The execute method finds a method whose name is the same as the methodName
property, and invokes the method on the target.

Could someone explain to me what this is? Probably this is the answer to
my original question.

TIA
Raquel.



Relevant Pages

  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
    (comp.lang.perl.misc)
  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is no further reference to a "double fork" (except in the ...
    (comp.lang.perl.misc)
  • Re: Why forth is not popular
    ... CHForth and all other Forths ... distributed by the Dutch FIG have truly excellent documentation and tutorials. ... > error, you execute your marker, make changes to your definition and run ... but Perl doesn't claim to be a compiler. ...
    (comp.lang.forth)
  • Re: Questions about Coding Practices
    ... the trinary conditional operator compiles the entire statement before it actually execute them. ... Use extensive external documentation for API documentation. ... What I _would_ recommend eschewing, and perhaps this is what the book means also, are comments _within_ the method body. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: kernel 2.4.16
    ... I checked the documentation and it says that I need to do an insmod on the ... says that I should execute the createdev.sh to create the devices. ... cases and see how does LTT generate traces. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)