1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.rule.dao.impl;
17
18 import org.apache.ojb.broker.query.QueryByCriteria;
19 import org.kuali.rice.kew.rule.RuleResponsibilityBo;
20 import org.kuali.rice.kew.rule.dao.RuleResponsibilityDAO;
21 import org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport;
22
23
24 public class RuleResponsibilityDAOOjbImpl extends PersistenceBrokerDaoSupport implements RuleResponsibilityDAO {
25
26
27
28
29
30
31 public void delete(String ruleResponsibilityId) {
32 this.getPersistenceBrokerTemplate().delete(findByRuleResponsibilityId(ruleResponsibilityId));
33 }
34
35
36
37
38
39
40 public RuleResponsibilityBo findByRuleResponsibilityId(String ruleResponsibilityId) {
41 RuleResponsibilityBo ruleResponsibility = new RuleResponsibilityBo();
42 ruleResponsibility.setId(ruleResponsibilityId);
43 return (RuleResponsibilityBo) this.getPersistenceBrokerTemplate().getObjectByQuery(new QueryByCriteria(ruleResponsibility));
44 }
45 }