|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.search.SearchQuery<T>
T
- public class SearchQuery<T>
SearchQuery is a Query implementation for Hibernate Search
Constructor Summary | |
---|---|
SearchQuery(org.hibernate.search.FullTextSession session,
PEntity<T> path)
|
|
SearchQuery(org.hibernate.Session session,
PEntity<T> path)
|
Method Summary | |
---|---|
long |
count()
Get the count of matched elements |
long |
countDistinct()
Get the count of distinct matched elements |
SearchQuery<T> |
limit(long limit)
Defines the limit / max results for the query results |
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 |
SearchQuery<T> |
offset(long offset)
Defines the offset for the query results |
SearchQuery<T> |
orderBy(OrderSpecifier<?>... o)
Defines the order expressions |
SearchQuery<T> |
restrict(QueryModifiers modifiers)
Defines both limit and offset of the query results |
T |
uniqueResult()
Get the projection as a unique result |
SearchQuery<T> |
where(EBoolean... e)
Defines the filter constraints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchQuery(org.hibernate.Session session, PEntity<T> path)
public SearchQuery(org.hibernate.search.FullTextSession session, PEntity<T> path)
Method Detail |
---|
public SearchQuery<T> limit(long limit)
SimpleQuery
limit
in interface SimpleQuery<SearchQuery<T>>
public SearchQuery<T> offset(long offset)
SimpleQuery
offset
in interface SimpleQuery<SearchQuery<T>>
public SearchQuery<T> orderBy(OrderSpecifier<?>... o)
SimpleQuery
orderBy
in interface SimpleQuery<SearchQuery<T>>
public SearchQuery<T> restrict(QueryModifiers modifiers)
SimpleQuery
restrict
in interface SimpleQuery<SearchQuery<T>>
public SearchQuery<T> where(EBoolean... e)
SimpleQuery
where
in interface SimpleQuery<SearchQuery<T>>
public long count()
SimpleProjectable
count
in interface SimpleProjectable<T>
public long countDistinct()
SimpleProjectable
countDistinct
in interface SimpleProjectable<T>
public List<T> list()
SimpleProjectable
list
in interface SimpleProjectable<T>
public List<T> listDistinct()
SimpleProjectable
listDistinct
in interface SimpleProjectable<T>
public SearchResults<T> listDistinctResults()
SimpleProjectable
SearchResults
form with distinct element
listDistinctResults
in interface SimpleProjectable<T>
public SearchResults<T> listResults()
SimpleProjectable
SearchResults
form
listResults
in interface SimpleProjectable<T>
public T uniqueResult()
SimpleProjectable
uniqueResult
in interface SimpleProjectable<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |