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
-
QuerySession(Connection)
-
-
gen_form(ResultSet, PrintWriter, String)
- Method to generate the form associated with the student query
of above method.
-
printRespectivePage(String, PrintWriter)
- Methid to Open the file with name Filename and just
print the contents of it!!
-
printStudentInfo(HttpServletRequest, PrintWriter, Connection)
- Method to actually print the student information after processing
the query from the methods above
-
printTypes(PrintWriter)
- Method to print the select Buttons for various types of submissions
-
processData(HttpServletRequest, Connection, PrintWriter)
- Method to process the querries being posted from a form.
-
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.
QuerySession
public QuerySession(Connection Conn)
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
printTypes
public void printTypes(PrintWriter out)
- Method to print the select Buttons for various types of submissions
- Parameters:
- out - PrintWriter
- Returns:
- Nothing
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
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
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
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