com.intersys.jsp
Class RuntimeEnvironment
java.lang.Object
com.intersys.jsp.RuntimeEnvironment
- All Implemented Interfaces:
- EventListener, HttpSessionBindingListener
- public class RuntimeEnvironment
- extends Object
- implements HttpSessionBindingListener
An instance of this class is stored in HTTP session. Contains a set
of utility methods.
Method Summary |
int |
getCountSQL(String table)
|
Database |
getDBConnection()
|
HistoryFrame |
getHistoryFrame(int id)
|
int |
getHistoryFrame(PageContext p)
|
String |
getID()
|
int |
getMaxHistoryFrame()
|
int |
getTableCount(String table)
|
com.intersys.jsp.RuntimeEnvironment.TableInfo |
getTableInfo(String table)
|
String |
isChildTable(String table,
String property)
|
String |
mangleViewName(String table,
int frame)
|
void |
registerContext(PageContext p,
String name,
String table)
|
void |
registerView(int h,
String viewName,
String context,
PageContext p)
|
void |
setDBConnection(Database db)
|
void |
setHistoryFrame(int h,
PageContext p)
|
void |
setMaxHistoryFrame(int h)
|
boolean |
validateChildTableProperty(String table,
String property,
String key)
|
boolean |
validateProperty(String table,
String property)
|
void |
valueBound(HttpSessionBindingEvent event)
|
void |
valueUnbound(HttpSessionBindingEvent event)
|
RuntimeEnvironment
public RuntimeEnvironment(PageContext p)
throws JspException
getID
public String getID()
mangleViewName
public String mangleViewName(String table,
int frame)
registerView
public final void registerView(int h,
String viewName,
String context,
PageContext p)
throws JspException
- Throws:
JspException
registerContext
public void registerContext(PageContext p,
String name,
String table)
throws JspException
- Throws:
JspException
getHistoryFrame
public HistoryFrame getHistoryFrame(int id)
getHistoryFrame
public int getHistoryFrame(PageContext p)
throws JspException
- Throws:
JspException
setHistoryFrame
public void setHistoryFrame(int h,
PageContext p)
throws JspException
- Throws:
JspException
getMaxHistoryFrame
public int getMaxHistoryFrame()
setMaxHistoryFrame
public void setMaxHistoryFrame(int h)
getDBConnection
public Database getDBConnection()
setDBConnection
public void setDBConnection(Database db)
getTableCount
public int getTableCount(String table)
throws Exception
- Throws:
Exception
getCountSQL
public int getCountSQL(String table)
throws JspException
- Throws:
JspException
validateProperty
public boolean validateProperty(String table,
String property)
throws JspException
- Throws:
JspException
isChildTable
public String isChildTable(String table,
String property)
throws JspException
- Throws:
JspException
validateChildTableProperty
public boolean validateChildTableProperty(String table,
String property,
String key)
throws JspException
- Throws:
JspException
getTableInfo
public com.intersys.jsp.RuntimeEnvironment.TableInfo getTableInfo(String table)
throws JspException
- Throws:
JspException
valueBound
public void valueBound(HttpSessionBindingEvent event)
- Specified by:
valueBound
in interface HttpSessionBindingListener
valueUnbound
public void valueUnbound(HttpSessionBindingEvent event)
- Specified by:
valueUnbound
in interface HttpSessionBindingListener