Package com.skava.repository
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 Summary
Modifier and TypeMethodDescriptionfindByIdentity
(String identity) This is used to load the identities by identity.findByIdentityAndType
(String identity, int type) This is used to load the list of identities by identity and type.findByUserId
(long userId) This is used to load the list of identities by user id.findByUserIdAndIdentity
(long userId, String identity) This is used to load the identities by user id and identity.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
findByUserId
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
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
This is used to load the identities by identity.- Parameters:
identity
- Indicates the identities of the user.- Returns:
- The
IdentitiesEntity
object.
-
findByUserIdAndIdentity
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.
-