public class UnionSelect extends AbstractUnion
| 构造器和说明 |
|---|
UnionSelect(UnionType unionType) |
| 限定符和类型 | 方法和说明 |
|---|---|
FetchResult<Object> |
fetch()
获取查询结果,返回
FetchResult单表查询时默认返回表实体类实例化后的对象。 |
<T> FetchResult<T> |
fetch(Class<T> returnClass)
获取查询结果,返回指定类型的数据。
|
ParameterBinder |
getParameterBinder() |
String |
getRawSql() |
void |
parseSelectDsls(SelectDsl[] selects) |
getTableRelation, limit, limit, nullsFirst, nullsFirst, nullsLast, nullsLast, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderByclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetchOriginalMappublic UnionSelect(UnionType unionType)
public void parseSelectDsls(SelectDsl[] selects)
public FetchResult<Object> fetch()
FetchableFetchResultthis#fetch(Class),否则编译器可能要求手动强转类型,即使是类型安全的。
通常情况下,如果编译器没有准确的推断出具体类型(此时引用类型为Object),则一般会抛出参数状态异常
fetch 在接口中 Fetchablefetch 在类中 ThenSortOrder<Object>Fetchable.fetch(Class)public <T> FetchResult<T> fetch(Class<T> returnClass)
Fetchablefetch 在接口中 Fetchablefetch 在类中 ThenSortOrder<Object>T - 返回的数据类型returnClass - 结果数据类型的 Class 对象FetchResultpublic String getRawSql()
public ParameterBinder getParameterBinder()
Copyright © 2024–2026 Dynamic-SQL. All rights reserved.