Utils.MySQL
Class MySQLQuery

java.lang.Object
  extended by Utils.MySQL.MySQLQuery

public class MySQLQuery
extends java.lang.Object

Represents a MySQL select query.


Constructor Summary
MySQLQuery(MySQLConnector conn)
          Basic constructor
 
Method Summary
 void close()
          Closes a previously issued select query, releasing JDBC resources.
 java.sql.ResultSet execute(java.lang.String query)
          Executes a select query on this connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLQuery

public MySQLQuery(MySQLConnector conn)
Basic constructor

Parameters:
conn - The DB connection.
Method Detail

execute

public java.sql.ResultSet execute(java.lang.String query)
Executes a select query on this connection.

Parameters:
query - The string containing the query to be executed.
Returns:
The result of the given query; if the connection times out, resets the connection and re-runs the query.

close

public void close()
Closes a previously issued select query, releasing JDBC resources.