ome.services.util
Interface Executor.Work

All Known Implementing Classes:
AnnotatedWith, Complement, Executor.SimpleWork, FullText, FullTextIndexer, HqlQuery, Intersection, PixelDataHandler, ProcessManager.Work, SearchAction, SimilarTerms, SomeMustNone, TagsAndGroups, Union
Enclosing interface:
Executor

public static interface Executor.Work

Work SPI to perform actions within the server as if they were fully wrapped in our service logic. Note: any results which are coming from Hibernate may not be assigned directly to a field, rather must be returned as an Object so that Hibernate proxies can be properly handled.


Method Summary
 String description()
          Returns a description of what this work will be doing for logging purposes.
 Object doWork(org.hibernate.Session session, ServiceFactory sf)
          Work method.
 

Method Detail

description

String description()
Returns a description of what this work will be doing for logging purposes.


doWork

Object doWork(org.hibernate.Session session,
              ServiceFactory sf)
Work method. Must return all results coming from Hibernate via the Object return method.

Parameters:
status - non null.
session - non null.
sf - non null.
Returns:
Any results which will be used by non-wrapped code.


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

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