ome.services.search
Class AnnotatedWith
java.lang.Object
ome.services.search.SearchAction
ome.services.search.AnnotatedWith
- All Implemented Interfaces:
- Serializable, Executor.Work
public class AnnotatedWith
- extends SearchAction
Query for Search
which uses an example Annotation
instance as the basis for comparison. Instances of the specified
type
are 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 on Search
like
Search.onlyOwnedBy(Details)
to refine your search.
Ignores Search.onlyAnnotatedWith(Class...)
- Since:
- 3.0-Beta3
- Author:
- Josh Moore, josh at glencoesoftware.com
- See Also:
- Serialized Form
Constructor Summary |
AnnotatedWith(SearchValues values,
ome.model.annotations.Annotation[] annotation,
boolean useNamespace,
boolean useLike)
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotatedWith
public AnnotatedWith(SearchValues values,
ome.model.annotations.Annotation[] annotation,
boolean useNamespace,
boolean useLike)
doWork
@Transactional(readOnly=true)
public Object doWork(org.hibernate.Session session,
ServiceFactory sf)
- Description copied from interface:
Executor.Work
- Work method. Must return all results coming from Hibernate via the
Object
return method.
- Parameters:
session
- non null.sf
- non null.
- Returns:
- Any results which will be used by non-wrapped code.
OmeroJava Api
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.