Package com.patreonshout.jpa
Interface WebAccountRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<WebAccount,java.lang.Long>
,org.springframework.data.jpa.repository.JpaRepository<WebAccount,java.lang.Long>
,org.springframework.data.repository.PagingAndSortingRepository<WebAccount,java.lang.Long>
,org.springframework.data.repository.query.QueryByExampleExecutor<WebAccount>
,org.springframework.data.repository.Repository<WebAccount,java.lang.Long>
@Repository public interface WebAccountRepository extends org.springframework.data.jpa.repository.JpaRepository<WebAccount,java.lang.Long>
Interface for WebAccountFunctions to use pre-made JpaRepository database communications
-
Method Summary
Modifier and Type Method Description WebAccount
findByLoginToken(java.lang.String loginToken)
Gets aWebAccount
object from a specified login tokenWebAccount
findByUsername(java.lang.String username)
finds aWebAccount
object from a specified usernameWebAccount
findByWebAccountId(int webAccountId)
Gets aWebAccount
object from a specified web account idMethods 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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
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
-
findByUsername
finds aWebAccount
object from a specified username- Parameters:
username
- is a user's username- Returns:
WebAccount
object holding data corresponding to the provided username
-
findByLoginToken
Gets aWebAccount
object from a specified login token- Parameters:
loginToken
- is the user's session login token used to validate the user- Returns:
WebAccount
object holding data corresponding to the provided login token
-
findByWebAccountId
Gets aWebAccount
object from a specified web account id- Parameters:
webAccountId
- is the id of the web account- Returns:
WebAccount
object holding data corresponding to the provided web account id
-