|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.filters.TransactionFilter
public class TransactionFilter
Wraps the request in a transaction. All database calls for the request will either succeed together or fail.
| Constructor Summary | |
|---|---|
TransactionFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Any cleanup for the filter. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain nextFilter)
Wrap the request in a transaction. |
void |
init(FilterConfig config)
Lookup java:comp/UserTransaction and cache the results. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionFilter()
| Method Detail |
|---|
public void init(FilterConfig config)
throws ServletException
init in interface FilterServletException
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain nextFilter)
throws ServletException,
java.io.IOException
doFilter in interface Filterrequest - the servlet requestresponse - the servlet responsenextFilter - the next filter in the chain
ServletException
java.io.IOExceptionpublic void destroy()
destroy in interface Filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||