All Superinterfaces:
IMetaprojectContent

public interface ISampleImmutable extends IMetaprojectContent
An interface for samples from the database that should not be altered.
  • Method Details

    • getSampleIdentifier

      String getSampleIdentifier()
      Return the identifier for this sample.
    • getSpace

      String getSpace()
      Return the space code for this sample.
    • getCode

      String getCode()
      Return the code for this sample.
    • getExperiment

      IExperimentImmutable getExperiment()
      Return the experiment for this sample. May be null.
    • getProject

      IProjectImmutable getProject()
      Returns the project for this sample or null.
    • getSampleType

      String getSampleType()
      Return the type for this sample. May be null.
    • isExistingSample

      boolean isExistingSample()
      Return true if the sample exists in the database.
    • getPropertyValue

      String getPropertyValue(String propertyCode)
      Return the value of a property specified by a code. May return null of no such property with code propertyCode is found.
    • getContainedSamples

      List<ISampleImmutable> getContainedSamples()
      Return the contained sample objects. Only available for samples existing prior the transaction start that were obtained from the server with their contained samples included. Call canGetContainedSamples() to see if these can be provided.
      Throws:
      IllegalStateException - If the contained samples cannot be returned.
    • canGetContainedSamples

      boolean canGetContainedSamples()
      Return true if this sample object has contained samples available. This is independent of whether or not the sample has contained samples. This method only says if the contained samples were provided to this object by the application server.
    • getPermId

      String getPermId()
      Returns the permId of this sample.
    • getParentSampleIdentifiers

      List<String> getParentSampleIdentifiers()
      Gets the parents of this sample