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 void
addParent(Sample parent)
int
compareTo(Sample o)
boolean
equals(java.lang.Object obj)
AttachmentHolderKind
getAttachmentHolderKind()
java.util.List<Attachment>
getAttachments()
Sample
getContainer()
DatabaseInstance
getDatabaseInstance()
Deletion
getDeletion()
EntityKind
getEntityKind()
Return the entity kind of this matching entity.EntityType
getEntityType()
Returns the entity type of this matching entity.Experiment
getExperiment()
Sample
getGeneratedFrom()
java.lang.Long
getId()
Returns the technical ID of this instance.java.lang.String
getIdentifier()
java.util.Collection<Metaproject>
getMetaprojects()
java.util.Set<Sample>
getParents()
java.lang.String
getPermId()
java.lang.String
getPermlink()
Project
getProject()
java.util.List<IEntityProperty>
getProperties()
SampleType
getSampleType()
java.lang.String
getSearchlink()
Space
getSpace()
can be nulljava.lang.String
getSubCode()
int
hashCode()
boolean
isStub()
void
setAttachments(java.util.List<Attachment> attachments)
void
setContainedSample(java.util.List<Sample> containedSamples)
void
setContainer(Sample container)
void
setDatabaseInstance(DatabaseInstance databaseInstance)
void
setDeletion(Deletion deletion)
void
setExperiment(Experiment experiment)
void
setGeneratedFrom(Sample generatedFrom)
void
setId(java.lang.Long id)
void
setIdentifier(java.lang.String sampleIdentifer)
void
setMetaprojects(java.util.Collection<Metaproject> metaprojects)
void
setParents(java.util.Set<Sample> parents)
void
setPermId(java.lang.String permId)
void
setPermlink(java.lang.String permlink)
void
setProject(Project project)
void
setProperties(java.util.List<IEntityProperty> properties)
void
setSampleType(SampleType sampleType)
void
setSearchlink(java.lang.String searchlink)
void
setSpace(Space space)
void
setSubCode(java.lang.String subCode)
java.lang.String
toString()
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:
getAttachmentHolderKind
in 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:
getProperties
in 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:
getIdentifier
in interfaceIIdentifierHolder
-
getDeletion
public final Deletion getDeletion()
- Specified by:
getDeletion
in interfaceIDeletionProvider
-
compareTo
public final int compareTo(Sample o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Sample>
- Overrides:
compareTo
in classCodeWithRegistration<Sample>
-
getId
public java.lang.Long getId()
Description copied from interface:IIdHolder
Returns the technical ID of this instance.
-
setId
public void setId(java.lang.Long id)
-
getEntityType
public EntityType getEntityType()
Description copied from interface:IEntityInformationHolder
Returns the entity type of this matching entity.- Specified by:
getEntityType
in interfaceIEntityInformationHolder
-
getEntityKind
public EntityKind getEntityKind()
Description copied from interface:IEntityInformationHolder
Return the entity kind of this matching entity.- Specified by:
getEntityKind
in 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:
getPermId
in interfaceIPermIdHolder
-
setMetaprojects
public void setMetaprojects(java.util.Collection<Metaproject> metaprojects)
-
getMetaprojects
public java.util.Collection<Metaproject> getMetaprojects()
- Specified by:
getMetaprojects
in interfaceITaggable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-