Class AnnotatedWith

  • All Implemented Interfaces:
    java.io.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
    See Also:
    Serialized Form
    • 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.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.