Interface IRuleDAO
-
- All Known Implementing Classes:
RuleDAO
public interface IRuleDAORule DAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nRuleId)Delete a record from the tablevoidinsert(Rule rule)Insert a new record in the table.Ruleload(int nRuleId, IRuleTypesSet ruleTypesSet)Load the data of Rule from the tablejava.util.List<Rule>selectRuleList(IRuleTypesSet ruleTypesSet)Load the list of rulesjava.util.List<Rule>selectRuleListByRuleTypeKey(java.lang.String strRuleTypeKey, IRuleTypesSet ruleTypesSet)Load the list of rules specified by rule type keyvoidstore(Rule rule)Update the record in the table
-
-
-
Method Detail
-
delete
void delete(int nRuleId)
Delete a record from the table- Parameters:
nRuleId- The Rule Id
-
insert
void insert(Rule rule)
Insert a new record in the table.- Parameters:
rule- The rule object
-
load
Rule load(int nRuleId, IRuleTypesSet ruleTypesSet)
Load the data of Rule from the table- Parameters:
nRuleId- The identifier of RuleruleTypesSet- The rule type set- Returns:
- the instance of the Rule
-
selectRuleList
java.util.List<Rule> selectRuleList(IRuleTypesSet ruleTypesSet)
Load the list of rules- Parameters:
ruleTypesSet- The rule type set- Returns:
- The Collection of the Rules
-
selectRuleListByRuleTypeKey
java.util.List<Rule> selectRuleListByRuleTypeKey(java.lang.String strRuleTypeKey, IRuleTypesSet ruleTypesSet)
Load the list of rules specified by rule type key- Parameters:
strRuleTypeKey- The rule type keyruleTypesSet- The rule types set- Returns:
- The Collection of the Rules
-
store
void store(Rule rule)
Update the record in the table- Parameters:
rule- The reference of rule
-
-