Package io.vertx.tp.modular.jdbc
Class DataConnection
- java.lang.Object
-
- io.vertx.tp.modular.jdbc.DataConnection
-
- All Implemented Interfaces:
AoConnection
public class DataConnection extends Object implements AoConnection
-
-
Constructor Summary
Constructors Constructor Description DataConnection(io.vertx.up.commune.config.Database database)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longcount(String sql)intexecute(String sql)ConnectiongetConnection()io.vertx.up.commune.config.DatabasegetDatabase()org.jooq.DSLContextgetDSL()protected io.vertx.up.log.AnnalgetLogger()<T> List<T>select(String sql, String column)List<ConcurrentMap<String,Object>>select(String sql, String[] columns)
-
-
-
Method Detail
-
execute
public int execute(String sql)
- Specified by:
executein interfaceAoConnection
-
getDatabase
public io.vertx.up.commune.config.Database getDatabase()
- Specified by:
getDatabasein interfaceAoConnection
-
getConnection
public Connection getConnection()
- Specified by:
getConnectionin interfaceAoConnection
-
getDSL
public org.jooq.DSLContext getDSL()
- Specified by:
getDSLin interfaceAoConnection
-
select
public List<ConcurrentMap<String,Object>> select(String sql, String[] columns)
- Specified by:
selectin interfaceAoConnection
-
select
public <T> List<T> select(String sql, String column)
- Specified by:
selectin interfaceAoConnection
-
count
public Long count(String sql)
- Specified by:
countin interfaceAoConnection
-
getLogger
protected io.vertx.up.log.Annal getLogger()
-
-