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)
DBJooq
jooqExists
in interface DBJooq
sqlDialect
- 可以传null,主要是用于商业版需要传入.public <T> T jooqSelectOne(org.jooq.Select<?> select, Class<T> returnClass)
DBJooq
jooqSelectOne
in interface DBJooq
select
- 查询语句returnClass
- 返回类型public <T> List<T> jooqSelectList(org.jooq.Select<?> select, Class<T> returnClass)
DBJooq
jooqSelectList
in interface DBJooq
public <T> Page<T> jooqSelectPage(org.jooq.Select<?> countSelect, org.jooq.Select<?> pageSelect, Class<T> returnClass)
DBJooq
jooqSelectPage
in interface DBJooq
T
- 返回值根据select的查询条件变化,可能为bean,单一值,或MapcountSelect
- 查询总数的selectpageSelect
- 查询列表的select,必须包含分页参数.returnClass
- 返回值public <T> void jooqSelectIterator(OrmIterator<T> ormIt, Class<T> beanClass, org.jooq.Select<?> select)
DBJooq
jooqSelectIterator
in interface DBJooq
public <T> void jooqSelectStream(OrmStream<T> ormStream, Class<T> beanClass, org.jooq.Select<?> select)
DBJooq
jooqSelectStream
in interface DBJooq
public <T extends org.jooq.Record> int jooqInsert(org.jooq.Insert<T> insert)
DBJooq
jooqInsert
in interface DBJooq
public <T extends org.jooq.Record> int jooqInsert(org.jooq.Insert<T> insert, org.jooq.Table<T> table, Map<String,Object> keyValues)
DBJooq
jooqInsert
in interface DBJooq
table
- 使用的表public <T extends org.jooq.Record> int jooqUpdate(org.jooq.Update<T> update)
DBJooq
jooqUpdate
in interface DBJooq
public <T extends org.jooq.Record> int jooqDelect(org.jooq.Delete<T> delete)
DBJooq
jooqDelect
in interface DBJooq
Copyright © 2020. All rights reserved.