org.postgresql.pljava.example
Class SPIActions

java.lang.Object
  extended by org.postgresql.pljava.example.SPIActions

public class SPIActions
extends Object

Some methods used for testing the SPI JDBC driver.

Author:
Thomas Hallgren

Constructor Summary
SPIActions()
           
 
Method Summary
static String getDateAsString()
           
static String getTimeAsString()
           
static int maxFromSetReturnExample(int base, int increment)
           
static int testSavepointSanity()
           
static int testTransactionRecovery()
           
static int transferPeopleWithSalary(int salary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPIActions

public SPIActions()
Method Detail

testSavepointSanity

public static int testSavepointSanity()
                               throws SQLException
Throws:
SQLException

testTransactionRecovery

public static int testTransactionRecovery()
                                   throws SQLException
Throws:
SQLException

transferPeopleWithSalary

public static int transferPeopleWithSalary(int salary)
                                    throws SQLException
Throws:
SQLException

maxFromSetReturnExample

public static int maxFromSetReturnExample(int base,
                                          int increment)
                                   throws SQLException
Throws:
SQLException

getDateAsString

public static String getDateAsString()
                              throws SQLException
Throws:
SQLException

getTimeAsString

public static String getTimeAsString()
                              throws SQLException
Throws:
SQLException