bioroot.oligo
Class OligoSpreadSheet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bybioroot.oligo.OligoSpreadSheet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class OligoSpreadSheet
extends javax.servlet.http.HttpServlet

Author:
nix
See Also:
Serialized Form

Constructor Summary
OligoSpreadSheet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static OligoBean[] fetchOligoBeans(java.lang.String sql, DBUtil bioRoot)
          Build OligoBean[] from Oligo table in database.
static java.lang.String fetchOligoTableRows(Preference pref, OligoBean[] beans, int[] startStop, DBUtil bioRoot, boolean checked, boolean allTabs)
          Returns table rows for every oligo according to an OligoPreference, if allTabs==true, then all features are returned in a tab delimited format, otherwise its HTML.
static void makeAndSetOligoBeans(javax.servlet.http.HttpSession session, DBUtil bioRoot, UserBean userBean)
          Makes an array of OligoBeans based on Users OligoPreferences and sets them in the session.
static OligoBean[] orderOligos(java.lang.String featureName, Preference pref, OligoBean[] beans, DBUtil bioRoot)
          Orders oligos, sort of nasty, can't figure another way, reflection is way too slow.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OligoSpreadSheet

public OligoSpreadSheet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

makeAndSetOligoBeans

public static void makeAndSetOligoBeans(javax.servlet.http.HttpSession session,
                                        DBUtil bioRoot,
                                        UserBean userBean)
Makes an array of OligoBeans based on Users OligoPreferences and sets them in the session.


fetchOligoTableRows

public static java.lang.String fetchOligoTableRows(Preference pref,
                                                   OligoBean[] beans,
                                                   int[] startStop,
                                                   DBUtil bioRoot,
                                                   boolean checked,
                                                   boolean allTabs)
Returns table rows for every oligo according to an OligoPreference, if allTabs==true, then all features are returned in a tab delimited format, otherwise its HTML. Set startStop to 0,0 if you want everything.


fetchOligoBeans

public static OligoBean[] fetchOligoBeans(java.lang.String sql,
                                          DBUtil bioRoot)
Build OligoBean[] from Oligo table in database.


orderOligos

public static OligoBean[] orderOligos(java.lang.String featureName,
                                      Preference pref,
                                      OligoBean[] beans,
                                      DBUtil bioRoot)
Orders oligos, sort of nasty, can't figure another way, reflection is way too slow.