|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.resource.internal.cm.sql.SQLConnectionInvocationHandler
public class SQLConnectionInvocationHandler
SQL Connection Wrapper
Constructor Summary | |
---|---|
SQLConnectionInvocationHandler(Object pConn,
ManagedConnectionInfo pMci,
SQLManager pConman,
org.objectweb.util.monolog.api.Logger pTrace)
PreparedStatement wrapper |
Method Summary | |
---|---|
static Object |
createSQLWrapper(Object pConn,
ManagedConnectionInfo pMci,
SQLManager pConman,
org.objectweb.util.monolog.api.Logger pTrace)
Returns a proxy for the sql Connection |
Object |
invoke(Object obj,
Method method,
Object[] aobj)
Invoke call on the proxy |
Object |
prepareStatement(Class[] pTypes,
Object[] pValues)
Invoke correct preparedStatement |
String |
toString()
Return a string describing this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SQLConnectionInvocationHandler(Object pConn, ManagedConnectionInfo pMci, SQLManager pConman, org.objectweb.util.monolog.api.Logger pTrace) throws Exception
pConn
- JDBC connection objectpMci
- ManagedConnectionInfo object associated with the connectionpConman
- SQLManager object holding PreparedStatement cachepTrace
- Logger object to use
Exception
- if an error occursMethod Detail |
---|
public static Object createSQLWrapper(Object pConn, ManagedConnectionInfo pMci, SQLManager pConman, org.objectweb.util.monolog.api.Logger pTrace) throws Exception
pConn
- JDBC connection objectpMci
- ManagedConnectionInfo object associated with the connectionpConman
- SQLManager object holding PreparedStatement cachepTrace
- Logger object to use
Exception
- if an error occurspublic Object invoke(Object obj, Method method, Object[] aobj) throws Throwable
invoke
in interface InvocationHandler
obj
- the proxy instance that the method was invoked onmethod
- the Method instanceaobj
- an array of objects containing the values of the arguments
Throwable
- if an error occurspublic Object prepareStatement(Class[] pTypes, Object[] pValues) throws Exception
pTypes
- Class [] of parameter typespValues
- Class [] of parameter values
Exception
- if any Exception occurspublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |