|
2.10.0: 2009-02-24 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.BasicItem<D>
net.sf.basedb.core.ChildItem<BioWellData>
net.sf.basedb.core.BioWell
public class BioWell
A biowell is located on a BioPlate
and contains a MeasuredBioMaterial
.
The item holds information about witch row and column it is located on the bio plate.
BioPlate
Field Summary | |
---|---|
static Item |
TYPE
The type of item represented by this class. |
Constructor Summary | |
---|---|
BioWell(BioWellData data)
|
Method Summary | |
---|---|
MeasuredBioMaterial |
getBioMaterial()
Gets the MeasuredBioMaterial connected to this biowell. |
static BioWell |
getById(DbControl dc,
int id)
Get a BioWell item when you know the id. |
int |
getColumn()
Gets the column index where this well is located. |
BioPlate |
getPlate()
Get the BioPlate this biowell belongs to. |
static ItemQuery<BioWell> |
getQuery(BioPlate bioPlate)
Get a query configured to retrieve wells for a plate. |
int |
getRow()
Gets the row index where this well is located. |
(package private) SharedData |
getSharedParent()
Get the shareable parent item of this child item. |
Item |
getType()
Get the type of item represented by the object. |
Set<ItemProxy> |
getUsingItems()
Adds the MeasuredBioMaterial ,used in this well, to the Set. |
boolean |
isUsed()
Check if a MeasuredBioMaterial is linked to this bio-well |
Methods inherited from class net.sf.basedb.core.ChildItem |
---|
getPermissionForWriteDeleteAndCreate, getPluginPermissions, initPermissions |
Methods inherited from class net.sf.basedb.core.BasicItem |
---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, onAfterCommit, onAfterInsert, onBeforeCommit, onRollback, setDbControl, setProjectDefaults, toString, toTransferable, validate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Item TYPE
Item.BIOWELL
,
getType()
Constructor Detail |
---|
BioWell(BioWellData data)
Method Detail |
---|
public static BioWell getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
BioWell
item when you know the id.
dc
- The DbControl
which will be used for
permission checking and database access.id
- The id of the item to load
BioWell
item
ItemNotFoundException
- If an item with the specified
id is not found
PermissionDeniedException
- If the logged in user doesn't
have Permission.READ
permission to the item
BaseException
- If there is another errorpublic static ItemQuery<BioWell> getQuery(BioPlate bioPlate) throws InvalidDataException
bioPlate
- The plate to retreive wells for, null is not allowed
ItemQuery
object
InvalidDataException
- If required parameter is null.Plate.getEvents()
public Item getType()
Identifiable
Item
enumeration.
public Set<ItemProxy> getUsingItems()
MeasuredBioMaterial
,used in this well, to the Set.
getUsingItems
in class BasicItem<BioWellData>
BasicItem.addUsingItems(Set, Item, org.hibernate.Query)
public boolean isUsed() throws BaseException
MeasuredBioMaterial
is linked to this bio-well
isUsed
in class BasicItem<BioWellData>
BaseException
- If not able to tell if item is used or not.BasicItem.getUsingItems()
SharedData getSharedParent()
ChildItem
ChildItem.initPermissions(int, int)
method to calculate
the logged in user's permissions for the child item.
getSharedParent
in class ChildItem<BioWellData>
public BioPlate getPlate() throws PermissionDeniedException, BaseException
BioPlate
this biowell belongs to.
BioPlate
item
PermissionDeniedException
- If the logged in user doesn't have
Permission.READ
permission for the bioplate
BaseException
- If there is another errorpublic MeasuredBioMaterial getBioMaterial() throws PermissionDeniedException, BaseException
MeasuredBioMaterial
connected to this biowell.
MeasuredBioMaterial
item or null.
PermissionDeniedException
- If the logged in user doesn't have
Permission.READ
permission for the biomaterial.
BaseException
- If there is another errorpublic int getRow()
int
public int getColumn()
int
|
2.10.0: 2009-02-24 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |