public static class GroupConcat.GroupConcatOptions extends Object
用于描述 group_concat 的可选子句,包括:
示例:
new GroupConcatOptions(User::getName)
.distinct(User::getName)
.orderBy(User::getAge, ASC)
.thenOrderBy(User::getId, DESC)
.separator("; ");
| 构造器和说明 |
|---|
GroupConcatOptions() |
GroupConcatOptions(FieldFn<T,F> fn) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T,F> GroupConcat.GroupConcatOptions |
distinct(FieldFn<T,F> fn)
DISTINCT
|
protected Distinct |
getDistinct() |
protected FieldFn |
getFn() |
protected List<OrderBy> |
getOrderByList() |
protected String |
getSeparator() |
<T2,F2> GroupConcat.GroupConcatOptions |
orderBy(FieldFn<T2,F2> fn,
SortOrder sortOrder)
ORDER BY ASC
|
GroupConcat.GroupConcatOptions |
orderBy(OrderBy orderBy) |
GroupConcat.GroupConcatOptions |
separator(String separator)
SEPARATOR
|
<T2,F2> GroupConcat.GroupConcatOptions |
thenOrderBy(FieldFn<T2,F2> fn,
SortOrder sortOrder) |
GroupConcat.GroupConcatOptions |
thenOrderBy(OrderBy orderBy) |
public GroupConcatOptions()
public GroupConcatOptions(FieldFn<T,F> fn)
public <T,F> GroupConcat.GroupConcatOptions distinct(FieldFn<T,F> fn)
public <T2,F2> GroupConcat.GroupConcatOptions orderBy(FieldFn<T2,F2> fn, SortOrder sortOrder)
public <T2,F2> GroupConcat.GroupConcatOptions thenOrderBy(FieldFn<T2,F2> fn, SortOrder sortOrder)
public GroupConcat.GroupConcatOptions orderBy(OrderBy orderBy)
public GroupConcat.GroupConcatOptions thenOrderBy(OrderBy orderBy)
public GroupConcat.GroupConcatOptions separator(String separator)
protected String getSeparator()
protected Distinct getDistinct()
protected FieldFn getFn()
Copyright © 2024–2026 Dynamic-SQL. All rights reserved.