com.intersys.jsp
Class DBHelper

java.lang.Object
  extended bycom.intersys.jsp.DBHelper

public class DBHelper
extends Object

Contains a set of static utility methods.


Field Summary
static String HISTORY_ATTRIBUTE
           
static String HISTORY_PARAMETER
           
static String RTENV_ATTRIBUTE
           
 
Constructor Summary
DBHelper()
           
 
Method Summary
static String createSQLwhere(PageContext p, RuntimeEnvironment rt, String table, Set childTables, String view)
           
static Set getChildTables(PageContext p, RuntimeEnvironment rt, String table)
           
static Database getDBConnectionFromSession(PageContext p)
           
static int getDebugLevel(HttpSession session)
           
static int getDebugLevel(PageContext p)
           
static int getDefaultDebugLevel()
           
static Set getExtraTables(PageContext p, RuntimeEnvironment rt)
           
static int getHistoryFromRequest(PageContext p)
           
static int getHistoryFromSession(PageContext p)
           
static int getMaxHistoryFromSession(PageContext p)
           
static RuntimeEnvironment getRTEnvironment(PageContext p)
           
static String getURI(PageContext p)
           
static String getURL(PageContext p)
           
static void removeDBConnectionFromSession(PageContext p)
           
static Object retrieveFromSession(PageContext p, String key)
           
static void setDBConnectionInSession(PageContext p, Database db)
           
static void setHistoryInSession(PageContext p, int h)
           
static void storeInSession(PageContext p, String key, Object obj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RTENV_ATTRIBUTE

public static final String RTENV_ATTRIBUTE
See Also:
Constant Field Values

HISTORY_PARAMETER

public static final String HISTORY_PARAMETER
See Also:
Constant Field Values

HISTORY_ATTRIBUTE

public static final String HISTORY_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

DBHelper

public DBHelper()
Method Detail

getHistoryFromRequest

public static int getHistoryFromRequest(PageContext p)
                                 throws JspException
Throws:
JspException

getURI

public static String getURI(PageContext p)
                     throws JspException
Throws:
JspException

getURL

public static String getURL(PageContext p)
                     throws JspException
Throws:
JspException

getHistoryFromSession

public static int getHistoryFromSession(PageContext p)
                                 throws JspException
Throws:
JspException

getMaxHistoryFromSession

public static int getMaxHistoryFromSession(PageContext p)
                                    throws JspException
Throws:
JspException

setHistoryInSession

public static void setHistoryInSession(PageContext p,
                                       int h)
                                throws JspException
Throws:
JspException

getDBConnectionFromSession

public static Database getDBConnectionFromSession(PageContext p)
                                           throws JspException
Throws:
JspException

setDBConnectionInSession

public static void setDBConnectionInSession(PageContext p,
                                            Database db)
                                     throws JspException
Throws:
JspException

removeDBConnectionFromSession

public static void removeDBConnectionFromSession(PageContext p)
                                          throws JspException
Throws:
JspException

getExtraTables

public static Set getExtraTables(PageContext p,
                                 RuntimeEnvironment rt)
                          throws JspException
Throws:
JspException

getChildTables

public static Set getChildTables(PageContext p,
                                 RuntimeEnvironment rt,
                                 String table)
                          throws JspException
Throws:
JspException

createSQLwhere

public static String createSQLwhere(PageContext p,
                                    RuntimeEnvironment rt,
                                    String table,
                                    Set childTables,
                                    String view)
                             throws JspException
Throws:
JspException

retrieveFromSession

public static Object retrieveFromSession(PageContext p,
                                         String key)
                                  throws JspException
Throws:
JspException

storeInSession

public static void storeInSession(PageContext p,
                                  String key,
                                  Object obj)
                           throws JspException
Throws:
JspException

getRTEnvironment

public static RuntimeEnvironment getRTEnvironment(PageContext p)
                                           throws JspException
Throws:
JspException

getDebugLevel

public static int getDebugLevel(PageContext p)
                         throws JspException
Throws:
JspException

getDebugLevel

public static int getDebugLevel(HttpSession session)

getDefaultDebugLevel

public static int getDefaultDebugLevel()