com.mysema.query
Interface SimpleProjectable<T>

All Known Implementing Classes:
LuceneQuery, SearchQuery, SimpleQueryAdapter

public interface SimpleProjectable<T>

SimpleProjectable defines a simpler projection interface than Projectable.

Author:
tiwe
See Also:
Projectable

Method Summary
 long count()
          Get the count of matched elements
 long countDistinct()
          Get the count of distinct matched elements
 List<T> list()
          Get the projection as a typed List
 List<T> listDistinct()
          Get the projection as a typed List with distinct elements
 SearchResults<T> listDistinctResults()
          Get the projection in SearchResults form with distinct element
 SearchResults<T> listResults()
          Get the projection in SearchResults form
 T uniqueResult()
          Get the projection as a unique result
 

Method Detail

list

List<T> list()
Get the projection as a typed List

Returns:

listDistinct

List<T> listDistinct()
Get the projection as a typed List with distinct elements

Returns:

uniqueResult

@Nullable
T uniqueResult()
Get the projection as a unique result

Returns:

listResults

SearchResults<T> listResults()
Get the projection in SearchResults form

Returns:

listDistinctResults

SearchResults<T> listDistinctResults()
Get the projection in SearchResults form with distinct element

Returns:

count

long count()
Get the count of matched elements

Returns:

countDistinct

long countDistinct()
Get the count of distinct matched elements

Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.