public class DbChain extends QueryWrapperAdapter<DbChain> implements PropertySetter<DbChain>
QueryWrapper 并执行 Db 方法。| 限定符和类型 | 字段和说明 |
|---|---|
private Row |
rowData |
private String |
schema |
private String |
tableName |
context, dataSource, endFragments, groupByColumns, havingQueryCondition, hint, joins, joinTables, limitOffset, limitRows, orderBys, queryTables, selectColumns, unions, whereQueryCondition, with| 限定符 | 构造器和说明 |
|---|---|
private |
DbChain(String tableName) |
private |
DbChain(String schema,
String tableName) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
count() |
static DbChain |
create() |
static DbChain |
create(Object entity) |
boolean |
exists() |
private Row |
getRow() |
List<Row> |
list() |
<R> List<R> |
listAs(Class<R> asType) |
Object |
obj() |
<R> R |
objAs() |
<R> R |
objAs(Class<R> asType) |
<R> Optional<R> |
objAsOpt() |
<R> Optional<R> |
objAsOpt(Class<R> asType) |
List<Object> |
objList() |
<R> List<R> |
objListAs() |
<R> List<R> |
objListAs(Class<R> asType) |
Optional<Object> |
objOpt() |
Row |
one() |
<R> R |
oneAs(Class<R> asType) |
<R> Optional<R> |
oneAsOpt(Class<R> asType) |
Optional<Row> |
oneOpt() |
Page<Row> |
page(Page<Row> page) |
<R> Page<R> |
pageAs(Page<R> page,
Class<R> asType) |
boolean |
remove() |
boolean |
removeById() |
boolean |
save() |
boolean |
save(Object entity) |
<T> DbChain |
set(LambdaGetter<T> property,
Object value,
boolean isEffective)
设置字段对应参数值。
|
DbChain |
set(QueryColumn property,
Object value,
boolean isEffective)
设置字段对应参数值。
|
DbChain |
set(String property,
Object value,
boolean isEffective)
设置字段对应参数值。
|
DbChain |
setId(RowKey rowKey) |
DbChain |
setId(RowKey rowKey,
Object value) |
<T> DbChain |
setRaw(LambdaGetter<T> property,
Object value,
boolean isEffective)
设置字段对应原生值。
|
DbChain |
setRaw(QueryColumn property,
Object value,
boolean isEffective)
设置字段对应原生值。
|
DbChain |
setRaw(String property,
Object value,
boolean isEffective)
设置字段对应原生值。
|
static DbChain |
table(Class<?> entityClass) |
static DbChain |
table(QueryTable queryTable) |
static DbChain |
table(String tableName) |
static DbChain |
table(String schema,
String tableName) |
private static Row |
toRow(Object entity) |
boolean |
update() |
boolean |
update(Map<String,Object> data) |
boolean |
update(Object entity) |
boolean |
update(Row data) |
boolean |
updateById() |
and, and, and, and, and, and, and, and, as, between, between, between, between, between, between, clone, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, crossJoin, datasource, eq, eq, eq, eq, eq, eq, forUpdate, forUpdateNoWait, from, from, from, from, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, fullJoin, ge, ge, ge, ge, ge, ge, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, gt, gt, gt, gt, gt, gt, having, hint, in, in, in, in, in, in, in, in, in, in, in, in, in, in, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, isNotNull, isNotNull, isNotNull, isNotNull, isNotNull, isNotNull, isNull, isNull, isNull, isNull, isNull, isNull, join, join, join, join, join, join, join, le, le, le, le, le, le, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, like, like, like, like, like, like, likeLeft, likeLeft, likeLeft, likeLeft, likeLeft, likeLeft, likeRight, likeRight, likeRight, likeRight, likeRight, likeRight, limit, limit, lt, lt, lt, lt, lt, lt, ne, ne, ne, ne, ne, ne, notBetween, notBetween, notBetween, notBetween, notBetween, notBetween, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notLike, notLike, notLike, notLikeLeft, notLikeLeft, notLikeLeft, notLikeLeft, notLikeLeft, notLikeLeft, notLikeRight, notLikeRight, notLikeRight, notLikeRight, notLikeRight, notLikeRight, offset, or, or, or, or, or, or, or, or, orderBy, orderBy, orderBy, orderBy, orderBy, orderBy, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, select, select, select, select, select, select, select, union, unionAll, where, where, where, where, where, where, where, with, with, withRecursive, withRecursiveand, connectMap, create, create, create, hasCondition, joining, joining, joining, or, toSQLaddEndFragment, addGroupByColumns, addHavingQueryCondition, addJoin, addJoinTable, addOrderBy, addSelectColumn, addWhereQueryCondition, addWhereQueryCondition, clear, getContext, getContext, getDataSource, getEndFragments, getGroupByColumns, getHavingQueryCondition, getHint, getJoins, getJoinTables, getLimitOffset, getLimitRows, getOrderBys, getQueryTables, getSelectColumns, getUnions, getWhereQueryCondition, putContext, setContext, setDataSource, setEndFragments, setGroupByColumns, setHavingQueryCondition, setHint, setJoins, setJoinTables, setLimitOffset, setLimitRows, setOrderBys, setQueryTables, setSelectColumns, setUnions, setWhereQueryConditionpublic static DbChain table(QueryTable queryTable)
public DbChain set(String property, Object value, boolean isEffective)
PropertySetterset 在接口中 PropertySetter<DbChain>property - 字段名value - 参数值isEffective - 是否生效public DbChain set(QueryColumn property, Object value, boolean isEffective)
PropertySetterset 在接口中 PropertySetter<DbChain>property - 字段名value - 参数值isEffective - 是否生效public <T> DbChain set(LambdaGetter<T> property, Object value, boolean isEffective)
PropertySetterset 在接口中 PropertySetter<DbChain>property - 字段名value - 参数值isEffective - 是否生效public DbChain setRaw(String property, Object value, boolean isEffective)
PropertySettersetRaw 在接口中 PropertySetter<DbChain>property - 字段名value - 原生值isEffective - 是否生效public DbChain setRaw(QueryColumn property, Object value, boolean isEffective)
PropertySettersetRaw 在接口中 PropertySetter<DbChain>property - 字段名value - 原生值isEffective - 是否生效public <T> DbChain setRaw(LambdaGetter<T> property, Object value, boolean isEffective)
PropertySettersetRaw 在接口中 PropertySetter<DbChain>property - 字段名value - 原生值isEffective - 是否生效public boolean save()
public boolean remove()
public boolean removeById()
public boolean update()
public boolean updateById()
public long count()
public boolean exists()
public <R> R objAs()
Copyright © 2024. All rights reserved.