Package gov.niem.tools.api.db.component
Interface ComponentRepository<T extends Component<T>>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,,Long> org.springframework.data.jpa.repository.JpaRepository<T,,Long> org.springframework.data.repository.ListCrudRepository<T,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<T,,Long> org.springframework.data.repository.PagingAndSortingRepository<T,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<T>,org.springframework.data.repository.Repository<T,Long>
- All Known Subinterfaces:
PropertyRepository,TypeRepository
@NoRepositoryBean
public interface ComponentRepository<T extends Component<T>>
extends org.springframework.data.jpa.repository.JpaRepository<T,Long>
Repository interface for finding and managing components in the database.
-
Method Summary
Modifier and TypeMethodDescriptionlongcountByNamespace_Id(long namespaceId) longcountByNamespace_Version_Id(long versionId) org.springframework.data.domain.Page<T> findAllByNamespace_Id(Long namespaceId, org.springframework.data.domain.Pageable pageable) org.springframework.data.domain.Page<T> findAllByNamespace_Version_Id(Long versionId, org.springframework.data.domain.Pageable pageable) findOneByNamespace_IdAndName(Long namespaceId, String name) findTop10ByNamespace_IdAndNameLikeIgnoreCase(Long namespaceId, String name) findTop10ByNamespace_Version_IdAndNameLikeIgnoreCase(Long versionId, String name) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findOneByNamespace_IdAndName
-
findAllByNamespace_Version_Id
-
findAllByNamespace_Id
-
findTop10ByNamespace_IdAndNameLikeIgnoreCase
-
findTop10ByNamespace_Version_IdAndNameLikeIgnoreCase
-
countByNamespace_Id
long countByNamespace_Id(long namespaceId) -
countByNamespace_Version_Id
long countByNamespace_Version_Id(long versionId)
-