jxDBCon 0.9z

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

Field Summary
private  NAMSYMDR dbnam
           
private  DDM ddm
           
private  DRDAInputStream drdain
           
private  FramedByteArrayInputStream drdain_buf
           
private  PKGID pkgid
           
private  RDBNAM rdbnam
           
private  Socket socket
           
 
Fields inherited from interface org.sourceforge.jxdbcon.InfoKeys
CATALOG, DESCRIPTION, DRIVER, HOST, PASSWORD, PORT, SUBDRIVER, USER
 
Constructor Summary
DRDAProtocol()
           
 
Method Summary
private  void accrdb()
           
private  void accsec(String user, String passwd, String db)
           
private  void bgnbnd()
           
 void close()
          Close the connection to the backend.
 void connect(Properties info)
          Open the connection.
 void describeTable(String table)
           
private  void dump(DATA[] rpy)
           
private  void endbnd()
           
private  void excsat()
           
static void main(String[] argv)
           
private  void opnqry()
           
private  void prpsqlstt(String sql)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DRDAProtocol

public DRDAProtocol()
Method Detail

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

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.