Package com.alibaba.druid.proxy.jdbc
Class WrapperProxyImpl
- java.lang.Object
-
- com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
-
- All Implemented Interfaces:
WrapperProxy,Wrapper
- Direct Known Subclasses:
ConnectionProxyImpl,ResultSetMetaDataProxyImpl,ResultSetProxyImpl,StatementProxyImpl
public abstract class WrapperProxyImpl extends Object implements WrapperProxy
- Author:
- wenshao [szujobs@hotmail.com]
-
-
Constructor Summary
Constructors Constructor Description WrapperProxyImpl(Wrapper wrapper, long id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclearAttributes()abstract FilterChaincreateChain()ObjectgetAttribute(String key)Map<String,Object>getAttributes()intgetAttributesSize()longgetId()ObjectgetRawObject()booleanisWrapperFor(Class<?> iface)voidputAttribute(String key, Object value)<T> Tunwrap(Class<T> iface)
-
-
-
Constructor Detail
-
WrapperProxyImpl
public WrapperProxyImpl(Wrapper wrapper, long id)
-
-
Method Detail
-
getId
public long getId()
- Specified by:
getIdin interfaceWrapperProxy
-
getRawObject
public Object getRawObject()
- Specified by:
getRawObjectin interfaceWrapperProxy
-
createChain
public abstract FilterChain createChain()
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
getAttributesSize
public int getAttributesSize()
- Specified by:
getAttributesSizein interfaceWrapperProxy
-
clearAttributes
public void clearAttributes()
- Specified by:
clearAttributesin interfaceWrapperProxy
-
getAttributes
public Map<String,Object> getAttributes()
- Specified by:
getAttributesin interfaceWrapperProxy
-
putAttribute
public void putAttribute(String key, Object value)
- Specified by:
putAttributein interfaceWrapperProxy
-
getAttribute
public Object getAttribute(String key)
- Specified by:
getAttributein interfaceWrapperProxy
-
-