| java.lang.Object org.objectweb.jonas.resource.JonasSQLWrapper
JonasSQLWrapper | public class JonasSQLWrapper implements InvocationHandler(Code) | | SQL Connection Wrapper
author: Eric Hardesty author: Contributor(s): |
JonasSQLWrapper | public JonasSQLWrapper(Object pConn, MCInfo pMci, SQLManager pConman, Logger pTrace) throws Exception(Code) | | PreparedStatement wrapper
Parameters: pConn - JDBC connection object Parameters: pMci - MCInfo object associated with the connection Parameters: pConman - SQLManager object holding PreparedStatement cache Parameters: pTrace - Logger object to use throws: Exception - if an error occurs |
createSQLWrapper | public static Object createSQLWrapper(Object pConn, MCInfo pMci, SQLManager pConman, Logger pTrace) throws Exception(Code) | | Returns a proxy for the sql Connection
Parameters: pConn - JDBC connection object Parameters: pMci - MCInfo object associated with the connection Parameters: pConman - SQLManager object holding PreparedStatement cache Parameters: pTrace - Logger object to use Object of the preparedStatement proxy throws: Exception - if an error occurs |
invoke | public Object invoke(Object obj, Method method, Object[] aobj) throws Throwable(Code) | | Invoke call on the proxy
Parameters: obj - the proxy instance that the method was invoked on Parameters: method - the Method instance Parameters: aobj - an array of objects containing the values of the arguments throws: Throwable - if an error occurs Object the returned from the method invocation on the proxy instance |
prepareStatement | public Object prepareStatement(Class[] pTypes, Object[] pValues) throws Exception(Code) | | Invoke correct preparedStatement
Parameters: pTypes - Class [] of parameter types Parameters: pValues - Class [] of parameter values Object the result of invoking the preparedStatement throws: Exception - if any Exception occurs |
toString | public String toString()(Code) | | Return a string describing this object
String representing this object |
|
|