|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.BasicItem<BioPlateTypeData>
net.sf.basedb.core.BioPlateType
public class BioPlateType
This class represents the type of a bio-plate. This information can be used together with event definitions to create a work path in the lab. Eg. start with a plate of some type T1, then apply event E1 to it to get a new plate with type T2, repeat with event E2 to get a plate with type T3, and so on until the biomaterial has been hybridized.
| Field Summary | |
|---|---|
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from interface net.sf.basedb.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Constructor Summary | |
|---|---|
BioPlateType(BioPlateTypeData data)
|
|
| Method Summary | |
|---|---|
Item |
getBioMaterialType()
Get the biomaterial type that can be stored on plates of this type. |
ItemQuery<BioPlate> |
getBioPlates()
Creates a query that returns all bioplates that are using this type. |
static BioPlateType |
getById(DbControl dc,
int id)
Gets a BioPlate type when knowing the item's id |
String |
getDescription()
Get the description for the item. |
ItemSubtype |
getItemSubtype()
Get the subtype that biomaterial items should have when placed on a plate with this bioplate type. |
BioWell.LockMode |
getLockMode()
Get the lock mode for wells located on plates of this plate type. |
String |
getName()
Get the name of the item. |
static BioPlateType |
getNew(DbControl dc)
Creates a new bioplate type. |
static ItemQuery<BioPlateType> |
getQuery()
Gets query that selects all available bioplates |
Item |
getType()
Get the type of item represented by the object. |
Set<ItemProxy> |
getUsingItems()
Gets all BioPlates and BioPlateEventDefinitions
using this type |
boolean |
isRemoved()
Check if the removed flag is set for this item. |
boolean |
isUsed()
Check if there are any BioPlates or
BioPlateEventDefinitions using this type. |
void |
setBioMaterialType(Item type)
Set the type of biomaterial that can be stored on plates with this type. |
void |
setDescription(String description)
Set the description for the item. |
void |
setItemSubtype(ItemSubtype subtype)
Set the subtype that biomaterial items should have when placed on a plate with the bioplate type. |
void |
setLockMode(BioWell.LockMode lockMode)
Set the lock mode for wells on plates of this plate type. |
void |
setName(String name)
Set the name of the item. |
void |
setRemoved(boolean removed)
Set the removed flag for this item. |
| Methods inherited from class net.sf.basedb.core.BasicItem |
|---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getPluginPermissions, getSessionControl, getVersion, hashCode, hasPermission, initPermissions, 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 |
| Methods inherited from interface net.sf.basedb.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface net.sf.basedb.core.AccessControlled |
|---|
checkPermission, getPermissions, hasPermission |
| Field Detail |
|---|
public static final Item TYPE
Item.BIOPLATETYPE,
getType()| Constructor Detail |
|---|
BioPlateType(BioPlateTypeData data)
| Method Detail |
|---|
public static BioPlateType getNew(DbControl dc)
throws BaseException,
InvalidDataException
dc - DbControl used for database access
BaseException - If anything goes wrong when creating
InvalidDataException
public static BioPlateType getById(DbControl dc,
int id)
throws ItemNotFoundException,
PermissionDeniedException,
BaseException
dc - DbControl used for database accessid - The item's id.
BioPlateType object
ItemNotFoundException - If no item with the given id was found
PermissionDeniedException - If logged in user doesn't have read
permission to the requested item
BaseException - If there is another error.public static ItemQuery<BioPlateType> getQuery()
ItemQuery objectpublic Item getType()
IdentifiableItem enumeration.
getType in interface Identifiablepublic String getName()
Nameable
getName in interface NameableString with the name of the item
public void setName(String name)
throws PermissionDeniedException,
InvalidDataException
NameableNameable.MAX_NAME_LENGTH constant.
setName in interface Nameablename - The new name for the item
PermissionDeniedException - If the logged in user doesn't
have write permission
InvalidDataException - If the name is null or longer
than specified by the Nameable.MAX_NAME_LENGTH constantpublic String getDescription()
Nameable
getDescription in interface NameableString with a description of the item
public void setDescription(String description)
throws PermissionDeniedException,
InvalidDataException
NameableNameable.MAX_DESCRIPTION_LENGTH constant.
setDescription in interface Nameabledescription - The new description for the item
PermissionDeniedException - If the logged in user doesn't
have write permission
InvalidDataException - If the description longer
than specified by the Nameable.MAX_DESCRIPTION_LENGTH constantpublic boolean isRemoved()
Removable
isRemoved in interface Removable
public void setRemoved(boolean removed)
throws PermissionDeniedException
Removable
setRemoved in interface Removableremoved - TRUE if the item should be flagged as removed,
FALSE otherwise
PermissionDeniedException - If the logged in user doesn't
have Permission.DELETE permission for setting the flag
to TRUE or Permission.WRITE permission for setting the
flag to FALSEpublic boolean isUsed()
BioPlates or
BioPlateEventDefinitions using this type.
isUsed in class BasicItem<BioPlateTypeData>BasicItem.getUsingItems()public Set<ItemProxy> getUsingItems()
BioPlates and BioPlateEventDefinitions
using this type
getUsingItems in class BasicItem<BioPlateTypeData>BasicItem.addUsingItems(Set, Item, org.hibernate.Query)public Item getBioMaterialType()
Item.SAMPLE, Item.EXTRACT
or null if the plate can store mixed typespublic void setBioMaterialType(Item type)
Item.SAMPLE, Item.EXTRACT,
and null. The value can't be changed
after the plate type has been saved to the database.
type - A biomaterial item type or null
PermissionDeniedException - If the logged in user doesn't
have write permission or if the plate type has already been saved
to the database
InvalidDataException - If the type is not a biomaterial typepublic ItemSubtype getItemSubtype()
public void setItemSubtype(ItemSubtype subtype)
subtype - A subtype or null if the subtype is not importantpublic BioWell.LockMode getLockMode()
public void setLockMode(BioWell.LockMode lockMode)
lockMode - A lock mode, null is not allowedpublic ItemQuery<BioPlate> getBioPlates()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||