ome.services.search
Class AnnotatedWith

java.lang.Object
  extended by ome.services.search.SearchAction
      extended by 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

Field Summary
 
Fields inherited from class ome.services.search.SearchAction
chainedList, values
 
Constructor Summary
AnnotatedWith(SearchValues values, ome.model.annotations.Annotation[] annotation, boolean useNamespace, boolean useLike)
           
 
Method Summary
 Object doWork(org.hibernate.Session session, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedWith

public AnnotatedWith(SearchValues values,
                     ome.model.annotations.Annotation[] annotation,
                     boolean useNamespace,
                     boolean useLike)
Method Detail

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: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.