- All Superinterfaces:
AutoCloseable
Models a PostgreSQL
Portal
, an object representing the ongoing
execution of a query and capable of returning a TupleDescriptor
for
the result, and fetching tuples of the result, either all at once, or in
smaller batches.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
fetch
(Portal.Direction dir, long count) Fetches count more tuples (orALL
of them) in the specified direction.long
move
(Portal.Direction dir, long count) Moves thePortal
's current position count rows (orALL
possible) in the specified direction.Returns theTupleDescriptor
describing any tuples that may be fetched from thisPortal
.
-
Field Details
-
ALL
static final long ALL- See Also:
-
-
Method Details
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
-
tupleDescriptor
Returns theTupleDescriptor
describing any tuples that may be fetched from thisPortal
.- Throws:
SQLException
-
fetch
Fetches count more tuples (orALL
of them) in the specified direction.- Returns:
- a notional List of the fetched tuples. Iterating through the list may return the same TupleTableSlot repeatedly, with each tuple in turn stored in the slot.
- Throws:
SQLException
- See Also:
-
move
Moves thePortal
's current position count rows (orALL
possible) in the specified direction.- Returns:
- the number of rows by which the position actually moved
- Throws:
SQLException
- See Also:
-