Class JBossNativeJdbcExtractor

  • All Implemented Interfaces:
    NativeJdbcExtractor

    public class JBossNativeJdbcExtractor
    extends NativeJdbcExtractorAdapter
    Implementation of the NativeJdbcExtractor interface for JBoss, supporting JBoss Application Server 3.2.4+. As of Spring 3.1.1, it also supports JBoss 7.

    Returns the underlying native Connection, Statement, etc to application code instead of JBoss' wrapper implementations. The returned JDBC classes can then safely be cast, e.g. to oracle.jdbc.OracleConnection.

    This NativeJdbcExtractor can be set just to allow working with a JBoss connection pool: If a given object is not a JBoss wrapper, it will be returned as-is.

    Since:
    03.01.2004
    Author:
    Juergen Hoeller
    See Also:
    org.jboss.resource.adapter.jdbc.WrappedConnection#getUnderlyingConnection, org.jboss.resource.adapter.jdbc.WrappedStatement#getUnderlyingStatement, org.jboss.resource.adapter.jdbc.WrappedResultSet#getUnderlyingResultSet