Class RuleRepositoryImpl
- java.lang.Object
-
- de.adorsys.smartanalytics.pers.mongo.RuleRepositoryImpl
-
- All Implemented Interfaces:
RuleRepositoryIf
@Profile({"mongo-persistence","fongo"}) @Service public class RuleRepositoryImpl extends Object implements RuleRepositoryIf
-
-
Constructor Summary
Constructors Constructor Description RuleRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()voiddeleteAll()voiddeleteById(String id)List<RuleEntity>findAll()org.springframework.data.domain.Page<RuleEntity>findAll(org.springframework.data.domain.Pageable pageable)Optional<RuleEntity>getRuleByRuleId(String ruleId)voidsave(RuleEntity ruleEntity)voidsaveAll(List<RuleEntity> rules)Iterable<RuleEntity>search(String search)
-
-
-
Method Detail
-
count
public long count()
- Specified by:
countin interfaceRuleRepositoryIf
-
deleteAll
public void deleteAll()
- Specified by:
deleteAllin interfaceRuleRepositoryIf
-
saveAll
public void saveAll(List<RuleEntity> rules)
- Specified by:
saveAllin interfaceRuleRepositoryIf
-
save
public void save(RuleEntity ruleEntity)
- Specified by:
savein interfaceRuleRepositoryIf
-
findAll
public List<RuleEntity> findAll()
- Specified by:
findAllin interfaceRuleRepositoryIf
-
deleteById
public void deleteById(String id)
- Specified by:
deleteByIdin interfaceRuleRepositoryIf
-
findAll
public org.springframework.data.domain.Page<RuleEntity> findAll(org.springframework.data.domain.Pageable pageable)
- Specified by:
findAllin interfaceRuleRepositoryIf
-
getRuleByRuleId
public Optional<RuleEntity> getRuleByRuleId(String ruleId)
- Specified by:
getRuleByRuleIdin interfaceRuleRepositoryIf
-
search
public Iterable<RuleEntity> search(String search)
- Specified by:
searchin interfaceRuleRepositoryIf
-
-