jxDBCon 0.9z

org.sourceforge.jxdbcon.postgresql
Interface PGProtocol

All Known Implementing Classes:
LibProtocol, NetProtocol

public interface PGProtocol

This interface defines the requirements for a protocol implementation that talks to PostgreSQL.

Version:
$Revision: 1.6 $
Author:
Keve Müller

Method Summary
 void close()
          Close the connection to the backend.
 void connect(Properties info)
          Open a connection to the backend with the given parameters.
 PGExecResult exec(String sql)
          Execute a SQL command.
 void requestCancel()
          Request cancellation of current statement.
 void setCopyInStream(InputStream out)
          Set the stream to read COPY IN data from.
 void setCopyOutStream(OutputStream out)
          Set the stream to write COPY OUT data to.
 void setMessageEncoding(String messageEncoding)
          Set the encoding to use for stringifying backend messages.
 

Method Detail

close

public void close()
           throws SQLException
Close the connection to the backend.

SQLException

connect

public void connect(Properties info)
             throws SQLException
Open a connection to the backend with the given parameters. Once connected the properties are set with all default values resolved to their runtime value.

SQLException

exec

public PGExecResult exec(String sql)
Execute a SQL command.


requestCancel

public void requestCancel()
                   throws SQLException
Request cancellation of current statement.

SQLException

setCopyInStream

public void setCopyInStream(InputStream out)
Set the stream to read COPY IN data from.


setCopyOutStream

public void setCopyOutStream(OutputStream out)
Set the stream to write COPY OUT data to.


setMessageEncoding

public void setMessageEncoding(String messageEncoding)
Set the encoding to use for stringifying backend messages.


jxDBCon 0.9z

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