|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteios.core.BasicItem<D>
org.proteios.core.OwnedItem<D>
org.proteios.core.SharedItem<D>
org.proteios.core.CommonItem<D>
org.proteios.core.AnnotatedItem<D>
org.proteios.core.BioMaterial<D>
org.proteios.core.MeasuredBioMaterial<SampleData>
org.proteios.core.Sample
public class Sample
This class is used to represent sample items. A sample is the actual sample
taken from a BioSource. A sample can also be created by combining
other samples into a new sample. A process is known as pooling. It is also
possible to create standalone samples, with no reference to a biosource or to
other samples.
| Field Summary | |
|---|---|
static Item |
TYPE
The type of item represented by this class. |
| Fields inherited from class org.proteios.core.BioMaterial |
|---|
MAX_EXTERNAL_ID_LENGTH, MAX_STORAGE_LOCATION_LENGTH |
| Fields inherited from interface org.proteios.core.Nameable |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Method Summary | |
|---|---|
Set<Annotatable> |
getAnnotatableParents()
Get the biosource or pooled samples. |
BioSource |
getBioSource()
Get the BioSource that is the parent of this sample. |
static Sample |
getById(DbControl dc,
int id)
Get an Sample item when you know the id. |
ItemQuery<Extract> |
getExtracts()
Get a query that returns all extracts created from this sample. |
static ItemQuery<Sample> |
getQuery()
Get a query that returns samples. |
Item |
getType()
Get the type of item represented by the object. |
boolean |
isUsed()
Check that: no Extract:s has been created from this item
no Sample:s has been created from this item
|
void |
setBioSource(BioSource bioSource)
Set the BioSource item that is the the parent of this sample. |
| Methods inherited from class org.proteios.core.BioMaterial |
|---|
addFile, getExternalId, getFiles, getStorageLocation, setExternalId, setFiles, setStorageLocation |
| Methods inherited from class org.proteios.core.CommonItem |
|---|
getDescription, getName, isRemoved, setDescription, setName, setRemoved |
| Methods inherited from class org.proteios.core.SharedItem |
|---|
getItemKey, getProjectKey, isShared, setItemKey, setProjectKey |
| Methods inherited from class org.proteios.core.OwnedItem |
|---|
getOwner, setOwner |
| Methods inherited from class org.proteios.core.BasicItem |
|---|
checkPermission, equals, getDbControl, getId, getPermissions, getSessionControl, getVersion, hashCode, hasPermission, isDetached, isInDatabase, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.proteios.core.Identifiable |
|---|
getId, getVersion |
| Methods inherited from interface org.proteios.core.AccessControlled |
|---|
checkPermission, hasPermission |
| Methods inherited from interface org.proteios.core.Ownable |
|---|
getOwner, setOwner |
| Field Detail |
|---|
public static final Item TYPE
Item.SAMPLE,
getType()| Method Detail |
|---|
public static Sample getById(DbControl dc,
int id)
throws ItemNotFoundException,
PermissionDeniedException,
BaseException
Sample 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
Sample 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<Sample> getQuery()
ItemQuery objectpublic Item getType()
IdentifiableItem enumeration.
public Set<Annotatable> getAnnotatableParents()
throws BaseException
BaseException
public boolean isUsed()
throws BaseException
isUsed in class MeasuredBioMaterial<SampleData>BaseException
public BioSource getBioSource()
throws PermissionDeniedException,
BaseException
BioSource that is the parent of this sample.
BioSource object or null if this is a pooled or
standalone sample
PermissionDeniedException - If the logged in user doesn't have read
permission for the biosource
BaseException - If there is another error
public void setBioSource(BioSource bioSource)
throws PermissionDeniedException,
InvalidDataException
BioSource item that is the the parent of this sample.
bioSource - The parent BioSource item
PermissionDeniedException - If the logged in user doesn't have
write permission for this sample or use permission for the
biosource
InvalidDataException - If this is a pooled sample
BaseException - If there is another error
public ItemQuery<Extract> getExtracts()
throws BaseException
ItemQuery object
BaseException
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||