Class JBossWrapper

java.lang.Object
org.jboss.jca.adapters.jdbc.JBossWrapper
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CachedPreparedStatement, WrappedConnection, WrappedResultSet, WrappedStatement, WrapperDataSource

public class JBossWrapper extends Object implements Serializable
JBossWrapper.
Author:
Adrian Brock, Jesper Pedersen
See Also:
  • Field Details

  • Constructor Details

    • JBossWrapper

      public JBossWrapper()
      Constructor
  • Method Details

    • isWrapperFor

      public boolean isWrapperFor(Class<?> iface) throws SQLException
      Is a wrapper for
      Parameters:
      iface - The interface
      Returns:
      True if wrapper; false otherwise
      Throws:
      SQLException - Thrown if an error occurs
    • unwrap

      public <T> T unwrap(Class<T> iface) throws SQLException
      Unwrap
      Type Parameters:
      T - the type
      Parameters:
      iface - The interface
      Returns:
      The object
      Throws:
      SQLException - Thrown if an error occurs
    • getWrappedObject

      protected Object getWrappedObject() throws SQLException
      Get the wrapped object - override in sub-classes
      Returns:
      The object
      Throws:
      SQLException - Thrown if an error occurs