|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.BasicItem<D> net.sf.basedb.core.OwnedItem<D> net.sf.basedb.core.SharedItem<D> net.sf.basedb.core.CommonItem<D> net.sf.basedb.core.AnnotatedItem<D> net.sf.basedb.core.BioMaterial<D> net.sf.basedb.core.MeasuredBioMaterial<LabeledExtractData> net.sf.basedb.core.LabeledExtract
public class LabeledExtract
This class is used to represent labeled extract items. A labeled extract
is an Extract
that has been marked with a Label
.
It is also possible to create a labled extract by combining
other labeled extracts, or as a standalone item with no reference to an
extract or other labeled extracts.
Field Summary | |
---|---|
static Item |
TYPE
The type of item represented by this class. |
Fields inherited from class net.sf.basedb.core.BioMaterial |
---|
MAX_EXTERNAL_ID_LENGTH |
Fields inherited from interface net.sf.basedb.core.Nameable |
---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
Constructor Summary | |
---|---|
LabeledExtract(LabeledExtractData labeledExtractData)
|
Method Summary | |
---|---|
long |
countChildren(boolean pooled)
Count the number of child labeled extracts. |
long |
countLabeledExtracts()
Counts all labeled extracts that have been created from this labeled extract. |
Set<Annotatable> |
getAnnotatableParents()
Get the extract or pooled labeled extracts. |
static LabeledExtract |
getById(DbControl dc,
int id)
Get a LabeledExtract item when you know the id. |
ItemQuery<LabeledExtract> |
getChildLabeledExtracts()
Creates a query that returns all child (pooled) labeled extracts that has this labeled extracts as one of it's sources. |
Extract |
getExtract()
Get the Extract that is the parent of this labeled extract. |
ItemQuery<Hybridization> |
getHybridizations()
Get a query that returns all hybridizations created from this labeled extract. |
Label |
getLabel()
Get the Label compound used for labeling the extract. |
static LabeledExtract |
getNew(DbControl dc,
Label label)
Create a new LabeledExtract item. |
static LabeledExtract |
getNew(DbControl dc,
Label label,
BioPlateEventParticipant master)
Create a new LabeledExtract item as part
of a master bioplate event. |
static ItemQuery<LabeledExtract> |
getQuery()
Get a query that returns labeled extracts. |
Item |
getType()
Get the type of item represented by the object. |
Set<ItemProxy> |
getUsingItems()
Get all: Hybridization :s created from this labeled extract
|
boolean |
isUsed()
Check that: no Hybridization :s has been created from this item
no LabeledExtract :s has been created from this item
|
void |
setExtract(Extract extract,
Float usedQuantity)
Set the Extract item that is the parent
of this labeled extract. |
void |
setLabel(Label label)
Set the Label that was used to label the extract. |
Methods inherited from class net.sf.basedb.core.MeasuredBioMaterial |
---|
getBioWell, getCreationEvent, getEntryDate, getEvents, getOriginalQuantity, getPoolingEvents, getProtocol, getRemainingQuantity, isInWell, isLockedInWell, isPooled, newEvent, newEvent, onBeforeCommit, setBioPlateEventParticipant, setBioWell, setOriginalQuantity, setPooled, updateRemainingQuantity |
Methods inherited from class net.sf.basedb.core.BioMaterial |
---|
getExternalId, setExternalId |
Methods inherited from class net.sf.basedb.core.AnnotatedItem |
---|
getAnnotationSet, isAnnotated, removeAnnotations, toTransferable |
Methods inherited from class net.sf.basedb.core.CommonItem |
---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved, toTransferable |
Methods inherited from class net.sf.basedb.core.SharedItem |
---|
getItemKey, getProjectKey, initPermissions, isShared, setItemKey, setProjectKey, toTransferable |
Methods inherited from class net.sf.basedb.core.OwnedItem |
---|
getOwner, isOwner, setOwner, takeOwnership, toTransferable |
Methods inherited from class net.sf.basedb.core.BasicItem |
---|
addUsingItems, addUsingItems, checkPermission, equals, getData, getDbControl, getId, getPermissions, getPluginPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, onAfterCommit, onAfterInsert, 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 |
Methods inherited from interface net.sf.basedb.core.Ownable |
---|
getOwner, isOwner, setOwner, takeOwnership |
Field Detail |
---|
public static final Item TYPE
Item.LABELEDEXTRACT
,
getType()
Constructor Detail |
---|
LabeledExtract(LabeledExtractData labeledExtractData)
Method Detail |
---|
public static LabeledExtract getNew(DbControl dc, Label label) throws BaseException
LabeledExtract
item.
dc
- The DbControl
which will be used for
permission checking and database accesslabel
- The labeling compound used for labeling the extract
LabeledExtract
item
BaseException
- If there is an errorpublic static LabeledExtract getNew(DbControl dc, Label label, BioPlateEventParticipant master) throws BaseException
LabeledExtract
item as part
of a master bioplate event.
dc
- The DbControl
which will be used for
permission checking and database accesslabel
- The labeling compound used for labeling the extractmaster
- The master bioplate event participant or null
LabeledExtract
item
BaseException
- If there is an errorpublic static LabeledExtract getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
LabeledExtract
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
LabeledExtract
item
ItemNotFoundException
- If an item with the specified
id is not found
PermissionDeniedException
- If the logged in user doesn't
have read permission to the item
BaseException
- If there is another errorpublic static ItemQuery<LabeledExtract> getQuery()
ItemQuery
object.public Item getType()
Identifiable
Item
enumeration.
public Set<Annotatable> getAnnotatableParents() throws BaseException
BaseException
- If there is an errorpublic boolean isUsed() throws BaseException
Hybridization
:s has been created from this item
LabeledExtract
:s has been created from this item
isUsed
in class MeasuredBioMaterial<LabeledExtractData>
BaseException
- If not able to tell if item is used or not.BasicItem.getUsingItems()
public Set<ItemProxy> getUsingItems()
Hybridization
:s created from this labeled extract
getUsingItems
in class MeasuredBioMaterial<LabeledExtractData>
BasicItem.addUsingItems(Set, Item, org.hibernate.Query)
public Label getLabel() throws PermissionDeniedException, BaseException
Label
compound used for labeling the extract.
Label
object
PermissionDeniedException
- If the logged in user doesn't have read
permission for the label
BaseException
- If there is another errorpublic void setLabel(Label label) throws PermissionDeniedException, InvalidDataException
Label
that was used to label the extract.
label
- The new Label
item
PermissionDeniedException
- If the logged in user doesn't have
write permission for this labeled extract or use permission for the label
InvalidDataException
- If the label is null
BaseException
- If there is another errorpublic Extract getExtract() throws PermissionDeniedException, BaseException
Extract
that is the parent of this labeled extract.
Extract
object or null if this is a pooled or
standalone labeled extract
PermissionDeniedException
- If the logged in user doesn't have read
permission for the extract
BaseException
- If there is another errorpublic void setExtract(Extract extract, Float usedQuantity) throws PermissionDeniedException, InvalidDataException, BaseException
Extract
item that is the parent
of this labeled extract.
extract
- The new Extract
itemusedQuantity
- Used quantity of the extract.
PermissionDeniedException
- If the logged in user doesn't have
write permission for this labeled extract or use permission for the extract
InvalidDataException
- If this is a pooled labeled extract
BaseException
- If there is another errorpublic ItemQuery<Hybridization> getHybridizations()
ItemQuery
objectpublic ItemQuery<LabeledExtract> getChildLabeledExtracts()
public long countLabeledExtracts() throws BaseException
BaseException
- If there is some kind of error.public long countChildren(boolean pooled)
countChildren
in class BioMaterial<LabeledExtractData>
pooled
- If TRUE, the count is for biomaterials of the same type,
if FALSE the count is for biomaterials of the child type
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |