bioroot.plasmid
Class PlasmidSpreadSheet

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

public class PlasmidSpreadSheet
extends javax.servlet.http.HttpServlet

Author:
nix
See Also:
Serialized Form

Constructor Summary
PlasmidSpreadSheet()
           
 
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 PlasmidBean[] fetchPlasmidBeans(java.lang.String sql, DBUtil bioRoot)
          Build PlasmidBean[] from Plasmid table in database.
static java.lang.String fetchPlasmidTableRows(UserBean userBean, PlasmidBean[] beans, int[] startStop, DBUtil bioRoot, boolean checked, boolean allTabs)
          Returns table rows for every oligo according to a Preference, if allTabs==true, then all features are returned in a tab delimited format, otherwise its HTML.
static void makeAndSetPlasmidBeans(javax.servlet.http.HttpSession session, DBUtil bioRoot, UserBean userBean)
          Makes an array of PlasmidBeans based on Users PlasmidPreferences and sets them in the session.
static PlasmidBean[] orderPlasmids(java.lang.String featureName, UserBean userBean, PlasmidBean[] beans, DBUtil bioRoot)
          Orders plasmids, 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

PlasmidSpreadSheet

public PlasmidSpreadSheet()
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

makeAndSetPlasmidBeans

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


fetchPlasmidTableRows

public static java.lang.String fetchPlasmidTableRows(UserBean userBean,
                                                     PlasmidBean[] beans,
                                                     int[] startStop,
                                                     DBUtil bioRoot,
                                                     boolean checked,
                                                     boolean allTabs)
Returns table rows for every oligo according to a Preference, 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.


fetchPlasmidBeans

public static PlasmidBean[] fetchPlasmidBeans(java.lang.String sql,
                                              DBUtil bioRoot)
Build PlasmidBean[] from Plasmid table in database.


orderPlasmids

public static PlasmidBean[] orderPlasmids(java.lang.String featureName,
                                          UserBean userBean,
                                          PlasmidBean[] beans,
                                          DBUtil bioRoot)
Orders plasmids, sort of nasty, can't figure another way, reflection is way too slow.