Class UsingProperties

  • All Implemented Interfaces:
    org.postgresql.pljava.PooledObject, org.postgresql.pljava.ResultSetProvider, org.postgresql.pljava.ResultSetProvider.Large

    public class UsingProperties
    extends Object
    implements org.postgresql.pljava.ResultSetProvider.Large, org.postgresql.pljava.PooledObject
    Illustrates use of the ResultSetProvider interface to return (key,value) rows from the example.properties file, also making use of PL/Java's ObjectPool facility.
    Author:
    Thomas Hallgren
    • Method Detail

      • activate

        public void activate()
        Specified by:
        activate in interface org.postgresql.pljava.PooledObject
      • assignRowValues

        public boolean assignRowValues​(ResultSet receiver,
                                       long currentRow)
                                throws SQLException
        Specified by:
        assignRowValues in interface org.postgresql.pljava.ResultSetProvider
        Specified by:
        assignRowValues in interface org.postgresql.pljava.ResultSetProvider.Large
        Throws:
        SQLException
      • close

        public void close()
                   throws SQLException
        Specified by:
        close in interface org.postgresql.pljava.ResultSetProvider
        Throws:
        SQLException
      • passivate

        public void passivate()
        Specified by:
        passivate in interface org.postgresql.pljava.PooledObject
      • remove

        public void remove()
        Specified by:
        remove in interface org.postgresql.pljava.PooledObject