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 a WebAccount object from a specified login token
    WebAccount findByUsername​(java.lang.String username)
    finds a WebAccount object from a specified username
    WebAccount findByWebAccountId​(int webAccountId)
    Gets a WebAccount object from a specified web account id

    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, 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

      WebAccount findByUsername​(java.lang.String username)
      finds a WebAccount object from a specified username
      Parameters:
      username - is a user's username
      Returns:
      WebAccount object holding data corresponding to the provided username
    • findByLoginToken

      WebAccount findByLoginToken​(java.lang.String loginToken)
      Gets a WebAccount 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

      WebAccount findByWebAccountId​(int webAccountId)
      Gets a WebAccount 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