1 package in.co.daffodil.db.jdbc; 2 3 import java.io.*; 4 import java.sql.*; 5 6 30 31 32 public class DaffodilDBClob implements Clob,Serializable{ 33 Clob clob; 34 35 public DaffodilDBClob(Clob clob){ 36 this.clob = clob; 37 } 38 39 49 public long length() throws SQLException{ 50 return clob.length(); 51 } 52 53 70 public String getSubString(long pos, int length) throws SQLException{ 71 return clob.getSubString(pos,length); 72 } 73 74 86 public java.io.Reader getCharacterStream() throws SQLException{ 87 return clob.getCharacterStream(); 88 } 89 90 101 public java.io.InputStream getAsciiStream() throws SQLException{ 102 return clob.getAsciiStream(); 103 } 104 105 120 public long position(String searchstr, long start) throws SQLException{ 121 return clob.position(searchstr,start); 122 } 123 124 139 public long position(Clob searchstr, long start) throws SQLException{ 140 return clob.position(searchstr,start); 141 } 142 143 144 159 public int setString(long pos, String str) throws SQLException{ 160 return clob.setString(pos,str); 161 } 162 163 181 public int setString(long pos, String str, int offset, int len) throws SQLException{ 182 return clob.setString(pos,str,offset,len); 183 } 184 185 199 public java.io.OutputStream setAsciiStream(long pos) throws SQLException{ 200 return clob.setAsciiStream(pos); 201 } 202 203 218 public java.io.Writer setCharacterStream(long pos) throws SQLException{ 219 return clob.setCharacterStream(pos); 220 } 221 222 233 public void truncate(long len) throws SQLException{ 234 clob.truncate(len); 235 } 236 } 237 | Popular Tags |