8 | 8 | 2. Java servlet class/file `ExtractionServlet.java` in `src/net/sf/basedb/meludi/servlet/` updated:[[BR]]a. Protected method `void doGet(HttpServletRequest req, HttpServletResponse resp)` updated for command "`GetStartPlates`" to call new static public method `List<ReactionPlate> findByBioPlateType(DbControl dc, BioplateType bioPlateType, Subtype subtype, String prefix, int numFreeWells, Annotationtype runDateAnnotation)` updated to call new public static method `List<ReactionPlate> ReactionPlate.findByBioPlateType(DbControl dc, BioplateType bioPlateType, Subtype subtype, String prefix, int numFreeWells, Annotationtype runDateAnnotation, Boolean destroyed, Boolean orderDesc)` with `Boolean` argument `destroyed` set to `false` and `orderDesc` set to value obtained by parameter "`orderDesc`" (if the latter is `null`, argument `orderDesc` is set to `false`). |
9 | 9 | 3. Java data access object class/file `ReactionPlate.java` in `src/net/sf/basedb/meludi/dao/` updated:[[BR]]a. Public static method `List<ReactionPlate> findByBioPlateType(DbControl dc, BioplateType bioPlateType, Subtype subtype, String prefix, int numFreeWells, Annotationtype runDateAnnotation)` updated to call new public static method `List<ReactionPlate> findByBioPlateType(DbControl dc, BioplateType bioPlateType, Subtype subtype, String prefix, int numFreeWells, Annotationtype runDateAnnotation, Boolean destroyed, Boolean orderDesc)` with `Boolean` arguments `destroyed` and `orderDesc` set to `false` to obtain the list to return. Note that this is a change in functionality, since the method previously included plates, that had been marked as destroyed.[[BR]]b. New public static method `List<ReactionPlate> findByBioPlateType(DbControl dc, BioplateType bioPlateType, Subtype subtype, String prefix, int numFreeWells, Annotationtype runDateAnnotation, Boolean destroyed, Boolean orderDesc)` added. If argument `destroyed` is equal to `null`, both existing and destroyed plates are included, while `destroyed` equal to `false` includes only existing plates, and `destroyed` equal to `true` includes only plates marked as destroyed. If argument `orderDesc` is `true`, the plates will be sorted in descending order by plate name, otherwise ascending. |