org.jboss.jca.adapters.jdbc
Class JBossWrapper

java.lang.Object
  extended by 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.

Version:
$Revision: 85945 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
JBossWrapper()
          Constructor
 
Method Summary
protected  Object getWrappedObject()
          Get the wrapped object - override in sub-classes
 boolean isWrapperFor(Class<?> iface)
          Is a wrapper for
<T> T
unwrap(Class<T> iface)
          Unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossWrapper

public JBossWrapper()
Constructor

Method Detail

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


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)