net.sf.extjwnl.dictionary.database
Class Query

java.lang.Object
  extended by net.sf.extjwnl.dictionary.database.Query

public class Query
extends Object

Helper class to manage queries.

Author:
John Didion

Constructor Summary
Query(String sql, Connection conn)
           
 
Method Summary
 void close()
           
 ResultSet execute()
           
 Connection getConnection()
           
 ResultSet getResults()
           
 PreparedStatement getStatement()
           
 boolean isExecuted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query(String sql,
             Connection conn)
Method Detail

execute

public ResultSet execute()
                  throws SQLException
Throws:
SQLException

isExecuted

public boolean isExecuted()

getConnection

public Connection getConnection()

getStatement

public PreparedStatement getStatement()
                               throws SQLException
Throws:
SQLException

getResults

public ResultSet getResults()

close

public void close()


Copyright © 2011. All Rights Reserved.