org.sourceforge.jxdbcon.postgresql
Class LibPQ
java.lang.Object
|
+--org.sourceforge.jxutil.JNI
|
+--org.sourceforge.jxutil.SCCI
|
+--org.sourceforge.jxdbcon.postgresql.LibPQ
- All Implemented Interfaces:
- LibPQConstants
- Direct Known Subclasses:
- LibProtocol
- public class LibPQ
- extends SCCI
- implements LibPQConstants
A SCCI wrapper for libpq.
This wrapper makes the functions of the libpq shared library available
for Java callers by use of SCCI.
- Version:
- $Revision: 1.9 $
- Author:
- Keve Müller
Fields inherited from class org.sourceforge.jxutil.JNI |
loaded |
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.LibPQConstants |
CONNECTION_AUTH_OK, CONNECTION_AWAITING_RESPONSE, CONNECTION_BAD, CONNECTION_MADE, CONNECTION_OK, CONNECTION_SETENV, CONNECTION_STARTED, PGRES_BAD_RESPONSE, PGRES_COMMAND_OK, PGRES_COPY_IN, PGRES_COPY_OUT, PGRES_EMPTY_QUERY, PGRES_FATAL_ERROR, PGRES_NONFATAL_ERROR, PGRES_POLLING_ACTIVE, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PGRES_POLLING_READING, PGRES_POLLING_WRITING, PGRES_TUPLES_OK |
Constructor Summary |
LibPQ()
|
Method Summary |
static int |
PQbackendPID(int pgconn)
|
static int |
PQbinaryTuples(int pgresult)
|
static void |
PQclear(int pgresult)
|
static int |
PQclientEncoding(int pgconn)
|
static String |
PQcmdStatus(int pgresult)
|
static String |
PQcmdTuples(int pgresult)
|
static int |
PQconnectdb(String conninfo)
|
static int |
PQconnectPoll(int pgconn)
|
static int |
PQconnectStart(String conninfo)
|
static String |
PQdb(int pgconn)
|
static int |
PQendcopy(int pgconn)
|
static String |
PQerrorMessage(int pgconn)
|
static int |
PQexec(int pgconn,
String command)
|
static void |
PQfinish(int pgconn)
|
static int |
PQfmod(int pgresult,
int index)
|
static int |
PQfn(int pgconn,
int fnid,
int args,
int nargs)
|
static String |
PQfname(int pgresult,
int index)
|
static int |
PQfnumber(int pgresult,
String fieldName)
|
static int |
PQfsize(int pgresult,
int index)
|
static int |
PQftype(int pgresult,
int index)
|
static int |
PQgetisnull(int pgresult,
int tupNum,
int fieldNum)
|
static int |
PQgetlength(int pgresult,
int tupNum,
int fieldNum)
|
static int |
PQgetline(int pgconn,
byte[] buf)
|
static int |
PQgetResult(int pgconn)
|
static byte[] |
PQgetvalue(int pgresult,
int tupNum,
int fieldNum,
int length)
|
static String |
PQhost(int pgconn)
|
static int |
PQnfields(int pgresult)
|
static int |
PQntuples(int pgresult)
|
static String |
PQoidStatus(int pgresult)
|
static String |
PQoptions(int pgconn)
|
static String |
PQpass(int pgconn)
|
static String |
PQport(int pgconn)
|
static int |
PQputline(int pgconn,
byte[] buf)
|
static int |
PQputnbytes(int pgconn,
byte[] buf)
|
static void |
PQrequestCancel(int pgconn)
|
static void |
PQreset(int pgconn)
|
static String |
PQresStatus(int status)
|
static String |
PQresultErrorMessage(int pgresult)
|
static int |
PQresultStatus(int pgresult)
|
static int |
PQsendQuery(int pgconn,
String command)
|
static int |
PQsetClientEncoding(int pgconn,
String encoding)
|
static void |
PQsetNoticeProcessor(int pgconn,
int fh,
int arg)
|
static int |
PQstatus(int pgconn)
|
static void |
PQtrace(int pgconn,
int debugPort)
|
static String |
PQtty(int pgconn)
|
static void |
PQuntrace(int pgconn)
|
static String |
PQuser(int pgconn)
|
Methods inherited from class org.sourceforge.jxutil.SCCI |
call_D_d, call_I_i, call_I_T, call_II_i, call_II_T, call_III_i, call_III_Y, call_IIyiiiyi_i, call_IIyiiyil_i, call_IIyyIyI_i, call_IT_i, call_Iy_i, call_IyI_i, call_IYIIi_i, call_T_i, call_TT_i, call_V_i, dlclose, dlopen, dlsym, makeCallbackS, makeCallbackV, testHandler, toByteArray, toUTF8String |
Methods inherited from class org.sourceforge.jxutil.JNI |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fhPQbackendPID
private static final int fhPQbackendPID
fhPQbinaryTuples
private static final int fhPQbinaryTuples
fhPQclear
private static final int fhPQclear
fhPQclientEncoding
private static final int fhPQclientEncoding
fhPQcmdStatus
private static final int fhPQcmdStatus
fhPQcmdTuples
private static final int fhPQcmdTuples
fhPQconnectdb
private static final int fhPQconnectdb
fhPQconnectPoll
private static final int fhPQconnectPoll
fhPQconnectStart
private static final int fhPQconnectStart
fhPQdb
private static final int fhPQdb
fhPQendcopy
private static final int fhPQendcopy
fhPQerrorMessage
private static final int fhPQerrorMessage
fhPQexec
private static final int fhPQexec
fhPQfinish
private static final int fhPQfinish
fhPQfmod
private static final int fhPQfmod
fhPQfn
private static final int fhPQfn
fhPQfname
private static final int fhPQfname
fhPQfnumber
private static final int fhPQfnumber
fhPQfsize
private static final int fhPQfsize
fhPQftype
private static final int fhPQftype
fhPQgetisnull
private static final int fhPQgetisnull
fhPQgetlength
private static final int fhPQgetlength
fhPQgetline
private static final int fhPQgetline
fhPQgetResult
private static final int fhPQgetResult
fhPQgetvalue
private static final int fhPQgetvalue
fhPQhost
private static final int fhPQhost
fhPQnfields
private static final int fhPQnfields
fhPQntuples
private static final int fhPQntuples
fhPQoidStatus
private static final int fhPQoidStatus
fhPQoptions
private static final int fhPQoptions
fhPQpass
private static final int fhPQpass
fhPQport
private static final int fhPQport
fhPQputline
private static final int fhPQputline
fhPQputnbytes
private static final int fhPQputnbytes
fhPQrequestCancel
private static final int fhPQrequestCancel
fhPQreset
private static final int fhPQreset
fhPQresStatus
private static final int fhPQresStatus
fhPQresultErrorMessage
private static final int fhPQresultErrorMessage
fhPQresultStatus
private static final int fhPQresultStatus
fhPQsendQuery
private static final int fhPQsendQuery
fhPQsetClientEncoding
private static final int fhPQsetClientEncoding
fhPQsetNoticeProcessor
private static final int fhPQsetNoticeProcessor
fhPQstatus
private static final int fhPQstatus
fhPQtrace
private static final int fhPQtrace
fhPQtty
private static final int fhPQtty
fhPQuntrace
private static final int fhPQuntrace
fhPQuser
private static final int fhPQuser
libHandle
private static final int libHandle
- The handle to the libpgsql.so library.
LibPQ
public LibPQ()
PQbackendPID
public static int PQbackendPID(int pgconn)
PQbinaryTuples
public static int PQbinaryTuples(int pgresult)
PQclear
public static void PQclear(int pgresult)
PQclientEncoding
public static int PQclientEncoding(int pgconn)
PQcmdStatus
public static String PQcmdStatus(int pgresult)
PQcmdTuples
public static String PQcmdTuples(int pgresult)
PQconnectdb
public static int PQconnectdb(String conninfo)
PQconnectPoll
public static int PQconnectPoll(int pgconn)
PQconnectStart
public static int PQconnectStart(String conninfo)
PQdb
public static String PQdb(int pgconn)
PQendcopy
public static int PQendcopy(int pgconn)
PQerrorMessage
public static String PQerrorMessage(int pgconn)
PQexec
public static int PQexec(int pgconn,
String command)
PQfinish
public static void PQfinish(int pgconn)
PQfmod
public static int PQfmod(int pgresult,
int index)
PQfn
public static int PQfn(int pgconn,
int fnid,
int args,
int nargs)
PQfname
public static String PQfname(int pgresult,
int index)
PQfnumber
public static int PQfnumber(int pgresult,
String fieldName)
PQfsize
public static int PQfsize(int pgresult,
int index)
PQftype
public static int PQftype(int pgresult,
int index)
PQgetisnull
public static int PQgetisnull(int pgresult,
int tupNum,
int fieldNum)
PQgetlength
public static int PQgetlength(int pgresult,
int tupNum,
int fieldNum)
PQgetline
public static int PQgetline(int pgconn,
byte[] buf)
PQgetResult
public static int PQgetResult(int pgconn)
PQgetvalue
public static byte[] PQgetvalue(int pgresult,
int tupNum,
int fieldNum,
int length)
PQhost
public static String PQhost(int pgconn)
PQnfields
public static int PQnfields(int pgresult)
PQntuples
public static int PQntuples(int pgresult)
PQoidStatus
public static String PQoidStatus(int pgresult)
PQoptions
public static String PQoptions(int pgconn)
PQpass
public static String PQpass(int pgconn)
PQport
public static String PQport(int pgconn)
PQputline
public static int PQputline(int pgconn,
byte[] buf)
PQputnbytes
public static int PQputnbytes(int pgconn,
byte[] buf)
PQrequestCancel
public static void PQrequestCancel(int pgconn)
PQreset
public static void PQreset(int pgconn)
PQresStatus
public static String PQresStatus(int status)
PQresultErrorMessage
public static String PQresultErrorMessage(int pgresult)
PQresultStatus
public static int PQresultStatus(int pgresult)
PQsendQuery
public static int PQsendQuery(int pgconn,
String command)
PQsetClientEncoding
public static int PQsetClientEncoding(int pgconn,
String encoding)
PQsetNoticeProcessor
public static void PQsetNoticeProcessor(int pgconn,
int fh,
int arg)
PQstatus
public static int PQstatus(int pgconn)
PQtrace
public static void PQtrace(int pgconn,
int debugPort)
PQtty
public static String PQtty(int pgconn)
PQuntrace
public static void PQuntrace(int pgconn)
PQuser
public static String PQuser(int pgconn)
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.