Package ome.services.blitz.measurements
Interface OmeroMeasurementStore
-
- All Known Implementing Classes:
MeasurementStore
public interface OmeroMeasurementStore
Sub-interface ofMeasurementStore
with extended life-cycle methods for handling exceptions during saving the measurements to multiple stores.- Since:
- Beta4.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCircle(java.lang.String roiLsid, double x, double y, double r)
void
addObject(java.lang.String lsid, ome.model.IObject object)
void
addObjects(java.util.Map<java.lang.String,ome.model.IObject> objects)
void
addRows(java.lang.Object[][] rows)
Adds an array of rows (Object[]) to the store.java.util.List<java.lang.Long>
getRoiIds()
Returns the ids of all Roi instances created during the save method.TablePrx
getTable()
Returns the Table proxy which is in use by this service.void
initialize(java.lang.String[] headers, java.lang.String[] idTypes, java.lang.Class[] types, java.util.Map<java.lang.String,java.lang.Object> metadata)
void
save()
-
-
-
Method Detail
-
initialize
void initialize(java.lang.String[] headers, java.lang.String[] idTypes, java.lang.Class[] types, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.lang.Exception
- Throws:
java.lang.Exception
-
addRows
void addRows(java.lang.Object[][] rows) throws java.lang.Exception
Adds an array of rows (Object[]) to the store. These rows might be indexed by an LSID which correlates to an added ROI. For each call toaddRows(Object[][])
a call tosave()
must be made. This allows a single measurement store to be filled with the values from multiple measurement files. To differentiate between the various files, include a File lsid column during the initialization phase.- Parameters:
rows
-- Throws:
java.lang.Exception
-
addCircle
void addCircle(java.lang.String roiLsid, double x, double y, double r) throws java.lang.Exception
- Throws:
java.lang.Exception
-
save
void save() throws java.lang.Exception
- Throws:
java.lang.Exception
-
addObject
void addObject(java.lang.String lsid, ome.model.IObject object)
-
addObjects
void addObjects(java.util.Map<java.lang.String,ome.model.IObject> objects)
-
getRoiIds
java.util.List<java.lang.Long> getRoiIds()
Returns the ids of all Roi instances created during the save method. If Roi creation failed or ifsave()
has not been called, this will return null.
-
getTable
TablePrx getTable()
Returns the Table proxy which is in use by this service.- Returns:
- See above.
-
-