com.alibaba.druid.pool
Class PoolableWrapper

java.lang.Object
  extended by com.alibaba.druid.pool.PoolableWrapper
All Implemented Interfaces:
Wrapper
Direct Known Subclasses:
DruidPooledResultSet, DruidPooledStatement

public class PoolableWrapper
extends Object
implements Wrapper

Author:
wenshao

Constructor Summary
PoolableWrapper(Wrapper wraaper)
           
 
Method Summary
 boolean isWrapperFor(Class<?> iface)
           
<T> T
unwrap(Class<T> iface)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolableWrapper

public PoolableWrapper(Wrapper wraaper)
Method Detail

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
Specified by:
isWrapperFor in interface Wrapper
Throws:
SQLException

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
Specified by:
unwrap in interface Wrapper
Throws:
SQLException


Copyright © 2012 Alibaba Group. All Rights Reserved.