Class OpenPostgresTransaction

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class OpenPostgresTransaction
    extends java.lang.Object
    implements java.lang.AutoCloseable
    A helper class that opens a transaction in the PostgreSQL database.
    It is used to select records with a cursor. This is necessary for fetNxt.
    Since:
    15.08.2024
    Author:
    weiland
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenPostgresTransaction​(de.pisa.psc.srv.glb.PscSsn ssn)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpenPostgresTransaction

        public OpenPostgresTransaction​(de.pisa.psc.srv.glb.PscSsn ssn)
                                throws java.sql.SQLException
        Constructor
        Parameters:
        ssn - session
        Throws:
        java.sql.SQLException
    • Method Detail

      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
        See Also:
        AutoCloseable.close()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()