com.ca.jcs.jdbc
Class JDBCExceptionMappingProxy
java.lang.Object
com.ca.jcs.processor.ConnectorProcessorProxyHandler
com.ca.jcs.jdbc.JDBCExceptionMappingProxy
- All Implemented Interfaces:
- InvocationHandler
public class JDBCExceptionMappingProxy
- extends ConnectorProcessorProxyHandler
Proxy that wraps the provided JDBCMetaConnector to the handle
mapping of DataAccessException hierarchy used by Spring
JDBC into the LdapNamingException hierarchy imposed on connectors
running inside the JCS.
|
Field Summary |
static int |
DB2_INPUT_TRUNCATION_CODE
As per DB2 9.1 documentation:
ODBC specifies that string data can be truncated on input or output with the appropriate SQLSTATE
On input, DB2 rejects string truncation with a negative SQLCODE (-302) and SQLSTATE 22001. |
static int |
DB2_INPUT_TRUNCATION_STATE
|
static String[] |
nameNotFoundExcludeList
List of strings to exclude from being treated as a name not found exception |
| Methods inherited from class com.ca.jcs.processor.ConnectorProcessorProxyHandler |
createAttributeStyleOpProcessorProxy, createMethodStyleOpProcessorProxy, createScriptStyleOpProcessorProxy, getConnector, getOperation, getTarget, getTargetAttributeStyleOpProcessor, getTargetMethodStyleOpProcessor, getTargetScriptStyleOpProcessor, logError, proxyToString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2_INPUT_TRUNCATION_CODE
public static final int DB2_INPUT_TRUNCATION_CODE
- As per DB2 9.1 documentation:
ODBC specifies that string data can be truncated on input or output with the appropriate SQLSTATE
On input, DB2 rejects string truncation with a negative SQLCODE (-302) and SQLSTATE 22001.
- See Also:
- Constant Field Values
DB2_INPUT_TRUNCATION_STATE
public static final int DB2_INPUT_TRUNCATION_STATE
- See Also:
- Constant Field Values
nameNotFoundExcludeList
public static final String[] nameNotFoundExcludeList
- List of strings to exclude from being treated as a name not found exception
JDBCExceptionMappingProxy
public JDBCExceptionMappingProxy(Connector connector,
AttributeStyleOpProcessor proc)
JDBCExceptionMappingProxy
public JDBCExceptionMappingProxy(Connector connector,
MethodStyleOpProcessor proc)
JDBCExceptionMappingProxy
public JDBCExceptionMappingProxy(Connector connector,
ScriptStyleOpProcessor proc)
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Description copied from class:
ConnectorProcessorProxyHandler
- This is where the wrapping logic (resiliency etc) is actually implemented...
- Specified by:
invoke in interface InvocationHandler- Specified by:
invoke in class ConnectorProcessorProxyHandler
- Throws:
Throwable
Created 2011-07-14 13:27 EST