Package org.jboss.jca.adapters.jdbc
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static AdaptersBundlebundleThe bundle
-
Constructor Summary
Constructors Constructor Description JBossWrapper()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetWrappedObject()Get the wrapped object - override in sub-classesbooleanisWrapperFor(Class<?> iface)Is a wrapper for<T> Tunwrap(Class<T> iface)Unwrap
-
-
-
Field Detail
-
bundle
protected static AdaptersBundle bundle
The bundle
-
-
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
-
-