org.sonar.core.rule
Class DefaultRuleFinder

java.lang.Object
  extended by org.sonar.core.rule.DefaultRuleFinder
All Implemented Interfaces:
BatchComponent, RuleFinder, ServerComponent
Direct Known Subclasses:
CacheRuleFinder

public class DefaultRuleFinder
extends Object
implements RuleFinder


Constructor Summary
DefaultRuleFinder(DatabaseSessionFactory sessionFactory)
           
 
Method Summary
protected  Rule doFindById(int ruleId)
           
protected  Rule doFindByKey(String repositoryKey, String key)
           
 Rule find(RuleQuery query)
           
 Collection<Rule> findAll(RuleQuery query)
           
 Rule findById(int ruleId)
           
 Rule findByKey(String repositoryKey, String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRuleFinder

public DefaultRuleFinder(DatabaseSessionFactory sessionFactory)
Method Detail

findById

public Rule findById(int ruleId)
Specified by:
findById in interface RuleFinder

doFindById

protected final Rule doFindById(int ruleId)

findByKey

public Rule findByKey(String repositoryKey,
                      String key)
Specified by:
findByKey in interface RuleFinder

doFindByKey

protected final Rule doFindByKey(String repositoryKey,
                                 String key)

find

public final Rule find(RuleQuery query)
Specified by:
find in interface RuleFinder

findAll

public final Collection<Rule> findAll(RuleQuery query)
Specified by:
findAll in interface RuleFinder


Copyright © 2009-2012 SonarSource. All Rights Reserved.