Class QuerySession

java.lang.Object
   |
   +----SearchSession
           |
           +----QuerySession

public class QuerySession
extends SearchSession
Class to handle the various querries and output the result of the querries


Constructor Index

 o QuerySession(Connection)

Method Index

 o gen_form(ResultSet, PrintWriter, String)
Method to generate the form associated with the student query of above method.
 o printRespectivePage(String, PrintWriter)
Methid to Open the file with name Filename and just print the contents of it!!
 o printStudentInfo(HttpServletRequest, PrintWriter, Connection)
Method to actually print the student information after processing the query from the methods above
 o printTypes(PrintWriter)
Method to print the select Buttons for various types of submissions
 o processData(HttpServletRequest, Connection, PrintWriter)
Method to process the querries being posted from a form.
 o search(PrintWriter, HttpServletRequest)
Method to search for a particular tuple This searches for a particular student's name,roll number department,thesis type,etc along with the faculty member associated with him.

Constructors

 o QuerySession
 public QuerySession(Connection Conn)

Methods

 o processData
 public void processData(HttpServletRequest Req,
                         Connection Conn,
                         PrintWriter out)
Method to process the querries being posted from a form.

Parameters:
Req - HttpServletRequest instance
Conn - Connection instance
out - PrintWriter instance
Returns:
Nothing
Overrides:
processData in class SearchSession
 o printTypes
 public void printTypes(PrintWriter out)
Method to print the select Buttons for various types of submissions

Parameters:
out - PrintWriter
Returns:
Nothing
 o search
 public void search(PrintWriter out,
                    HttpServletRequest req)
Method to search for a particular tuple This searches for a particular student's name,roll number department,thesis type,etc along with the faculty member associated with him. Also prints the various tuples of the faculty member associated with the student

Parameters:
out - PrintWriter instance
req - HttpServletRequest instance
Returns:
Nothing
Overrides:
search in class SearchSession
 o gen_form
 public void gen_form(ResultSet res,
                      PrintWriter out,
                      String query)
Method to generate the form associated with the student query of above method.

Parameters:
res - ResultSet instance
out - PrintWriter instance
query - Query String
Returns:
Nothing
Overrides:
gen_form in class SearchSession
 o printStudentInfo
 public void printStudentInfo(HttpServletRequest req,
                              PrintWriter out,
                              Connection Conn)
Method to actually print the student information after processing the query from the methods above

Parameters:
req - HttpServletRequest instance
out - PrintWriter instance
Conn - Connection instance
Returns:
Nothing
 o printRespectivePage
 public void printRespectivePage(String Filename,
                                 PrintWriter out) throws FileNotFoundException, IOException
Methid to Open the file with name Filename and just print the contents of it!!

Parameters:
Filename - Filename as string
out - PrintWriter instance
Returns:
Nothing