stdmql.lang
Class Query

java.lang.Object
  extended by stdmql.lang.Query

public class Query
extends java.lang.Object

It is the result of a query execution and contains some information and utilities


Field Summary
 java.lang.String query
          The original query executed
 java.sql.ResultSet res
          The resultset of the query execution
 
Constructor Summary
Query()
          Void constructor
Query(java.lang.String text, java.sql.ResultSet object)
           
 
Method Summary
 void close()
          Close the resultset and the connection attachet to it.
 java.sql.ResultSet getFirstLine(DBManager dbManager)
           
 void renew(DBManager dbManager)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

res

public java.sql.ResultSet res
The resultset of the query execution


query

public java.lang.String query
The original query executed

Constructor Detail

Query

public Query()
Void constructor


Query

public Query(java.lang.String text,
             java.sql.ResultSet object)
Parameters:
text - the string representation of the query
object - the resultset Create the instance setting the query and the resultset fields
Method Detail

getFirstLine

public java.sql.ResultSet getFirstLine(DBManager dbManager)
Parameters:
dbManager -
Returns:
The temporary resultset Get a new resultset which contains only the first line of the result

renew

public void renew(DBManager dbManager)
Parameters:
dbManager - Renew the resultset of the instance executing again the query

close

public void close()
Close the resultset and the connection attachet to it.