Class PriorityManager

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----PriorityManager

public class PriorityManager
extends HttpServlet
implements SingleThreadModel

Constructor Index

 o PriorityManager()

Method Index

 o doGet(HttpServletRequest, HttpServletResponse)
this does it .
 o getCustomerTag(String)
Function that returns the customer tag associated with an emailid of the customer whose information is present in the database .
 o init(ServletConfig)
 o isInfoPresent(String)
Function that checks whether any information is present in the database corresponding to the customer with a given emailid .
 o splitarrange(String)
Function that takes a tuple from the prioritytuples String array above and form a part of query statement with the tablename , fieldname and fieldvalue

Constructors

 o PriorityManager
 public PriorityManager()

Methods

 o init
 public void init(ServletConfig config) throws ServletException
Overrides:
init in class GenericServlet
 o doGet
 public void doGet(HttpServletRequest request,
                   HttpServletResponse response) throws ServletException, IOException
this does it .

Overrides:
doGet in class HttpServlet
 o splitarrange
 public String splitarrange(String prioritytuples)
Function that takes a tuple from the prioritytuples String array above and form a part of query statement with the tablename , fieldname and fieldvalue

Parameters:
String - prioritytuples[i] -
Returns:
String partofquery - arranged form
 o getCustomerTag
 public String getCustomerTag(String emailid)
Function that returns the customer tag associated with an emailid of the customer whose information is present in the database .

Parameters:
String - emailid - takes the emailid of a customer email
Returns:
String customertag - the customer tag
 o isInfoPresent
 public boolean isInfoPresent(String emailid)
Function that checks whether any information is present in the database corresponding to the customer with a given emailid .

Parameters:
String - emailid - emailid of a customer service request email
Returns:
boolean result - result