Interface DBFileRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DBFile,DBFilePK>, org.springframework.data.jpa.repository.JpaRepository<DBFile,DBFilePK>, org.springframework.data.repository.ListCrudRepository<DBFile,DBFilePK>, org.springframework.data.repository.ListPagingAndSortingRepository<DBFile,DBFilePK>, org.springframework.data.repository.PagingAndSortingRepository<DBFile,DBFilePK>, org.springframework.data.repository.query.QueryByExampleExecutor<DBFile>, org.springframework.data.querydsl.QuerydslPredicateExecutor<DBFile>, org.springframework.data.repository.Repository<DBFile,DBFilePK>

public interface DBFileRepository extends org.springframework.data.jpa.repository.JpaRepository<DBFile,DBFilePK>, org.springframework.data.querydsl.QuerydslPredicateExecutor<DBFile>
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    Deletes a file (including all of its chunks) from the database
    findAll(com.querydsl.core.types.Predicate predicate)
     
    findAll(com.querydsl.core.types.Predicate predicate, org.springframework.data.domain.Sort sort)
     
    default DBFile
    getChunk(String id, Long chunkOrder)
    Retrieves a chunk from the database

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne

    Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor

    count, exists, findAll, findAll, findAll, findBy, findOne
  • Method Details

    • findAll

      @NonNull List<DBFile> findAll(@NonNull com.querydsl.core.types.Predicate predicate)
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<DBFile>
    • findAll

      @NonNull List<DBFile> findAll(@NonNull com.querydsl.core.types.Predicate predicate, @NonNull org.springframework.data.domain.Sort sort)
      Specified by:
      findAll in interface org.springframework.data.querydsl.QuerydslPredicateExecutor<DBFile>
    • getChunk

      default DBFile getChunk(String id, Long chunkOrder)
      Retrieves a chunk from the database
      Parameters:
      id - The file/chunk id
      chunkOrder - The chunk order number
      Returns:
      the file
    • deleteById

      default long deleteById(String id)
      Deletes a file (including all of its chunks) from the database
      Parameters:
      id - The file id
      Returns:
      the number of the deleted objects