KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > rmijdbc > RJClobInterface


1
2 /**
3  * RmiJdbc client/server JDBC Driver
4  * (C) ExperLog 1999-2000
5  *
6  * @version 1.0
7  * @author Pierre-Yves Gibello (pierreyves.gibello@experlog.com)
8  */

9
10 package org.objectweb.rmijdbc;
11
12 import java.sql.*;
13 import java.rmi.RemoteException JavaDoc;
14
15 public interface RJClobInterface extends java.rmi.Remote JavaDoc {
16
17 // TBD There's a hack there (InputStream not serializable)
18
byte[] getAsciiStream() throws RemoteException JavaDoc, SQLException;
19
20 // TBD There's a hack there (Reader not serializable)
21
char[] getCharacterStream() throws RemoteException JavaDoc, SQLException;
22
23   long length() throws RemoteException JavaDoc, SQLException;
24
25   String JavaDoc getSubString(long pos, int length)
26   throws RemoteException JavaDoc, SQLException;
27
28   long position(String JavaDoc searchstr, long start)
29   throws RemoteException JavaDoc, SQLException;
30
31   long position(Clob searchstr, long start)
32   throws RemoteException JavaDoc, SQLException;
33
34 //---------------------------- jdbc 3.0 -----------------------------------
35
int setString(long pos, String JavaDoc str)
36   throws RemoteException JavaDoc, SQLException;
37  
38   int setString(long pos, String JavaDoc str, int offset, int len)
39   throws RemoteException JavaDoc, SQLException;
40  
41   java.io.OutputStream JavaDoc setAsciiStream(long pos)
42   throws RemoteException JavaDoc, SQLException;
43  
44   java.io.Writer JavaDoc setCharacterStream(long pos)
45   throws RemoteException JavaDoc, SQLException;
46  
47   void truncate(long len)
48   throws RemoteException JavaDoc, SQLException;
49 };
50
51
Popular Tags