Class Sample
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractRegistrationHolder
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistration<T>
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistrationAndModificationDate<Sample>
-
- ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample
-
- All Implemented Interfaces:
IEntityPropertiesHolder,IAttachmentHolder,ICodeHolder,IDeletionProvider,IEntityInformationHolder,IEntityInformationHolderWithIdentifier,IEntityInformationHolderWithPermId,IEntityInformationHolderWithProperties,IEntityWithDeletionInformation,IIdAndCodeHolder,IIdentifierHolder,IIdHolder,IIsStub,IPermIdHolder,IRegistratorAndModifierHolder,IRegistratorHolder,ITaggable,java.io.Serializable,java.lang.Comparable<Sample>
public final class Sample extends CodeWithRegistrationAndModificationDate<Sample> implements IEntityWithDeletionInformation, java.lang.Comparable<Sample>, IEntityInformationHolderWithProperties, IAttachmentHolder, IIdAndCodeHolder, IPermIdHolder, IIsStub, ITaggable
Java Bean which contain information about sample.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Sample[]EMPTY_ARRAY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParent(Sample parent)intcompareTo(Sample o)booleanequals(java.lang.Object obj)AttachmentHolderKindgetAttachmentHolderKind()java.util.List<Attachment>getAttachments()SamplegetContainer()DatabaseInstancegetDatabaseInstance()DeletiongetDeletion()EntityKindgetEntityKind()Return the entity kind of this matching entity.EntityTypegetEntityType()Returns the entity type of this matching entity.ExperimentgetExperiment()SamplegetGeneratedFrom()java.lang.LonggetId()Returns the technical ID of this instance.java.lang.StringgetIdentifier()java.util.Collection<Metaproject>getMetaprojects()java.util.Set<Sample>getParents()java.lang.StringgetPermId()java.lang.StringgetPermlink()ProjectgetProject()java.util.List<IEntityProperty>getProperties()SampleTypegetSampleType()java.lang.StringgetSearchlink()SpacegetSpace()can be nulljava.lang.StringgetSubCode()inthashCode()booleanisStub()voidsetAttachments(java.util.List<Attachment> attachments)voidsetContainedSample(java.util.List<Sample> containedSamples)voidsetContainer(Sample container)voidsetDatabaseInstance(DatabaseInstance databaseInstance)voidsetDeletion(Deletion deletion)voidsetExperiment(Experiment experiment)voidsetGeneratedFrom(Sample generatedFrom)voidsetId(java.lang.Long id)voidsetIdentifier(java.lang.String sampleIdentifer)voidsetMetaprojects(java.util.Collection<Metaproject> metaprojects)voidsetParents(java.util.Set<Sample> parents)voidsetPermId(java.lang.String permId)voidsetPermlink(java.lang.String permlink)voidsetProject(Project project)voidsetProperties(java.util.List<IEntityProperty> properties)voidsetSampleType(SampleType sampleType)voidsetSearchlink(java.lang.String searchlink)voidsetSpace(Space space)voidsetSubCode(java.lang.String subCode)java.lang.StringtoString()java.util.List<Sample>tryGetContainedSamples()-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistrationAndModificationDate
getModificationDate, getModifier, getVersion, setModificationDate, setModifier, setVersion
-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.CodeWithRegistration
getCode, setCode
-
Methods inherited from class ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractRegistrationHolder
getRegistrationDate, getRegistrator, setRegistrationDate, setRegistrator
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ch.systemsx.cisd.openbis.generic.shared.basic.ICodeHolder
getCode
-
Methods inherited from interface ch.systemsx.cisd.openbis.generic.shared.basic.IRegistratorHolder
getRegistrator
-
-
-
-
Field Detail
-
EMPTY_ARRAY
public static final Sample[] EMPTY_ARRAY
-
-
Method Detail
-
getSubCode
public java.lang.String getSubCode()
-
setSubCode
public void setSubCode(java.lang.String subCode)
-
getPermlink
public java.lang.String getPermlink()
-
setPermlink
public void setPermlink(java.lang.String permlink)
-
getSearchlink
public java.lang.String getSearchlink()
-
setSearchlink
public void setSearchlink(java.lang.String searchlink)
-
getAttachmentHolderKind
public AttachmentHolderKind getAttachmentHolderKind()
- Specified by:
getAttachmentHolderKindin interfaceIAttachmentHolder
-
getSampleType
public SampleType getSampleType()
-
setSampleType
public void setSampleType(SampleType sampleType)
-
setSpace
public void setSpace(Space space)
-
getSpace
public Space getSpace()
can be null
-
getDatabaseInstance
public DatabaseInstance getDatabaseInstance()
-
setDatabaseInstance
public void setDatabaseInstance(DatabaseInstance databaseInstance)
-
setIdentifier
public void setIdentifier(java.lang.String sampleIdentifer)
-
getContainer
public Sample getContainer()
-
setContainer
public void setContainer(Sample container)
-
getParents
public java.util.Set<Sample> getParents()
-
setParents
public void setParents(java.util.Set<Sample> parents)
-
addParent
public void addParent(Sample parent)
-
tryGetContainedSamples
public java.util.List<Sample> tryGetContainedSamples()
-
setContainedSample
public void setContainedSample(java.util.List<Sample> containedSamples)
-
getGeneratedFrom
public Sample getGeneratedFrom()
-
setGeneratedFrom
public void setGeneratedFrom(Sample generatedFrom)
-
getProperties
public java.util.List<IEntityProperty> getProperties()
- Specified by:
getPropertiesin interfaceIEntityPropertiesHolder
-
setProperties
public void setProperties(java.util.List<IEntityProperty> properties)
-
setDeletion
public final void setDeletion(Deletion deletion)
-
getExperiment
public final Experiment getExperiment()
-
setExperiment
public final void setExperiment(Experiment experiment)
-
getProject
public final Project getProject()
-
setProject
public final void setProject(Project project)
-
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifierin interfaceIIdentifierHolder
-
getDeletion
public final Deletion getDeletion()
- Specified by:
getDeletionin interfaceIDeletionProvider
-
compareTo
public final int compareTo(Sample o)
- Specified by:
compareToin interfacejava.lang.Comparable<Sample>- Overrides:
compareToin classCodeWithRegistration<Sample>
-
getId
public java.lang.Long getId()
Description copied from interface:IIdHolderReturns the technical ID of this instance.
-
setId
public void setId(java.lang.Long id)
-
getEntityType
public EntityType getEntityType()
Description copied from interface:IEntityInformationHolderReturns the entity type of this matching entity.- Specified by:
getEntityTypein interfaceIEntityInformationHolder
-
getEntityKind
public EntityKind getEntityKind()
Description copied from interface:IEntityInformationHolderReturn the entity kind of this matching entity.- Specified by:
getEntityKindin interfaceIEntityInformationHolder
-
setAttachments
public void setAttachments(java.util.List<Attachment> attachments)
-
getAttachments
public java.util.List<Attachment> getAttachments()
-
setPermId
public void setPermId(java.lang.String permId)
-
getPermId
public java.lang.String getPermId()
- Specified by:
getPermIdin interfaceIPermIdHolder
-
setMetaprojects
public void setMetaprojects(java.util.Collection<Metaproject> metaprojects)
-
getMetaprojects
public java.util.Collection<Metaproject> getMetaprojects()
- Specified by:
getMetaprojectsin interfaceITaggable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-