Interface IdentitiesRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<IdentitiesEntity,Long>, org.springframework.data.repository.Repository<IdentitiesEntity,Long>

public interface IdentitiesRepository extends org.springframework.data.repository.CrudRepository<IdentitiesEntity,Long>
This is IdentitiesRepository interface. Interface for generic CRUD operations of the Identities entity. This handles the below operations.
  • Create
  • Read
  • Update
  • Delete
Author:
Infosys Equinox
  • Method Details

    • findByUserId

      List<IdentitiesEntity> findByUserId(long userId)
      This is used to load the list of identities by user id.
      Parameters:
      userId - Indicates the user id for loading the list of identities entity.
      Returns:
      The list of IdentitiesEntity object.
    • findByIdentityAndType

      List<IdentitiesEntity> findByIdentityAndType(String identity, int type)
      This is used to load the list of identities by identity and type.
      Parameters:
      identity - Indicates the identity of the user.
      type - Indicates the type of the identity.
      Returns:
      The list of IdentitiesEntity object.
    • findByIdentity

      IdentitiesEntity findByIdentity(String identity)
      This is used to load the identities by identity.
      Parameters:
      identity - Indicates the identities of the user.
      Returns:
      The IdentitiesEntity object.
    • findByUserIdAndIdentity

      IdentitiesEntity findByUserIdAndIdentity(long userId, String identity)
      This is used to load the identities by user id and identity.
      Parameters:
      userId - Indicates the userid for which the identities gets loaded.
      identity - Indicates the identity of the user.
      Returns:
      the IdentitiesEntity object.