|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourceforge.jxdbcon.postgresql.NetProtocol | +--org.sourceforge.jxdbcon.postgresql.NetProtocolV1 | +--org.sourceforge.jxdbcon.postgresql.NetProtocolV2
The NetProtocolV2 is the protocol implementation for V2. The V2 protocol is used by PostgreSQL 6.4.2, and up. All message types supported by the current (v2) version of the protocol are handled.
Nested Class Summary | |
(package private) class |
NetProtocolV2.BackendKeyData
Fetch the backend key data. |
(package private) static class |
NetProtocolV2.ReadyForQuery
Fetch the ready-for-query response. |
Nested classes inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV1 |
NetProtocolV1.AsciiRow, NetProtocolV1.Authentication, NetProtocolV1.BinaryRow, NetProtocolV1.CompletedResponse, NetProtocolV1.CursorResponse, NetProtocolV1.EmptyQueryResponse, NetProtocolV1.ErrorResponse, NetProtocolV1.FunctionResult, NetProtocolV1.MessageResponse, NetProtocolV1.NoticeResponse, NetProtocolV1.NotificationResponse, NetProtocolV1.RowDescription |
Field Summary | |
private int |
backendPID
The backend PID for cancel requests. |
private int |
cancelSecret
The cancel secret. |
Fields inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV1 |
nFields |
Fields inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocol |
copyInStream, copyOutStream, in, lock, messageEncoding, out, socket |
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.PGConstants |
AUTH_REQ_CRYPT, AUTH_REQ_KRB4, AUTH_REQ_KRB5, AUTH_REQ_MD5, AUTH_REQ_OK, AUTH_REQ_PASSWORD, AUTH_REQ_SCM, NUMERIC_DSCALE_MASK, NUMERIC_NAN, NUMERIC_NEG, NUMERIC_POS, NUMERIC_SIGN_MASK, PG_VERSION_STR, PG_VERSION_STR1, TRIGGER_TYPE_BEFORE, TRIGGER_TYPE_DELETE, TRIGGER_TYPE_INSERT, TRIGGER_TYPE_ROW, TRIGGER_TYPE_UPDATE |
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.PGInfoKeys |
FORCECLIENTENC, OPTIONS, PROTOVERSION, SETTIMEZONE, STRICTSCHEMA, TTY, USEASYNC, USECLIENTENC, USEDBENC, USESSL |
Fields inherited from interface org.sourceforge.jxdbcon.InfoKeys |
CATALOG, DESCRIPTION, DRIVER, HOST, PASSWORD, PORT, SUBDRIVER, USER |
Constructor Summary | |
NetProtocolV2()
|
Method Summary | |
void |
close()
Close the connection to the backend. |
void |
connect(Properties info)
Open the connection. |
protected NetProtocolV1.Response |
dispatch(int ch)
Identify the message by the transmitted first character. |
protected void |
doLogin(Properties info)
|
PGFuncResult |
exec(long funcOid,
byte[][] param)
Execute a function. |
PGExecResult |
exec(String sql)
Execute a command. |
void |
requestCancel()
Request cancellation of current query processing. |
protected void |
sendStartup(String catalog,
String user,
String pgoptions,
String pgtty)
Send the V2 startup packet. |
Methods inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV1 |
readFirst, sendClose, sendFunctionCall, sendPassword, sendQuery, sendStartup |
Methods inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocol |
connectSocket, limString, readCString, setCopyInStream, setCopyOutStream, setMessageEncoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int backendPID
private int cancelSecret
Constructor Detail |
public NetProtocolV2()
Method Detail |
public void close() throws SQLException
PGProtocol
SQLException
public void connect(Properties info) throws SQLException
SQLException
InfoKeys
,
PGInfoKeys
protected NetProtocolV1.Response dispatch(int ch) throws IOException
NetProtocolV1
dispatch
in class NetProtocolV1
IOException
protected void doLogin(Properties info) throws SQLException
SQLException
public PGFuncResult exec(long funcOid, byte[][] param)
PGProtocol
public PGExecResult exec(String sql)
public void requestCancel() throws SQLException
SQLException
protected void sendStartup(String catalog, String user, String pgoptions, String pgtty) throws IOException
sendStartup
in class NetProtocolV1
IOException
|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |