| Constructor and Description |
|---|
DBJooqImpl(DBClient client) |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.jooq.Record> |
jooqDelect(org.jooq.Delete<T> delete)
jooq 删除
|
<T extends DBObject> |
jooqExists(org.jooq.SQLDialect sqlDialect,
List<org.jooq.Condition> condition,
Class<T> clz)
jooq判断是否存在
|
<T extends org.jooq.Record> |
jooqInsert(org.jooq.Insert<T> insert)
jooq 插入
|
<T extends org.jooq.Record> |
jooqInsert(org.jooq.Insert<T> insert,
org.jooq.Table<T> table,
Map<String,Object> keyValues)
带返回值的插入
|
<T> void |
jooqSelectIterator(OrmIterator<T> ormIt,
Class<T> beanClass,
org.jooq.Select<?> select)
jooq 查询按流返回
|
<T> List<T> |
jooqSelectList(org.jooq.Select<?> select,
Class<T> returnClass)
jooq 查询list
|
<T> T |
jooqSelectOne(org.jooq.Select<?> select,
Class<T> returnClass)
jooq 查询单一对象
|
<T> Page<T> |
jooqSelectPage(org.jooq.Select<?> countSelect,
org.jooq.Select<?> pageSelect,
Class<T> returnClass)
jooq 查询分页
|
<T> void |
jooqSelectStream(OrmStream<T> ormStream,
Class<T> beanClass,
org.jooq.Select<?> select)
jooq 查询按流返回
|
<T extends org.jooq.Record> |
jooqUpdate(org.jooq.Update<T> update)
jooq 更新
|
protected DBClient client
public DBJooqImpl(DBClient client)
public <T extends DBObject> boolean jooqExists(org.jooq.SQLDialect sqlDialect, List<org.jooq.Condition> condition, Class<T> clz)
DBJooqjooqExists in interface DBJooqsqlDialect - 可以传null,主要是用于商业版需要传入.public <T> T jooqSelectOne(org.jooq.Select<?> select,
Class<T> returnClass)
DBJooqjooqSelectOne in interface DBJooqselect - 查询语句returnClass - 返回类型public <T> List<T> jooqSelectList(org.jooq.Select<?> select, Class<T> returnClass)
DBJooqjooqSelectList in interface DBJooqpublic <T> Page<T> jooqSelectPage(org.jooq.Select<?> countSelect, org.jooq.Select<?> pageSelect, Class<T> returnClass)
DBJooqjooqSelectPage in interface DBJooqT - 返回值根据select的查询条件变化,可能为bean,单一值,或MapcountSelect - 查询总数的selectpageSelect - 查询列表的select,必须包含分页参数.returnClass - 返回值public <T> void jooqSelectIterator(OrmIterator<T> ormIt, Class<T> beanClass, org.jooq.Select<?> select)
DBJooqjooqSelectIterator in interface DBJooqpublic <T> void jooqSelectStream(OrmStream<T> ormStream, Class<T> beanClass, org.jooq.Select<?> select)
DBJooqjooqSelectStream in interface DBJooqpublic <T extends org.jooq.Record> int jooqInsert(org.jooq.Insert<T> insert)
DBJooqjooqInsert in interface DBJooqpublic <T extends org.jooq.Record> int jooqInsert(org.jooq.Insert<T> insert,
org.jooq.Table<T> table,
Map<String,Object> keyValues)
DBJooqjooqInsert in interface DBJooqtable - 使用的表public <T extends org.jooq.Record> int jooqUpdate(org.jooq.Update<T> update)
DBJooqjooqUpdate in interface DBJooqpublic <T extends org.jooq.Record> int jooqDelect(org.jooq.Delete<T> delete)
DBJooqjooqDelect in interface DBJooqCopyright © 2020. All rights reserved.