public class Extract extends MeasuredBioMaterial<ExtractData>
Sample
or by combining other extracts (pooling). It is also possible
to create standalone extracts, with no reference to a sample or to other
extracts.Modifier and Type | Field and Description |
---|---|
static Item |
TYPE
The type of item represented by this class.
|
MAX_EXTERNAL_ID_LENGTH, MAX_STORAGE_LOCATION_LENGTH
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
Modifier and Type | Method and Description |
---|---|
Set<Annotatable> |
getAnnotatableParents()
Get the sample or pooled extracts.
|
ItemQuery<LabeledExtract> |
getLabeledExtracts()
Get a query that returns all labeled extracts created from this extract.
|
static ItemQuery<Extract> |
getQuery()
Get a query that returns extracts.
|
Sample |
getSample()
Get the
Sample that is the parent of this extract. |
Item |
getType()
Get the type of item represented by the object.
|
boolean |
isUsed()
Check that:
no
LabeledExtract :s has been created from this item
no Extract :s has been created from this item
|
void |
setSample(Sample sample)
Set the
Sample item that is the the parent of this extract. |
getConcentrationInGramsPerLiter, getCreationEvent, getEventQuery, getEvents, getOriginalQuantityInMicroLiters, getRemainingQuantityInMicroLiters, isPooled, setConcentrationInGramsPerLiter, setCreationEvent, setOriginalQuantityInMicroLiters, setPooled, setRemainingQuantityInMicroLiters
addFile, getExternalId, getFiles, getStorageLocation, removeFile, setExternalId, setFiles, setStorageLocation
getDescription, getName, isRemoved, setDescription, setName, setRemoved
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
checkPermission, hasPermission
public static final Item TYPE
Item.EXTRACT
,
getType()
public static ItemQuery<Extract> getQuery()
ItemQuery
object.public Item getType()
Identifiable
Item
enumeration.public Set<Annotatable> getAnnotatableParents() throws BaseException
BaseException
public boolean isUsed() throws BaseException
LabeledExtract
:s has been created from this item
Extract
:s has been created from this item
isUsed
in class MeasuredBioMaterial<ExtractData>
BaseException
public Sample getSample() throws PermissionDeniedException, BaseException
Sample
that is the parent of this extract.Sample
object or null if this is a pooled or
standalone extractPermissionDeniedException
- If the logged in user doesn't have read
permission for the sampleBaseException
- If there is another errorpublic void setSample(Sample sample) throws PermissionDeniedException, InvalidDataException, BaseException
Sample
item that is the the parent of this extract.sample
- The new Sample
item extract was createdPermissionDeniedException
- If the logged in user doesn't have
write permission for this extract or use permission for the
sampleInvalidDataException
- If this is a pooled extractBaseException
- If there is another errorpublic ItemQuery<LabeledExtract> getLabeledExtracts()
ItemQuery
object