Package org.postgresql.jdbc
Class ResultWrapper
java.lang.Object
org.postgresql.jdbc.ResultWrapper
Helper class that storing result info. This handles both the ResultSet and no-ResultSet result
cases with a single interface for inspecting and stepping through them.
- Author:
- Oliver Jowett (oliver@opencloud.com)
-
Constructor Summary
ConstructorsConstructorDescriptionResultWrapper
(long updateCount, long insertOID, SqlCommandType commandType) ResultWrapper
(ResultSet rs, SqlCommandType commandType) -
Method Summary
Modifier and TypeMethodDescriptionappend
(ResultWrapper newResult) Append a result to its internal chain of results.long
getNext()
long
-
Constructor Details
-
ResultWrapper
-
ResultWrapper
-
-
Method Details
-
getResultSet
-
getUpdateCount
public long getUpdateCount() -
getInsertOID
public long getInsertOID() -
getNext
-
append
Append a result to its internal chain of results. It has a special behavior forSET
commands asSET
is discarded if there are other results in the chain. If this is aSET
command, thenewResult
is returned has the new head of the chain. If the newResult is aSET
command, it's not appended and this is returned.- Parameters:
newResult
- the result to append- Returns:
- the head of the chain
-