Class SetExpressionImpl<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>

java.lang.Object
com.blazebit.persistence.querydsl.SetExpressionImpl<T,​Q>
Type Parameters:
T - result type
Q - 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 Details

  • Method Details

    • fetchPage

      public PagedList<T> fetchPage​(int firstResult, int maxResults)
      Description copied from interface: ExtendedFetchable
      Execute the query and return the result as a type PagedList.
      Specified by:
      fetchPage in interface ExtendedFetchable<T>
      Parameters:
      firstResult - The position of the first result to retrieve, numbered from 0
      maxResults - The maximum number of results to retrieve
      Returns:
      The paged list of the results
      See Also:
      FullQueryBuilder.page(int, int)
    • fetchPage

      public PagedList<T> fetchPage​(KeysetPage keysetPage, int firstResult, int maxResults)
      Description copied from interface: ExtendedFetchable
      Execute the query and return the result as a type PagedList.
      Specified by:
      fetchPage in interface ExtendedFetchable<T>
      Parameters:
      keysetPage - The key set from a previous result, may be null
      firstResult - The position of the first result to retrieve, numbered from 0
      maxResults - The maximum number of results to retrieve
      Returns:
      The paged list of the results
      See Also:
      FullQueryBuilder.page(KeysetPage, int, int)
    • fetch

      public List<T> fetch()
      Specified by:
      fetch in interface com.querydsl.core.Fetchable<T>
    • fetchFirst

      public T fetchFirst()
      Specified by:
      fetchFirst in interface com.querydsl.core.Fetchable<T>
    • fetchOne

      public T fetchOne() throws com.querydsl.core.NonUniqueResultException
      Specified by:
      fetchOne in interface com.querydsl.core.Fetchable<T>
      Throws:
      com.querydsl.core.NonUniqueResultException
    • iterate

      public com.mysema.commons.lang.CloseableIterator<T> iterate()
      Specified by:
      iterate in interface com.querydsl.core.Fetchable<T>
    • fetchResults

      public com.querydsl.core.QueryResults<T> fetchResults()
      Specified by:
      fetchResults in interface com.querydsl.core.Fetchable<T>
    • fetchCount

      public long fetchCount()
      Specified by:
      fetchCount in interface com.querydsl.core.Fetchable<T>
    • getMetadata

      public com.querydsl.core.QueryMetadata getMetadata()
      Specified by:
      getMetadata in interface com.querydsl.core.types.SubQueryExpression<T>
    • accept

      @Nullable public <R,​ C> R accept​(com.querydsl.core.types.Visitor<R,​C> v, @Nullable C context)
      Specified by:
      accept in interface com.querydsl.core.types.Expression<T>
    • getType

      public Class<? extends T> getType()
      Specified by:
      getType in interface com.querydsl.core.types.Expression<T>
    • limit

      public SetExpression<T> limit​(long limit)
      Description copied from interface: SetExpression
      Set the limit / max results for the query results
      Specified by:
      limit in interface SetExpression<T>
      Parameters:
      limit - max rows
      Returns:
      the current object
    • offset

      public SetExpression<T> offset​(long offset)
      Description copied from interface: SetExpression
      Set the offset for the query results
      Specified by:
      offset in interface SetExpression<T>
      Parameters:
      offset - row offset
      Returns:
      the current object
    • orderBy

      public SetExpression<T> orderBy​(com.querydsl.core.types.OrderSpecifier<?>... o)
      Description copied from interface: SetExpression
      Define the ordering of the query results
      Specified by:
      orderBy in interface SetExpression<T>
      Parameters:
      o - order
      Returns:
      the current object
    • getQueryString

      public String getQueryString()
      Description copied from interface: ExtendedFetchable
      Get the query string.
      Specified by:
      getQueryString in interface ExtendedFetchable<T>
      Returns:
      the query string
      See Also:
      Queryable.getQueryString()
    • toString

      public String toString()
      Overrides:
      toString in class Object