Class DatabaseTask

    • Constructor Summary

      Constructors 
      Constructor Description
      DatabaseTask()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void _execute​(java.sql.Connection connection)  
      void execute​(com.zaxxer.hikari.HikariDataSource dataSource)
      Execute the Task, making sure the Connection handle is released properly on exception.
      • Methods inherited from class java.lang.Object

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

      • DatabaseTask

        public DatabaseTask()
    • Method Detail

      • execute

        public void execute​(com.zaxxer.hikari.HikariDataSource dataSource)
                     throws java.sql.SQLException
        Execute the Task, making sure the Connection handle is released properly on exception.
        Parameters:
        dataSource - the HikariDataSource
        Throws:
        java.sql.SQLException - on error
      • _execute

        protected abstract void _execute​(java.sql.Connection connection)
                                  throws java.sql.SQLException
        Throws:
        java.sql.SQLException