|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.internal.NativeStruct
org.postgresql.pljava.internal.Portal
public class Portal
The Portal
correspons to the internal PostgreSQL
Portal
type.
Constructor Summary | |
---|---|
Portal()
|
Method Summary | |
---|---|
void |
close()
Performs an SPI_cursor_close . |
int |
fetch(boolean forward,
int count)
Performs an SPI_cursor_fetch . |
java.lang.String |
getName()
Returns the name of this Portal. |
int |
getPortalPos()
Returns the value of the portalPos attribute. |
TupleDesc |
getTupleDesc()
Returns the TupleDesc that describes the row Tuples for this Portal. |
void |
invalidate()
Invalidates this structure and frees up memory using the internal function SPI_cursor_close |
boolean |
isAtEnd()
Returns the value of the atEnd attribute. |
boolean |
isAtStart()
Returns the value of the atStart attribute. |
boolean |
isPosOverflow()
Returns the value of the posOverflow attribute. |
int |
move(boolean forward,
int count)
Performs an SPI_cursor_move . |
Methods inherited from class org.postgresql.pljava.internal.NativeStruct |
---|
getNative, isValid, releasePointer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Portal()
Method Detail |
---|
public void close()
SPI_cursor_close
.
public java.lang.String getName() throws java.sql.SQLException
java.sql.SQLException
- if the handle to the native structur is stale.public int getPortalPos() throws java.sql.SQLException
portalPos
attribute.
java.sql.SQLException
- if the handle to the native structur is stale.public TupleDesc getTupleDesc() throws java.sql.SQLException
java.sql.SQLException
- if the handle to the native structur is stale.public int fetch(boolean forward, int count) throws java.sql.SQLException
SPI_cursor_fetch
.
forward
- Set to true
for forward, false
for backward.count
- Maximum number of rows to fetch.
java.sql.SQLException
- if the handle to the native structur is stale.public void invalidate()
SPI_cursor_close
invalidate
in class NativeStruct
public boolean isAtEnd() throws java.sql.SQLException
atEnd
attribute.
java.sql.SQLException
- if the handle to the native structur is stale.public boolean isAtStart() throws java.sql.SQLException
atStart
attribute.
java.sql.SQLException
- if the handle to the native structur is stale.public boolean isPosOverflow() throws java.sql.SQLException
posOverflow
attribute.
java.sql.SQLException
- if the handle to the native structur is stale.public int move(boolean forward, int count) throws java.sql.SQLException
SPI_cursor_move
.
forward
- Set to true
for forward, false
for backward.count
- Maximum number of rows to fetch.
SPI_result
.
java.sql.SQLException
- if the handle to the native structur is stale.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |