Class SetExpressionImpl<T,Q extends AbstractBlazeJPAQuery<T,Q>>
java.lang.Object
com.blazebit.persistence.querydsl.SetExpressionImpl<T,Q>
- Type Parameters:
T- result typeQ- concrete query type
- All Implemented Interfaces:
ExtendedFetchable<T>,SetExpression<T>,com.querydsl.core.Fetchable<T>,com.querydsl.core.types.Expression<T>,com.querydsl.core.types.SubQueryExpression<T>,Serializable
public class SetExpressionImpl<T,Q extends AbstractBlazeJPAQuery<T,Q>> extends Object implements SetExpression<T>
Default implementation for
SetExpression. Analog to UnionImpl.- Since:
- 1.5.0
- Author:
- Jan-Willem Gmelig Meyling
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SetExpressionImpl(AbstractBlazeJPAQuery<T,?> query) -
Method Summary
Modifier and Type Method Description <R, C> Raccept(com.querydsl.core.types.Visitor<R,C> v, C context)List<T>fetch()longfetchCount()TfetchFirst()TfetchOne()PagedList<T>fetchPage(int firstResult, int maxResults)Execute the query and return the result as a type PagedList.PagedList<T>fetchPage(KeysetPage keysetPage, int firstResult, int maxResults)Execute the query and return the result as a type PagedList.com.querydsl.core.QueryResults<T>fetchResults()com.querydsl.core.QueryMetadatagetMetadata()StringgetQueryString()Get the query string.Class<? extends T>getType()com.mysema.commons.lang.CloseableIterator<T>iterate()SetExpression<T>limit(long limit)Set the limit / max results for the query resultsSetExpression<T>offset(long offset)Set the offset for the query resultsSetExpression<T>orderBy(com.querydsl.core.types.OrderSpecifier<?>... o)Define the ordering of the query resultsStringtoString()
-
Constructor Details
-
Method Details
-
fetchPage
Description copied from interface:ExtendedFetchableExecute the query and return the result as a type PagedList.- Specified by:
fetchPagein interfaceExtendedFetchable<T>- Parameters:
firstResult- The position of the first result to retrieve, numbered from 0maxResults- The maximum number of results to retrieve- Returns:
- The paged list of the results
- See Also:
FullQueryBuilder.page(int, int)
-
fetchPage
Description copied from interface:ExtendedFetchableExecute the query and return the result as a type PagedList.- Specified by:
fetchPagein interfaceExtendedFetchable<T>- Parameters:
keysetPage- The key set from a previous result, may be nullfirstResult- The position of the first result to retrieve, numbered from 0maxResults- The maximum number of results to retrieve- Returns:
- The paged list of the results
- See Also:
FullQueryBuilder.page(KeysetPage, int, int)
-
fetch
- Specified by:
fetchin interfacecom.querydsl.core.Fetchable<T>
-
fetchFirst
- Specified by:
fetchFirstin interfacecom.querydsl.core.Fetchable<T>
-
fetchOne
- Specified by:
fetchOnein interfacecom.querydsl.core.Fetchable<T>- Throws:
com.querydsl.core.NonUniqueResultException
-
iterate
- Specified by:
iteratein interfacecom.querydsl.core.Fetchable<T>
-
fetchResults
- Specified by:
fetchResultsin interfacecom.querydsl.core.Fetchable<T>
-
fetchCount
public long fetchCount()- Specified by:
fetchCountin interfacecom.querydsl.core.Fetchable<T>
-
getMetadata
public com.querydsl.core.QueryMetadata getMetadata()- Specified by:
getMetadatain interfacecom.querydsl.core.types.SubQueryExpression<T>
-
accept
- Specified by:
acceptin interfacecom.querydsl.core.types.Expression<T>
-
getType
- Specified by:
getTypein interfacecom.querydsl.core.types.Expression<T>
-
limit
Description copied from interface:SetExpressionSet the limit / max results for the query results- Specified by:
limitin interfaceSetExpression<T>- Parameters:
limit- max rows- Returns:
- the current object
-
offset
Description copied from interface:SetExpressionSet the offset for the query results- Specified by:
offsetin interfaceSetExpression<T>- Parameters:
offset- row offset- Returns:
- the current object
-
orderBy
Description copied from interface:SetExpressionDefine the ordering of the query results- Specified by:
orderByin interfaceSetExpression<T>- Parameters:
o- order- Returns:
- the current object
-
getQueryString
Description copied from interface:ExtendedFetchableGet the query string.- Specified by:
getQueryStringin interfaceExtendedFetchable<T>- Returns:
- the query string
- See Also:
Queryable.getQueryString()
-
toString
-