org.apache.jetspeed.util.interceptors
Class TransactionalMethodReplayDecisionMaker
java.lang.Object
org.apache.jetspeed.util.interceptors.TransactionalMethodReplayDecisionMaker
- All Implemented Interfaces:
- MethodReplayDecisionMaker
public class TransactionalMethodReplayDecisionMaker
- extends java.lang.Object
- implements MethodReplayDecisionMaker
MethodReplayDecisionMaker intended for use with methods marked as
transactional, where the decision to replay the method is based on the
content of the underlying exception from the resource.
- Author:
- a336317, a202225
Method Summary |
protected java.sql.SQLException |
findSQLException(java.lang.Exception exception)
|
void |
setSqlErrorCodes(java.lang.String sqlErrorCodesString)
|
boolean |
shouldReplay(org.aopalliance.intercept.MethodInvocation invocation,
java.lang.Exception exception)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionalMethodReplayDecisionMaker
public TransactionalMethodReplayDecisionMaker()
shouldReplay
public boolean shouldReplay(org.aopalliance.intercept.MethodInvocation invocation,
java.lang.Exception exception)
- Specified by:
shouldReplay
in interface MethodReplayDecisionMaker
- Parameters:
invocation
- The MethodInvocation objectexception
- Exception thrown on previous invocation attempt
- Returns:
- True if we should replay the method, false otherwise
findSQLException
protected java.sql.SQLException findSQLException(java.lang.Exception exception)
setSqlErrorCodes
public void setSqlErrorCodes(java.lang.String sqlErrorCodesString)
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.