com.alibaba.druid.proxy.jdbc
Class WrapperProxyImpl

java.lang.Object
  extended by com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
All Implemented Interfaces:
WrapperProxy, Wrapper
Direct Known Subclasses:
ConnectionProxyImpl, ResultSetProxyImpl, StatementProxyImpl

public abstract class WrapperProxyImpl
extends Object
implements WrapperProxy

Author:
wenshao

Constructor Summary
WrapperProxyImpl(Wrapper wrapper, long id)
           
 
Method Summary
abstract  FilterChain createChain()
           
 Map<String,Object> getAttributes()
           
 long getId()
           
 Object getRawObject()
           
 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

WrapperProxyImpl

public WrapperProxyImpl(Wrapper wrapper,
                        long id)
Method Detail

getId

public long getId()
Specified by:
getId in interface WrapperProxy

getRawObject

public Object getRawObject()
Specified by:
getRawObject in interface WrapperProxy

createChain

public abstract FilterChain createChain()

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

getAttributes

public Map<String,Object> getAttributes()
Specified by:
getAttributes in interface WrapperProxy


Copyright © 2012 Alibaba Group. All Rights Reserved.