- java.lang.Object
-
- org.postgresql.pljava.internal.SPI
-
public class SPI extends Object
TheSPI
class provides access to some global variables used by SPI.- Author:
- Thomas Hallgren
-
-
Field Summary
Fields Modifier and Type Field Description 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_REL_DUPLICATE
static int
ERROR_REL_NOT_FOUND
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_DELETE_RETURNING
static int
OK_FETCH
static int
OK_FINISH
static int
OK_INSERT
static int
OK_INSERT_RETURNING
static int
OK_MERGE
static int
OK_REL_REGISTER
static int
OK_REL_UNREGISTER
static int
OK_REWRITTEN
static int
OK_SELECT
static int
OK_SELINTO
static int
OK_TD_REGISTER
static int
OK_UPDATE
static int
OK_UPDATE_RETURNING
static int
OK_UTILITY
static int
OPT_NONATOMIC
-
Constructor Summary
Constructors Constructor Description SPI()
-
Method Summary
Modifier and Type Method Description static void
freeTupTable()
static long
getProcessed()
Returns the value of the global variableSPI_processed
.static int
getResult()
Returns the value of the global variableSPI_result
.static String
getResultText(int resultCode)
Returns a textual representation of a result code.static TupleTable
getTupTable(TupleDesc known)
Returns the value of the global variableSPI_tuptable
.
-
-
-
Field Detail
-
ERROR_CONNECT
public static final int ERROR_CONNECT
- See Also:
- Constant Field Values
-
ERROR_COPY
public static final int ERROR_COPY
- See Also:
- Constant Field Values
-
ERROR_OPUNKNOWN
public static final int ERROR_OPUNKNOWN
- See Also:
- Constant Field Values
-
ERROR_UNCONNECTED
public static final int ERROR_UNCONNECTED
- See Also:
- Constant Field Values
-
ERROR_CURSOR
public static final int ERROR_CURSOR
- See Also:
- Constant Field Values
-
ERROR_ARGUMENT
public static final int ERROR_ARGUMENT
- See Also:
- Constant Field Values
-
ERROR_PARAM
public static final int ERROR_PARAM
- See Also:
- Constant Field Values
-
ERROR_TRANSACTION
public static final int ERROR_TRANSACTION
- See Also:
- Constant Field Values
-
ERROR_NOATTRIBUTE
public static final int ERROR_NOATTRIBUTE
- See Also:
- Constant Field Values
-
ERROR_NOOUTFUNC
public static final int ERROR_NOOUTFUNC
- See Also:
- Constant Field Values
-
ERROR_TYPUNKNOWN
public static final int ERROR_TYPUNKNOWN
- See Also:
- Constant Field Values
-
ERROR_REL_DUPLICATE
public static final int ERROR_REL_DUPLICATE
- See Also:
- Constant Field Values
-
ERROR_REL_NOT_FOUND
public static final int ERROR_REL_NOT_FOUND
- See Also:
- Constant Field Values
-
OK_CONNECT
public static final int OK_CONNECT
- See Also:
- Constant Field Values
-
OK_FINISH
public static final int OK_FINISH
- See Also:
- Constant Field Values
-
OK_FETCH
public static final int OK_FETCH
- See Also:
- Constant Field Values
-
OK_UTILITY
public static final int OK_UTILITY
- See Also:
- Constant Field Values
-
OK_SELECT
public static final int OK_SELECT
- See Also:
- Constant Field Values
-
OK_SELINTO
public static final int OK_SELINTO
- See Also:
- Constant Field Values
-
OK_INSERT
public static final int OK_INSERT
- See Also:
- Constant Field Values
-
OK_DELETE
public static final int OK_DELETE
- See Also:
- Constant Field Values
-
OK_UPDATE
public static final int OK_UPDATE
- See Also:
- Constant Field Values
-
OK_CURSOR
public static final int OK_CURSOR
- See Also:
- Constant Field Values
-
OK_INSERT_RETURNING
public static final int OK_INSERT_RETURNING
- See Also:
- Constant Field Values
-
OK_DELETE_RETURNING
public static final int OK_DELETE_RETURNING
- See Also:
- Constant Field Values
-
OK_UPDATE_RETURNING
public static final int OK_UPDATE_RETURNING
- See Also:
- Constant Field Values
-
OK_REWRITTEN
public static final int OK_REWRITTEN
- See Also:
- Constant Field Values
-
OK_REL_REGISTER
public static final int OK_REL_REGISTER
- See Also:
- Constant Field Values
-
OK_REL_UNREGISTER
public static final int OK_REL_UNREGISTER
- See Also:
- Constant Field Values
-
OK_TD_REGISTER
public static final int OK_TD_REGISTER
- See Also:
- Constant Field Values
-
OK_MERGE
public static final int OK_MERGE
- See Also:
- Constant Field Values
-
OPT_NONATOMIC
public static final int OPT_NONATOMIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
freeTupTable
public static void freeTupTable()
-
getProcessed
public static long getProcessed()
Returns the value of the global variableSPI_processed
.
-
getResult
public static int getResult()
Returns the value of the global variableSPI_result
.
-
getTupTable
public static TupleTable getTupTable(TupleDesc known)
Returns the value of the global variableSPI_tuptable
.
-
getResultText
public static String getResultText(int resultCode)
Returns a textual representation of a result code.
-
-