|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.cisban.rod.dao.Exists
public class Exists
For checking if database objects exist in the database. Calls count() on the rows rather than returning them, so hopefully less memory-intensive.
Constructor Summary | |
---|---|
Exists(DAO dao)
Initial constructor |
Method Summary | |
---|---|
java.lang.Long |
findMasterplatePositions(javax.jdo.PersistenceManager pm,
java.lang.Long masterplateId)
Finds number of MasterplatePositions on a masterplate. |
java.lang.Long |
findPlatePositions(javax.jdo.PersistenceManager pm,
java.lang.Long barcodeId)
Finds number of Spottings for a barcode DB id. |
boolean |
imageSpot(javax.jdo.PersistenceManager pm,
java.lang.Long sourceBarcode)
Checks whether an ImageSpot exists with the given source Barcode and destination Barcode. |
boolean |
inoculation(javax.jdo.PersistenceManager pm,
java.lang.Long sourceBarcode,
java.lang.Long destinationBarcode)
Checks whether an Inoculation exists with the given source Barcode and destination Barcode. |
long |
logs(long aAppId)
Get the number of logs for the ActionApplication . |
java.util.Collection<java.lang.String> |
plates(java.util.Collection<java.lang.String> barcodes)
If all plates exist, an empty collection will be returned. |
long |
spots(long imageId)
Finds number of ImageSpots on an Image. |
boolean |
spotting(javax.jdo.PersistenceManager pm,
java.lang.Long sourceBarcode,
java.lang.Long destinationBarcode)
Checks whether an Spotting exists with the given source Barcode and destination Barcode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Exists(DAO dao)
dao
- Method Detail |
---|
public boolean inoculation(javax.jdo.PersistenceManager pm, java.lang.Long sourceBarcode, java.lang.Long destinationBarcode)
pm
- the persistence managersourceBarcode
- the PK of the source barcodedestinationBarcode
- the PK of the destination barcode
public boolean spotting(javax.jdo.PersistenceManager pm, java.lang.Long sourceBarcode, java.lang.Long destinationBarcode)
pm
- the persistence managersourceBarcode
- the PK of the source barcodedestinationBarcode
- the PK of the destination barcode
public boolean imageSpot(javax.jdo.PersistenceManager pm, java.lang.Long sourceBarcode)
pm
- the persistence managersourceBarcode
- the PK of the source barcode
public java.util.Collection<java.lang.String> plates(java.util.Collection<java.lang.String> barcodes)
barcodes
- to find
public long logs(long aAppId)
ActionApplication
.
aAppId
- DB id
public java.lang.Long findPlatePositions(javax.jdo.PersistenceManager pm, java.lang.Long barcodeId) throws QueryNotFoundException
pm
- the persistence managerbarcodeId
-
QueryNotFoundException
public java.lang.Long findMasterplatePositions(javax.jdo.PersistenceManager pm, java.lang.Long masterplateId) throws QueryNotFoundException
pm
- masterplateId
-
QueryNotFoundException
public long spots(long imageId)
imageId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |