2
* HA-JDBC: High-Availability JDBC
3
* Copyright (c) 2004-2007 Paul Ferraro
5
* This library is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU Lesser General Public License as published by the
7
* Free Software Foundation; either version 2.1 of the License, or (at your
8
* option) any later version.
10
* This library is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this library; if not, write to the Free Software Foundation,
17
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
* Contact: ferraro@users.sourceforge.net
21
package net.sf.hajdbc.sql;
23
import java.io.InputStream;
24
import java.io.OutputStream;
25
import java.io.Reader;
26
import java.io.StringReader;
27
import java.io.Writer;
29
import java.sql.NClob;
32
* @author Paul Ferraro
35
public class MockClob implements NClob
39
* @see java.sql.Clob#free()
46
* @see java.sql.Clob#getAsciiStream()
48
public InputStream getAsciiStream()
54
* @see java.sql.Clob#getCharacterStream()
56
public Reader getCharacterStream()
58
return new StringReader(""); //$NON-NLS-1$
62
* @see java.sql.Clob#getCharacterStream(long, long)
64
public Reader getCharacterStream(long arg0, long arg1)
66
return new StringReader(""); //$NON-NLS-1$
70
* @see java.sql.Clob#getSubString(long, int)
72
public String getSubString(long arg0, int arg1)
78
* @see java.sql.Clob#length()
86
* @see java.sql.Clob#position(java.lang.String, long)
88
public long position(String arg0, long arg1)
94
* @see java.sql.Clob#position(java.sql.Clob, long)
96
public long position(Clob arg0, long arg1)
102
* @see java.sql.Clob#setAsciiStream(long)
104
public OutputStream setAsciiStream(long arg0)
110
* @see java.sql.Clob#setCharacterStream(long)
112
public Writer setCharacterStream(long arg0)
118
* @see java.sql.Clob#setString(long, java.lang.String)
120
public int setString(long arg0, String arg1)
126
* @see java.sql.Clob#setString(long, java.lang.String, int, int)
128
public int setString(long arg0, String arg1, int arg2, int arg3)
134
* @see java.sql.Clob#truncate(long)
136
public void truncate(long arg0)