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> R
accept(com.querydsl.core.types.Visitor<R,C> v, C context)
List<T>
fetch()
long
fetchCount()
T
fetchFirst()
T
fetchOne()
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.QueryMetadata
getMetadata()
String
getQueryString()
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 resultsString
toString()
-
Constructor Details
-
Method Details
-
fetchPage
Description copied from interface:ExtendedFetchable
Execute the query and return the result as a type PagedList.- Specified by:
fetchPage
in 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:ExtendedFetchable
Execute the query and return the result as a type PagedList.- Specified by:
fetchPage
in 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:
fetch
in interfacecom.querydsl.core.Fetchable<T>
-
fetchFirst
- Specified by:
fetchFirst
in interfacecom.querydsl.core.Fetchable<T>
-
fetchOne
- Specified by:
fetchOne
in interfacecom.querydsl.core.Fetchable<T>
- Throws:
com.querydsl.core.NonUniqueResultException
-
iterate
- Specified by:
iterate
in interfacecom.querydsl.core.Fetchable<T>
-
fetchResults
- Specified by:
fetchResults
in interfacecom.querydsl.core.Fetchable<T>
-
fetchCount
public long fetchCount()- Specified by:
fetchCount
in interfacecom.querydsl.core.Fetchable<T>
-
getMetadata
public com.querydsl.core.QueryMetadata getMetadata()- Specified by:
getMetadata
in interfacecom.querydsl.core.types.SubQueryExpression<T>
-
accept
- Specified by:
accept
in interfacecom.querydsl.core.types.Expression<T>
-
getType
- Specified by:
getType
in interfacecom.querydsl.core.types.Expression<T>
-
limit
Description copied from interface:SetExpression
Set the limit / max results for the query results- Specified by:
limit
in interfaceSetExpression<T>
- Parameters:
limit
- max rows- Returns:
- the current object
-
offset
Description copied from interface:SetExpression
Set the offset for the query results- Specified by:
offset
in interfaceSetExpression<T>
- Parameters:
offset
- row offset- Returns:
- the current object
-
orderBy
Description copied from interface:SetExpression
Define the ordering of the query results- Specified by:
orderBy
in interfaceSetExpression<T>
- Parameters:
o
- order- Returns:
- the current object
-
getQueryString
Description copied from interface:ExtendedFetchable
Get the query string.- Specified by:
getQueryString
in interfaceExtendedFetchable<T>
- Returns:
- the query string
- See Also:
Queryable.getQueryString()
-
toString
-