Class JooqSqlExecutor

java.lang.Object
ch.ergon.adam.jooq.JooqSqlExecutor
All Implemented Interfaces:
ch.ergon.adam.core.db.interfaces.SqlExecutor, AutoCloseable

public class JooqSqlExecutor extends Object implements ch.ergon.adam.core.db.interfaces.SqlExecutor
  • Field Details

    • context

      protected final org.jooq.DSLContext context
  • Constructor Details

    • JooqSqlExecutor

      public JooqSqlExecutor(String url, String schema)
    • JooqSqlExecutor

      public JooqSqlExecutor(Connection dbConnection, String schema)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • executeScript

      public void executeScript(String script)
      Specified by:
      executeScript in interface ch.ergon.adam.core.db.interfaces.SqlExecutor
    • queryResult

      public Object queryResult(String query, Object... params)
      Specified by:
      queryResult in interface ch.ergon.adam.core.db.interfaces.SqlExecutor
    • rollback

      public void rollback()
      Specified by:
      rollback in interface ch.ergon.adam.core.db.interfaces.SqlExecutor
    • dropSchema

      public void dropSchema()
      Specified by:
      dropSchema in interface ch.ergon.adam.core.db.interfaces.SqlExecutor