Package ome.services.search
Class SearchAction
- java.lang.Object
-
- ome.services.search.SearchAction
-
- All Implemented Interfaces:
java.io.Serializable
,Executor.Work
- Direct Known Subclasses:
AnnotatedWith
,Complement
,FullText
,HqlQuery
,Intersection
,SimilarTerms
,TagsAndGroups
,Union
public abstract class SearchAction extends java.lang.Object implements java.io.Serializable, Executor.Work
Serializable action used bySearchBean
to generate results lazily.- Since:
- 3.0-Beta3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ome.model.IObject>
chainedList
List ofIObject
instances which have currently been found.protected java.lang.Integer
timeout
protected SearchValues
values
-
Constructor Summary
Constructors Constructor Description SearchAction(SearchValues values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
annotatedBetween(ome.services.search.AnnotationCriteria ann)
protected void
annotatedBetween(QueryBuilder qb, java.lang.String path)
protected void
annotatedBy(ome.services.search.AnnotationCriteria ann)
protected void
annotatedBy(QueryBuilder qb, java.lang.String path)
void
chainedSearch(java.util.List<ome.model.IObject> chainedList)
Set the current list of found ids from previous searches, which should be chained in this search.SearchValues
copyOfValues()
protected void
createdOrModified(java.lang.Class cls, QueryBuilder qb, java.lang.String path)
protected void
createdOrModified(java.lang.Class cls, org.hibernate.Criteria criteria)
java.lang.String
description()
Returns theSearchAction
subclass as the description.protected void
ids(QueryBuilder qb, java.lang.String path)
protected void
ids(org.hibernate.Criteria criteria)
static org.hibernate.criterion.Criterion
notNullOrLikeOrEqual(java.lang.String path, java.lang.Class type, java.lang.Object value, boolean useLike, boolean caseSensitive)
static void
notNullOrLikeOrEqual(QueryBuilder qb, java.lang.String path, java.lang.Class type, java.lang.Object value, boolean useLike, boolean caseSensitive)
static boolean
orderByAscending(java.lang.String orderBy)
static java.lang.String
orderByPath(java.lang.String orderBy)
protected void
ownerOrGroup(java.lang.Class cls, QueryBuilder qb, java.lang.String path)
protected void
ownerOrGroup(java.lang.Class cls, org.hibernate.Criteria criteria)
void
setTimeout(int timeout)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ome.services.util.Executor.Work
doWork
-
-
-
-
Field Detail
-
values
protected final SearchValues values
-
timeout
protected java.lang.Integer timeout
-
chainedList
protected java.util.List<ome.model.IObject> chainedList
List ofIObject
instances which have currently been found. ThisSearchAction
may want to take these values into account if present.
-
-
Constructor Detail
-
SearchAction
public SearchAction(SearchValues values)
-
-
Method Detail
-
setTimeout
public void setTimeout(int timeout)
-
description
public java.lang.String description()
Returns theSearchAction
subclass as the description.
-
copyOfValues
public SearchValues copyOfValues()
-
chainedSearch
public void chainedSearch(java.util.List<ome.model.IObject> chainedList)
Set the current list of found ids from previous searches, which should be chained in this search. See the documentation on each by* method inSearch
to know how chained ids will be used, if at all.- Parameters:
chainedList
- Can be null to disabled chaining.
-
ids
protected void ids(org.hibernate.Criteria criteria)
-
ids
protected void ids(QueryBuilder qb, java.lang.String path)
-
ownerOrGroup
protected void ownerOrGroup(java.lang.Class cls, org.hibernate.Criteria criteria)
-
ownerOrGroup
protected void ownerOrGroup(java.lang.Class cls, QueryBuilder qb, java.lang.String path)
-
createdOrModified
protected void createdOrModified(java.lang.Class cls, org.hibernate.Criteria criteria)
-
createdOrModified
protected void createdOrModified(java.lang.Class cls, QueryBuilder qb, java.lang.String path)
-
annotatedBy
protected void annotatedBy(ome.services.search.AnnotationCriteria ann)
-
annotatedBy
protected void annotatedBy(QueryBuilder qb, java.lang.String path)
-
annotatedBetween
protected void annotatedBetween(ome.services.search.AnnotationCriteria ann)
-
annotatedBetween
protected void annotatedBetween(QueryBuilder qb, java.lang.String path)
-
notNullOrLikeOrEqual
public static void notNullOrLikeOrEqual(QueryBuilder qb, java.lang.String path, java.lang.Class type, java.lang.Object value, boolean useLike, boolean caseSensitive)
-
notNullOrLikeOrEqual
public static org.hibernate.criterion.Criterion notNullOrLikeOrEqual(java.lang.String path, java.lang.Class type, java.lang.Object value, boolean useLike, boolean caseSensitive)
-
orderByPath
public static java.lang.String orderByPath(java.lang.String orderBy)
-
orderByAscending
public static boolean orderByAscending(java.lang.String orderBy)
-
-