Package ch.ergon.adam.jooq
Class JooqSqlExecutor
java.lang.Object
ch.ergon.adam.jooq.JooqSqlExecutor
- All Implemented Interfaces:
ch.ergon.adam.core.db.interfaces.SqlExecutor,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJooqSqlExecutor(String url, String schema) JooqSqlExecutor(Connection dbConnection, String schema) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidexecuteScript(String script) queryResult(String query, Object... params) voidrollback()
-
Field Details
-
context
protected final org.jooq.DSLContext context
-
-
Constructor Details
-
JooqSqlExecutor
-
JooqSqlExecutor
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
executeScript
- Specified by:
executeScriptin interfacech.ergon.adam.core.db.interfaces.SqlExecutor
-
queryResult
- Specified by:
queryResultin interfacech.ergon.adam.core.db.interfaces.SqlExecutor
-
rollback
public void rollback()- Specified by:
rollbackin interfacech.ergon.adam.core.db.interfaces.SqlExecutor
-
dropSchema
public void dropSchema()- Specified by:
dropSchemain interfacech.ergon.adam.core.db.interfaces.SqlExecutor
-