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 WebAccountfindByLoginToken(java.lang.String loginToken)Gets aWebAccountobject from a specified login tokenWebAccountfindByUsername(java.lang.String username)finds aWebAccountobject from a specified usernameWebAccountfindByWebAccountId(int webAccountId)Gets aWebAccountobject from a specified web account idMethods 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, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods 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
-
findByUsername
finds aWebAccountobject from a specified username- Parameters:
username- is a user's username- Returns:
WebAccountobject holding data corresponding to the provided username
-
findByLoginToken
Gets aWebAccountobject from a specified login token- Parameters:
loginToken- is the user's session login token used to validate the user- Returns:
WebAccountobject holding data corresponding to the provided login token
-
findByWebAccountId
Gets aWebAccountobject from a specified web account id- Parameters:
webAccountId- is the id of the web account- Returns:
WebAccountobject holding data corresponding to the provided web account id
-