Package ome.services.search
Class AnnotatedWith
- java.lang.Object
-
- ome.services.search.SearchAction
-
- ome.services.search.AnnotatedWith
-
- All Implemented Interfaces:
java.io.Serializable,Executor.Work
public class AnnotatedWith extends SearchAction
Query forSearchwhich uses an exampleAnnotationinstance as the basis for comparison. Instances of the specifiedtypeare found with a matching annotation. Currently only the class of the annotation and its main attribute --TextAnnotation.textValue,FileAnnotation.file, etc. -- are considered. Use the other methods onSearchlikeSearch.onlyOwnedBy(Details)to refine your search. IgnoresSearch.onlyAnnotatedWith(Class...)- Since:
- 3.0-Beta3
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class ome.services.search.SearchAction
chainedList, timeout, values
-
-
Constructor Summary
Constructors Constructor Description AnnotatedWith(SearchValues values, ome.model.annotations.Annotation[] annotation, boolean useNamespace, boolean useLike)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectdoWork(org.hibernate.Session session, ome.system.ServiceFactory sf)Work method.-
Methods inherited from class ome.services.search.SearchAction
annotatedBetween, annotatedBetween, annotatedBy, annotatedBy, chainedSearch, copyOfValues, createdOrModified, createdOrModified, description, ids, ids, notNullOrLikeOrEqual, notNullOrLikeOrEqual, orderByAscending, orderByPath, ownerOrGroup, ownerOrGroup, setTimeout
-
-
-
-
Constructor Detail
-
AnnotatedWith
public AnnotatedWith(SearchValues values, ome.model.annotations.Annotation[] annotation, boolean useNamespace, boolean useLike)
-
-
Method Detail
-
doWork
@Transactional(readOnly=true) public java.lang.Object doWork(org.hibernate.Session session, ome.system.ServiceFactory sf)Description copied from interface:Executor.WorkWork method. Must return all results coming from Hibernate via theObjectreturn method.- Parameters:
session- non null.sf- non null.- Returns:
- Any results which will be used by non-wrapped code.
-
-