| 程序包 | 说明 |
|---|---|
| com.dynamic.sql.core | |
| com.dynamic.sql.core.dml.select |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> TableRelation<T> |
ColumnReference.from(Class<T> tableClass) |
abstract <T> TableRelation<T> |
AbstractColumnReference.from(Class<T> tableClass)
设置查询的主表。
|
<T> TableRelation<T> |
ColumnReference.from(Class<T> tableClass,
String alias) |
abstract <T> TableRelation<T> |
AbstractColumnReference.from(Class<T> tableClass,
String alias)
设置带有别名的主表。
|
TableRelation<?> |
ColumnReference.from(Consumer<AbstractColumnReference> nestedSelect,
String selectAlias) |
abstract TableRelation<?> |
AbstractColumnReference.from(Consumer<AbstractColumnReference> nestedSelect,
String selectAlias)
设置一个嵌套查询作为主表。
|
TableRelation<?> |
ColumnReference.from(CteTable cteTable) |
abstract TableRelation<?> |
AbstractColumnReference.from(CteTable cteTable)
设置一个公共表表达式(CTE)为主表。
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> TableRelation<R> |
TableRelation.groupBy(FieldFn<T,?>... fnKey) |
TableRelation<R> |
TableRelation.groupBy(GroupFn... groupByFn) |
<T> TableRelation<R> |
TableRelation.groupBy(String tableAlias,
FieldFn<T,?> fn) |
TableRelation<R> |
TableRelation.groupBy(String tableAlias,
String columnName) |
TableRelation<R> |
TableRelation.having(Consumer<HavingCondition> condition) |
TableRelation<R> |
TableRelation.where() |
TableRelation<?> |
JoinCondition.where()
空条件 WHERE,返回无条件的查询上下文。
|
TableRelation<R> |
TableRelation.where(Consumer<WhereCondition> condition) |
TableRelation<?> |
JoinCondition.where(Consumer<WhereCondition> condition)
追加 WHERE 条件。
|
| 构造器和说明 |
|---|
ThenSortOrder(TableRelation<R> tableRelation,
OrderBy orderBy) |
Copyright © 2024 Dynamic-SQL. All rights reserved.