RefyUsersRepository

@Primary
@Service
@Repository
interface RefyUsersRepository : EquinoxUsersRepository<T>

The RefyUsersRepository interface is useful to manage the queries for the users operations

Author

N7ghtm4r3 - Tecknobit

See also

JpaRepository
EquinoxUsersRepository

Functions

Link copied to clipboard
abstract fun changeEmail(p: String, p1: String)
Link copied to clipboard
abstract fun changeLanguage(p: String, p1: String)
Link copied to clipboard
abstract fun changePassword(p: String, p1: String)
Link copied to clipboard
abstract fun changeProfilePic(p: String, p1: String)
Link copied to clipboard
abstract fun <S : T?> count(example: Example<S>): Long
Link copied to clipboard
abstract fun delete(entity: T)
Link copied to clipboard
abstract fun deleteAll(entities: Iterable<out T>)
Link copied to clipboard
abstract fun deleteAllById(ids: Iterable<out ID>)
Link copied to clipboard
abstract fun deleteAllByIdInBatch(ids: Iterable<ID>)
Link copied to clipboard
abstract fun deleteAllInBatch(entities: Iterable<T>)
Link copied to clipboard
abstract fun deleteById(id: ID)
Link copied to clipboard
open fun deleteInBatch(entities: Iterable<T>)
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + USERS_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
abstract fun deleteUser(@Param(value = "id") userId: String)
Method to execute the query to delete a user from the system
Link copied to clipboard
abstract fun <S : T?> exists(example: Example<S>): Boolean
Link copied to clipboard
abstract fun existsById(id: ID): Boolean
Link copied to clipboard
abstract fun <S : T?> findAll(example: Example<S>): List<S>
abstract fun findAll(): Iterable<T>
abstract fun findAll(): List<T>
abstract fun findAll(pageable: Pageable): Page<T>
abstract fun <S : T?> findAll(example: Example<S>): Iterable<S>
abstract fun <S : T?> findAll(example: Example<S>, pageable: Pageable): Page<S>
Link copied to clipboard
abstract fun findAllById(ids: Iterable<ID>): Iterable<T>
abstract fun findAllById(ids: Iterable<ID>): List<T>
Link copied to clipboard
abstract fun <S : T?, R> findBy(example: Example<S>, queryFunction: (FluentQuery.FetchableFluentQuery<S>) -> R): R
Link copied to clipboard
abstract fun findById(id: ID): Optional<T>
Link copied to clipboard
abstract fun <S : T?> findOne(example: Example<S>): Optional<S>
Link copied to clipboard
abstract fun findUserByEmail(p: String): T
Link copied to clipboard
abstract fun flush()
Link copied to clipboard
abstract fun getById(id: ID): T
Link copied to clipboard
abstract fun getOne(id: ID): T
Link copied to clipboard
@Query(value = ""SELECT " + IDENTIFIER_KEY + "," + PROFILE_PIC_KEY + "," + NAME_KEY + "," + SURNAME_KEY + "," + TAG_NAME_KEY + " FROM " + USERS_KEY + " WHERE " + IDENTIFIER_KEY + "!=:" + IDENTIFIER_KEY", nativeQuery = true)
abstract fun getPotentialMembers(@Param(value = "id") userId: String): List<List<String>>
Method to execute the query to get the potential members for a team
Link copied to clipboard
abstract fun getReferenceById(id: ID): T
Link copied to clipboard
abstract fun <S : T?> save(entity: S): S
Link copied to clipboard
abstract fun <S : T?> saveAll(entities: Iterable<S>): Iterable<S>
abstract fun <S : T?> saveAll(entities: Iterable<S>): List<S>
Link copied to clipboard
abstract fun <S : T?> saveAllAndFlush(entities: Iterable<S>): List<S>
Link copied to clipboard
abstract fun <S : T?> saveAndFlush(entity: S): S
Link copied to clipboard
abstract fun saveUser(p: String, p1: String, p2: String, p3: String, p4: String, p5: String, p6: String, p7: String)

@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + USERS_KEY + "(" + DISCRIMINATOR_VALUE_KEY + "," + IDENTIFIER_KEY + "," + TOKEN_KEY + "," + TAG_NAME_KEY + "," + NAME_KEY + "," + SURNAME_KEY + "," + EMAIL_KEY + "," + PASSWORD_KEY + "," + LANGUAGE_KEY + ") VALUES (" + ":" + DISCRIMINATOR_VALUE_KEY + "," + ":" + IDENTIFIER_KEY + "," + ":" + TOKEN_KEY + "," + ":" + TAG_NAME_KEY + "," + ":" + NAME_KEY + "," + ":" + SURNAME_KEY + "," + ":" + EMAIL_KEY + "," + ":" + PASSWORD_KEY + "," + ":" + LANGUAGE_KEY + ")", nativeQuery = true)
abstract fun saveUser(@Param(value = "dtype") discriminatorValue: String, @Param(value = "id") id: String, @Param(value = "token") token: String, @Param(value = "tag_name") tagName: String, @Param(value = "name") name: String, @Param(value = "surname") surname: String, @Param(value = "email") email: String, @Param(value = "password") password: String, @Param(value = "language") language: String)
Method to execute the query to save a new user in the system