Interface SampleSequencingObjectJoinRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SampleSequencingObjectJoin,java.lang.Long>
,IridaJpaRepository<SampleSequencingObjectJoin,java.lang.Long>
,org.springframework.data.jpa.repository.JpaSpecificationExecutor<SampleSequencingObjectJoin>
,org.springframework.data.repository.PagingAndSortingRepository<SampleSequencingObjectJoin,java.lang.Long>
,org.springframework.data.repository.Repository<SampleSequencingObjectJoin,java.lang.Long>
,org.springframework.data.repository.history.RevisionRepository<SampleSequencingObjectJoin,java.lang.Long,java.lang.Integer>
public interface SampleSequencingObjectJoinRepository extends IridaJpaRepository<SampleSequencingObjectJoin,java.lang.Long>
Repository for storing and retrievingSampleSequencingObjectJoin
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SampleSequencingObjectJoin
getSampleForSequencingObject(SequencingObject seqObject)
Get theSampleSequencingObjectJoin
for a givenSequencingObject
java.util.List<SampleSequencingObjectJoin>
getSequencesForSample(Sample sample)
Get theSequenceFile
s associated with a sampleSampleSequencingObjectJoin
readObjectForSample(Sample sample, java.lang.Long sequenceId)
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, exists, findAll, findAll, findAll, findOne
-
-
-
-
Method Detail
-
getSequencesForSample
@Query("select j from SampleSequencingObjectJoin j where j.sample = ?1") java.util.List<SampleSequencingObjectJoin> getSequencesForSample(Sample sample)
Get theSequenceFile
s associated with a sample- Parameters:
sample
- The sample to get the files for- Returns:
- a list of
SampleSequencingObjectJoin
objects
-
readObjectForSample
@Query("from SampleSequencingObjectJoin j where j.sample = ?1 and j.sequencingObject.id = ?2") SampleSequencingObjectJoin readObjectForSample(Sample sample, java.lang.Long sequenceId)
- Parameters:
sample
-Sample
to get the join forsequenceId
- ID of theSequencingObject
to get the join for- Returns:
- A
SampleSequencingObjectJoin
-
getSampleForSequencingObject
@Query("from SampleSequencingObjectJoin j where j.sequencingObject = ?1") SampleSequencingObjectJoin getSampleForSequencingObject(SequencingObject seqObject)
Get theSampleSequencingObjectJoin
for a givenSequencingObject
- Parameters:
seqObject
- theSequencingObject
to get the join for- Returns:
- a
SampleSequencingObjectJoin
-
-