Package org.postgresql.core.v3
Class Portal
java.lang.Object
org.postgresql.core.v3.Portal
- All Implemented Interfaces:
ResultCursor
V3 ResultCursor implementation in terms of backend Portals. This holds the state of a single
Portal. We use a PhantomReference managed by our caller to handle resource cleanup.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PhantomReference<?>
private final byte[]
private final String
private final SimpleQuery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this cursor.(package private) byte[]
(package private) String
(package private) SimpleQuery
getQuery()
(package private) void
setCleanupRef
(PhantomReference<?> cleanupRef) toString()
-
Field Details
-
query
-
portalName
-
encodedName
private final byte[] encodedName -
cleanupRef
-
-
Constructor Details
-
Portal
Portal(SimpleQuery query, String portalName)
-
-
Method Details
-
close
public void close()Description copied from interface:ResultCursor
Close this cursor. This may not immediately free underlying resources but may make it happen more promptly. Closed cursors should not be passed to QueryExecutor methods.- Specified by:
close
in interfaceResultCursor
-
getPortalName
String getPortalName() -
getEncodedPortalName
byte[] getEncodedPortalName() -
getQuery
SimpleQuery getQuery() -
setCleanupRef
-
toString
-