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 Type
    Method
    Description
    void
    Delete by name.
    Exists by name boolean.
    Exists by stream key boolean.
    Find by name optional.
    Find by stream key optional.

    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
  • Method Details

    • findByName

      Optional<accountModel> findByName(String name)
      Find by name optional.
      Parameters:
      name - the name
      Returns:
      the optional
    • findByStreamKey

      Optional<accountModel> findByStreamKey(String streamey)
      Find by stream key optional.
      Parameters:
      streamey - the streamey
      Returns:
      the optional
    • existsByStreamKey

      Boolean existsByStreamKey(String streamKey)
      Exists by stream key boolean.
      Parameters:
      streamKey - the stream key
      Returns:
      the boolean
    • existsByName

      Boolean existsByName(String name)
      Exists by name boolean.
      Parameters:
      name - the name
      Returns:
      the boolean
    • deleteByName

      void deleteByName(String name)
      Delete by name.
      Parameters:
      name - the name