bioroot.strain
Class StrainSpreadSheet
java.lang.Object
  
javax.servlet.GenericServlet
      
javax.servlet.http.HttpServlet
          
bioroot.strain.StrainSpreadSheet
- All Implemented Interfaces: 
 - java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
 
- public class StrainSpreadSheet
- extends javax.servlet.http.HttpServlet
  
- Author:
 
  - nix
 
- See Also:
 - Serialized Form
 
 
| 
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 StrainBean[] | 
fetchStrainBeans(java.lang.String sql,
                 DBUtil bioRoot)
 
          Build StrainBean[] from Strain table in database. | 
static java.lang.String | 
fetchStrainTableRows(UserBean userBean,
                     StrainBean[] 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 | 
makeAndSetStrainBeans(javax.servlet.http.HttpSession session,
                      DBUtil bioRoot,
                      UserBean userBean)
 
          Makes an array of StrainBeans based on Users StrainPreferences and sets them in the session. | 
static StrainBean[] | 
orderStrains(java.lang.String featureName,
             UserBean userBean,
             StrainBean[] beans,
             DBUtil bioRoot)
 
          Orders strains, 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 | 
 
StrainSpreadSheet
public StrainSpreadSheet()
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
 
makeAndSetStrainBeans
public static void makeAndSetStrainBeans(javax.servlet.http.HttpSession session,
                                         DBUtil bioRoot,
                                         UserBean userBean)
- Makes an array of StrainBeans based on Users StrainPreferences and sets them in the session.
 
 
fetchStrainTableRows
public static java.lang.String fetchStrainTableRows(UserBean userBean,
                                                    StrainBean[] 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.
 
 
fetchStrainBeans
public static StrainBean[] fetchStrainBeans(java.lang.String sql,
                                            DBUtil bioRoot)
- Build StrainBean[] from Strain table in database.
 
 
orderStrains
public static StrainBean[] orderStrains(java.lang.String featureName,
                                        UserBean userBean,
                                        StrainBean[] beans,
                                        DBUtil bioRoot)
- Orders strains, sort of nasty, can't figure another way, reflection is way too slow.