| 程序包 | 说明 |
|---|---|
| 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 tableAlias)
设置带有别名的主表。
|
TableRelation<?> |
ColumnReference.from(Consumer<AbstractColumnReference> nestedSelect,
String selectAlias) |
abstract TableRelation<?> |
AbstractColumnReference.from(Consumer<AbstractColumnReference> nestedSelect,
String tableAlias)
设置嵌套查询作为主表。
|
TableRelation<?> |
ColumnReference.from(CteTable cteTable) |
abstract TableRelation<?> |
AbstractColumnReference.from(CteTable cteTable)
设置公共表表达式(CTE)为主表。
|
<T> TableRelation<T> |
ColumnReference.from(Supplier<TableFunction> tableFunction,
String tableAlias) |
abstract <T> TableRelation<T> |
AbstractColumnReference.from(Supplier<TableFunction> tableFunction,
String tableAlias)
设置表函数作为主表。
|
| 限定符和类型 | 方法和说明 |
|---|---|
TableRelation<R> |
TableRelation.groupBy(boolean isEffective,
ColumFunction... columFunction) |
<T> TableRelation<R> |
TableRelation.groupBy(boolean isEffective,
FieldFn<T,?>... fnKey) |
TableRelation<R> |
TableRelation.groupBy(boolean isEffective,
GroupFn... groupByFn) |
<T> TableRelation<R> |
TableRelation.groupBy(boolean isEffective,
String tableAlias,
FieldFn<T,?> fn) |
TableRelation<R> |
TableRelation.groupBy(boolean isEffective,
String tableAlias,
String columnName) |
TableRelation<R> |
TableRelation.groupBy(ColumFunction... columFunction) |
<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(boolean isEffective,
Consumer<HavingCondition<GenericWhereCondition>> condition) |
TableRelation<R> |
TableRelation.having(Consumer<HavingCondition<GenericWhereCondition>> condition) |
TableRelation<?> |
JoinCondition.where()
空条件 WHERE,返回无条件的查询上下文。
|
TableRelation<R> |
TableRelation.where() |
TableRelation<?> |
JoinCondition.where(boolean isEffective,
Consumer<GenericWhereCondition> condition) |
TableRelation<R> |
TableRelation.where(boolean isEffective,
Consumer<GenericWhereCondition> condition) |
TableRelation<?> |
JoinCondition.where(Consumer<GenericWhereCondition> condition)
追加 WHERE 条件。
|
TableRelation<R> |
TableRelation.where(Consumer<GenericWhereCondition> condition) |
| 构造器和说明 |
|---|
ThenSortOrder(boolean condition,
TableRelation<R> tableRelation,
OrderBy orderBy) |
Copyright © 2024–2025 Dynamic-SQL. All rights reserved.