criteria.addWantedField("default_pixels", "SizeX"); criteria.addWantedField("default_pixels", "SizeY"); criteria.addWantedField("default_pixels", "SizeZ"); criteria.addWantedField("default_pixels", "SizeC"); criteria.addWantedField("default_pixels", "SizeT"); criteria.addWantedField("default_pixels", "PixelType"); criteria.addWantedField("default_pixels", "Repository"); criteria.addWantedField("default_pixels", "ImageServerID"); criteria.addWantedField("default_pixels.Repository", "ImageServerURL"); criteria.addFilter("id", new Integer(imageID));
fieldsForPixels(criteria, "default_pixels"); criteria.addFilter("id", new Integer(imageID));
	public static Criteria buildPixelsCriteria(int imageID)	{		Criteria criteria = new Criteria();		//Specify which fields we want for the image.		criteria.addWantedField("default_pixels");				//Specify which fields we want for the pixels.		criteria.addWantedField("default_pixels", "SizeX");		criteria.addWantedField("default_pixels", "SizeY");		criteria.addWantedField("default_pixels", "SizeZ");		criteria.addWantedField("default_pixels", "SizeC");		criteria.addWantedField("default_pixels", "SizeT");		criteria.addWantedField("default_pixels", "PixelType");			criteria.addWantedField("default_pixels", "Repository");		criteria.addWantedField("default_pixels", "ImageServerID");		criteria.addWantedField("default_pixels.Repository", "ImageServerURL");		criteria.addFilter("id", new Integer(imageID));		return criteria;	}