|
|||||||||
| Home >> All >> org >> [ postgresql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.postgresql
Class ResultSet

java.lang.Objectorg.postgresql.ResultSet
- public abstract class ResultSet
- extends java.lang.Object
This class implements the common internal methods used by both JDBC 1 and JDBC 2 specifications.
| Field Summary | |
protected Connection |
connection
|
protected int |
current_row
|
protected Field[] |
fields
|
protected ResultSet |
next
|
protected java.util.Vector |
rows
|
protected java.lang.String |
status
|
protected byte[][] |
this_row
|
protected int |
updateCount
|
protected java.sql.SQLWarning |
warnings
|
protected boolean |
wasNullFlag
|
| Constructor Summary | |
ResultSet(Connection conn,
Field[] fields,
java.util.Vector tuples,
java.lang.String status,
int updateCount)
Create a new ResultSet - Note that we create ResultSets to represent the results of everything. |
|
| Method Summary | |
void |
append(ResultSet r)
This following method allows us to add a ResultSet object to the end of the current chain. |
abstract void |
close()
This is part of the JDBC API, but is required by org.postgresql.Field |
int |
getColumnCount()
getColumnCount returns the number of columns |
int |
getColumnOID(int field)
returns the OID of a field. |
java.sql.ResultSet |
getNext()
Since ResultSets can be chained, we need some method of finding the next one in the chain. |
int |
getResultCount()
If we are just a place holder for results, we still need to get an updateCount. |
java.lang.String |
getStatusString()
Returns the status message from the backend. |
abstract java.lang.String |
getString(int i)
|
int |
getTupleCount()
We also need to provide a couple of auxiliary functions for the implementation of the ResultMetaData functions. |
abstract boolean |
next()
|
boolean |
reallyResultSet()
We at times need to know if the resultSet we are working with is the result of an UPDATE, DELETE or INSERT (in which case, we only have a row count), or of a SELECT operation (in which case, we have multiple fields) - this routine tells us. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
rows
protected java.util.Vector rows
fields
protected Field[] fields
status
protected java.lang.String status
updateCount
protected int updateCount
current_row
protected int current_row
this_row
protected byte[][] this_row
connection
protected Connection connection
warnings
protected java.sql.SQLWarning warnings
wasNullFlag
protected boolean wasNullFlag
next
protected ResultSet next
| Constructor Detail |
ResultSet
public ResultSet(Connection conn, Field[] fields, java.util.Vector tuples, java.lang.String status, int updateCount)
- Create a new ResultSet - Note that we create ResultSets to
represent the results of everything.
| Method Detail |
reallyResultSet
public boolean reallyResultSet()
- We at times need to know if the resultSet we are working
with is the result of an UPDATE, DELETE or INSERT (in which
case, we only have a row count), or of a SELECT operation
(in which case, we have multiple fields) - this routine
tells us.
getNext
public java.sql.ResultSet getNext()
- Since ResultSets can be chained, we need some method of
finding the next one in the chain. The method getNext()
returns the next one in the chain.
append
public void append(ResultSet r)
- This following method allows us to add a ResultSet object
to the end of the current chain.
getResultCount
public int getResultCount()
- If we are just a place holder for results, we still need
to get an updateCount. This method returns it.
getTupleCount
public int getTupleCount()
- We also need to provide a couple of auxiliary functions for
the implementation of the ResultMetaData functions. In
particular, we need to know the number of rows and the
number of columns. Rows are also known as Tuples
getColumnCount
public int getColumnCount()
- getColumnCount returns the number of columns
getStatusString
public java.lang.String getStatusString()
- Returns the status message from the backend.
It is used internally by the driver.
getColumnOID
public int getColumnOID(int field)
- returns the OID of a field.
It is used internally by the driver.
close
public abstract void close()
throws java.sql.SQLException
- This is part of the JDBC API, but is required by org.postgresql.Field
next
public abstract boolean next()
throws java.sql.SQLException
getString
public abstract java.lang.String getString(int i) throws java.sql.SQLException
|
|||||||||
| Home >> All >> org >> [ postgresql overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.postgresql.ResultSet