Package org.postgresql.core.v3
Class Portal
- java.lang.Object
-
- org.postgresql.core.v3.Portal
-
- All Implemented Interfaces:
ResultCursor
class Portal extends java.lang.Object implements 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
Fields Modifier and Type Field Description private java.lang.ref.PhantomReference<?>
cleanupRef
private byte[]
encodedName
private java.lang.String
portalName
private SimpleQuery
query
-
Constructor Summary
Constructors Constructor Description Portal(SimpleQuery query, java.lang.String portalName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this cursor.(package private) byte[]
getEncodedPortalName()
(package private) java.lang.String
getPortalName()
(package private) SimpleQuery
getQuery()
(package private) void
setCleanupRef(java.lang.ref.PhantomReference<?> cleanupRef)
java.lang.String
toString()
-
-
-
Field Detail
-
query
private final SimpleQuery query
-
portalName
private final java.lang.String portalName
-
encodedName
private final byte[] encodedName
-
cleanupRef
private java.lang.ref.PhantomReference<?> cleanupRef
-
-
Constructor Detail
-
Portal
Portal(SimpleQuery query, java.lang.String portalName)
-
-
Method Detail
-
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
java.lang.String getPortalName()
-
getEncodedPortalName
byte[] getEncodedPortalName()
-
getQuery
SimpleQuery getQuery()
-
setCleanupRef
void setCleanupRef(java.lang.ref.PhantomReference<?> cleanupRef)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-