Package com.skava.marketplace.repository
Interface PrivateAppAssociationRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<PrivateAppAssociation,
,String> org.springframework.data.repository.ListCrudRepository<PrivateAppAssociation,
,String> org.springframework.data.repository.ListPagingAndSortingRepository<PrivateAppAssociation,
,String> org.springframework.data.mongodb.repository.MongoRepository<PrivateAppAssociation,
,String> org.springframework.data.repository.PagingAndSortingRepository<PrivateAppAssociation,
,String> org.springframework.data.repository.query.QueryByExampleExecutor<PrivateAppAssociation>
,org.springframework.data.querydsl.QuerydslPredicateExecutor<PrivateAppAssociation>
,org.springframework.data.repository.Repository<PrivateAppAssociation,
String>
public interface PrivateAppAssociationRepository
extends org.springframework.data.mongodb.repository.MongoRepository<PrivateAppAssociation,String>, org.springframework.data.querydsl.QuerydslPredicateExecutor<PrivateAppAssociation>
-
Method Summary
Modifier and TypeMethodDescriptionfindByAppId
(String appId) Finds and returns a list of PrivateAppAssociation entities that match the given app ID.findByAppIdAndAppVersionAndAssociatedBusinessId
(String appId, String appVersion, Long associatedBusinessId) This method is used to find a private app association based on the appId, appVersion, and associatedBusinessId.findByAppIdAndAppVersionAndAssociatedBusinessIdAndAssociatedStatus
(String appId, String appVersion, Long associatedBusinessId, String associatedStatus) This method is used to find a private app association based on the appId, appVersion, associatedBusinessId, and associatedStatus.findByAppIdAndAppVersionAndBusinessId
(String appId, String appVersion, Long businessId) This method is used to find private app associations based on the appId, appVersion, and businessId.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.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.mongodb.repository.MongoRepository
findAll, findAll, insert, insert
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
Methods inherited from interface org.springframework.data.querydsl.QuerydslPredicateExecutor
count, exists, findAll, findAll, findAll, findAll, findAll, findBy, findOne
-
Method Details
-
findByAppIdAndAppVersionAndBusinessId
List<PrivateAppAssociation> findByAppIdAndAppVersionAndBusinessId(String appId, String appVersion, Long businessId) This method is used to find private app associations based on the appId, appVersion, and businessId.- Parameters:
appId
- The ID of the app for which private app associations are to be found.appVersion
- The version of the app for which private app associations are to be found.businessId
- The ID of the business for which private app associations are to be found.- Returns:
- A list of PrivateAppAssociation objects that match the given appId, appVersion, and businessId.
-
findByAppIdAndAppVersionAndAssociatedBusinessIdAndAssociatedStatus
Optional<PrivateAppAssociation> findByAppIdAndAppVersionAndAssociatedBusinessIdAndAssociatedStatus(String appId, String appVersion, Long associatedBusinessId, String associatedStatus) This method is used to find a private app association based on the appId, appVersion, associatedBusinessId, and associatedStatus.- Parameters:
appId
- The ID of the app for which the private app association is to be found.appVersion
- The version of the app for which the private app association is to be found.associatedBusinessId
- The ID of the associated business for which the private app association is to be found.associatedStatus
- The status of the association for which the private app association is to be found.- Returns:
- An Optional containing the PrivateAppAssociation object that matches the given parameters if found, or an empty Optional if not.
-
findByAppIdAndAppVersionAndAssociatedBusinessId
Optional<PrivateAppAssociation> findByAppIdAndAppVersionAndAssociatedBusinessId(String appId, String appVersion, Long associatedBusinessId) This method is used to find a private app association based on the appId, appVersion, and associatedBusinessId.- Parameters:
appId
- The ID of the app for which the private app association is to be found.appVersion
- The version of the app for which the private app association is to be found.associatedBusinessId
- The ID of the associated business for which the private app association is to be found.- Returns:
- An Optional containing the PrivateAppAssociation object that matches the given parameters if found, or an empty Optional if not.
-
findByAppId
Finds and returns a list of PrivateAppAssociation entities that match the given app ID.- Parameters:
appId
- The ID of the app to find associations for.- Returns:
- A list of PrivateAppAssociation entities associated with the given app ID. If no associations are found, an empty list is returned.
-