com.alibaba.druid.mock
类 MockClob

java.lang.Object
  继承者 com.alibaba.druid.mock.MockClob
所有已实现的接口:
Clob
直接已知子类:
MockNClob

public class MockClob
extends Object
implements Clob


构造方法摘要
MockClob()
           
MockClob(byte[] bytes)
           
 
方法摘要
 void free()
           
 InputStream getAsciiStream()
           
 Reader getCharacterStream()
           
 Reader getCharacterStream(long pos, long length)
           
 String getSubString(long pos, int length)
           
 long length()
           
 long position(Clob searchstr, long start)
           
 long position(String searchstr, long start)
           
 OutputStream setAsciiStream(long pos)
           
 Writer setCharacterStream(long pos)
           
 int setString(long pos, String str)
           
 int setString(long pos, String str, int offset, int len)
           
 void truncate(long len)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MockClob

public MockClob()

MockClob

public MockClob(byte[] bytes)
方法详细信息

length

public long length()
            throws SQLException
指定者:
接口 Clob 中的 length
抛出:
SQLException

getSubString

public String getSubString(long pos,
                           int length)
                    throws SQLException
指定者:
接口 Clob 中的 getSubString
抛出:
SQLException

getCharacterStream

public Reader getCharacterStream()
                          throws SQLException
指定者:
接口 Clob 中的 getCharacterStream
抛出:
SQLException

getAsciiStream

public InputStream getAsciiStream()
                           throws SQLException
指定者:
接口 Clob 中的 getAsciiStream
抛出:
SQLException

position

public long position(String searchstr,
                     long start)
              throws SQLException
指定者:
接口 Clob 中的 position
抛出:
SQLException

position

public long position(Clob searchstr,
                     long start)
              throws SQLException
指定者:
接口 Clob 中的 position
抛出:
SQLException

setString

public int setString(long pos,
                     String str)
              throws SQLException
指定者:
接口 Clob 中的 setString
抛出:
SQLException

setString

public int setString(long pos,
                     String str,
                     int offset,
                     int len)
              throws SQLException
指定者:
接口 Clob 中的 setString
抛出:
SQLException

setAsciiStream

public OutputStream setAsciiStream(long pos)
                            throws SQLException
指定者:
接口 Clob 中的 setAsciiStream
抛出:
SQLException

setCharacterStream

public Writer setCharacterStream(long pos)
                          throws SQLException
指定者:
接口 Clob 中的 setCharacterStream
抛出:
SQLException

truncate

public void truncate(long len)
              throws SQLException
指定者:
接口 Clob 中的 truncate
抛出:
SQLException

free

public void free()
          throws SQLException
指定者:
接口 Clob 中的 free
抛出:
SQLException

getCharacterStream

public Reader getCharacterStream(long pos,
                                 long length)
                          throws SQLException
指定者:
接口 Clob 中的 getCharacterStream
抛出:
SQLException


Copyright © 2013 Alibaba Group. All Rights Reserved.