インタフェース UserProfileRepository

すべてのスーパーインタフェース:
org.springframework.data.repository.CrudRepository<UserProfile,​String>, org.springframework.data.mongodb.repository.MongoRepository<UserProfile,​String>, org.springframework.data.repository.PagingAndSortingRepository<UserProfile,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<UserProfile>, org.springframework.data.repository.Repository<UserProfile,​String>

@Repository
public interface UserProfileRepository
extends org.springframework.data.mongodb.repository.MongoRepository<UserProfile,​String>
The interface that manages user profile repository.
導入されたバージョン:
1.0.0
  • メソッドの概要

    修飾子とタイプ メソッド 説明
    UserProfile findByScreenName​(String screenName)
    Returns the user profile linked to the name passed as an argument.
    UserProfile findByUserId​(long userId)
    Returns the user profile linked to the user id passed as an argument.

    インタフェースから継承されたメソッド org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteById, existsById, findAllById, findById, save

    インタフェースから継承されたメソッド org.springframework.data.mongodb.repository.MongoRepository

    findAll, findAll, findAll, findAll, insert, insert, saveAll

    インタフェースから継承されたメソッド org.springframework.data.repository.PagingAndSortingRepository

    findAll

    インタフェースから継承されたメソッド org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findOne
  • メソッドの詳細

    • findByUserId

      UserProfile findByUserId​(long userId)
      Returns the user profile linked to the user id passed as an argument.
      パラメータ:
      name - The name
      戻り値:
      The user profile
    • findByScreenName

      UserProfile findByScreenName​(String screenName)
      Returns the user profile linked to the name passed as an argument.
      パラメータ:
      name - The name
      戻り値:
      The user profile