public class PixelDataHandler extends Executor.SimpleWork
Modifier and Type | Field and Description |
---|---|
protected PersistentEventLogLoader |
loader |
protected PixelsService |
pixelsService |
protected int |
reps |
description
Constructor and Description |
---|
PixelDataHandler(PersistentEventLogLoader ll,
PixelsService pixelsService) |
Modifier and Type | Method and Description |
---|---|
Object |
doWork(org.hibernate.Session session,
ServiceFactory sf)
Handles only single elements from the
PersistentEventLogLoader
in order to keep transactions short and safe. |
protected ome.model.core.Pixels |
getPixels(Long id,
ServiceFactory sf) |
boolean |
process(Long id,
ServiceFactory sf,
org.hibernate.Session s)
Here we assume that our log loader will only return
us the proper types, since we are using the specific
type defined in this package.
|
void |
setRepetitions(int reps)
Spring injector.
|
void |
setSqlAction(ome.util.SqlAction sql)
Since these instances are used repeatedly, we need to check for
already set SqlAction
|
getSqlAction
description
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
description
protected final PersistentEventLogLoader loader
protected final PixelsService pixelsService
protected int reps
public PixelDataHandler(PersistentEventLogLoader ll, PixelsService pixelsService)
public void setRepetitions(int reps)
public void setSqlAction(ome.util.SqlAction sql)
setSqlAction
in class Executor.SimpleWork
@Transactional(readOnly=false) public Object doWork(org.hibernate.Session session, ServiceFactory sf)
PersistentEventLogLoader
in order to keep transactions short and safe.session
- non null.sf
- non null.ticket:5814
public boolean process(Long id, ServiceFactory sf, org.hibernate.Session s)
eventLog
- sf
- s
- protected ome.model.core.Pixels getPixels(Long id, ServiceFactory sf)
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.