Interface NcbiExportSubmissionRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<NcbiExportSubmission,java.lang.Long>
,IridaJpaRepository<NcbiExportSubmission,java.lang.Long>
,org.springframework.data.jpa.repository.JpaSpecificationExecutor<NcbiExportSubmission>
,org.springframework.data.repository.PagingAndSortingRepository<NcbiExportSubmission,java.lang.Long>
,org.springframework.data.repository.Repository<NcbiExportSubmission,java.lang.Long>
,org.springframework.data.repository.history.RevisionRepository<NcbiExportSubmission,java.lang.Long,java.lang.Integer>
public interface NcbiExportSubmissionRepository extends IridaJpaRepository<NcbiExportSubmission,java.lang.Long>
Repository for storing and readingNcbiExportSubmission
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<NcbiExportSubmission>
getSubmissionsForProject(Project project)
Get a List ofNcbiExportSubmission
for the givenProject
java.util.List<NcbiExportSubmission>
getSubmissionsWithState(java.util.Set<ExportUploadState> state)
Get a List ofNcbiExportSubmission
object with the givenExportUploadState
-
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
-
getSubmissionsWithState
@Query("FROM NcbiExportSubmission s WHERE s.uploadState IN ?1") java.util.List<NcbiExportSubmission> getSubmissionsWithState(java.util.Set<ExportUploadState> state)
Get a List ofNcbiExportSubmission
object with the givenExportUploadState
- Parameters:
state
-ExportUploadState
to search for- Returns:
- a List of
NcbiExportSubmission
-
getSubmissionsForProject
@Query("FROM NcbiExportSubmission s WHERE s.project=?1") java.util.List<NcbiExportSubmission> getSubmissionsForProject(Project project)
Get a List ofNcbiExportSubmission
for the givenProject
- Parameters:
project
- TheProject
for the submission- Returns:
- a List of
NcbiExportSubmission
-
-