|
||||||||||
| 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.ExecutionPlan
The ExecutionPlan correspons to the execution plan obtained
using an internal PostgreSQL SPI_prepare call.
| Method Summary | |
void |
close()
Close the plan. |
Portal |
cursorOpen(java.lang.String cursorName,
java.lang.Object[] parameters)
Set up a cursor that will execute the plan using the internal SPI_cursor_open function |
int |
execute(java.lang.Object[] parameters,
int rowCount)
Execute the plan using the internal SPI_execp function. |
boolean |
isCursorPlan()
Checks if this ExecutionPlan can create a Portal
using cursorOpen(java.lang.String, java.lang.Object[]). |
static ExecutionPlan |
prepare(java.lang.String statement,
Oid[] argTypes)
Create an execution plan for a statement to be executed later using the internal SPI_prepare function. |
| Methods inherited from class org.postgresql.pljava.internal.NativeStruct |
getNative, invalidate, isValid, releasePointer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void close()
public Portal cursorOpen(java.lang.String cursorName,
java.lang.Object[] parameters)
throws java.sql.SQLException
SPI_cursor_open function
cursorName - Name of the cursor or null for a
system generated name.parameters - Values for the parameters.
Portal that represents the opened cursor.
java.sql.SQLException - If the underlying native structure has gone stale.
public boolean isCursorPlan()
throws java.sql.SQLException
ExecutionPlan can create a Portal
using cursorOpen(java.lang.String, java.lang.Object[]). This is true if the
plan contains only one regular SELECT query.
true if the plan can create a Portal
java.sql.SQLException - If the underlying native structure has gone stale.
public int execute(java.lang.Object[] parameters,
int rowCount)
throws java.sql.SQLException
SPI_execp function.
parameters - Values for the parameters.rowCount - The maximum number of tuples to create. A value
of rowCount of zero is interpreted as no limit, i.e.,
run to completion.
SPI.
java.sql.SQLException - If the underlying native structure has gone stale.
public static ExecutionPlan prepare(java.lang.String statement,
Oid[] argTypes)
throws java.sql.SQLException
SPI_prepare function.
statement - The command string.argTypes - SQL types of argument types.
java.sql.SQLExceptionTypes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||