ERROR_ARGUMENT
public static final int ERROR_ARGUMENT
ERROR_CONNECT
public static final int ERROR_CONNECT
ERROR_COPY
public static final int ERROR_COPY
ERROR_CURSOR
public static final int ERROR_CURSOR
ERROR_NOATTRIBUTE
public static final int ERROR_NOATTRIBUTE
ERROR_NOOUTFUNC
public static final int ERROR_NOOUTFUNC
ERROR_OPUNKNOWN
public static final int ERROR_OPUNKNOWN
ERROR_PARAM
public static final int ERROR_PARAM
ERROR_TRANSACTION
public static final int ERROR_TRANSACTION
ERROR_TYPUNKNOWN
public static final int ERROR_TYPUNKNOWN
ERROR_UNCONNECTED
public static final int ERROR_UNCONNECTED
OK_CONNECT
public static final int OK_CONNECT
OK_CURSOR
public static final int OK_CURSOR
OK_DELETE
public static final int OK_DELETE
OK_FETCH
public static final int OK_FETCH
OK_FINISH
public static final int OK_FINISH
OK_INSERT
public static final int OK_INSERT
OK_SELECT
public static final int OK_SELECT
OK_SELINTO
public static final int OK_SELINTO
OK_UPDATE
public static final int OK_UPDATE
OK_UTILITY
public static final int OK_UTILITY
exec
public static int exec(String command,
int rowCount)
Execute a command using the internal 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.
- One of the declared status codes.
freeTupTable
public static void freeTupTable()
getProcessed
public static int getProcessed()
Returns the value of the global variable SPI_processed
.
getResult
public static int getResult()
Returns the value of the global variable SPI_result
.
getResultText
public static String getResultText(int resultCode)
Returns a textual representatio of a result code
getTupTable
public static TupleTable getTupTable(TupleDesc known)
Returns the value of the global variable SPI_tuptable
.