Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04

weblogic.jdbc.extensions
Interface DriverInterceptor


public interface DriverInterceptor

Interface for tracing all JDBC calls.


Field Summary
static String INTERFACE_NAME
           
 
Method Summary
 void postInvokeCallback(Object vendorObj, String methodName, Object[] params, Object ret)
          WebLogic Server will invoke this method AFTER it calls a method in the JDBC driver.
 void postInvokeExceptionCallback(Object vendorObj, String methodName, Object[] params, Throwable error)
          WebLogic Server will invoke this method AFTER it calls a method in the JDBC driver.
 Object preInvokeCallback(Object vendorObj, String methodName, Object[] params)
          WebLogic Server will invoke this method BEFORE it calls a method in the JDBC driver.
 

Field Detail

INTERFACE_NAME

static final String INTERFACE_NAME
See Also:
Constant Field Values
Method Detail

preInvokeCallback

Object preInvokeCallback(Object vendorObj,
                         String methodName,
                         Object[] params)
                         throws SQLException
WebLogic Server will invoke this method BEFORE it calls a method in the JDBC driver.

Parameters:
vendorObj - object who's method is being invoked
methodName - name of method being invoked
args - arguments to the method being invoked
Returns:
null proceed with method invokation
Throws:
SQLException - WLS will SKIP method invokation, and will rethrow this exception

postInvokeCallback

void postInvokeCallback(Object vendorObj,
                        String methodName,
                        Object[] params,
                        Object ret)
                        throws SQLException
WebLogic Server will invoke this method AFTER it calls a method in the JDBC driver.

Parameters:
vendorObj - object who's method was invoked
methodName - name of invoked method
args - arguments to the invoked method
ret - output of the invoked method
Throws:
SQLException - WLS will rethrow this exception

postInvokeExceptionCallback

void postInvokeExceptionCallback(Object vendorObj,
                                 String methodName,
                                 Object[] params,
                                 Throwable error)
                                 throws SQLException
WebLogic Server will invoke this method AFTER it calls a method in the JDBC driver.

Parameters:
vendorObj - object who's method was invoked
methodName - name of invoked method
args - arguments to the invoked method
error - exception thrown from the invoked method
Throws:
SQLException - WLS will rethrow this exception

Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04