@Override public Collection filter(String fieldId, Collection source) { Collection o = super.filter(fieldId, source); Collection target = findCollection(o); fillCollection(source, target); return o; }
public Filterable filter(String fieldId, Filterable f) { if (f != null && hasntSeen(f)) { beforeFilter(fieldId, f); doFilter(fieldId, f); afterFilter(fieldId, f); } return f;// null; }
@Override public Filterable filter(String fieldId, Filterable source) { Filterable o = super.filter(fieldId, source); ModelBased target = (ModelBased) findTarget(o); fillTarget(source, target); return o; }
/** * Returns the pixel intensity value of the pixel at a given offset within * the backing buffer. This method takes into account bytes per pixel. * * @param offset The relative offset (taking into account the number of * bytes per pixel) within the backing buffer. * @return The intensity value. */ public double getPixelValue(int offset) { return getPixelValueDirect(offset * bytesPerPixel); }
/** * This public method is used to return a list of thumbnail ids that require * deletion from the disk repository. * * @return List<Long> representing the ids for thumbnails that were deleted */ public List<Long> getThumbnailIds() { return sql.getDeletedIds("ome.model.display.Thumbnail"); } }
private String fromDatabase(String key) { String value = null; try { value = sql.configValue(key); } catch (EmptyResultDataAccessException erdae) { // ok returning null } return value; }
/** * Sets the pixel intensity value of the pixel at a given offset within * the backing buffer. This method takes into account bytes per pixel. * * @param offset The relative offset (taking into account the number of * bytes per pixel) within the backing buffer. * @param value Pixel value to set. */ public void setPixelValue(int offset, double value) { setPixelValueDirect(offset * bytesPerPixel, value); }
/** * extension point which subclasses can override to better map the * keys of maps. */ public Object findKeyTarget(Object current) { return findTarget(current); }
/** * This public method is used to return a list of pixel ids that require * deletion from the disk repository. * * @return List<Long> representing the ids for pixels that were deleted */ public List<Long> getPixelIds() { return sql.getDeletedIds("ome.model.core.Pixels"); }