org.richfaces.photoalbum.search
Class SearchBothShelvesStrategy
java.lang.Object
org.richfaces.photoalbum.search.SearchBothShelvesStrategy
- All Implemented Interfaces:
- ISearchStrategy
public class SearchBothShelvesStrategy
- extends Object
- implements ISearchStrategy
Strategy to retrieve shelves, that are shared or belongs to user, that perform search
- Author:
- Andrey Markhel
|
Method Summary |
javax.persistence.Query |
getQuery(javax.persistence.EntityManager em,
Map<String,Object> params,
String searchQuery)
Create query to retrieve shelves, that are shared or belongs to user, that perform search |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchBothShelvesStrategy
public SearchBothShelvesStrategy()
getQuery
public javax.persistence.Query getQuery(javax.persistence.EntityManager em,
Map<String,Object> params,
String searchQuery)
- Create query to retrieve shelves, that are shared or belongs to user, that perform search
- Specified by:
getQuery in interface ISearchStrategy
- Parameters:
em - - entityManagerparams - - map of additional params for this querysearchQuery - - string to search
- Returns:
- List of shelves that are shared or belongs to user, that perform search
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.