|
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<HybridizationData> net.sf.basedb.core.Hybridization
public class Hybridization
A hybridization is a representation of the process of hybridizing
one or more LabeledExtract
:s on an ArraySlide
.
Field Summary | |
---|---|
private BioPlateEventParticipant |
bioPlateEventParticipant
|
private BioMaterialEvent |
creationEvent
|
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 | |
---|---|
Hybridization(HybridizationData hybridizationData)
|
Method Summary | |
---|---|
long |
countScans()
Counts all scans that have been created from this hybridization. |
Set<Annotatable> |
getAnnotatableParents()
Get the labeled extracts and array slide. |
Set<Annotatable> |
getAnnotatableParents(int arrayNum)
Get the labeled extracts, possible on a specific array, and the array slide. |
ArraySlide |
getArraySlide()
Get the ArraySlide this hyridization is using. |
static Hybridization |
getById(DbControl dc,
int id)
Get a Hybridization item when you know the id. |
BioMaterialEvent |
getCreationEvent()
Get the event that represents the creation of this hybridization. |
Date |
getEntryDate()
Get the date that the item was registered in the database. |
ItemQuery<LabeledExtract> |
getLabeledExtracts(int arrayNum)
Get a query that returns labeled extracts connected to this hybridization. |
static Hybridization |
getNew(DbControl dc)
Create a new Hybridization item. |
static Hybridization |
getNew(DbControl dc,
BioPlateEventParticipant master)
Create a new Hybridization item as part of a
master bioplate event. |
int |
getNumArrays()
Get the number of arrays that on the slide. |
Protocol |
getProtocol()
Get the protocol from the creation event. |
static ItemQuery<Hybridization> |
getQuery()
Get a query that returns hybridizations. |
ItemQuery<Scan> |
getScans()
Get a query that returns all scans created from this hybridization. |
Item |
getType()
Get the type of item represented by the object. |
Set<ItemProxy> |
getUsingItems()
Get all: Scan :s created from this hybridization
|
boolean |
isUsed()
Check that: No Scan :s use the hybridization
|
Scan |
newScan()
Create a new Scan from this hybridization. |
(package private) void |
onBeforeCommit(Transactional.Action action)
Make sure the creation event is created at the same time this item is created and that source biomaterials get their used quantities back if this item is deleted. |
void |
setArraySlide(ArraySlide arraySlide)
Set the ArraySlide this hybridization is using. |
(package private) void |
setBioPlateEventParticipant(BioPlateEventParticipant bioPlateEventParticipant)
|
void |
setNumArrays(int numArrays)
Set the number of arrays on a single slide. |
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.HYBRIDIZATION
,
getType()
private BioMaterialEvent creationEvent
private BioPlateEventParticipant bioPlateEventParticipant
Constructor Detail |
---|
Hybridization(HybridizationData hybridizationData)
Method Detail |
---|
public static Hybridization getNew(DbControl dc) throws BaseException
Hybridization
item.
dc
- The DbControl
which will be used for
permission checking and database access
Hybridization
item
BaseException
- If there is an errorpublic static Hybridization getNew(DbControl dc, BioPlateEventParticipant master) throws BaseException
Hybridization
item as part of a
master bioplate event.
dc
- The DbControl
which will be used for
permission checking and database accessmaster
- The master bioplate event participant or null
Hybridization
item
BaseException
- If there is an errorpublic static Hybridization getById(DbControl dc, int id) throws ItemNotFoundException, PermissionDeniedException, BaseException
Hybridization
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
Hybridization
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<Hybridization> getQuery()
ItemQuery
objectpublic Item getType()
Identifiable
Item
enumeration.
getType
in interface Identifiable
public Set<Annotatable> getAnnotatableParents() throws BaseException
getAnnotatableParents
in interface Annotatable
BaseException
- If there is an errorgetAnnotatableParents(int)
public Protocol getProtocol()
getProtocol
in interface Annotatable
getProtocol
in class AnnotatedItem<HybridizationData>
public Date getEntryDate()
Registered
getEntryDate
in interface Registered
public boolean isUsed() throws BaseException
Scan
:s use the hybridization
isUsed
in class BasicItem<HybridizationData>
BaseException
- If not able to tell if item is used or not.BasicItem.getUsingItems()
public Set<ItemProxy> getUsingItems()
Scan
:s created from this hybridization
getUsingItems
in class BasicItem<HybridizationData>
BasicItem.addUsingItems(Set, Item, org.hibernate.Query)
void onBeforeCommit(Transactional.Action action) throws BaseException
onBeforeCommit
in class SharedItem<HybridizationData>
BaseException
- If there is another errorTransactional
,
Core API overview - Transaction handling,
Coding rules and guidelines for item classespublic Set<Annotatable> getAnnotatableParents(int arrayNum) throws BaseException
arrayNum
- If > 0 only include the labeled extracts which has been
linked with BioMaterialEvent.setSourceGroup(MeasuredBioMaterial, int)
.
If <= 0 include all labeled extracts.
BaseException
public BioMaterialEvent getCreationEvent() throws PermissionDeniedException, BaseException
BioMaterialEvent
data.
PermissionDeniedException
- If the logged in user don't have read permissions
BaseException
- If there is another error.void setBioPlateEventParticipant(BioPlateEventParticipant bioPlateEventParticipant)
public ArraySlide getArraySlide() throws PermissionDeniedException, BaseException
ArraySlide
this hyridization is using. A single
slide can only be used on one hybridization.
ArraySlide
item
PermissionDeniedException
- If the logged in user doesn't have
read permission to the array slide
BaseException
- If there is another error.public void setArraySlide(ArraySlide arraySlide) throws PermissionDeniedException
ArraySlide
this hybridization is using.
arraySlide
- The array slide, or null
PermissionDeniedException
- If the logged in user doesn't have
write permission for the hybridization or use permission for the array slide
BaseException
- If there is another error.public int getNumArrays()
public void setNumArrays(int numArrays)
numArrays
- A value > 0
NumberOutOfRangeException
- If the value is <=0public ItemQuery<LabeledExtract> getLabeledExtracts(int arrayNum)
arrayNum
- If > 0 only labeled extracts on the specific sub-array
are returned by the query, if <= 0, all labeled extracts
are returned
ItemQuery
objectpublic Scan newScan() throws PermissionDeniedException, BaseException
Scan
from this hybridization.
Scan
item
PermissionDeniedException
- If the logged in user doesn't have
use permission for the hybridzation
BaseException
- If there is another errorpublic ItemQuery<Scan> getScans()
ItemQuery
objectpublic long countScans() throws BaseException
BaseException
- If the scans could not be counted.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |