org.objectweb.jonas.resource.JonasSQLWrapper Class Reference

Collaboration diagram for org.objectweb.jonas.resource.JonasSQLWrapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JonasSQLWrapper (Object pConn, MCInfo pMci, SQLManager pConman, Logger pTrace) throws Exception
Object invoke (Object obj, Method method, Object[] aobj) throws Throwable
Object prepareStatement (Class[] pTypes, Object[] pValues) throws Exception
String toString ()

Static Public Member Functions

Object createSQLWrapper (Object pConn, MCInfo pMci, SQLManager pConman, Logger pTrace) throws Exception

Detailed Description

SQL Connection Wrapper

Author:
Eric Hardesty Contributor(s):

Definition at line 45 of file JonasSQLWrapper.java.


Constructor & Destructor Documentation

org.objectweb.jonas.resource.JonasSQLWrapper.JonasSQLWrapper Object  pConn,
MCInfo  pMci,
SQLManager  pConman,
Logger  pTrace
throws Exception
 

PreparedStatement wrapper

Parameters:
pConn JDBC connection object
pMci MCInfo object associated with the connection
pConman SQLManager object holding PreparedStatement cache
pTrace Logger object to use
Exceptions:
Exception if an error occurs

Definition at line 89 of file JonasSQLWrapper.java.

References org.objectweb.jonas.resource.MCInfo.mc.

Referenced by org.objectweb.jonas.resource.JonasSQLWrapper.createSQLWrapper().


Member Function Documentation

Object org.objectweb.jonas.resource.JonasSQLWrapper.createSQLWrapper Object  pConn,
MCInfo  pMci,
SQLManager  pConman,
Logger  pTrace
throws Exception [static]
 

Returns a proxy for the sql Connection

Parameters:
pConn JDBC connection object
pMci MCInfo object associated with the connection
pConman SQLManager object holding PreparedStatement cache
pTrace Logger object to use
Returns:
Object of the preparedStatement proxy
Exceptions:
Exception if an error occurs

Definition at line 108 of file JonasSQLWrapper.java.

References org.objectweb.jonas.resource.JonasSQLWrapper.JonasSQLWrapper().

Here is the call graph for this function:

Object org.objectweb.jonas.resource.JonasSQLWrapper.invoke Object  obj,
Method  method,
Object[]  aobj
throws Throwable
 

Invoke call on the proxy

Parameters:
obj the proxy instance that the method was invoked on
method the Method instance
aobj an array of objects containing the values of the arguments
Exceptions:
Throwable if an error occurs
Returns:
Object the returned from the method invocation on the proxy instance

Definition at line 126 of file JonasSQLWrapper.java.

References org.objectweb.jonas.resource.JonasSQLWrapper.prepareStatement().

Here is the call graph for this function:

Object org.objectweb.jonas.resource.JonasSQLWrapper.prepareStatement Class[]  pTypes,
Object[]  pValues
throws Exception
 

Invoke correct preparedStatement

Parameters:
pTypes Class [] of parameter types
pValues Class [] of parameter values
Returns:
Object the result of invoking the preparedStatement
Exceptions:
Exception if any Exception occurs

Definition at line 157 of file JonasSQLWrapper.java.

Referenced by org.objectweb.jonas.resource.JonasSQLWrapper.invoke().

String org.objectweb.jonas.resource.JonasSQLWrapper.toString  ) 
 

Return a string describing this object

Returns:
String representing this object

Definition at line 245 of file JonasSQLWrapper.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:22 2005 for JOnAS by  doxygen 1.3.9.1