|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbforms.event.datalist.dao.DataSourceSessionList
public class DataSourceSessionList
Holds a list of DataSourceFactory object in the session context. Needed by the navigation events to store the datasource by a per session mode. So it is possible to reuse the data between different calls and it's not neccessary to refetch again.
| Method Summary | |
|---|---|
DataSourceFactory |
get(Table table,
HttpServletRequest request)
Get a DataSourceFactory object. |
static DataSourceSessionList |
getInstance(HttpServletRequest request)
Returns an unique instance of this class for each session |
void |
put(Table table,
HttpServletRequest request,
DataSourceFactory ds)
Adds a DataSourceFactory object to the list. |
DataSourceFactory |
remove(Table table,
HttpServletRequest request)
Remove a DataSource object from the list. |
void |
valueBound(HttpSessionBindingEvent event)
Receive notification that this session will be passivated. |
void |
valueUnbound(HttpSessionBindingEvent event)
Receive notification that this session was activated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DataSourceSessionList getInstance(HttpServletRequest request)
request - the request object
public DataSourceFactory get(Table table,
HttpServletRequest request)
table - the table objectrequest - the request object
public void put(Table table,
HttpServletRequest request,
DataSourceFactory ds)
throws SQLException
table - the table objectrequest - the request objectds - the DataSourceFactory object to store into the list
SQLException - DOCUMENT ME!
public DataSourceFactory remove(Table table,
HttpServletRequest request)
table - the table objectrequest - the request object
public void valueBound(HttpSessionBindingEvent event)
valueBound in interface HttpSessionBindingListenerevent - The session event that has occurredpublic void valueUnbound(HttpSessionBindingEvent event)
valueUnbound in interface HttpSessionBindingListenerevent - The session event that has occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||