Class SPIConnection

java.lang.Object
org.postgresql.pljava.jdbc.SPIConnection
All Implemented Interfaces:
AutoCloseable, Connection, Wrapper, SlotTester

public class SPIConnection extends Object implements Connection, SlotTester
Provides access to the current connection (session) the Java stored procedure is running in. It is returned from the driver manager with DriverManager.getConnection("jdbc:default:connection"); and cannot be managed in any way since it's already running inside a transaction. This means the following methods cannot be used.
  • commit()
  • rollback()
  • setAutoCommit()
  • setTransactionIsolation()
Author:
Thomas Hallgren