Package com.alibaba.druid.proxy.jdbc
Class ClobProxyImpl
- java.lang.Object
-
- com.alibaba.druid.proxy.jdbc.ClobProxyImpl
-
- Direct Known Subclasses:
NClobProxyImpl
public class ClobProxyImpl extends Object implements ClobProxy
- Author:
- wenshao [szujobs@hotmail.com]
-
-
Field Summary
Fields Modifier and Type Field Description protected Clobclobprotected ConnectionProxyconnectionprotected DataSourceProxydataSource
-
Constructor Summary
Constructors Constructor Description ClobProxyImpl(DataSourceProxy dataSource, ConnectionProxy connection, Clob clob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterChaincreateChain()voidfree()InputStreamgetAsciiStream()ReadergetCharacterStream()ReadergetCharacterStream(long pos, long length)ConnectionProxygetConnectionWrapper()ClobgetRawClob()StringgetSubString(long pos, int length)longlength()longposition(String searchstr, long start)longposition(Clob searchstr, long start)OutputStreamsetAsciiStream(long pos)WritersetCharacterStream(long pos)intsetString(long pos, String str)intsetString(long pos, String str, int offset, int len)StringtoString()voidtruncate(long len)
-
-
-
Field Detail
-
clob
protected final Clob clob
-
connection
protected final ConnectionProxy connection
-
dataSource
protected final DataSourceProxy dataSource
-
-
Constructor Detail
-
ClobProxyImpl
public ClobProxyImpl(DataSourceProxy dataSource, ConnectionProxy connection, Clob clob)
-
-
Method Detail
-
createChain
public FilterChain createChain()
-
getConnectionWrapper
public ConnectionProxy getConnectionWrapper()
- Specified by:
getConnectionWrapperin interfaceClobProxy
-
getRawClob
public Clob getRawClob()
- Specified by:
getRawClobin interfaceClobProxy
-
free
public void free() throws SQLException- Specified by:
freein interfaceClob- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream() throws SQLException
- Specified by:
getAsciiStreamin interfaceClob- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream() throws SQLException
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream(long pos, long length) throws SQLException
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
getSubString
public String getSubString(long pos, int length) throws SQLException
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException
-
length
public long length() throws SQLException- Specified by:
lengthin interfaceClob- Throws:
SQLException
-
position
public long position(String searchstr, long start) throws SQLException
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
position
public long position(Clob searchstr, long start) throws SQLException
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
setAsciiStream
public OutputStream setAsciiStream(long pos) throws SQLException
- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException
-
setCharacterStream
public Writer setCharacterStream(long pos) throws SQLException
- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException
-
setString
public int setString(long pos, String str) throws SQLException- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setString
public int setString(long pos, String str, int offset, int len) throws SQLException- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
truncate
public void truncate(long len) throws SQLException- Specified by:
truncatein interfaceClob- Throws:
SQLException
-
-