Package io.vertx.tp.modular.jdbc
Interface AoConnection
-
- All Known Implementing Classes:
DataConnection
public interface AoConnection连接数据库专用类,检查连接,读取连接信息 业务数据的底层接口使用了 OxConnection中的内容,由于这部分内容使用了SQL标准化,所以连接的信息不依赖底层数据库种类。 实现类:cn.vertxup.tp.modular.jdbc.DataConnection,主要负责一些SQL语句的CRUD操作,以及带有聚集的复杂聚集操作; 和 vie一样,连接本身面向数据库,所以和上层的 Record 不相干,由于取消了 Value / DataType 的最底层接口(实际看来很繁琐), 直接使用了Java语言中的核心内容,于是底层的 CRUD 就等价于 Connection + JqTool Engine的双组件结构。- Author:
- lang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Longcount(String sql)intexecute(String sql)ConnectiongetConnection()io.vertx.up.commune.config.DatabasegetDatabase()org.jooq.DSLContextgetDSL()<T> List<T>select(String sql, String column)List<ConcurrentMap<String,Object>>select(String sql, String[] columns)
-
-
-
Method Detail
-
getDatabase
io.vertx.up.commune.config.Database getDatabase()
-
getConnection
Connection getConnection()
-
getDSL
org.jooq.DSLContext getDSL()
-
execute
int execute(String sql)
-
-