|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.internal.SPI
public class SPI
The SPI
class provides access to some global
variables used by SPI.
Field Summary | |
---|---|
static int |
ERROR_ARGUMENT
|
static int |
ERROR_CONNECT
|
static int |
ERROR_COPY
|
static int |
ERROR_CURSOR
|
static int |
ERROR_NOATTRIBUTE
|
static int |
ERROR_NOOUTFUNC
|
static int |
ERROR_OPUNKNOWN
|
static int |
ERROR_PARAM
|
static int |
ERROR_TRANSACTION
|
static int |
ERROR_TYPUNKNOWN
|
static int |
ERROR_UNCONNECTED
|
static int |
OK_CONNECT
|
static int |
OK_CURSOR
|
static int |
OK_DELETE
|
static int |
OK_FETCH
|
static int |
OK_FINISH
|
static int |
OK_INSERT
|
static int |
OK_SELECT
|
static int |
OK_SELINTO
|
static int |
OK_UPDATE
|
static int |
OK_UTILITY
|
Constructor Summary | |
---|---|
SPI()
|
Method Summary | |
---|---|
static int |
exec(java.lang.String command,
int rowCount)
Execute a command using the internal SPI_exec function. |
static void |
freeTupTable()
|
static int |
getProcessed()
Returns the value of the global variable SPI_processed . |
static int |
getResult()
Returns the value of the global variable SPI_result . |
static java.lang.String |
getResultText(int resultCode)
Returns a textual representatio of a result code |
static TupleTable |
getTupTable(TupleDesc known)
Returns the value of the global variable SPI_tuptable . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERROR_CONNECT
public static final int ERROR_COPY
public static final int ERROR_OPUNKNOWN
public static final int ERROR_UNCONNECTED
public static final int ERROR_CURSOR
public static final int ERROR_ARGUMENT
public static final int ERROR_PARAM
public static final int ERROR_TRANSACTION
public static final int ERROR_NOATTRIBUTE
public static final int ERROR_NOOUTFUNC
public static final int ERROR_TYPUNKNOWN
public static final int OK_CONNECT
public static final int OK_FINISH
public static final int OK_FETCH
public static final int OK_UTILITY
public static final int OK_SELECT
public static final int OK_SELINTO
public static final int OK_INSERT
public static final int OK_DELETE
public static final int OK_UPDATE
public static final int OK_CURSOR
Constructor Detail |
---|
public SPI()
Method Detail |
---|
public static int exec(java.lang.String command, int rowCount)
SPI_exec
function.
command
- The command to execute.rowCount
- The maximum number of tuples to create. A value
of rowCount
of zero is interpreted as no limit, i.e.,
run to completion.
public static void freeTupTable()
public static int getProcessed()
SPI_processed
.
public static int getResult()
SPI_result
.
public static TupleTable getTupTable(TupleDesc known)
SPI_tuptable
.
public static java.lang.String getResultText(int resultCode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |