Interface accountRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<accountModel,,String> org.springframework.data.jpa.repository.JpaRepository<accountModel,,String> org.springframework.data.repository.ListCrudRepository<accountModel,,String> org.springframework.data.repository.ListPagingAndSortingRepository<accountModel,,String> org.springframework.data.repository.PagingAndSortingRepository<accountModel,,String> org.springframework.data.repository.query.QueryByExampleExecutor<accountModel>,org.springframework.data.repository.Repository<accountModel,String>
@Repository
public interface accountRepository
extends org.springframework.data.jpa.repository.JpaRepository<accountModel,String>
The interface Account repository.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByName(String name) Delete by name.existsByName(String name) Exists by name boolean.existsByStreamKey(String streamKey) Exists by stream key boolean.findByName(String name) Find by name optional.findByStreamKey(String streamey) Find by stream key optional.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
-
findByName
Find by name optional.- Parameters:
name- the name- Returns:
- the optional
-
findByStreamKey
Find by stream key optional.- Parameters:
streamey- the streamey- Returns:
- the optional
-
existsByStreamKey
-
existsByName
-
deleteByName
-