public class RelationsQuery<T extends Model<T>> extends RelationsBuilder<T>
Relations Query 的方式进行关联查询。delegate| Constructor and Description |
|---|
RelationsQuery(Model<T> model) |
| Modifier and Type | Method and Description |
|---|---|
RelationsQuery<T> |
extraConditionParam(String key,
Object value)
添加额外的
Relations 查询条件。 |
<L> RelationsQuery<T> |
ignoreRelations(LambdaGetter<L>... fields)
忽略查询部分
Relations 注解标记的属性。 |
RelationsQuery<T> |
ignoreRelations(String... fields)
忽略查询部分
Relations 注解标记的属性。 |
RelationsQuery<T> |
maxDepth(int maxDepth)
设置父子关系查询中,默认的递归查询深度。
|
T |
oneById()
根据主键查询一条数据。
|
<R> R |
oneByIdAs(Class<R> asType)
根据主键查询一条数据,返回的数据为 asType 类型。
|
protected Object |
pkValue() |
list, listAs, one, oneAs, page, pageAsbaseMapper, queryWrapperclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoneAsOpt, oneOptpublic RelationsQuery<T> ignoreRelations(String... fields)
RelationsBuilderRelations 注解标记的属性。ignoreRelations in class RelationsBuilder<T extends Model<T>>fields - 属性Relations 查询构建public <L> RelationsQuery<T> ignoreRelations(LambdaGetter<L>... fields)
RelationsBuilderRelations 注解标记的属性。ignoreRelations in class RelationsBuilder<T extends Model<T>>fields - 属性Relations 查询构建public RelationsQuery<T> maxDepth(int maxDepth)
RelationsBuildermaxDepth in class RelationsBuilder<T extends Model<T>>maxDepth - 查询深度Relations 查询构建public RelationsQuery<T> extraConditionParam(String key, Object value)
RelationsBuilderRelations 查询条件。extraConditionParam in class RelationsBuilder<T extends Model<T>>key - 键value - 值Relations 查询构建protected Object pkValue()
public T oneById()
public <R> R oneByIdAs(Class<R> asType)
R - 接收数据类型asType - 接收数据类型Copyright © 2024. All rights reserved.