org.sourceforge.jxdbcon.db2
Class DRDAProtocol
java.lang.Object
|
+--org.sourceforge.jxdbcon.db2.DRDAProtocol
- All Implemented Interfaces:
- DB2InfoKeys, DB2Protocol, InfoKeys
- public class DRDAProtocol
- extends Object
- implements DB2Protocol, DB2InfoKeys
- Version:
- $Revision: 1.2 $, $Date: 2002/03/31 18:28:10 $
- Author:
- Keve Müller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbnam
private NAMSYMDR dbnam
ddm
private DDM ddm
drdain
private DRDAInputStream drdain
drdain_buf
private FramedByteArrayInputStream drdain_buf
pkgid
private PKGID pkgid
rdbnam
private RDBNAM rdbnam
socket
private Socket socket
DRDAProtocol
public DRDAProtocol()
accrdb
private void accrdb()
throws IOException
IOException
accsec
private void accsec(String user,
String passwd,
String db)
throws IOException
IOException
bgnbnd
private void bgnbnd()
throws IOException
IOException
close
public void close()
throws SQLException
- Description copied from interface:
DB2Protocol
- Close the connection to the backend.
- Specified by:
close
in interface DB2Protocol
SQLException
connect
public void connect(Properties info)
throws SQLException
- Open the connection.
The following properties are recognized:
InfoKeys.HOST (defaults to localhost), InfoKeys.PORT (defaults to 5432)
InfoKeys.USER, InfoKeys.PASSWORD (defaults to "")
- Specified by:
connect
in interface DB2Protocol
SQLException
- See Also:
InfoKeys
describeTable
public void describeTable(String table)
throws SQLException
SQLException
dump
private void dump(DATA[] rpy)
throws IOException
IOException
endbnd
private void endbnd()
throws IOException
IOException
excsat
private void excsat()
throws IOException
IOException
main
public static void main(String[] argv)
opnqry
private void opnqry()
throws IOException
IOException
prpsqlstt
private void prpsqlstt(String sql)
throws IOException
IOException
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.