org.objectweb.jorm.mapper.rdb.lib
Class RdbConnectionWrapper

java.lang.Object
  extended byorg.objectweb.jorm.mapper.rdb.lib.RdbConnectionWrapper

public class RdbConnectionWrapper
extends java.lang.Object

Defines a connection wrapper for all kind of connection that can be used with the RDB mapper.

Author:
P. Dechamboux

Constructor Summary
RdbConnectionWrapper()
           
 
Method Summary
static java.sql.Connection narrow2SQL(java.lang.Object conn)
          Narrows a connection requested to a mapper into an SQL connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdbConnectionWrapper

public RdbConnectionWrapper()
Method Detail

narrow2SQL

public static java.sql.Connection narrow2SQL(java.lang.Object conn)
                                      throws PException
Narrows a connection requested to a mapper into an SQL connection.

Parameters:
conn - A mapper connection.
Returns:
An SQL connection.
Throws:
PException - Thrown when narrowing is impossible.