Constructor Summary | |
---|---|
(Statement statement, PGresult* result) Creates a new DPQResult from a PQresult |
Methods Summary | |
---|---|
public PGresult* |
getResult() |
bit |
hasMore() |
ExecStatusType |
status() /* Accessor functions for PGresult objects |
static String |
resStatus(ExecStatusType status) get the resStatus message |
String |
getStatusMessage() |
String |
errorMessage() result error message |
int |
nTuples() Returns the number of tuples (rows) in the query result. |
int |
nFields() Returns the number of fields (columns) in each row of the query result. |
int |
binaryTuples() Returns 1 if the PGresult contains binary tuple data, 0 if it contains ASCII data. |
String |
fName(int field_num) Returns the number of fields (columns) in each row of the query result. |
String |
getColumnName(int column) |
int |
fNumber(char fieldName) Returns the field (column) index associated with the given field name. |
Oid |
fType(int fieldNum) eturns the field type associated with the given field index. |
int |
fSize(int fieldNum) Returns the size in bytes of the field associated with the given field index. |
int |
fMod(int fieldNum) Returns the type-specific modification data of the field associated with the given field index. |
String |
cmdStatus() Returns the command status string from the SQL command that generated the PGresult. |
String |
oidStatus() Returns a string with the object ID of the inserted row, if the SQL command was an INSERT. |
Oid |
oidValue() Returns the object ID of the inserted row, if the SQL command was an INSERT that inserted exactly one row into a table that has OIDs. |
String |
cmdTuples() Returns the number of rows affected by the SQL command. |
String |
getValue(int tup_num, int field_num) Returns a single field (column) value of one tuple (row) of a PGresult. |
int |
getLength(int tup_num, int field_num) Returns the length of a field (attribute) value in bytes. |
bit |
isNull(int tup_num, int field_num) Tests a field for a NULL entry. |
void |
clear() /* Delete a PGresult Clear the result. |
static DPQResult |
makeEmptyResult(DPQConnect connect, ExecStatusType status) Make an empty PGresult with given status (some apps find this useful). |
String |
getFieldNames() Gets all the field names in an array of strings |
bit |
valid() Check the status for any of the non-error values |
DBMetaTuple |
getMetaTuple() |
SQLType |
getType(int column) |
int |
columnCount() |
char |
getChar(int column) Get a field value as char |
String |
getString(int column) Get a field value as String |
bit |
getBit(int column) Get a field value as bit |
long |
getInteger(int column) Get a field value as |
double |
getDouble(int column) Get a field value as |
void* |
getBlob(int column) Get a field value as blob (void*) |
DBTuple |
getTuples(char statement, int maximum) |
DBTuple |
getTuples(String statement, int maximum) |
DBTuple |
getTuples(int maximum) |
DBTuple |
getTuple(char statement) |
DBTuple |
getTuple(String statement) |
DBTuple |
getTuple() |